diff --git a/dist/setup_cpp.js b/dist/setup_cpp.js index 239ece4d..e591db60 100644 --- a/dist/setup_cpp.js +++ b/dist/setup_cpp.js @@ -1,2 +1,2 @@ -function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((n,i)=>{r(e,t||{},((e,t)=>{e?i(e):n(t)}))}))}dt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}function n(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof vt)return{binDir:vt};const i=t(ct).sync("brew",{nothrow:!0});return null!==i?(vt=(0,ze.dirname)(i),{binDir:vt}):((0,Ke.execFileSync)('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),vt="/usr/local/bin/",{binDir:vt})}function i(e,t){const r=e.options.env||process.env,n=process.cwd(),i=null!=e.options.cwd,o=i&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=ct.sync(e.command,{path:r[bt({env:r})],pathExt:t?ze.delimiter:void 0})}catch(e){}finally{o&&process.chdir(n)}return s&&(s=ze.resolve(i?e.options.cwd:"",s)),s}function o(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 Nt&&1===e&&!t.file?o(t.original,"spawn"):null}function a(e,t,r){const n=xt(e,t,r),i=Ke.spawn(n.command,n.args,n.options);return At.hookChildProcess(i,n),i}async function c(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Ir(t);return await new Promise(((t,i)=>{const o=e=>{e&&n.getBufferedLength()<=Ar.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e)};(async()=>{try{await kr(e,n),t()}catch(e){o(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&o(new Lr)}))})),n.getBufferedValue()}function l(){return(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(ct).sync("sudo",{nothrow:!0});var e}function u(e,r=[],n={stdio:"inherit",shell:!0}){return l()?t(yt).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(yt).sync(e,r,n)}function d(e){return l()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,ze.join)("/Users/",process.env.SUDO_USER,e):(0,ze.join)("/home/",process.env.SUDO_USER,e):t(an)("~/"+e)}function p(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return t(yt)((()=>{if(void 0===dn){const e=t(ct).sync("pwsh",{nothrow:!0});null!==e&&(dn=e);const r=t(ct).sync("powershell",{nothrow:!0});null!==r&&(dn=r)}if(void 0===dn)throw Error("Could not find powershell");return dn})(),[...r,"-c",e],n)}async function h(e,r,n=!1){const i=n?t(pn)(null!=r?r:""):r;try{if("github-actions"===t(cn)())try{(0,at.exportVariable)(e,i)}catch(t){(0,un.error)(t),await m(e,i)}else await m(e,i)}catch(t){(0,un.error)(t),(0,at.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${ze.delimiter}${process.env.PATH}`;try{if("github-actions"===t(cn)())try{(0,at.addPath)(e)}catch(t){(0,un.error)(t),await v(e)}else await v(e)}catch(t){(0,un.error)(t),(0,at.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,at.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return g(),(0,Be.appendFileSync)(vn,`\nexport ${e}="${r}"\n`),void(0,at.info)(`${e}="${r}" was added to "${vn}`)}process.env[e]=r}async function v(e){switch(process.platform){case"win32":return await p(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void(0,at.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return g(),(0,Be.appendFileSync)(vn,`\nexport PATH="${e}:$PATH"\n`),void(0,at.info)(`"${e}" was added to "${vn}"`);default:return}}function g(){if(gn)return;const e="export SOURCE_CPPRC=0";if((0,Be.existsSync)(vn)&&(0,Be.readFileSync)(vn,"utf8").includes(e))return;(0,Be.appendFileSync)(vn,`\n${e}\n`),(0,at.info)(`Added ${e} to ${vn}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${vn}" ]]; then source "${vn}"; fi\n`;try{const e=d(".profile");(0,Be.appendFileSync)(e,t),(0,at.info)(`${t} was added to ${e}`);const r=d(".bashrc");(0,Be.appendFileSync)(r,t),(0,at.info)(`${t} was added to ${r}`)}catch(e){(0,un.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}gn=!0}async function y(e,r,n=[],i=!1){const o=(()=>{let e;return e=null!==t(ct).sync("nala",{nothrow:!0})?"nala":"apt-get",e})();if((0,at.info)(`Installing ${e} ${null!=r?r:""} via ${o}`),process.env.DEBIAN_FRONTEND="noninteractive",yn&&!i||(w(o),yn=!0),wn||(await(async e=>{u(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]),b(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),b(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg"),"nala"===e&&(await h("LANG","C.UTF-8"),await h("LC_ALL","C.UTF-8"))})(o),wn=!0),Array.isArray(n)&&0!==n.length){for(const e of n)u("add-apt-repository",["--update","-y",e]);w(o)}if(void 0!==r&&""!==r)try{u(o,["install","--fix-broken","-y",`${e}=${r}`])}catch{u(o,["install","--fix-broken","-y",`${e}-${r}`])}else u(o,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function w(e){u(e,"nala"!==e?["update","-y"]:["update"])}function x(){u("gpg",["-k"])}function b(e,t,r="keyserver.ubuntu.com"){const n="/etc/apt/trusted.gpg.d/"+t;if(!(0,Be.existsSync)(n)){x();for(const t of e)u("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",t]),u("chmod",["644",n])}return n}async function E(e,t){const r="/etc/apt/trusted.gpg.d/"+e;return(0,Be.existsSync)(r)||(x(),await y("curl",void 0),u("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),u("chmod",["644",r])),r}function S(e,r){return"github-actions"===t(cn)()?u("update-alternatives",["--install","/usr/bin/"+e,e,r,"40"]):(g(),(0,Be.appendFileSync)(vn,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${r} 40; fi\n`))}function _(e,t,r){(0,un.info)(`Installing ${e} ${null!=t?t:""} via pacman`);const n="pacman";if(xn||(u(n,["-Syuu","--noconfirm"]),xn=!0),bn||(u(n,["-Sy","--noconfirm","base-devel"]),bn=!0),void 0!==t&&""!==t)try{u(null!=r?r:n,["-S","--noconfirm",`${e}=${t}`])}catch{u(null!=r?r:n,["-S","--noconfirm",`${e}${t}`])}else u(null!=r?r:n,["-S","--noconfirm",e]);return{binDir:"/usr/bin/"}}function O(e,r){return(0,at.info)(`Installing ${e} ${null!=r?r:""} via brew`),Sn&&null!==t(ct).sync("brew",{nothrow:!0})||(n(0,0,process),Sn=!0),t(yt).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function $(e,r,n){if("win32"!==process.platform)return;if("string"==typeof En)return{binDir:En};const i=t(ct).sync("choco",{nothrow:!0});if(null!==i)return En=(0,ze.dirname)(i),{binDir:En};let o="powershell.exe";const s=t(ct).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(o=s),t(yt).sync(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await f(a);const c=t(ct).sync("choco",{nothrow:!0});var l;return En=null!==c?(0,ze.dirname)(c):(null!==(l=process.env.ChocolateyInstall)&&void 0!==l?l:"C:/ProgramData/chocolatey")+"/bin",(0,Be.existsSync)(En)?{binDir:En}:void 0}async function T(e,r,n=[]){(0,at.info)(`Installing ${e} ${null!=r?r:""} via chocolatey`),Tn&&null!==t(ct).sync("choco",{nothrow:!0})||(await $(0,0,process),Tn=!0);const i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==r&&""!==r)t(yt).sync("choco",["install","-y",e,"--version="+r,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{t(yt).sync("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,un.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 C(){return"linux"===process.platform&&(void 0===_n&&(_n=null!==t(ct).sync("pacman",{nothrow:!0})),_n)}function R(){return"linux"===process.platform&&(void 0===On&&(On=null!==t(ct).sync("dnf",{nothrow:!0})),On)}function I(e,t){(0,un.info)(`Installing ${e} ${null!=t?t:""} via dnf`);const r="dnf";if(void 0!==t&&""!==t)try{u(r,["-y","install",`${e}-${t}`])}catch(t){(0,un.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 P(){if("linux"!==process.platform)return!1;if(void 0===$n){const e="apt-get";$n=null!==t(ct).sync(e,{nothrow:!0})}return $n}function A(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function N(e,t=".bat",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function k(e,t,r){switch(process.platform){case"win32":return T("7zip",e);case"darwin":return O("p7zip",e);case"linux":if(C())return _("p7zip",e);if(R())return I("p7zip",e),I("p7zip-plugins",e);if(P())return y("p7zip-full",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function L(e){"linux"!==process.platform&&"darwin"!==process.platform||!l()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0})}function D(e,t){const r=[];t=t||Fn.arch();const n=Gn.join(z(),e);if(Un.existsSync(n)){const e=Un.readdirSync(n);for(const i of e)if(F(i)){const e=Gn.join(n,i,t||"");Un.existsSync(e)&&Un.existsSync(e+".complete")&&r.push(i)}}return r}function j(e){return kn(this,void 0,void 0,(function*(){return e||(e=Gn.join(B(),Vn.default())),yield jn.mkdirP(e),e}))}function U(e,t,r){return kn(this,void 0,void 0,(function*(){const n=Gn.join(z(),e,Bn.clean(t)||t,r||"");Dn.debug("destination "+n);const i=n+".complete";return yield jn.rmRF(n),yield jn.rmRF(i),yield jn.mkdirP(n),n}))}function M(e,t,r){const n=Gn.join(z(),e,Bn.clean(t)||t,r||"");Un.writeFileSync(n+".complete",""),Dn.debug("finished caching tool")}function F(e){const t=Bn.clean(e)||"";Dn.debug("isExplicit: "+t);const r=null!=Bn.valid(t);return Dn.debug("explicit? "+r),r}function G(e,t){let r="";Dn.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort(((e,t)=>Bn.gt(e,t)?1:-1))).length-1;n>=0;n--){const i=e[n];if(Bn.satisfies(i,t)){r=i;break}}return Dn.debug(r?"matched: "+r:"match not found"),r}function z(){const e=process.env.RUNNER_TOOL_CACHE||"";return Ye.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function B(){const e=process.env.RUNNER_TEMP||"";return Ye.ok(e,"Expected RUNNER_TEMP to be defined"),e}function H(e,t){const r=nt[e];return void 0!==r?r:t}async function q(e,r){return await t(yt)(await(async()=>(void 0===ni&&(null===t(ct).sync("7z",{nothrow:!0})&&await k("",0,process),ni="7z"),ni))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),L(r),r}function V(e,t){return q(e,t)}function X(e,t){return q(e,t)}async function Y(e,r,n=["--strip-components=0"]){try{await(0,Cn.mkdirP)(r)}catch{}try{await t(yt)("tar",["xf",e,"-C",r,...n],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,un.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return L(r),r}async function W(e,r,n,i,o){var s,a;(0,at.info)(`Installing ${e} ${r} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!==(s=process.env.RUNNER_TEMP)&&void 0!==s?s:(0,Ge.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:(0,ze.join)((0,Ge.tmpdir)(),"setup-cpp","hostedtoolcache");const{url:c,binRelativeDir:l,binFileName:u,extractedFolderName:d,extractFunction:p}=await n(r,process.platform,o);if("github-actions"===t(cn)())try{const t=(0,Rn.find)(e,r);if(t){const n=(0,ze.join)(t,d),i=(0,ze.join)(n,l);if((0,Be.existsSync)(i)&&(0,Be.existsSync)((0,ze.join)(i,u)))return(0,at.info)(`${e} ${r} was found in the cache at ${i}.`),await f(i),{installDir:n,binDir:i}}}catch{}const h=(0,ze.join)(i,d),m=(0,ze.join)(h,l),v=(0,ze.join)(m,u);if(!(0,Be.existsSync)(m)||!(0,Be.existsSync)(v)){(0,at.info)(`Download and extract ${e} ${r}`),ii||("linux"===process.platform&&(C()?(_("unzip"),_("tar"),_("xz")):R()?(I("unzip"),I("tar"),I("xz")):P()&&(await y("unzip"),await y("tar"),await y("xz-utils"))),ii=!0);try{const e=await(0,Rn.downloadTool)(c);await(null==p?void 0:p(e,i))}catch(t){throw Error(`Failed to download ${e} ${r} ${o} from ${c}: ${t}`)}}return(0,at.info)(`Add ${m} to PATH`),await f(m),"github-actions"===t(cn)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,Rn.cacheDir)(i,e,r),{installDir:h,binDir:m}}function K(e,t,r){const n=(e=>"win32"===e?"windows":e)(t),i=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),o="win32"===t,s=o?"zip":"tar.gz";return{binRelativeDir:"",binFileName:A("task"),extractedFolderName:"",extractFunction:o?X:Y,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${i}.${s}`}}function J(e,r,n){var i;const o=null!==(i=t(si)(e))&&void 0!==i?i:e;switch(r){case"win32":{const r=t(oi)(o,"v3.19.6");let i;i=["ia32","x86","i386","x32"].includes(n)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:A("cmake"),extractedFolderName:s,extractFunction:X,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.zip`}}case"darwin":{const r=`cmake-${e}-${t(oi)(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:A("cmake"),extractedFolderName:r,extractFunction:Rn.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(oi)(o,"v3.19.8");let i;i=["aarch64"].includes(n)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:A("cmake"),extractedFolderName:s,extractFunction:Rn.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function Z(e,t,r){return W("cmake",e,J,t,r)}async function Q(e,r,n){if("github-actions"!==t(cn)())return ee(e,r);try{(0,un.info)("Installing python in GitHub Actions");const{setupActionsPython:t}=await st("d0ovd");return t(e,r,n)}catch(t){return(0,un.warning)(""+t),ee(e,r)}}async function ee(e,r,n){switch(process.platform){case"win32":{var i,o;r?await T("python3",e,["--params=/InstallDir:"+r]):await T("python3",e);const n=null!==(o=null!==(i=t(ct).sync("python3.exe",{nothrow:!0}))&&void 0!==i?i:t(ct).sync("python.exe",{nothrow:!0}))&&void 0!==o?o:(0,ze.join)(r,"python.exe"),s=(0,ze.dirname)(n);return await(async e=>{(0,un.info)(`Add ${e} to PATH`),await f(e)})(s),{installDir:s,binDir:s}}case"darwin":return O("python3",e);case"linux":{let t;if(C())t=_("python",e),_("python-pip");else if(R())t=I("python3",e),I("python3-pip");else{if(!P())throw Error("Unsupported linux distributions");t=await y("python3",e),await y("python3-pip")}return t}default:throw Error("Unsupported platform")}}function te(e){return new Promise((t=>{qe.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}function re(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function ne(e,t,r=null){if(ie(t,e)){if("linux"===process.platform&&null!==r&&e in di){const t=r[0];return parseInt(Object.keys(di[e])[0],10)>t?"":di[e][t]}return ui[e]}return null!=t?t:""}function ie(e,t){return"true"===e||void 0===e&&t in ui}async function oe(e,r){if((0,at.info)(`Installing ${e} ${null!=r?r:""} via pip`),void 0===pi){if(null!==t(ct).sync("python3",{nothrow:!0}))pi="python3";else{if(null===t(ct).sync("python",{nothrow:!0})||!await(async(e,r,n=li)=>{const i=await(async(e,t=li)=>{try{var r;const n=await(0,Xn.getExecOutput)(e,["--version"]);return null===(r=(n.stdout||n.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,n);return"string"==typeof i&&"string"==typeof r&&""!==i&&""!==r&&-1!==t(ai)(i,r)})("python","3.0.0")){if((0,at.info)("python3 was not found. Installing python"),await Q(ne("python",void 0),"",process.arch),fi)throw Error("Failed to install python");return fi=!0,oe(e,r)}pi="python"}"win32"===process.platform?t(yt).sync(pi,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(C()?_("python-pip"):R()?I("python3-pip"):P()&&await y("python3-pip")),t(yt).sync(pi,["-m","pip","install","-U","wheel"],{stdio:"inherit"})}if(t(yt).sync(pi,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===hi){if("linux"===process.platform)hi="/home/runner/.local/bin/";else if("darwin"===process.platform)hi="/usr/local/bin/";else try{hi=(0,ze.join)((await(0,Xn.getExecOutput)(pi+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{hi=(0,ze.join)((await(0,Xn.getExecOutput)(pi+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}(0,at.info)(hi+" to PATH"),await f(hi)}return{binDir:hi}}async function se(e,t,r){switch(process.platform){case"win32":return await T("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 O("graphviz",e);case"linux":if(C())return _("graphviz",e);if(R())return I("graphviz",e);if(P())return y("graphviz",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function ae(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:A("doxygen"),extractedFolderName:t,extractFunction:Rn.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:A("doxygen"),extractedFolderName:t,extractFunction:X,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function ce(){if("darwin"===process.platform)try{const e=await(0,Xn.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await h("SDKROOT",t.trim()):(0,un.error)("SDKROOT not set")}catch(e){(0,un.error)(e)}}function le(e,t,r){if("win32"===t){const t=gi[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const n="ia32"===r?"i686":"x86_64",i="seh";return{binRelativeDir:"bin/",binFileName:A("g++"),extractedFolderName:"mingw64",extractFunction:q,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${n}-posix-${i}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function ue(e,r,n){let i;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||await T("gcc-arm-embedded",e);try{i=await W("g++",e,le,r,n)}catch(t){(0,un.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await(async(e,t)=>{let r;var n,i;return await T("mingw",e),"x64"===t&&(0,Be.existsSync)("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await f(r)):"ia32"===t&&(0,Be.existsSync)("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await f(r)):(0,Be.existsSync)((null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,n)}break;case"darwin":i=O("gcc",e);break;case"linux":"x64"===n?C()?i=_("gcc",e):R()?(i=I("gcc",e),I("gcc-c++",e),I("libstdc++-devel",void 0)):P()&&(await y("gcc",e,["ppa:ubuntu-toolchain-r/test"]),i=await y("g++",e,[])):((0,un.info)(`Install g++-multilib because gcc for ${n} was requested`),C()?_("gcc-multilib",e):P()&&await y("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]));break;default:throw Error("Unsupported platform for "+n)}if(void 0!==i)return await(async(e,r)=>{const n=[];if("win32"===process.platform)n.push(h("CC",A(r+"/gcc")),h("CXX",A(r+"/g++")));else{var i;const o=t(mi)(null!==(i=t(si)(e))&&void 0!==i?i:e);5>o?(n.push(h("CC",`${r}/gcc-${e}`),h("CXX",`${r}/g++-${e}`)),P()&&(S("cc",`${r}/gcc-${e}`),S("cxx",`${r}/g++-${e}`),S("gcc",`${r}/gcc-${e}`),S("g++",`${r}/g++-${e}`))):(n.push(h("CC",`${r}/gcc-${o}`),h("CXX",`${r}/g++-${o}`)),P()&&(S("cc",`${r}/gcc-${o}`),S("cxx",`${r}/g++-${o}`),S("gcc",`${r}/gcc-${o}`),S("g++",`${r}/g++-${o}`)))}n.push(ce()),"github-actions"===t(cn)()&&(()=>{const e=t(ze).join(vi,"gcc_matcher.json");if(!(0,Be.existsSync)(e))return(0,un.warning)("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,un.info)("::add-matcher::"+e)})(),await Promise.all(n)})(e,i.binDir),i}function de(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function pe(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function he(e,r){switch(e){case"darwin":return(e=>{if(xi.has(e))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(oi)(e,"9.0.1")?pe(e,r,n):de(e,r,n)})(r);case"linux":return(e=>{let r=e;const n=bi.get(r);let i;if(void 0!==n&&(r=n),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!wi.has(e))throw Error("Unsupported Ubuntu version: "+e);i=r.replace(e,""),r=re(wi,e)[0]}else""!==r&&r in Ei?i=Ei[r]:(i=Ei["14.0.0"],(0,un.warning)(`Falling back to LLVM version 14.0.0 ${i} for the Ubuntu.`));const o="clang+llvm-",s="5.0.0"===r?`-linux-x86_64${i}.tar.xz`:`-x86_64-linux-gnu${i}.tar.xz`;return t(oi)(r,"9.0.1")?pe(r,o,s):de(r,o,s)})(r);case"win32":return(async e=>{if(Si.has(e))return null;const r="LLVM-",n=t(oi)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=t(oi)(e,"9.0.1");let o,s=!1;return i&&(o=pe(e,r,n),await te(o)||(s=!0)),!s&&i||(o=de(e,r,n)),o})(r);default:return null}}async function fe(e,t,r){const[n,i]=await(async(e,t,r,n)=>{if("linux"===t&&r.includes("ubuntu")){const e=await n(t,r);if(null!==e&&await te(e))return[r,e]}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);for(const i of re(e,r)){const e=await n(t,i);if(null!==e&&await te(e))return[i,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(wi,t,e,he);return(0,at.setOutput)("version",n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:A("clang"),extractFunction:"win32"===t?V:(e,t)=>Y(e,t,["--strip-components=1"])}}async function me(e,r,n){const i=await ve(e,r,n);var o;return await(async(e,r)=>{const n=(e=>{if(null===t(ci)(e))try{const r=t(si)(e);if(null!==r)return(0,un.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),i=ze.join(e,"lib");var o;const s=null!==(o=process.env.LD_LIBRARY_PATH)&&void 0!==o?o:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",l=[h("LLVM_PATH",e),h("LD_LIBRARY_PATH",`${i}${ze.delimiter}${s}`),h("DYLD_LIBRARY_PATH",`${i}${ze.delimiter}${c}`),h("LDFLAGS",`-L"${e}/lib"`),h("CPPFLAGS",`-I"${e}/include"`),h("CC",A(e+"/bin/clang")),h("CXX",A(e+"/bin/clang++")),h("LIBRARY_PATH",e+"/lib"),ce()];if("win32"!==process.platform){const r=t(mi)(n);(0,Be.existsSync)(`${e}/lib/clang/${n}/include`)?l.push(h("CPATH",`${e}/lib/clang/${n}/include`)):(0,Be.existsSync)(`${e}/lib/clang/${r}/include`)&&l.push(h("CPATH",`${e}/lib/clang/${r}/include`))}P()&&(S("cc",e+"/bin/clang"),S("cxx",e+"/bin/clang++"),S("clang",e+"/bin/clang"),S("clang++",e+"/bin/clang++"),S("lld",e+"/bin/lld"),S("ld.lld",e+"/bin/ld.lld"),S("llvm-ar",e+"/bin/llvm-ar")),"github-actions"===t(cn)()&&ye(),await Promise.all(l)})(null!==(o=i.installDir)&&void 0!==o?o:r,e),i}async function ve(e,t,r){const n=await W("llvm",e,fe,t,r);return _i||("linux"===process.platform&&(await ue(ne("gcc",void 0),"",r),C()||P()&&await y("libtinfo-dev")),_i=!0),n}function ge(e,r,n){return"github-actions"===t(cn)()&&ye(),ve(e,r,n)}function ye(){const e=ze.join(yi,"llvm_matcher.json");if(!(0,Be.existsSync)(e))return(0,un.warning)("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");(0,un.info)("::add-matcher::"+e)}function we(e,t,r){const n=new Li(e,t,r);process.stdout.write(""+n+Ni.EOL)}function xe(e){Pi.issue("error",e instanceof Error?""+e:e)}function be(e){Pi.issue("group",e)}function Ee(){Pi.issue("endgroup")}function Se(e){return Object.values(Yi).includes(e)?e:e in Yi?Yi[e]:e}function _e(e){if(Object.keys(Yi).includes(e))return e;for(const[t,r]of Object.entries(Yi))if(r===e)return t;return e}function Oe(e){const t=Se(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let n=((e,t)=>{try{return(""+Ke.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){Ci.warning("vswhere failed: "+e)}return null})(0,r);if(n&&Be.existsSync(n))return Ci.info("Found with vswhere: "+n),n;Ci.info("Not found with vswhere");const i=e?[_e(e)]:Xi;for(const e of qi)for(const t of i)for(const r of Vi)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,Ci.info("Trying standard location: "+n),Be.existsSync(n))return Ci.info("Found standard location: "+n),n;if(Ci.info("Not found in standard locations"),n=Hi+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",Be.existsSync(n))return Ci.info("Found VS 2015: "+n),n;throw Ci.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}function $e(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function Te(e,t,r,n,i,o,s){void 0!==t&&(0,Be.existsSync)(t)&&((0,un.info)(`Adding ${t} to PATH`),await h("VCTargetsPath",t)),Ti((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),i,n,o,s,e)}async function Ce(e,r,n,i,o,s){if("win32"!==process.platform)return;const a=Oi(e);(0,un.info)(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=$i(a);u=!0,(0,un.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await T("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(c="14.16",await T("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(c="14.29",await T("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(c=void 0,await T("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):(0,un.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,un.error)(e)}await Te(a,l,n,c,i,o,s),"github-actions"===t(cn)()&&(()=>{const e=t(ze).join(Ji,"msvc_matcher.json");if(!(0,Be.existsSync)(e))return(0,un.warning)("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,un.info)("::add-matcher::"+e)})()}function Re(e,t,r){const n=(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:A("ninja"),extractedFolderName:"",extractFunction:X,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`}}function Ie(e,t,r){return W("ninja",e,Re,t,r)}function Pe(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ae(e,t,r,n){var i,o=e[t],s=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(i=+r)==0?i:r),!!r)):0*(i=+r)==0?i:r;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s]}function Ne(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:A("kcov"),extractFunction:Y}}function ke(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:A("kcov"),extractFunction:Le}}async function Le(e,r){const n=await Y(e,r,["--strip-components=1"]),i=await(async()=>{let e=t(ct).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Z(ne("cmake",void 0),(0,ze.join)(d(""),"cmake"),"");e=(0,ze.join)(t,"cmake")}return null===t(ct).sync("ninja",{nothrow:!0})&&await Ie(ne("ninja",void 0),(0,ze.join)(d(""),"ninja"),""),e})();"linux"===process.platform&&(C()?(_("libdwarf"),_("libcurl-openssl")):R()?(I("libdwarf-devel"),I("libcurl-devel")):P()&&(await y("libdw-dev"),await y("libcurl4-openssl-dev")));const o=(0,ze.join)(n,"build");return await t(yt)(i,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await t(yt)(i,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function De(e){"github-actions"!==t(cn)()&&(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=je(e);var n;r.help&&(0,un.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 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 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--bazel\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--nala\n--sevenzip\n--graphviz\n ');const i=null!==(n=r.architecture)&&void 0!==n?n:process.arch;var o;const s=null!==(o=process.env.SETUP_CPP_DIR)&&void 0!==o?o:d(""),a=[],c=[],l=Zi.create({autoloadLocales:!0});let u,p;Zi.addLocale(t(Ki)),Qi.addLocale(t(eo));let f=null;try{f=await(async()=>{if(P()){null===t(ct).sync("lsb_release",{nothrow:!0})&&await y("lsb-release");const e=await(0,to.getUbuntuVersion)();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){(0,un.warning)(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const n=t.slice(0,r).concat(t.slice(r+1)),i=t[r];if(!ie(e[i],i))for(let t=0;n.length>t;t++){const r=n[t];if(ie(e[r],n[t]))e[r]=e[i];else if(e[i]!==e[n[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return(0,un.error)("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of oo){const t=r[e];if(void 0!==t){u=Date.now(),(0,at.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await Te(ne(e,t,f),void 0,i,void 0,void 0,!1,!1);else{const n=io[e],o=(0,ze.join)(s,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await n(ne(e,t,f),o,i)}a.push(Fe(e,r))}catch(t){(0,un.error)(t),c.push(e+" failed to install")}(0,at.endGroup)(),p=Date.now(),(0,un.info)("took "+(l.format(u,p)||"0 seconds"))}}const m=r.compiler;u=Date.now();try{if(void 0!==m){const{compiler:e,version:t}=Ue(m);switch((0,at.startGroup)(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await me(ne("llvm",t,f),(0,ze.join)(s,"llvm"),i);a.push(Fe("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await ue(ne("gcc",t,f),(0,ze.join)(s,"gcc"),i);a.push(Fe("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await Ce(ne("msvc",t,f),(0,ze.join)(s,"msvc"),i);a.push(Fe("msvc",e));break}case"appleclang":case"applellvm":(0,at.notice)("Assuming apple-clang is already installed"),await Promise.all([h("CC","clang"),h("CXX","clang++")]),a.push(Fe("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}(0,at.endGroup)(),p=Date.now(),(0,un.info)("took "+(l.format(u,p)||"0 seconds"))}}catch(e){(0,un.error)(e),c.push("Failed to install the "+m),(0,at.endGroup)(),p=Date.now(),(0,un.info)("took "+(l.format(u,p)||"0 seconds"))}if(0===a.length&&0===c.length)return(0,un.warning)("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>(0,un.success)(e))),c.forEach((e=>(0,un.error)(e))),(0,un.info)("setup_cpp finished"),"github-actions"!==t(cn)())switch(process.platform){case"win32":(0,un.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,un.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function je(e){return((e,t)=>{var r,n,i,o,s,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=Pe(t.string),t.boolean=Pe(t.boolean),p)for(r in t.alias)for(n=t.alias[r]=Pe(t.alias[r]),c=0;n.length>c;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(n=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(n[l]);for(c=t.string.length;c-- >0;)for(l=(n=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(n[l]);if(f)for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),c=0;n.length>c;c++)t[o].push(n[c]);const m=h?Object.keys(t.alias):[];for(c=0;d>c;c++){if("--"===(i=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;i.length>l&&45===i.charCodeAt(l);l++);if(0===l)a._.push(i);else if("no-"===i.substring(l,l+3)){if(o=i.substring(l+3),h&&!~m.indexOf(o))return t.unknown(i);a[o]=!1}else{for(u=l+1;i.length>u&&61!==i.charCodeAt(u);u++);for(o=i.substring(l,u),s=i.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],n=2===l?[o]:o,u=0;n.length>u;u++){if(o=n[u],h&&!~m.indexOf(o))return t.unknown("-".repeat(l)+o);Ae(a,o,n.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(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a})(e,{string:so,default:Object.fromEntries(so.map((e=>[e,Me(e)]))),alias:{h:"help"},boolean:"help"})}function Ue(e){const r=e.split("-"),n=r[0];if(1 in r){const e=r[1];return null!==t(ci)(e)||(0,un.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}function Me(e){const t=(0,at.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function Fe(e,t){let r=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r}var Ge=require("os"),ze=require("path"),Be=require("fs"),He=require("http"),qe=require("https");require("net");var Ve=require("tls"),Xe=require("events"),Ye=require("assert"),We=require("util"),Ke=require("child_process"),Je=require("crypto"),Ze=require("string_decoder"),Qe=require("timers"),et=require("buffer"),tt=require("stream"),rt=require("process"),nt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},it={},ot={},st=nt.parcelRequire810d;null==st&&((st=e=>{if(e in it)return it[e].exports;if(e in ot){var t=ot[e];delete ot[e];var r={id:e,exports:{}};return it[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{ot[e]=t},nt.parcelRequire810d=st),st.register("04fde",(function(e,t){"use strict";function r(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function n(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function i(e){u.issue("group",e)}function o(){u.issue("endgroup")}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var u=st("2iva8"),d=st("kCOkT"),p=st("hGWy4");const h=c(Ge),f=c(ze);var m,v,g=st("1hWAC");(v=m=e.exports.ExitCode||(e.exports.ExitCode={}))[v.Success=0]="Success",v[v.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 n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))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,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,e.exports.warning=(e,t={})=>{u.issueCommand("warning",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=i,e.exports.endGroup=o,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;i(e);try{r=yield t()}finally{o()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))};var y=st("hILBc");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return y.summary}}),y=st("hILBc"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return y.markdownSummary}});var w=st("39f1T");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}})})),st.register("2iva8",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+s.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const s=o(Ge);var a=st("hGWy4");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${t=i,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),st.register("hGWy4",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),st.register("kCOkT",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const o=i(Be),s=i(Ge);var a=st("hGWy4");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(!o.existsSync(r))throw Error("Missing file at path: "+r);o.appendFileSync(r,`${a.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}})),st.register("1hWAC",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=st("4z9RF"),i=st("7v249"),o=st("04fde");class s{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new i.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(),n=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=s.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),o.debug("ID token url is "+t);const r=yield s.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=s})),st.register("4z9RF",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;const s=i(He),a=i(qe),c=i(st("2IaKG")),l=i(st("bbp3j"));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=c.getProxyUrl(new URL(e));return t?t.href:""};const m=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],v=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype)}}e.exports.HttpClientError=y;class w{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))))}))}}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 o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return o(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return o(this,void 0,void 0,(function*(){t[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 o(this,void 0,void 0,(function*(){const n=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 i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions)}))}putJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=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 i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=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 i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}))}request(e,t,r,n){return o(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const i=new URL(t);let o=this._prepareRequest(e,i,n);const s=this._allowRetries&&g.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(o,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,o,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 c=new URL(s);if("https:"===i.protocol&&i.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),c.hostname!==i.hostname)for(const e in n)"authorization"===e.toLowerCase()&&delete n[e];o=this._prepareRequest(e,c,n),a=yield this.requestRaw(o,r),t--}if(!a.message.statusCode||!v.includes(a.message.statusCode))return a;c+=1,s>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(s>c);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?n(e):t?r(t):n(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function n(e,t){i||(i=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1;const o=e.httpModule.request(e.options,(e=>{n(void 0,new w(e))}));let s;o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),n(Error("Request timeout: "+e.options.path))})),o.on("error",(e=>{n(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const i="https:"===n.parsedUrl.protocol;n.httpModule=i?a:s;const o=i?443:80;if(n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(n.options);return n}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},x(this.requestOptions.headers),x(e||{})):x(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=x(this.requestOptions.headers)[t]),e[t]||n||r}_getAgent(e){let t;const r=c.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const i="https:"===e.protocol;let o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||s.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const s="https:"===r.protocol;n=i?s?l.httpsOverHttps:l.httpsOverHttp:s?l.httpOverHttps:l.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=i?new a.Agent(e):new s.Agent(e),this._agent=t}return t||(t=i?a.globalAgent:s.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return o(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 o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>o(this,void 0,void 0,(function*(){const i=e.message.statusCode||0,o={statusCode:i,result:null,headers:{}};let s,a;i===u.NotFound&&r(o);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),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${i})`;const t=new y(e,i);t.result=o.result,n(t)}else r(o)}))))}))}};const x=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),st.register("2IaKG",((e,t)=>{"use strict";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 n=[e.hostname.toUpperCase()];"number"==typeof r&&n.push(`${n[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(n.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 n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0},e.exports.checkBypass=r})),st.register("bbp3j",((e,t)=>{e.exports=st("fNJ5J")})),st.register("fNJ5J",(function(t,r){function n(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||He.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,n,i)=>{for(var s=o(r,n,i),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===s.host&&l.port===s.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function i(e,t){var r=this;n.prototype.createSocket.call(r,e,(n=>{var i=e.request.getHeader("host"),o=s({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),a=Ve.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,t(a)}))}function o(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 n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a])}}return e}var a,c,l,u,d,p;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new n(e);return t.request=He.request,t},c=e=>{var t=new n(e);return t.request=He.request,t.createSocket=i,t.defaultPort=443,t},l=e=>{var t=new n(e);return t.request=qe.request,t},u=e=>{var t=new n(e);return t.request=qe.request,t.createSocket=i,t.defaultPort=443,t},We.inherits(n,Xe.EventEmitter),n.prototype.addRequest=function(e,t,r,n){var i=this,a=s({request:e},i.options,o(t,r,n));this.maxSockets>i.sockets.length?i.createSocket(a,(t=>{function r(){i.emit("free",t,a)}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n)}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t)})):i.requests.push(a)},n.prototype.createSocket=function(e,t){function r(r,o,s){var c;return a.removeAllListeners(),o.removeAllListeners(),200!==r.statusCode?(p("tunneling socket could not be established, statusCode=%d",r.statusCode),o.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):s.length>0?(p("got illegal response body from proxy"),o.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(p("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=o,t(o))}var n=this,i={};n.sockets.push(i);var o=s({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),p("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,n)=>{process.nextTick((()=>{r(e,t,n)}))})),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),n.removeSocket(i)})),a.end()},n.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=()=>{}})),st.register("7v249",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}}})),st.register("hILBc",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;const{access:n,appendFile:i,writeFile:o}=Be.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 n(t,Be.constants.R_OK|Be.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 n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),n=t?o:i;return yield n(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(Ge.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",n=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(r,n);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:n,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(o,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:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){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}),n=this.wrap("blockquote",e,r);return this.addRaw(n).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})),st.register("39f1T",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const o=i(ze);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,o.sep)})),st.register("ftrAD",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1})(t,r)}function n(e,t,n){Be.stat(e,((i,o)=>{n(i,!i&&r(o,e,t))}))}e.exports=n,n.sync=(e,t)=>r(Be.statSync(e),e,t)})),st.register("9yF3I",((e,t)=>{function r(e,t,r){Be.stat(e,((e,i)=>{r(e,!e&&n(i,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,i=e.gid,o=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),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&i===s||r&a&&n===o||r&l&&0===o})(e,t)}e.exports=r,r.sync=(e,t)=>n(Be.statSync(e),t)})),st.register("ditiY",((r,n)=>{function i(e){return"github-actions"===t(u)()?l.error(e):console.log(`${e}`)}function o(e){return console.log(`${e}`)}function s(e){return"github-actions"===t(u)()?l.warning(e):console.log(`${e}`)}function a(e){return"github-actions"===t(u)()?l.notice(e):console.log(`${e}`)}function c(e){return"github-actions"===t(u)()?l.info(e):console.log(e)}e(r.exports,"error",(()=>i)),e(r.exports,"success",(()=>o)),e(r.exports,"warning",(()=>s)),e(r.exports,"notice",(()=>a)),e(r.exports,"info",(()=>c));var l=st("04fde"),u=st("gmbrv")})),st.register("gmbrv",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTION?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),st.register("bJALw",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")})),st.register("fvrnx",(function(e,t){"use strict";function r(e){return u(this,void 0,void 0,(function*(){if(h.IS_WINDOWS){if(/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=h.getCmdPath();(yield h.isDirectory(e,!0))?yield f(t+' /s /c "rd /s /q "%inputPath%""',{env:{inputPath:e}}):yield f(t+' /s /c "del /f /a "%inputPath%""',{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield h.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield h.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield m("rm",["-rf",""+e]):yield h.unlink(e)}}))}function n(e){return u(this,void 0,void 0,(function*(){Ye.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function i(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(h.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(p.delimiter))e&&t.push(e);if(h.isRooted(e)){const r=yield h.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(p.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(p.delimiter))e&&r.push(e);const n=[];for(const i of r){const r=yield h.tryGetExecutablePath(p.join(i,e),t);r&&n.push(r)}return n}))}function o(e,t,r,i){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield n(t);const a=yield h.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield h.lstat(a)).isDirectory()?yield o(a,c,r,i):yield s(a,c,i)}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,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;const d=l(Ke),p=l(ze),h=l(st("2GOko")),f=We.promisify(d.exec),m=We.promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:n,recursive:i,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!n)return;const l=c&&c.isDirectory()&&a?p.join(t,p.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!i)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield o(e,l,0,n)}else{if(""===p.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield s(e,l,n)}}))},e.exports.mv=function(e,t,i={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let n=!0;if((yield h.isDirectory(t))&&(t=p.join(t,p.basename(e)),n=yield h.exists(t)),n){if(null!=i.force&&!i.force)throw Error("Destination already exists");yield r(t)}}yield n(p.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=n,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 n=yield i(t);return n&&n.length>0?n[0]:""}))},e.exports.findInPath=i})),st.register("2GOko",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),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)&&i(t,e,r);return o(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=s(Be),l=s(ze);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rmdir=n.rmdir,e.exports.stat=n.stat,e.exports.symlink=n.symlink,e.exports.unlink=n.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,n){return a(this,void 0,void 0,(function*(){let i;try{i=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(i&&i.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(r(i))return t;const o=t;for(const s of n){t=o+s,i=void 0;try{i=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(i&&i.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),n=l.basename(t).toUpperCase();for(const i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=l.join(r,i);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(i))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),st.register("6kHxT",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const s=i(st("4URNm"));var a=st("04fde");e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,(function*(){const o=Ge.platform();let c,l,u;for(const c of n){const n=c.version;if(a.debug(`check ${n} satisfies ${t}`),s.satisfies(n,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${o}`);let r=t.arch===i&&t.platform===o;if(r&&t.platform_version){const n=e.exports._getOsVersion();r=n===t.platform_version||s.satisfies(n,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=Ge.platform();let r="";if("darwin"===t)r=""+Ke.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 Be.existsSync(e)?r=""+Be.readFileSync(e):Be.existsSync(t)&&(r=""+Be.readFileSync(t)),r}})),st.register("4URNm",((e,t)=>{var r=st("bikcG");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:st("bgOMw").SEMVER_SPEC_VERSION,SemVer:st("7qUJS"),compareIdentifiers:st("12NXI").compareIdentifiers,rcompareIdentifiers:st("12NXI").rcompareIdentifiers,parse:st("gdrva"),valid:st("fVzwP"),clean:st("hOYls"),inc:st("dGcr6"),diff:st("bBssn"),major:st("fB2B7"),minor:st("bye2i"),patch:st("87ZGF"),prerelease:st("4agny"),compare:st("howpO"),rcompare:st("zcbgY"),compareLoose:st("iGBo4"),compareBuild:st("80ezM"),sort:st("4qmtg"),rsort:st("4pjXu"),gt:st("6KPS4"),lt:st("lr5pz"),eq:st("jXghC"),neq:st("fqqGA"),gte:st("5cRW4"),lte:st("fwsB7"),cmp:st("823yM"),coerce:st("1YYsi"),Comparator:st("eR6XK"),Range:st("hvUff"),satisfies:st("c8FZS"),toComparators:st("2J2hR"),maxSatisfying:st("lbfMG"),minSatisfying:st("5wbuE"),minVersion:st("hZRNG"),validRange:st("fqnzG"),outside:st("77bPN"),gtr:st("gD8Tz"),ltr:st("bpPww"),intersects:st("cHIUn"),simplifyRange:st("k8aCs"),subset:st("388OD")}})),st.register("bikcG",((e,t)=>{var r=st("bgOMw").MAX_SAFE_COMPONENT_LENGTH,n=st("jkMsx");const i=(t=e.exports={}).re=[],o=t.src=[],s=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),s[e]=c,o[c]=t,i[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[s.NUMERICIDENTIFIER]}|${o[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[s.NUMERICIDENTIFIERLOOSE]}|${o[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[s.PRERELEASEIDENTIFIER]}(?:\\.${o[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[s.BUILDIDENTIFIER]}(?:\\.${o[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[s.MAINVERSION]}${o[s.PRERELEASE]}?${o[s.BUILD]}?`),c("FULL",`^${o[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[s.MAINVERSIONLOOSE]}${o[s.PRERELEASELOOSE]}?${o[s.BUILD]}?`),c("LOOSE",`^${o[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",o[s.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:${o[s.PRERELEASE]})?${o[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:${o[s.PRERELEASELOOSE]})?${o[s.BUILD]}?)?)?`),c("XRANGE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",o[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[s.LONECARET]}${o[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[s.LONECARET]}${o[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[s.GTLT]}\\s*(${o[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]}|${o[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[s.XRANGEPLAIN]})\\s+-\\s+(${o[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),st.register("bgOMw",((e,t)=>{e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}})),st.register("jkMsx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),st.register("7qUJS",(function(e,t){var r=st("jkMsx"),n=st("bgOMw"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=st("bikcG"),a=s.re,c=s.t,l=st("eUvvN"),u=st("12NXI").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||0>this.major)throw new TypeError("Invalid major version");if(this.minor>o||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>o||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&o>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof 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 n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=d})),st.register("eUvvN",((e,t)=>{const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}})),st.register("12NXI",((e,t)=>{const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:t>e?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers(e,t){return n(t,e)}}})),st.register("gdrva",((e,t)=>{var r=st("bgOMw").MAX_LENGTH,n=st("bikcG"),i=n.re,o=n.t,s=st("7qUJS"),a=st("eUvvN");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?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}})),st.register("fVzwP",((e,t)=>{var r=st("gdrva");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}})),st.register("hOYls",((e,t)=>{var r=st("gdrva");e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}})),st.register("dGcr6",((e,t)=>{var r=st("7qUJS");e.exports=(e,t,n,i)=>{"string"==typeof n&&(i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i).version}catch(e){return null}}})),st.register("bBssn",((e,t)=>{var r=st("gdrva"),n=st("jXghC");e.exports=(e,t)=>{if(n(e,t))return null;{const n=r(e),i=r(t),o=n.prerelease.length||i.prerelease.length,s=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==i[e])return s+e;return a}}})),st.register("jXghC",((e,t)=>{var r=st("howpO");e.exports=(e,t,n)=>0===r(e,t,n)})),st.register("howpO",((e,t)=>{var r=st("7qUJS");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))})),st.register("fB2B7",((e,t)=>{var r=st("7qUJS");e.exports=(e,t)=>new r(e,t).major})),st.register("bye2i",((e,t)=>{var r=st("7qUJS");e.exports=(e,t)=>new r(e,t).minor})),st.register("87ZGF",((e,t)=>{var r=st("7qUJS");e.exports=(e,t)=>new r(e,t).patch})),st.register("4agny",((e,t)=>{var r=st("gdrva");e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}})),st.register("zcbgY",((e,t)=>{var r=st("howpO");e.exports=(e,t,n)=>r(t,e,n)})),st.register("iGBo4",((e,t)=>{var r=st("howpO");e.exports=(e,t)=>r(e,t,!0)})),st.register("80ezM",((e,t)=>{var r=st("7qUJS");e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}})),st.register("4qmtg",((e,t)=>{var r=st("80ezM");e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))})),st.register("4pjXu",((e,t)=>{var r=st("80ezM");e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))})),st.register("6KPS4",((e,t)=>{var r=st("howpO");e.exports=(e,t,n)=>r(e,t,n)>0})),st.register("lr5pz",((e,t)=>{var r=st("howpO");e.exports=(e,t,n)=>0>r(e,t,n)})),st.register("fqqGA",((e,t)=>{var r=st("howpO");e.exports=(e,t,n)=>0!==r(e,t,n)})),st.register("5cRW4",((e,t)=>{var r=st("howpO");e.exports=(e,t,n)=>r(e,t,n)>=0})),st.register("fwsB7",((e,t)=>{var r=st("howpO");e.exports=(e,t,n)=>0>=r(e,t,n)})),st.register("823yM",((e,t)=>{var r=st("jXghC"),n=st("fqqGA"),i=st("6KPS4"),o=st("5cRW4"),s=st("lr5pz"),a=st("fwsB7");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return n(e,c,l);case">":return i(e,c,l);case">=":return o(e,c,l);case"<":return s(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),st.register("1YYsi",((e,t)=>{var r=st("7qUJS"),n=st("gdrva"),i=st("bikcG"),o=i.re,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1}else i=e.match(o[s.COERCE]);return null===i?null:n(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t)}})),st.register("eR6XK",(function(e,t){const r=Symbol();class n{static get ANY(){return r}constructor(e,t){if(t=i(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?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(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||l}}e.exports=n;var i=st("eUvvN"),o=st("bikcG"),s=o.re,a=o.t,c=st("823yM"),l=st("jkMsx"),u=st("7qUJS"),d=st("hvUff")})),st.register("hvUff",(function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)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=n.get(t);if(r)return r;const i=this.options.loose;e=e.replace(i?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],T(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),s("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],p)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>$(e,this.options)));i&&(a=a.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",a);const c=new Map,m=a.map((e=>new o(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const v=[...c.values()];return n.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(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(C(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const n=new(st("6MLkQ"))({max:1e3});var i=st("eUvvN"),o=st("eR6XK"),s=st("jkMsx"),a=st("7qUJS"),c=st("bikcG"),l=c.re,u=c.t,d=c.comparatorTrimReplace,p=c.tildeTrimReplace,h=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},g=(e,t)=>(s("comp",e,t),e=b(e,t),s("caret",e),e=w(e,t),s("tildes",e),e=S(e,t),s("xrange",e),e=O(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?l[u.TILDELOOSE]:l[u.TILDE],((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),y(r)?a="":y(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a})),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?l[u.CARETLOOSE]:l[u.CARET],((t,n,i,o,a)=>{let c;return s("caret",e,t,n,i,o,a),y(n)?c="":y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(o)?c="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(s("no pr"),c="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),s("caret return",c),c}))},S=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>_(e,t))).join(" ")),_=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const l=y(i),u=l||y(o),d=u||y(a);return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r})),O=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),$=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),T=e=>(t,r,n,i,o,s,a,c,l,u,d,p,h)=>`${r=y(n)?"":y(i)?`>=${n}.0.0${e?"-0":""}`:y(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:p?`<=${l}.${u}.${d}-${p}`:e?`<${l}.${u}.${+d+1}-0`:"<="+c}`.trim(),C=(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!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}})),st.register("6MLkQ",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new n.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),i=new Set,o=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},s=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:n}=f,{get:i}=Object.getOwnPropertyDescriptor(n,e);l(r,e+" method",`cache.${t}()`,i)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!i.has(e),l=(e,t,r,n)=>{i.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,n)},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:n=1,ttlAutopurge:s,updateAgeOnGet:l,updateAgeOnHas:p,allowStale:m,dispose:v,disposeAfter:g,noDisposeOnSet:y,noUpdateTTL:w,maxSize:x=0,sizeCalculation:b,fetchMethod:E}=e,{length:S,maxAge:_,stale:O}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const $=t?d(t):Array;if(!$)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=x,this.sizeCalculation=b||S,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=E||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new $(t),this.prev=new $(t),this.head=0,this.tail=0,this.free=new h(t),this.initialFill=1,this.size=0,"function"==typeof v&&(this.dispose=v),"function"==typeof g?(this.disposeAfter=g,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||!!O,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!p,this.ttlResolution=u(n)||0===n?n:1,this.ttlAutopurge=!!s,this.ttl=r||_||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";c(e)&&(i.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}O&&o("stale","allowStale"),_&&o("maxAge","ttl"),S&&o("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 n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(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,n)=>{if(!u(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,n)=>{this.sizes[e]=n;const i=this.maxSize-this.sizes[e];for(;this.calculatedSize>i;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(0!==this.size){const t=this.keyMap.get(e);void 0!==t&&(this.calculatedSize-=this.sizes[t])}return f.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,n){}requireSize(e,t,r,n){if(r||n)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],n={value:this.valList[t]};this.ttls&&(n.ttl=this.ttls[t]),this.sizes&&(n.size=this.sizes[t]),e.unshift([r,n])}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:n=this.noDisposeOnSet,size:i=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){i=this.requireSize(e,t,i,o);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,i),s=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():n||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,i)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),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],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const o=new n,s={signal:o.signal,options:r},a=Promise.resolve(this.fetchMethod(e,i,s)).then((t=>(o.signal.aborted||this.set(e,t,s.options),t)));return a.__abortController=o,a.__staleWhileFetching=i,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:n=this.ttl,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:n,noDisposeOnSet:i,size:o,sizeCalculation:s,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const n=this.valList[l];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),n;const i=this.backgroundFetch(e,l,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const n=this.keyMap.get(e);if(void 0!==n){const i=this.valList[n],o=this.isBackgroundFetch(i);if(this.isStale(n))return o?t?i.__staleWhileFetching:void 0:(this.delete(e),t?i:void 0);if(o)return;return this.moveToTail(n),r&&this.updateItemAge(n),i}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return 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(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),st.register("c8FZS",((e,t)=>{var r=st("hvUff");e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}})),st.register("2J2hR",((e,t)=>{var r=st("hvUff");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),st.register("lbfMG",((e,t)=>{var r=st("7qUJS"),n=st("hvUff");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new r(o,i)))})),o}})),st.register("5wbuE",((e,t)=>{var r=st("7qUJS"),n=st("hvUff");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new r(o,i)))})),o}})),st.register("hZRNG",((e,t)=>{var r=st("7qUJS"),n=st("hvUff"),i=st("6KPS4");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o))return o;if(o=new r("0.0.0-0"),e.test(o))return o;o=null;for(let t=0;e.set.length>t;++t){let n=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">=":n&&!i(t,n)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!n||o&&!i(o,n)||(o=n)}return o&&e.test(o)?o:null}})),st.register("fqnzG",((e,t)=>{var r=st("hvUff");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),st.register("77bPN",((e,t)=>{var r=st("7qUJS"),n=st("eR6XK");const{ANY:i}=n;var o=st("hvUff"),s=st("c8FZS"),a=st("6KPS4"),c=st("lr5pz"),l=st("fwsB7"),u=st("5cRW4");e.exports=(e,t,d,p)=>{let h,f,m,v,g;switch(e=new r(e,p),t=new o(t,p),d){case">":h=a,f=l,m=c,v=">",g=">=";break;case"<":h=c,f=u,m=a,v="<",g="<=";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 o=null,s=null;if(t.set[r].forEach((e=>{e.semver===i&&(e=new n(">=0.0.0")),o=o||e,s=s||e,h(e.semver,o.semver,p)?o=e:m(e.semver,s.semver,p)&&(s=e)})),o.operator===v||o.operator===g)return!1;if((!s.operator||s.operator===v)&&f(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}})),st.register("gD8Tz",((e,t)=>{var r=st("77bPN");e.exports=(e,t,n)=>r(e,t,">",n)})),st.register("bpPww",((e,t)=>{var r=st("77bPN");e.exports=(e,t,n)=>r(e,t,"<",n)})),st.register("cHIUn",((e,t)=>{var r=st("hvUff");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))})),st.register("k8aCs",((e,t)=>{var r=st("c8FZS"),n=st("howpO");e.exports=(e,t,i)=>{const o=[];let s=null,a=null;const c=e.sort(((e,t)=>n(e,t,i)));for(const e of c)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const l=[];for(const[e,t]of o)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),st.register("388OD",((e,t)=>{var r=st("hvUff"),n=st("eR6XK");const{ANY:i}=n;var o=st("c8FZS"),s=st("howpO");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const a=new Set;let u,d,p,h,f,m,v;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(p=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&&!o(e,u+"",r))return null;if(d&&!o(e,d+"",r))return null;for(const n of t)if(!o(e,n+"",r))return!1;return!0}let g=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===d.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!o(u.semver,e+"",r))return!1;if(d)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(f=l(d,e,r),f===e&&f!==d)return!1}else if("<="===d.operator&&!o(d.semver,e+"",r))return!1;if(!e.operator&&(d||u)&&0!==p)return!1}return!(u&&m&&!d&&0!==p||d&&v&&!u&&0!==p||y||g)},c=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:0>n||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return 0>n?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}})),st.register("iFKS7",((e,t)=>{var r=st("joDHm"),n=st("inTPA");e.exports=(e,t,i)=>{var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;16>a;++a)t[o+a]=s[a];return t||n(s)}})),st.register("joDHm",((e,t)=>{e.exports=()=>Je.randomBytes(16)})),st.register("inTPA",((e,t)=>{for(var r=[],n=0;256>n;++n)r[n]=(n+256).toString(16).substr(1);e.exports=(e,t)=>{var n=t||0;return""+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}})),st.register("ca0ts",(function(e,t){"use strict";function r(e,t,r){return s(this,void 0,void 0,(function*(){const n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec()}))}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=o(st("e0fPv"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,n){var i,o;return s(this,void 0,void 0,(function*(){let s="",a="";const c=new Ze.StringDecoder("utf8"),l=new Ze.StringDecoder("utf8"),u=null===(i=null==n?void 0:n.listeners)||void 0===i?void 0:i.stdout,d=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stderr,p=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout(e){s+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),h=yield r(e,t,Object.assign(Object.assign({},n),{listeners:p}));return s+=c.end(),a+=l.end(),{exitCode:h,stdout:s,stderr:a}}))}})),st.register("e0fPv",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const s=i(Ge),a=i(Xe),c=i(Ke),l=i(ze),u=i(st("fvrnx")),d=i(st("2GOko")),p="win32"===process.platform;e.exports.ToolRunner=class extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),n=this._getSpawnArgs(e);let i=t?"":"[command]";if(p)if(this._isCmdFile()){i+=r;for(const e of n)i+=" "+e}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n)i+=" "+e}else{i+=this._windowsQuoteCmdArg(r);for(const e of n)i+=" "+this._windowsQuoteCmdArg(e)}else{i+=r;for(const e of n)i+=" "+e}return i}_processLineBuffer(e,t,r){try{let n=t+""+e,i=n.indexOf(s.EOL);for(;i>-1;)r(n.substring(0,i)),n=n.substring(i+s.EOL.length),i=n.indexOf(s.EOL);return n}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 n of e)if(t.some((e=>e===n))){r=!0;break}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return n+='"',n.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 n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return t+='"',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 o(this,void 0,void 0,(function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>o(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 n=new h(r,this.toolPath);if(n.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const i=this._getSpawnFileName(),o=c.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let a="";o.stdout&&o.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(o.stderr&&o.stderr.on("data",(e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),o.on("error",(e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete()})),o.on("exit",(e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete()})),o.on("close",(e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete()})),n.on("done",((r,n)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),o.removeAllListeners(),r?t(r):e(n)})),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1}const r=[];let n=!1,i=!1,o="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&i?t(a):"\\"===a&&n?i=!0:" "!==a||n?t(a):o.length>0&&(r.push(o),o=""):i?t(a):n=!n}return o.length>0&&r.push(o.trim()),r};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=Qe.setTimeout(h.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}})),st.register("d0ovd",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.feac98a0.js")).then((()=>st("apy8x")))})),st.register("cReTf",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function n(e,t,r){const n=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let n=null;if(r.some((e=>{if(void 0!==t[e])return n=t[e],!0})),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n})(r);return i.pluralize(r.locale,t,n[e]).replace("{0}",t)}var i=st("5FRs7"),o=st("3Zbea");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},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,i,a){return((e,t,i)=>{if(((e,t)=>{const{autoload:n}=t;if(!c[e]){if(!o||!n)throw Error(`Missing locale: ${e}, you must load it manually before using it`);(e=>{try{r(require(`../locales/${e}.js`))}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`)}})(e)}})(i.locale,{autoload:i.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");const a=((e,t)=>{let r=t-e;const n=[];return s.some((e=>{const t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),0>=r)return!0})),n})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(n(t,r,i)),l.length>=i.span)break}return l.join(i.delimiter)})(t,i,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),st.register("5FRs7",((e,t)=>{e.exports=st("j5MHF")})),st.register("j5MHF",(function(e,t){var r=ze.resolve(__dirname,"../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){"use strict";function t(e,t,r){if(n(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var o=i[e](t);return void 0!==r[o]?r[o]:null}function n(e){(e=>void 0!==i[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var i={},o={create(e){return n(e),{pluralize(r,n){return t(e,r,n)}}},addLocale(e,t){i[e]=t},pluralize:t};void 0!==e.exports?e.exports=o:this.numerous=o}).call(e.exports)})),st.register("3Zbea",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),e(module.exports,"main",(()=>De)),e(module.exports,"parseArgs",(()=>je)),e(module.exports,"getCompilerInfo",(()=>Ue));var at=st("04fde"),ct={};const lt="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,ut=lt?";":":";var dt,pt={};dt="win32"===process.platform||nt.TESTING_WINDOWS?st("ftrAD"):st("9yF3I"),pt=r,r.sync=(e,t)=>{try{return dt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const ht=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ft=(e,t)=>{const r=t.colon||ut,n=e.match(/\//)||lt&&e.match(/\\/)?[""]:[...lt?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=lt?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=lt?i.split(r):[""];return lt&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i}},mt=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:i,pathExtExe:o}=ft(e,t),s=[],a=r=>new Promise(((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(ht(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=ze.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(c(d,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===i.length)return l(a(r+1));const d=i[n];pt(e+d,{pathExt:o},((i,o)=>{if(!i&&o){if(!t.all)return l(e+d);s.push(e+d)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let vt;ct=mt,mt.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:i}=ft(e,t),o=[];for(let s=0;r.length>s;s++){const a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=ze.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){const r=u+n[e];try{if(pt.sync(r,{pathExt:i})){if(!t.all)return r;o.push(r)}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ht(e)};var gt,yt={},wt={},xt={},bt={};const Et=(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 St,_t;(bt=Et).default=Et,gt=e=>i(e)||i(e,!0);const Ot=/([()\][%!^"`<>&|;, *?])/g;St=e=>e.replace(Ot,"^$1"),_t=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(Ot,"^$1"),t&&(e=e.replace(Ot,"^$1")),e);var $t,Tt,Ct;Tt=/^#!(.*)/,$t=(e="")=>{const t=e.match(Tt);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i},Ct=e=>{const t=Buffer.alloc(150);let r;try{r=Be.openSync(e,"r"),Be.readSync(r,t,0,150,0),Be.closeSync(r)}catch(e){}return $t(""+t)};const Rt="win32"===process.platform,It=/\.(?:com|exe)$/i,Pt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;xt=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!Rt)return e;const t=(e=>{e.file=gt(e);const t=e.file&&Ct(e.file);return t?(e.args.unshift(e.file),e.command=t,gt(e)):e.file})(e),r=!It.test(t);if(e.options.forceShell||r){const r=Pt.test(t);e.command=ze.normalize(e.command),e.command=St(e.command),e.args=e.args.map((e=>_t(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)};var At={};const Nt="win32"===process.platform;var kt;At={hookChildProcess(e,t){if(!Nt)return;const r=e.emit;e.emit=function(n,i){if("exit"===n){const n=s(i,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:s,verifyENOENTSync(e,t){return Nt&&1===e&&!t.file?o(t.original,"spawnSync"):null},notFoundError:o},(wt=a).spawn=a,wt.sync=(e,t,r)=>{const n=xt(e,t,r),i=Ke.spawnSync(n.command,n.args,n.options);return i.error=i.error||At.verifyENOENTSync(i.status,n),i},wt._parse=xt,wt._enoent=At,kt=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 Lt={};const Dt=e=>{let t;e={cwd:process.cwd(),path:process.env[bt()],execPath:process.execPath,...e};let r=ze.resolve(e.cwd);const n=[];for(;t!==r;)n.push(ze.join(r,"node_modules/.bin")),t=r,r=ze.resolve(r,"..");const i=ze.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(ze.delimiter)};(Lt=Dt).default=Dt,Lt.env=e=>{const t={...(e={env:process.env,...e}).env},r=bt({env:t});return e.path=t[r],t[r]=Lt(e),t};var jt={},Ut={};const Mt=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(Ut=Mt).default=Mt;const Ft=new WeakMap,Gt=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"",o=function(...s){if(Ft.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r};return Ut(o,e),Ft.set(o,n),o};(jt=Gt).default=Gt,jt.callCount=e=>{if(!Ft.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ft.get(e)};var zt,Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.signalsByNumber=Bt.signalsByName=void 0;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.getSignals=void 0;var qt={};Object.defineProperty(qt,"__esModule",{value:!0}),qt.SIGNALS=void 0,qt.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 Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.SIGRTMAX=Vt.getRealtimeSignals=void 0,Vt.getRealtimeSignals=()=>Array.from({length:Wt-Yt+1},Xt);const Xt=(e,t)=>({name:"SIGRT"+(t+1),number:Yt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Yt=34,Wt=64;Vt.SIGRTMAX=Wt,Ht.getSignals=()=>{const e=(0,Vt.getRealtimeSignals)();return[...qt.SIGNALS,...e].map(Kt)};const Kt=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{const{signals:{[e]:s}}=Ge.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o}},Jt=(0,Ht.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}})),{});Bt.signalsByName=Jt;const Zt=(()=>{const e=(0,Ht.getSignals)(),t=Array.from({length:Vt.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>Ge.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:i,supported:o,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();Bt.signalsByNumber=Zt;var Qt=Bt.signalsByName;zt=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(i=null===i?void 0:i)?void 0:Qt[i].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:p,exitCode:o=null===o?void 0:o,isCanceled:l}),f=`Command ${h}: ${s}`,m="[object Error]"==={}.toString.call(n),v=m?`${f}\n${n.message}`:f,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var er={};const tr=["stdin","stdout","stderr"],rr=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return tr.map((t=>e[t]));if((e=>tr.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+tr.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,tr.length)},((e,r)=>t[r]))};(er=rr).node=e=>{const t=rr(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var nr,ir={},or=nt.process;const sr=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(sr(or)){var ar,cr=Ye,lr=st("bJALw"),ur=/^win/i.test(or.platform),dr=Xe;"function"!=typeof dr&&(dr=dr.EventEmitter),or.__signal_exit_emitter__?ar=or.__signal_exit_emitter__:((ar=or.__signal_exit_emitter__=new dr).count=0,ar.emitted={}),ar.infinite||(ar.setMaxListeners(1/0),ar.infinite=!0),ir=(e,t)=>{if(!sr(nt.process))return()=>{};cr.equal(typeof e,"function","a callback must be provided for exit handler"),!1===mr&&vr();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),ar.on(r,e),()=>{ar.removeListener(r,e),0===ar.listeners("exit").length&&0===ar.listeners("afterexit").length&&pr()}};var pr=()=>{mr&&sr(nt.process)&&(mr=!1,lr.forEach((e=>{try{or.removeListener(e,fr[e])}catch(e){}})),or.emit=wr,or.reallyExit=gr,ar.count-=1)};ir.unload=pr;var hr=(e,t,r)=>{ar.emitted[e]||(ar.emitted[e]=!0,ar.emit(e,t,r))},fr={};lr.forEach((e=>{fr[e]=()=>{sr(nt.process)&&or.listeners(e).length===ar.count&&(pr(),hr("exit",null,e),hr("afterexit",null,e),ur&&"SIGHUP"===e&&(e="SIGINT"),or.kill(or.pid,e))}})),ir.signals=()=>lr;var mr=!1,vr=()=>{!mr&&sr(nt.process)&&(mr=!0,ar.count+=1,lr=lr.filter((e=>{try{return or.on(e,fr[e]),!0}catch(e){return!1}})),or.emit=xr,or.reallyExit=yr)};ir.load=vr;var gr=or.reallyExit,yr=e=>{sr(nt.process)&&(or.exitCode=e||0,hr("exit",or.exitCode,null),hr("afterexit",or.exitCode,null),gr.call(or,or.exitCode))},wr=or.emit,xr=function(e,t){if("exit"===e&&sr(nt.process)){void 0!==t&&(or.exitCode=t);var r=wr.apply(this,arguments);return hr("exit",or.exitCode,null),hr("afterexit",or.exitCode,null),r}return wr.apply(this,arguments)}}else ir=()=>()=>{};const br=e=>e===Ge.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var Er,Sr=(nr={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>br(e)&&!1!==t&&r)(t,r,n))return;const i=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),o=setTimeout((()=>{e("SIGKILL")}),i);o.unref&&o.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let i;const o=new Promise(((n,o)=>{i=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,o)}),t)})),s=n.finally((()=>{clearTimeout(i)}));return Promise.race([o,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},n){if(!t||r)return n;const i=ir((()=>{e.kill()}));return n.finally((()=>{i()}))}}).spawnedKill,_r=nr.spawnedCancel,Or=nr.setupTimeout,$r=nr.validateTimeout,Tr=nr.setExitHandler,Cr={};const Rr=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Rr.writable=e=>Rr(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Rr.readable=e=>Rr(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Rr.duplex=e=>Rr.writable(e)&&Rr.readable(e),Rr.transform=e=>Rr.duplex(e)&&"function"==typeof e._transform,Cr=Rr;var Ir,Pr={},Ar=et.constants,Nr=tt.PassThrough;Ir=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);const o=new Nr({objectMode:i});r&&o.setEncoding(r);let s=0;const a=[];return o.on("data",(e=>{a.push(e),i?s=a.length:s+=e.length})),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o};const kr=(0,We.promisify)(tt.pipeline);class Lr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(Pr=c).buffer=(e,t)=>c(e,{...t,encoding:"buffer"}),Pr.array=(e,t)=>c(e,{...t,array:!0}),Pr.MaxBufferError=Lr;var Dr,jr=tt.PassThrough;Dr=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(n.push(t),t.once("end",r.bind(null,t)),t.once("error",i.emit.bind(i,"error")),t.pipe(i,{end:!1}),this)}function t(){return 0==n.length}function r(e){!(n=n.filter((t=>t!==e))).length&&i.readable&&i.end()}var n=[],i=new jr({objectMode:!0});return i.setMaxListeners(0),i.add=e,i.isEmpty=t,i.on("unpipe",r),[].slice.call(arguments).forEach(e),i};const Ur=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Mr=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?Pr(e,{encoding:t,maxBuffer:n}):Pr.buffer(e,{maxBuffer:n})};var Fr,Gr=(Er={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(Cr(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Dr();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s){const a=Mr(e,{encoding:n,buffer:i,maxBuffer:o}),c=Mr(t,{encoding:n,buffer:i,maxBuffer:o}),l=Mr(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},Ur(e,a),Ur(t,c),Ur(r,l)])}},validateInputSync({input:e}){if(Cr(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,zr=Er.getSpawnedResult,Br=Er.makeAllStream,Hr=Er.validateInputSync;const qr=(async()=>{})().constructor.prototype,Vr=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(qr,e)]));var Xr,Yr=(Fr={mergePromise(e,t){for(const[r,n]of Vr){const i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},getSpawnedPromise(e){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,Wr=Fr.getSpawnedPromise;const Kr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Jr=/^[\w.-]+$/,Zr=/"/g,Qr=/ +/g;var en=(Xr={joinCommand(e,t){return Kr(e,t).join(" ")},getEscapedCommand(e,t){return Kr(e,t).map((e=>(e=>"string"!=typeof e||Jr.test(e)?e:`"${e.replace(Zr,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(Qr)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,tn=Xr.parseCommand,rn=Xr.getEscapedCommand;const nn=(e,t,r={})=>{const n=wt._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{const o=t?{...process.env,...e}:e;return r?Lt.env({env:o,cwd:n,execPath:i}):o})(r),r.stdio=er(r),"win32"===process.platform&&"cmd"===ze.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},on=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?kt(t):t:void 0===r?void 0:"",sn=(e,t,r)=>{const n=nn(e,t,r),i=en(e,t),o=rn(e,t);let s;$r(n.options);try{s=Ke.spawn(n.file,n.args,n.options)}catch(e){const t=new Ke.ChildProcess,r=Promise.reject(zt({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Yr(t,r)}const a=Wr(s),c=Or(s,n.options,a),l=Tr(s,n.options,c),u={isCanceled:!1};s.kill=Sr.bind(null,s.kill.bind(s)),s.cancel=_r.bind(null,s,u);const d=jt((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await zr(s,n.options,l),h=on(n.options,c),f=on(n.options,d),m=on(n.options,p);if(e||0!==t||null!==r){const c=zt({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:i,escapedCommand:o,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:s.killed});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:o,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Gr(s,n.options.input),s.all=Br(s,n.options),Yr(s,d)};(yt=sn).sync=(e,t,r)=>{const n=nn(e,t,r),i=en(e,t),o=rn(e,t);let s;Hr(n.options);try{s=Ke.spawnSync(n.file,n.args,n.options)}catch(e){throw zt({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=on(n.options,s.stdout,s.error),c=on(n.options,s.stderr,s.error);if(s.error||0!==s.status||null!==s.signal){const e=zt({stdout:a,stderr:c,error:s.error,signal:s.signal,exitCode:s.status,command:i,escapedCommand:o,parsed:n,timedOut:s.error&&"ETIMEDOUT"===s.error.code,isCanceled:!1,killed:null!==s.signal});if(!n.options.reject)return e;throw e}return{command:i,escapedCommand:o,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},yt.command=(e,t)=>{const[r,...n]=tn(e);return sn(r,n,t)},yt.commandSync=(e,t)=>{const[r,...n]=tn(e);return sn.sync(r,n,t)},yt.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=er.node(r),i=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return sn(o,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})},at=st("04fde");var an,cn=st("gmbrv");at=st("04fde"),cn=st("gmbrv");const ln=Ge.homedir();an=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return ln?e.replace(/^~(?=$|\/|\\)/,ln):e};var un=st("ditiY");let dn;var pn;const hn="win32"!==Ge.platform(),fn=Ge.release(),mn=/(\d+\.\d+)\.(\d+)/;pn=e=>hn?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...mn.exec(fn).splice(1))?e:e.replace(/(\s+)/g,"%20");const vn=d(".cpprc");let gn=!1,yn=!1,wn=!1;un=st("ditiY");let xn=!1,bn=!1;at=st("04fde");let En,Sn=!1;at=st("04fde"),un=st("ditiY");let _n,On,$n,Tn=!1;un=st("ditiY");var Cn=st("fvrnx"),Rn=(un=st("ditiY"),{}),In=ze.resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),Pn=Rn&&Rn.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),An=Rn&&Rn.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Nn=Rn&&Rn.__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)&&Pn(t,e,r);return An(t,e),t}),kn=Rn&&Rn.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))),Ln=Rn&&Rn.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.evaluateVersions=Rn.isExplicitVersion=Rn.findFromManifest=Rn.getManifestFromRepo=Rn.findAllVersions=Rn.find=Rn.cacheFile=Rn.cacheDir=Rn.extractZip=Rn.extractXar=Rn.extractTar=Rn.extract7z=Rn.downloadTool=Rn.HTTPError=void 0;const Dn=Nn(st("04fde")),jn=Nn(st("fvrnx")),Un=Nn(Be),Mn=Nn(st("6kHxT")),Fn=Nn(Ge),Gn=Nn(ze),zn=Nn(st("4z9RF")),Bn=Nn(st("4URNm")),Hn=Nn(tt),qn=Nn(We),Vn=Ln(st("iFKS7"));var Xn=st("ca0ts"),Yn={},Wn=Yn&&Yn.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),Kn=Yn&&Yn.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Jn=Yn&&Yn.__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)&&Wn(t,e,r);return Kn(t,e),t}),Zn=Yn&&Yn.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.RetryHelper=void 0;const Qn=Jn(st("04fde"));Yn.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 Zn(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;Qn.info(e.message)}const n=this.getSleepAmount();Qn.info(`Waiting ${n} seconds before trying again`),yield this.sleep(n),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Zn(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class ei extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}Rn.HTTPError=ei;const ti="win32"===process.platform,ri="darwin"===process.platform;let ni;Rn.downloadTool=function(e,t,r,n){return kn(this,void 0,void 0,(function*(){t=t||Gn.join(B(),Vn.default()),yield jn.mkdirP(Gn.dirname(t)),Dn.debug("Downloading "+e),Dn.debug("Destination "+t);const i=H("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=H("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new Yn.RetryHelper(3,i,o);return yield s.execute((()=>kn(this,void 0,void 0,(function*(){return yield function(e,t,r,n){return kn(this,void 0,void 0,(function*(){if(Un.existsSync(t))throw Error(`Destination file path ${t} already exists`);const i=new zn.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Dn.debug("set auth"),void 0===n&&(n={}),n.authorization=r);const o=yield i.get(e,n);if(200!==o.message.statusCode){const t=new ei(o.message.statusCode);throw Dn.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}const s=qn.promisify(Hn.pipeline),a=H("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message))();let c=!1;try{return yield s(a,Un.createWriteStream(t)),Dn.debug("download complete"),c=!0,t}finally{if(!c){Dn.debug("download failed");try{yield jn.rmRF(t)}catch(e){Dn.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,n)}))),(e=>!(e instanceof ei&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},Rn.extract7z=function(e,t,r){return kn(this,void 0,void 0,(function*(){Ye.ok(ti,"extract7z() not supported on current OS"),Ye.ok(e,'parameter "file" is required'),t=yield j(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",Dn.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],i={silent:!0};yield Xn.exec(`"${r}"`,t,i)}finally{process.chdir(n)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Gn.join(In,"..","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,"")}'`],i={silent:!0};try{const e=yield jn.which("powershell",!0);yield Xn.exec(`"${e}"`,r,i)}finally{process.chdir(n)}}return t}))},Rn.extractTar=function(e,t,r="xz"){return kn(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield j(t),Dn.debug("Checking tar --version");let n="";yield Xn.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e},stderr(e){return n+=""+e}}}),Dn.debug(n.trim());const i=n.toUpperCase().includes("GNU TAR");let o;o=r instanceof Array?r:[r],Dn.isDebug()&&!r.includes("v")&&o.push("-v");let s=t,a=e;return ti&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&(o.push("--warning=no-unknown-keyword"),o.push("--overwrite")),o.push("-C",s,"-f",a),yield Xn.exec("tar",o),t}))},Rn.extractXar=function(e,t,r=[]){return kn(this,void 0,void 0,(function*(){let n;Ye.ok(ri,"extractXar() not supported on current OS"),Ye.ok(e,'parameter "file" is required'),t=yield j(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),Dn.isDebug()&&n.push("-v");const i=yield jn.which("xar",!0);var o;return yield Xn.exec(`"${i}"`,(o=n,Array.from(new Set(o)))),t}))},Rn.extractZip=function(e,t){return kn(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield j(t),ti?yield function(e,t){return kn(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield jn.which("pwsh",!1);if(i){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];Dn.debug("Using pwsh at path: "+i),yield Xn.exec(`"${i}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],t=yield jn.which("powershell",!0);Dn.debug("Using powershell at path: "+t),yield Xn.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return kn(this,void 0,void 0,(function*(){const r=yield jn.which("unzip",!0),n=[e];Dn.isDebug()||n.unshift("-q"),n.unshift("-o"),yield Xn.exec(`"${r}"`,n,{cwd:t})}))}(e,t),t}))},Rn.cacheDir=function(e,t,r,n){return kn(this,void 0,void 0,(function*(){if(r=Bn.clean(r)||r,n=n||Fn.arch(),Dn.debug(`Caching tool ${t} ${r} ${n}`),Dn.debug("source dir: "+e),!Un.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const i=yield U(t,r,n);for(const t of Un.readdirSync(e)){const r=Gn.join(e,t);yield jn.cp(r,i,{recursive:!0})}return M(t,r,n),i}))},Rn.cacheFile=function(e,t,r,n,i){return kn(this,void 0,void 0,(function*(){if(n=Bn.clean(n)||n,i=i||Fn.arch(),Dn.debug(`Caching tool ${r} ${n} ${i}`),Dn.debug("source file: "+e),!Un.statSync(e).isFile())throw Error("sourceFile is not a file");const o=yield U(r,n,i),s=Gn.join(o,t);return Dn.debug("destination file "+s),yield jn.cp(e,s),M(r,n,i),o}))},Rn.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Fn.arch(),F(t)||(t=G(D(e,r),t));let n="";if(t){t=Bn.clean(t)||"";const i=Gn.join(z(),e,t,r);Dn.debug("checking cache: "+i),Un.existsSync(i)&&Un.existsSync(i+".complete")?(Dn.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):Dn.debug("not found")}return n},Rn.findAllVersions=D,Rn.getManifestFromRepo=function(e,t,r,n="master"){return kn(this,void 0,void 0,(function*(){let i=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new zn.HttpClient("tool-cache"),a={};r&&(Dn.debug("set auth"),a.authorization=r);const c=yield s.getJson(o,a);if(!c.result)return i;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u)}catch(e){Dn.debug("Invalid json")}}return i}))},Rn.findFromManifest=function(e,t,r,n=Fn.arch()){return kn(this,void 0,void 0,(function*(){return yield Mn._findMatch(e,t,r,n)}))},Rn.isExplicitVersion=F,Rn.evaluateVersions=G,at=st("04fde"),cn=st("gmbrv");let ii=!1;var oi=st("fwsB7"),si=st("1YYsi"),ai=(Xn=st("ca0ts"),at=st("04fde"),cn=st("gmbrv"),un=st("ditiY"),st("howpO")),ci=(si=st("1YYsi"),st("fVzwP"));Xn=st("ca0ts"),un=st("ditiY");const li=/v?(\d\S*)/,ui={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.50.0",meson:"0.63.0",kcov:"40",task:"3.14.0",doxygen:C()?"1.9.3-1":"1.9.4",gcc:"11"},di={llvm:{22:"13.0.0-ubuntu-20.04",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:{22:"13.0.0-ubuntu-20.04",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:{22:"13.0.0-ubuntu-20.04",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.63.0",18:"0.61.4"},doxygen:{20:"1.9.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};let pi,hi,fi=!1;un=st("ditiY"),oi=st("fwsB7");var mi=st("fB2B7"),vi=(Xn=st("ca0ts"),un=st("ditiY"),at=st("04fde"),un=st("ditiY"),cn=st("gmbrv"),mi=st("fB2B7"),si=st("1YYsi"),un=st("ditiY"),cn=st("gmbrv"),ze.resolve(__dirname,"../src/gcc"));const gi={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 yi=ze.resolve(__dirname,"../src/llvm");const wi=(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","14.0.4","14.0.5","14.0.6"]),xi=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"]),bi=new Map,Ei={"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"},Si=new Set(["10.0.1"]);let _i=!1;var Oi,$i,Ti,Ci={},Ri=Ci&&Ci.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))),Ii=Ci&&Ci.__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(Ci,"__esModule",{value:!0});var Pi={},Ai=Pi&&Pi.__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(Pi,"__esModule",{value:!0});const Ni=Ai(Ge);var ki={};Object.defineProperty(ki,"__esModule",{value:!0}),ki.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Pi.issueCommand=we,Pi.issue=(e,t="")=>{we(e,{},t)};class Li{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 n in this.properties)if(this.properties.hasOwnProperty(n)){const i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${t=i,ki.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>ki.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Di={},ji=Di&&Di.__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(Di,"__esModule",{value:!0});const Ui=ji(Be),Mi=ji(Ge);Di.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Ui.existsSync(r))throw Error("Missing file at path: "+r);Ui.appendFileSync(r,`${ki.toCommandValue(t)}${Mi.EOL}`,{encoding:"utf8"})};const Fi=Ii(Ge),Gi=Ii(ze);var zi,Bi;(Bi=zi=Ci.ExitCode||(Ci.ExitCode={}))[Bi.Success=0]="Success",Bi[Bi.Failure=1]="Failure",Ci.exportVariable=(e,t)=>{const r=ki.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Di.issueCommand("ENV",`${e}<<${t}${Fi.EOL}${r}${Fi.EOL}${t}`)}else Pi.issueCommand("set-env",{name:e},r)},Ci.setSecret=e=>{Pi.issueCommand("add-mask",{},e)},Ci.addPath=e=>{process.env.GITHUB_PATH?Di.issueCommand("PATH",e):Pi.issueCommand("add-path",{},e),process.env.PATH=`${e}${Gi.delimiter}${process.env.PATH}`},Ci.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()},Ci.setOutput=(e,t)=>{Pi.issueCommand("set-output",{name:e},t)},Ci.setCommandEcho=e=>{Pi.issue("echo",e?"on":"off")},Ci.setFailed=e=>{process.exitCode=zi.Failure,xe(e)},Ci.isDebug=()=>"1"===process.env.RUNNER_DEBUG,Ci.debug=e=>{Pi.issueCommand("debug",{},e)},Ci.error=xe,Ci.warning=e=>{Pi.issue("warning",e instanceof Error?""+e:e)},Ci.info=e=>{process.stdout.write(e+Fi.EOL)},Ci.startGroup=be,Ci.endGroup=Ee,Ci.group=function(e,t){return Ri(this,void 0,void 0,(function*(){let r;be(e);try{r=yield t()}finally{Ee()}return r}))},Ci.saveState=(e,t)=>{Pi.issueCommand("save-state",{name:e},t)},Ci.getState=e=>process.env["STATE_"+e]||"";const Hi=rt.env["ProgramFiles(x86)"],qi=[rt.env["ProgramFiles(x86)"],rt.env.ProgramFiles],Vi=["Enterprise","Professional","Community"],Xi=["2022","2019","2017"],Yi={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};Oi=Se;const Wi=Hi+"\\Microsoft Visual Studio\\Installer";$i=Oe,Ti=(e,t,r,n,i,o)=>{if("win32"!=rt.platform)return void Ci.info("This is not a Windows virtual environment, bye!");rt.env.PATH+=ze.delimiter+Wi;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==i&&a.push("-vcvars_spectre_libs=spectre");const c=`"${Oe(o)}" ${a.join(" ")}`;Ci.debug("vcvars command-line: "+c);const l=(""+Ke.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),d=l[1].split("\r\n"),p=l[2].split("\r\n"),h=d.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}Ci.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(Ci.info("Setting "+t),$e(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),Ci.exportVariable(t,r))}Ci.endGroup(),Ci.info("Configured Developer Command Prompt")},un=st("ditiY"),cn=st("gmbrv"),un=st("ditiY");var Ki,Ji=ze.resolve(__dirname,"../src/msvc"),Zi=(cn=st("gmbrv"),{});Zi=st("cReTf"),Ki={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 Qi=st("5FRs7"),eo={};st("j5MHF").addLocale("en",(e=>{var t=Math.floor(Math.abs(e)),r=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r?"one":"other"}));var to={};Object.defineProperty(to,"__esModule",{value:!0}),to.getUbuntuVersion=void 0,to.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,n)=>{Ke.execFile(t,r,{encoding:"utf8",shell:!1},((i,o,s)=>{if(i)return"errno"in i&&"ENOENT"===i.code?void e(null):void n(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${i} (stderr=${s})`));e(o)}))})));var t,r;if(null===e)return[];const n=/^Distributor ID:\s*(.+)$/,i=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,o=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let s=null,a=null,c=!1;for(const t of e.split("\n")){const e=t.match(n);if(null!==e){if("Ubuntu"!==e[1])return[];c=!0}const r=t.match(i);r&&(s=r);const l=t.match(o);if(l&&(a=l),c&&s&&a)break}if(!c)return[];for(const e of[s,a])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},ci=st("fVzwP"),un=st("ditiY"),un=st("ditiY");let ro,no=!1;un=st("ditiY");const io={async nala(e,r,n){if(!P())return;if("string"==typeof ro)return{binDir:ro};const i=t(ct).sync("nala",{nothrow:!0});if(null!==i)return ro=(0,ze.dirname)(i),{binDir:ro};u("/bin/bash",["-c",`echo "deb [signed-by=${await E("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key")}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await y("nala",void 0,[],!0):await y("nala-legacy",void 0,[],!0)}catch(e){await y("nala-legacy",void 0,[],!0)}return ro="/usr/bin",{binDir:ro}},cmake:Z,ninja:Ie,python:Q,async vcpkg(e,r,n){return no&&null!==t(ct).sync("vcpkg",{nothrow:!0})?{binDir:(0,ze.dirname)(t(ct).sync("vcpkg"))}:("linux"===process.platform&&(C()?(_("curl"),_("zip"),_("unzip"),_("tar"),_("git"),_("pkg-config")):R()?(I("curl"),I("zip"),I("unzip"),I("tar"),I("git"),I("pkg-config")):P()&&(await y("curl"),await y("zip"),await y("unzip"),await y("tar"),await y("git"),await y("pkg-config"))),(0,Be.existsSync)((0,ze.join)(r,N("bootstrap-vcpkg")))?(0,un.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(yt).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,ze.dirname)(r),stdio:"inherit"}),t(yt).sync(N((i="bootstrap-vcpkg","win32"===process.platform?i:"./"+i)),{cwd:r,shell:!0,stdio:"inherit"}),L(r),await f(r),no=!0,{binDir:r});var i},async bazel(e,t,r){switch(process.platform){case"win32":return T("bazelisk",e);case"darwin":return O("bazelisk",e);case"linux":if(C())throw Error("installing bazel on Arch linux is not supported yet");if(R())return I("dnf-plugins-core",void 0),u("dnf",["copr","enable","vbatts/bazel"]),I("bazel4",void 0);if(P())return u("bash",["-c",`echo "deb [arch=amd64 signed-by=${await E("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg")}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),y("bazel",e,[],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async conan(e,t,r){return await oe("setuptools",""),oe("conan",e)},meson(e,t,r){return oe("meson",e)},gcovr(e,t,r){return oe("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await T("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:me,gcc:ue,choco:$,brew:n,ccache(e,t,r){switch(process.platform){case"win32":return T("ccache",e);case"darwin":return O("ccache",e);case"linux":if(C())return _("ccache",e);if(R())return I("ccache",e);if(P())return y("ccache",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await T("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((0,Be.existsSync)((0,ze.join)(e,"doxygen.exe")))return await f(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await se(ne("graphviz",void 0)),t}case"darwin":{const e=O("doxygen",void 0);return await se(ne("graphviz",void 0)),e}case"linux":{let n;if(""===e||C()||R())if(C())n=_("doxygen",e);else{if(R())return I("doxygen",e);if(!P())throw Error("Unsupported linux distributions");n=await y("doxygen",e)}else{if(!P())throw Error("Unsupported linux distributions");try{n=await W("doxygen",e,ae,t,r),await y("libclang-cpp9")}catch(e){(0,un.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await y("doxygen",void 0)}}return await se(ne("graphviz",void 0)),n}default:throw Error("Unsupported platform")}},graphviz:se,async cppcheck(e,t,r){switch(process.platform){case"win32":return await T("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return O("cppcheck",e);case"linux":if(C())return _("cppcheck",e);if(R())return I("ccache",e);if(P())return y("cppcheck",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},clangtidy:ge,clangformat:ge,msvc:Ce,vcvarsall:Te,async kcov(e,t,r){if("linux"!==process.platform)return void(0,un.info)("Kcov is not supported on non-linux");const n=e.split("-");let i=(e=>e.match(/^v/)?e:"v"+e)(n[0]);const o=n[1],s=(e=>parseInt(e.replace(/^v/,""),10))(i);let a;return 38===s&&(i="v38"),"binary"!==o||39>s?(a=await W("kcov",i,ke,t,r),a):(a=await W("kcov",i,Ne,t,r),C()?_("binutils"):R()?I("binutils"):P()&&await y("libbinutils"),a)},async make(e,t,r){switch(process.platform){case"win32":return T("make",e);case"darwin":return O("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(C())return _("make",e);if(R())return I("make",e);if(P())return y("make",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task(e,t,r){return W("task",e,K,t,r)},sevenzip:k},oo=["nala","choco","brew","python","vcpkg","bazel","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],so=["compiler","architecture",...oo];De(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,un.error)("main() panicked!"),(0,un.error)(e),process.exitCode=1})); +function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((n,s)=>{r(e,t||{},((e,t)=>{e?s(e):n(t)}))}))}Xt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}function n(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof er)return{binDir:er};const s=t(Vt).sync("brew",{nothrow:!0});return null!==s?(er=(0,Et.dirname)(s),{binDir:er}):((0,Ct.execFileSync)('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),er="/usr/local/bin/",{binDir:er})}function s(e,t){const r=e.options.env||process.env,n=process.cwd(),s=null!=e.options.cwd,o=s&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=Vt.sync(e.command,{path:r[or({env:r})],pathExt:t?Et.delimiter:void 0})}catch(e){}finally{o&&process.chdir(n)}return i&&(i=Et.resolve(s?e.options.cwd:"",i)),i}function o(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 i(e,t){return yr&&1===e&&!t.file?o(t.original,"spawn"):null}function a(e,t,r){const n=sr(e,t,r),s=Ct.spawn(n.command,n.args,n.options);return gr.hookChildProcess(s,n),s}async function c(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=mn(t);return await new Promise(((t,s)=>{const o=e=>{e&&n.getBufferedLength()<=yn.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),s(e)};(async()=>{try{await bn(e,n),t()}catch(e){o(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&o(new wn)}))})),n.getBufferedValue()}function l(){return(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(Vt).sync("sudo",{nothrow:!0});var e}function u(e,r=[],n={stdio:"inherit",shell:!0}){return l()?t(rr).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(rr).sync(e,r,n)}function d(e){return l()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,Et.join)("/Users/",process.env.SUDO_USER,e):(0,Et.join)("/home/",process.env.SUDO_USER,e):t(zn)("~/"+e)}function h(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return t(rr)((()=>{if(void 0===Xn){const e=t(Vt).sync("pwsh",{nothrow:!0});null!==e&&(Xn=e);const r=t(Vt).sync("powershell",{nothrow:!0});null!==r&&(Xn=r)}if(void 0===Xn)throw Error("Could not find powershell");return Xn})(),[...r,"-c",e],n)}async function p(e,r,n=!1){const s=n?t(Kn)(null!=r?r:""):r;try{if("github-actions"===t(Vn)())try{(0,zt.exportVariable)(e,s)}catch(t){(0,Yn.error)(t),await m(e,s)}else await m(e,s)}catch(t){(0,Yn.error)(t),(0,zt.setFailed)(`Failed to export environment variable ${e}=${s}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${Et.delimiter}${process.env.PATH}`;try{if("github-actions"===t(Vn)())try{(0,zt.addPath)(e)}catch(t){(0,Yn.error)(t),await g(e)}else await g(e)}catch(t){(0,Yn.error)(t),(0,zt.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 h(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void(0,zt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return y(),(0,xt.appendFileSync)(es,`\nexport ${e}="${r}"\n`),void(0,zt.info)(`${e}="${r}" was added to "${es}`)}process.env[e]=r}async function g(e){switch(process.platform){case"win32":return await h(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void(0,zt.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return y(),(0,xt.appendFileSync)(es,`\nexport PATH="${e}:$PATH"\n`),void(0,zt.info)(`"${e}" was added to "${es}"`);default:return}}function y(){if(ts)return;const e="export SOURCE_CPPRC=0";if((0,xt.existsSync)(es)&&(0,xt.readFileSync)(es,"utf8").includes(e))return;(0,xt.appendFileSync)(es,`\n${e}\n`),(0,zt.info)(`Added ${e} to ${es}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${es}" ]]; then source "${es}"; fi\n`;try{const e=d(".profile");(0,xt.appendFileSync)(e,t),(0,zt.info)(`${t} was added to ${e}`);const r=d(".bashrc");(0,xt.appendFileSync)(r,t),(0,zt.info)(`${t} was added to ${r}`)}catch(e){(0,Yn.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}ts=!0}async function v(e,r,n=[],s=!1){const o=(()=>{let e;return e=null!==t(Vt).sync("nala",{nothrow:!0})?"nala":"apt-get",e})();if((0,zt.info)(`Installing ${e} ${null!=r?r:""} via ${o}`),process.env.DEBIAN_FRONTEND="noninteractive",rs&&!s||(b(o),rs=!0),ns||(await(async e=>{u(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]),E(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),E(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg"),"nala"===e&&(await p("LANG","C.UTF-8"),await p("LC_ALL","C.UTF-8"))})(o),ns=!0),Array.isArray(n)&&0!==n.length){for(const e of n)u("add-apt-repository",["--update","-y",e]);b(o)}if(void 0!==r&&""!==r)try{u(o,["install","--fix-broken","-y",`${e}=${r}`])}catch{u(o,["install","--fix-broken","-y",`${e}-${r}`])}else u(o,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function b(e){u(e,"nala"!==e?["update","-y"]:["update"])}function w(){u("gpg",["-k"])}function E(e,t,r="keyserver.ubuntu.com"){const n="/etc/apt/trusted.gpg.d/"+t;if(!(0,xt.existsSync)(n)){w();for(const t of e)u("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",t]),u("chmod",["644",n])}return n}async function x(e,t){const r="/etc/apt/trusted.gpg.d/"+e;return(0,xt.existsSync)(r)||(w(),await v("curl",void 0),u("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),u("chmod",["644",r])),r}function _(e,r){return"github-actions"===t(Vn)()?u("update-alternatives",["--install","/usr/bin/"+e,e,r,"40"]):(y(),(0,xt.appendFileSync)(es,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${r} 40; fi\n`))}function S(e,t,r){(0,Yn.info)(`Installing ${e} ${null!=t?t:""} via pacman`);const n="pacman";if(ss||(u(n,["-Syuu","--noconfirm"]),ss=!0),os||(u(n,["-Sy","--noconfirm","base-devel"]),os=!0),void 0!==t&&""!==t)try{u(null!=r?r:n,["-S","--noconfirm",`${e}=${t}`])}catch{u(null!=r?r:n,["-S","--noconfirm",`${e}${t}`])}else u(null!=r?r:n,["-S","--noconfirm",e]);return{binDir:"/usr/bin/"}}function O(e,r){return(0,zt.info)(`Installing ${e} ${null!=r?r:""} via brew`),as&&null!==t(Vt).sync("brew",{nothrow:!0})||(n(0,0,process),as=!0),t(rr).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function T(e,r,n){if("win32"!==process.platform)return;if("string"==typeof is)return{binDir:is};const s=t(Vt).sync("choco",{nothrow:!0});if(null!==s)return is=(0,Et.dirname)(s),{binDir:is};let o="powershell.exe";const i=t(Vt).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==i&&(o=i),t(rr).sync(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await f(a);const c=t(Vt).sync("choco",{nothrow:!0});var l;return is=null!==c?(0,Et.dirname)(c):(null!==(l=process.env.ChocolateyInstall)&&void 0!==l?l:"C:/ProgramData/chocolatey")+"/bin",(0,xt.existsSync)(is)?{binDir:is}:void 0}async function R(e,r,n=[]){(0,zt.info)(`Installing ${e} ${null!=r?r:""} via chocolatey`),ds&&null!==t(Vt).sync("choco",{nothrow:!0})||(await T(0,0,process),ds=!0);const s=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=s,void 0!==r&&""!==r)t(rr).sync("choco",["install","-y",e,"--version="+r,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{t(rr).sync("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,Yn.notice)(e+" might require a reboot for the completion of the installation.")}var i;const a=(null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin";return await f(a),{binDir:a}}function A(){return"linux"===process.platform&&(void 0===cs&&(cs=null!==t(Vt).sync("pacman",{nothrow:!0})),cs)}function C(){return"linux"===process.platform&&(void 0===ls&&(ls=null!==t(Vt).sync("dnf",{nothrow:!0})),ls)}function I(e,t){(0,Yn.info)(`Installing ${e} ${null!=t?t:""} via dnf`);const r="dnf";if(void 0!==t&&""!==t)try{u(r,["-y","install",`${e}-${t}`])}catch(t){(0,Yn.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 P(){if("linux"!==process.platform)return!1;if(void 0===us){const e="apt-get";us=null!==t(Vt).sync(e,{nothrow:!0})}return us}function $(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function k(e,t=".bat",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function N(e,t,r){switch(process.platform){case"win32":return R("7zip",e);case"darwin":return O("p7zip",e);case"linux":if(A())return S("p7zip",e);if(C())return I("p7zip",e),I("p7zip-plugins",e);if(P())return v("p7zip-full",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function L(e){"linux"!==process.platform&&"darwin"!==process.platform||!l()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0})}function j(e,t){const r=[];t=t||Ss.arch();const n=Os.join(H(),e);if(xs.existsSync(n)){const e=xs.readdirSync(n);for(const s of e)if(F(s)){const e=Os.join(n,s,t||"");xs.existsSync(e)&&xs.existsSync(e+".complete")&&r.push(s)}}return r}function U(e){return vs(this,void 0,void 0,(function*(){return e||(e=Os.join(q(),Is.default())),yield Es.mkdirP(e),e}))}function D(e,t,r){return vs(this,void 0,void 0,(function*(){const n=Os.join(H(),e,Rs.clean(t)||t,r||"");ws.debug("destination "+n);const s=n+".complete";return yield Es.rmRF(n),yield Es.rmRF(s),yield Es.mkdirP(n),n}))}function M(e,t,r){const n=Os.join(H(),e,Rs.clean(t)||t,r||"");xs.writeFileSync(n+".complete",""),ws.debug("finished caching tool")}function F(e){const t=Rs.clean(e)||"";ws.debug("isExplicit: "+t);const r=null!=Rs.valid(t);return ws.debug("explicit? "+r),r}function B(e,t){let r="";ws.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort(((e,t)=>Rs.gt(e,t)?1:-1))).length-1;n>=0;n--){const s=e[n];if(Rs.satisfies(s,t)){r=s;break}}return ws.debug(r?"matched: "+r:"match not found"),r}function H(){const e=process.env.RUNNER_TOOL_CACHE||"";return Rt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function q(){const e=process.env.RUNNER_TEMP||"";return Rt.ok(e,"Expected RUNNER_TEMP to be defined"),e}function G(e,t){const r=Bt[e];return void 0!==r?r:t}async function z(e,r){return await t(rr)(await(async()=>(void 0===Bs&&(null===t(Vt).sync("7z",{nothrow:!0})&&await N("",0,process),Bs="7z"),Bs))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),L(r),r}function V(e,t){return z(e,t)}function W(e,t){return z(e,t)}async function Y(e,r,n=["--strip-components=0"]){try{await(0,hs.mkdirP)(r)}catch{}try{await t(rr)("tar",["xf",e,"-C",r,...n],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,Yn.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return L(r),r}async function X(e,r,n,s,o){var i,a;(0,zt.info)(`Installing ${e} ${r} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!==(i=process.env.RUNNER_TEMP)&&void 0!==i?i:(0,wt.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:(0,Et.join)((0,wt.tmpdir)(),"setup-cpp","hostedtoolcache");const{url:c,binRelativeDir:l,binFileName:u,extractedFolderName:d,extractFunction:h}=await n(r,process.platform,o);if("github-actions"===t(Vn)())try{const t=(0,ps.find)(e,r);if(t){const n=(0,Et.join)(t,d),s=(0,Et.join)(n,l);if((0,xt.existsSync)(s)&&(0,xt.existsSync)((0,Et.join)(s,u)))return(0,zt.info)(`${e} ${r} was found in the cache at ${s}.`),await f(s),{installDir:n,binDir:s}}}catch{}const p=(0,Et.join)(s,d),m=(0,Et.join)(p,l),g=(0,Et.join)(m,u);if(!(0,xt.existsSync)(m)||!(0,xt.existsSync)(g)){(0,zt.info)(`Download and extract ${e} ${r}`),Hs||("linux"===process.platform&&(A()?(S("unzip"),S("tar"),S("xz")):C()?(I("unzip"),I("tar"),I("xz")):P()&&(await v("unzip"),await v("tar"),await v("xz-utils"))),Hs=!0);try{const e=await(0,ps.downloadTool)(c);await(null==h?void 0:h(e,s))}catch(t){throw Error(`Failed to download ${e} ${r} ${o} from ${c}: ${t}`)}}return(0,zt.info)(`Add ${m} to PATH`),await f(m),"github-actions"===t(Vn)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,ps.cacheDir)(s,e,r),{installDir:p,binDir:m}}function K(e,t,r){const n=(e=>"win32"===e?"windows":e)(t),s=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),o="win32"===t,i=o?"zip":"tar.gz";return{binRelativeDir:"",binFileName:$("task"),extractedFolderName:"",extractFunction:o?W:Y,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${s}.${i}`}}function J(e,r,n){var s;const o=null!==(s=t(zs)(e))&&void 0!==s?s:e;switch(r){case"win32":{const r=t(Gs)(o,"v3.19.6");let s;s=["ia32","x86","i386","x32"].includes(n)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const i=`cmake-${e}-${s}`;return{binRelativeDir:"bin/",binFileName:$("cmake"),extractedFolderName:i,extractFunction:W,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const r=`cmake-${e}-${t(Gs)(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:$("cmake"),extractedFolderName:r,extractFunction:ps.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(Gs)(o,"v3.19.8");let s;s=["aarch64"].includes(n)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const i=`cmake-${e}-${s}`;return{binRelativeDir:"bin/",binFileName:$("cmake"),extractedFolderName:i,extractFunction:ps.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function Q(e,t,r){return X("cmake",e,J,t,r)}async function Z(e,r,n){if("github-actions"!==t(Vn)())return ee(e,r);try{(0,Yn.info)("Installing python in GitHub Actions");const{setupActionsPython:t}=await Gt("d0ovd");return t(e,r,n)}catch(t){return(0,Yn.warning)(""+t),ee(e,r)}}async function ee(e,r,n){switch(process.platform){case"win32":{var s,o;r?await R("python3",e,["--params=/InstallDir:"+r]):await R("python3",e);const n=null!==(o=null!==(s=t(Vt).sync("python3.exe",{nothrow:!0}))&&void 0!==s?s:t(Vt).sync("python.exe",{nothrow:!0}))&&void 0!==o?o:(0,Et.join)(r,"python.exe"),i=(0,Et.dirname)(n);return await(async e=>{(0,Yn.info)(`Add ${e} to PATH`),await f(e)})(i),{installDir:i,binDir:i}}case"darwin":return O("python3",e);case"linux":{let t;if(A())t=S("python",e),S("python-pip");else if(C())t=I("python3",e),I("python3-pip");else{if(!P())throw Error("Unsupported linux distributions");t=await v("python3",e),await v("python3-pip")}return t}default:throw Error("Unsupported platform")}}function te(e,t,r){void 0===r&&(r=t,t=e,e=null),kt.Duplex.call(this,e),"function"!=typeof r.read&&(r=new kt.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var n=this;t.once("finish",(()=>{n.end()})),this.once("finish",(()=>{t.end()})),r.on("readable",(()=>{n._waiting&&(n._waiting=!1,n._read())})),r.once("end",(()=>{n.push(null)})),e&&void 0!==e.bubbleErrors&&!e.bubbleErrors||(t.on("error",(e=>{n.emit("error",e)})),r.on("error",(e=>{n.emit("error",e)})))}function re(e,t){if(!e)return Promise.reject(Error("Expected a stream"));const r=(t=Object.assign({maxBuffer:1/0},t)).maxBuffer;let n,s;const o=new Promise(((o,i)=>{const a=e=>{e&&(e.bufferedData=n.getBufferedValue()),i(e)};n=Qs(t),e.once("error",a),e.pipe(n),n.on("data",(()=>{n.getBufferedLength()>r&&i(Error("maxBuffer exceeded"))})),n.once("error",a),n.on("end",o),s=()=>{e.unpipe&&e.unpipe(n)}}));return o.then(s,s),o.then((()=>n.getBufferedValue()))}function ne(e,t){for(var r in e)t[r]=e[r]}function se(e,t,r){return mo(e,t,r)}function oe(e){e=e||{};const t=new Tt,r=e.href||Lt.resolve(Lt.format(e),e.path);let n,s=0,o=0;const i=e=>{const a=("https:"===e.protocol?St:_t).request(e,(o=>{const c=o.statusCode;if(no(c)&&e.followRedirect&&"location"in o.headers&&("GET"===e.method||"HEAD"===e.method)){if(o.resume(),++s>10)return void t.emit("error",new ae.MaxRedirectsError(c,e),null,o);const r=""+yo.from(o.headers.location,"binary");n=Lt.resolve(Lt.format(e),r);const a=Object.assign({},e,Lt.parse(n));return t.emit("redirect",o,a),void i(a)}setImmediate((()=>{const e="HEAD"!==a.method?io(o):o;e.url=n||r,e.requestUrl=r,t.emit("response",e)}))}));a.once("error",(r=>{const n=e.retries(++o,r);n?setTimeout(i,n,e):t.emit("error",new ae.RequestError(r,e))})),e.gotTimeout&&Zs(a,e.gotTimeout),setImmediate((()=>{t.emit("request",a)}))};return i(e),t}function ie(e,t){if("string"!=typeof e&&"object"!=typeof e)throw Error("Parameter `url` must be a string or object, not "+typeof e);if("string"==typeof e&&(e=e.replace(/^unix:/,"http://$&"),(e=eo(e)).auth))throw Error("Basic authentication must be done with auth option");(t=Object.assign({protocol:"http:",path:"",retries:5},e,t)).headers=Object.assign({"user-agent":`${go.name}/${go.version} (https://github.com/sindresorhus/got)`,"accept-encoding":"gzip,deflate"},ro(t.headers));const r=t.query;r&&("string"!=typeof r&&(t.query=jt.stringify(r)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),t.json&&void 0===t.headers.accept&&(t.headers.accept="application/json");let n=t.body;if(n){if("string"!=typeof n&&(null===n||"object"!=typeof n))throw Error("options.body must be a ReadableStream, string, Buffer or plain Object");if(t.method=t.method||"POST",Ks(n)&&"function"==typeof n.getBoundary?t.headers["content-type"]=t.headers["content-type"]||"multipart/form-data; boundary="+n.getBoundary():null===n||"object"!=typeof n||yo.isBuffer(n)||Ks(n)||(t.headers["content-type"]=t.headers["content-type"]||"application/x-www-form-urlencoded",n=t.body=jt.stringify(n)),void 0===t.headers["content-length"]&&void 0===t.headers["transfer-encoding"]&&!Ks(n)){const e="string"==typeof n?yo.byteLength(n):n.length;t.headers["content-length"]=e}}if(t.method=(t.method||"GET").toUpperCase(),"unix"===t.hostname){const e=/(.+):(.+)/.exec(t.path);e&&(t.socketPath=e[1],t.path=e[2],t.host=null)}if("function"!=typeof t.retries){const e=t.retries;t.retries=(t,r)=>t>e||!uo(r)?0:1e3*(1<new Promise(((t,r)=>{const n=oe(e);n.on("request",(t=>{if(Ks(e.body))return e.body.pipe(t),void(e.body=void 0);t.end(e.body)})),n.on("response",(n=>{(null===e.encoding?so.buffer(n):so(n,e)).catch((t=>r(new ae.ReadError(t,e)))).then((r=>{const s=n.statusCode,o=e.followRedirect?299:399;if(n.body=r,e.json&&n.body)try{n.body=JSON.parse(n.body)}catch(t){throw new ae.ParseError(t,s,e,r)}if(200>s||s>o)throw new ae.HTTPError(s,e);t(n)})).catch((e=>{Object.defineProperty(e,"response",{value:n}),r(e)}))})),n.on("error",r)})))(ie(e,t))}catch(e){return Promise.reject(e)}}function ce(e,t){void 0!==e.code&&(this.code=e.code),Object.assign(this,{message:e.message,host:t.host,hostname:t.hostname,method:t.method,path:t.path})}function le(e){return 4===e?"ipv4":6===e?"ipv6":e?e.toLowerCase():"ipv4"}function ue(e,t){for(var r=0,n=0;e.length>n;n++)r+=t.encodingLength(e[n]);return r}function de(e,t,r,n){for(var s=0;e.length>s;s++)t.encode(e[s],r,n),n+=t.encode.bytes;return n}function he(e,t,r,n){for(var s=0;e.length>s;s++)e[s]=t.decode(r,n),n+=t.decode.bytes;return n}function pe(e){function t(){var e=n._triesArray.reduce(me,0);n._interval=setInterval(r,Math.round(n.timeout/e)),n.emit("listening")}function r(){n._ontimeout()}if(!(this instanceof pe))return new pe(e);e||(e={}),Tt.EventEmitter.call(this);var n=this;this.retries=e.retries||5,this.timeout=e.timeout||7500,this.destroyed=!1,this.inflight=0,this.socket=e.socket||Dt.createSocket("udp4"),this._id=Math.ceil(65535*Math.random()),this._ids=[],this._queries=[],this._interval=null,this._triesArray=(e=>{var t=[];if(1>=e)return t;for(var r=1;e-1>=r;r++)t.push(Math.pow(2,r));return t})(this.retries),this.socket.on("error",(e=>{n.emit("EACCES"===e.code||"EADDRINUSE"===e.code?"error":"warning",e)})),this.socket.on("message",((e,t)=>{n._onmessage(e,t)})),(e=>{try{return 0!==e.address().port}catch(e){return!1}})(this.socket)?t():this.socket.on("listening",t),this.socket.on("close",(()=>{n.emit("close")}))}function fe(){}function me(e,t){return e+t}function ge(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ye(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;var r=e.slice(0,t=t||1),n=e.slice(t);return[].concat.call([],ye(r),ye(n))}function ve(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(gi),r=1;t.length>r;r++)t=(e=ye(t,r).join("")).match(gi);return e}}function be(e,t){return t.encode?t.strict?oi(e):encodeURIComponent(e):e}function we(e){return Array.isArray(e)?e.sort():"object"==typeof e?we(Object.keys(e)).sort(((e,t)=>+e-+t)).map((t=>e[t])):e}function Ee(e,t){return t.some((t=>t instanceof RegExp?t.test(e):t===e))}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e){var t={};if(!e)return t;for(var r=e.trim().split(/\s*,\s*/),n=Array.isArray(o=r),s=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(s>=o.length)break;i=o[s++]}else{if((s=o.next()).done)break;i=s.value}var a=i.split(/\s*=\s*/,2),c=a[1];t[a[0]]=void 0===c||c.replace(/^"|"$/g,"")}return t}function Se(e){var t=[];for(var r in e){var n=e[r];t.push(!0===n?r:r+"="+n)}if(t.length)return t.join(", ")}function Oe(e,t){("object"!=typeof e||Array.isArray(e))&&(t=e,e={});var r,n=new Gi(e);return n._from=Array.isArray(t)?(r=(r=t).slice(),(e,t)=>{var n=null,s=r.length?r.shift():null;s instanceof Error&&(n=s,s=null),t(n,s)}):t||Re,n}function Te(e,t){function r(t){if(!(this instanceof r))return new r(t);this._reading=!1,this._callback=(e,t)=>{if(!n.destroyed){if(e)return n.destroy(e);if(null===t)return n.push(null);n._reading=!1,n.push(t)&&n._read(s)}},this.destroyed=!1,Bi.call(this,t||e);var n=this,s=this._readableState.highWaterMark}return"function"==typeof e&&(t=e,e={}),e=Ae(e),Hi(r,Bi),r.prototype._from=t||Re,r.prototype._read=function(e){this._reading||this.destroyed||(this._reading=!0,this._from(e,this._callback))},r.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick((()=>{e&&t.emit("error",e),t.emit("close")}))}},r}function Re(){}function Ae(e){return e||{}}function Ce(e){if(null===e)return"null";if(!0===e||!1===e)return"boolean";const t=typeof e;if("undefined"===t)return"undefined";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if(Ce.function_(e))return"Function";if(Array.isArray(e))return"Array";if(Buffer.isBuffer(e))return"Buffer";const r=Yi(e);if(r)return r;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}function Ie(e){e=e||{};const t=new Tt,r=e.href||Lt.resolve(Lt.format(e),e.path),n=[],s=zi.object(e.agent)?e.agent:null;let o,i,a=0,c=0;const l=e=>{if("http:"!==e.protocol&&"https:"!==e.protocol)return void t.emit("error",new ke.UnsupportedProtocolError(e));let u,d="https:"===e.protocol?St:_t;if(s&&(e.agent=s["https:"===e.protocol?"https":"http"]||e.agent),e.useElectronNet&&process.versions.electron){const e=Gt("fdKVL");d=e.net||e.remote.net}const h=new li(d.request,e.cache)(e,(s=>{clearInterval(u),t.emit("uploadProgress",{percent:1,transferred:c,total:i});const a=s.statusCode;s.url=o||r,s.requestUrl=r;const d=e.followRedirect&&"location"in s.headers,h=d&&Ta.has(a);if(d&&Ra.has(a)||h&&("GET"===e.method||"HEAD"===e.method)){if(s.resume(),303===a&&(e.method="GET"),n.length>=10)return void t.emit("error",new ke.MaxRedirectsError(a,n,e),null,s);const r=""+fa.from(s.headers.location,"binary");o=Lt.resolve(Lt.format(e),r),n.push(o);const i=Object.assign({},e,Lt.parse(o));return t.emit("redirect",s,i),void l(i)}setImmediate((()=>{try{((e,t,r,n)=>{const s=+e.headers["content-length"]||null;let o=0;const i=new ci({transform(e,t,n){o+=e.length;const i=s?o/s:0;1>i&&r.emit("downloadProgress",{percent:i,transferred:o,total:s}),n(null,e)},flush(e){r.emit("downloadProgress",{percent:1,transferred:o,total:s}),e()}});Pi(e,i),i.redirectUrls=n;const a=!0===t.decompress&&zi.function(Qi)&&"HEAD"!==t.method?Qi(i):i;t.decompress||-1===["gzip","deflate"].indexOf(e.headers["content-encoding"])||(t.encoding=null),r.emit("response",a),r.emit("downloadProgress",{percent:0,transferred:0,total:s}),e.pipe(i)})(s,e,t,n)}catch(e){t.emit("error",e)}}))}));h.on("error",(r=>{t.emit("error",r instanceof li.RequestError?new ke.RequestError(r,e):new ke.CacheError(r,e))})),h.once("request",(r=>{let n=!1;r.once("abort",(e=>{n=!0})),r.once("error",(r=>{if(clearInterval(u),n)return;const s=e.retries(++a,r);s?setTimeout(l,s,e):t.emit("error",new ke.RequestError(r,e))})),t.once("request",(e=>{t.emit("uploadProgress",{percent:0,transferred:0,total:i});const r=e.connection;if(r){const n=()=>{u=setInterval((()=>{if(r.destroyed)return void clearInterval(u);const n=c,s=e._header?fa.byteLength(e._header):0;c=r.bytesWritten-s,i&&c>i&&(c=i),c!==n&&c!==i&&t.emit("uploadProgress",{percent:i?c/i:0,transferred:c,total:i})}),150)};(void 0===r.connecting?r._connecting:r.connecting)?r.once("connect",n):n()}})),e.gotTimeout&&(clearInterval(u),Zs(r,e.gotTimeout)),setImmediate((()=>{t.emit("request",r)}))}))};return setImmediate((()=>{Promise.resolve((e=>{const t=e.body;return e.headers["content-length"]?+e.headers["content-length"]:t||e.stream?zi.string(t)?fa.byteLength(t):Aa(t)?aa(t.getLength.bind(t))():t instanceof xt.ReadStream?aa(xt.stat)(t.path).then((e=>e.size)):zi.nodeStream(t)&&zi.buffer(t._buffer)?t._buffer.length:null:0})(e)).then((t=>{i=t,zi.undefined(e.headers["content-length"])&&zi.undefined(e.headers["transfer-encoding"])&&Aa(e.body)&&(e.headers["content-length"]=t),l(e)})).catch((e=>{t.emit("error",e)}))})),t}function Pe(e){e.stream=!0;const t=new ai,r=new ai,n=qs(t,r);let s;if(e.gotTimeout&&e.gotTimeout.request&&(s=setTimeout((()=>{n.emit("error",new ke.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e))}),e.gotTimeout.request)),e.json)throw Error("Got can not be used as a stream when the `json` option is used");e.body&&(n.write=()=>{throw Error("Got's stream is not writable when the `body` option is used")});const o=Ie(e);return o.on("request",(r=>{n.emit("request",r),zi.nodeStream(e.body)?e.body.pipe(r):e.body?r.end(e.body):"POST"!==e.method&&"PUT"!==e.method&&"PATCH"!==e.method?r.end():t.pipe(r)})),o.on("response",(t=>{clearTimeout(s);const o=t.statusCode;t.on("error",(t=>{n.emit("error",new ke.ReadError(t,e))})),t.pipe(r),e.throwHttpErrors&&304!==o&&(200>o||o>299)?n.emit("error",new ke.HTTPError(o,t.statusMessage,t.headers,e),null,t):n.emit("response",t)})),o.on("error",n.emit.bind(n,"error")),o.on("redirect",n.emit.bind(n,"redirect")),o.on("uploadProgress",n.emit.bind(n,"uploadProgress")),o.on("downloadProgress",n.emit.bind(n,"downloadProgress")),n}function $e(e,t){if(!zi.string(e)&&!zi.object(e))throw new TypeError("Parameter `url` must be a string or object, not "+zi(e));if(zi.string(e)){if(e=e.replace(/^unix:/,"http://$&"),(e=Ki(e)).auth)throw Error("Basic authentication must be done with the `auth` option")}else ra.lenient(e)&&(e=Ji(e));t=Object.assign({path:"",retries:2,cache:!1,decompress:!0,useElectronNet:!1,throwHttpErrors:!0},e,{protocol:e.protocol||"http:"},t);const r=ro(t.headers);for(const e of Object.keys(r))zi.nullOrUndefined(r[e])&&delete r[e];t.headers=Object.assign({"user-agent":`${pa.name}/${pa.version} (https://github.com/sindresorhus/got)`},r),t.decompress&&zi.undefined(t.headers["accept-encoding"])&&(t.headers["accept-encoding"]="gzip, deflate");const n=t.query;n&&(zi.string(n)||(t.query=jt.stringify(n)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),t.json&&zi.undefined(t.headers.accept)&&(t.headers.accept="application/json");const s=t.body;if(zi.nullOrUndefined(s))t.method=(t.method||"GET").toUpperCase();else{const e=t.headers;if(!(zi.nodeStream(s)||zi.string(s)||zi.buffer(s)||t.form||t.json))throw new TypeError("The `body` option must be a stream.Readable, string, Buffer or plain Object");const r=zi.plainObject(s)||zi.array(s);if((t.form||t.json)&&!r)throw new TypeError("The `body` option must be a plain Object or Array when the `form` or `json` option is used");if(Aa(s)?e["content-type"]=e["content-type"]||"multipart/form-data; boundary="+s.getBoundary():t.form&&r?(e["content-type"]=e["content-type"]||"application/x-www-form-urlencoded",t.body=jt.stringify(s)):t.json&&r&&(e["content-type"]=e["content-type"]||"application/json",t.body=JSON.stringify(s)),zi.undefined(e["content-length"])&&zi.undefined(e["transfer-encoding"])&&!zi.nodeStream(s)){const r=zi.string(t.body)?fa.byteLength(t.body):t.body.length;e["content-length"]=r}zi.buffer(s)&&(t.body=Mi(s),t.body._buffer=s),t.method=(t.method||"POST").toUpperCase()}if("unix"===t.hostname){const e=/(.+?):(.+)/.exec(t.path);e&&(t.socketPath=e[1],t.path=e[2],t.host=null)}if(!zi.function(t.retries)){const e=t.retries;t.retries=(t,r)=>t>e||!uo(r)?0:1e3*(1<{const t=new Tt,r=new ca(((r,n,s)=>{const o=Ie(e);let i=!1;s((()=>{i=!0})),o.on("request",(t=>{if(i&&t.abort(),s((()=>{t.abort()})),zi.nodeStream(e.body))return e.body.pipe(t),void(e.body=void 0);t.end(e.body)})),o.on("response",(t=>{(zi.null(e.encoding)?so.buffer(t):so(t,e)).catch((t=>n(new ke.ReadError(t,e)))).then((n=>{const s=t.statusCode,o=e.followRedirect?299:399;if(t.body=n,e.json&&t.body)try{t.body=JSON.parse(t.body)}catch(t){if(s>=200&&300>s)throw new ke.ParseError(t,s,e,n)}if(e.throwHttpErrors&&304!==s&&(200>s||s>o))throw new ke.HTTPError(s,t.statusMessage,t.headers,e);r(t)})).catch((e=>{Object.defineProperty(e,"response",{value:t}),n(e)}))})),o.once("error",n),o.on("redirect",t.emit.bind(t,"redirect")),o.on("uploadProgress",t.emit.bind(t,"uploadProgress")),o.on("downloadProgress",t.emit.bind(t,"downloadProgress"))}));Object.defineProperty(r,"canceled",{get(){return r.isCanceled}});const n=(s=r,e.gotTimeout&&e.gotTimeout.request?oa(s,e.gotTimeout.request,new ke.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e)):s);var s;return n.cancel=r.cancel.bind(r),n.on=(e,r)=>(t.on(e,r),n),n})(r)}catch(e){return Promise.reject(e)}}function Ne(e){return Ys("http://captive.apple.com/hotspot-detect.html",{family:"v4"===e.version?4:6,headers:{"User-Agent":"CaptiveNetworkSupport/1.0 wispr"}}).then((e=>/Success/.test(e.body||"")||Promise.reject()))}function Le(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function je(e,t,r=null){if(Ue(t,e)){if("linux"===process.platform&&null!==r&&e in oc){const t=r[0];return parseInt(Object.keys(oc[e])[0],10)>t?"":oc[e][t]}return sc[e]}return null!=t?t:""}function Ue(e,t){return"true"===e||void 0===e&&t in sc}async function De(e,r){if((0,zt.info)(`Installing ${e} ${null!=r?r:""} via pip`),void 0===ic){if(null!==t(Vt).sync("python3",{nothrow:!0}))ic="python3";else{if(null===t(Vt).sync("python",{nothrow:!0})||!await(async(e,r,n=nc)=>{const s=await(async(e,t=nc)=>{try{var r;const n=await(0,Ps.getExecOutput)(e,["--version"]);return null===(r=(n.stdout||n.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,n);return"string"==typeof s&&"string"==typeof r&&""!==s&&""!==r&&-1!==t(tc)(s,r)})("python","3.0.0")){if((0,zt.info)("python3 was not found. Installing python"),await Z(je("python",void 0),"",process.arch),cc)throw Error("Failed to install python");return cc=!0,De(e,r)}ic="python"}"win32"===process.platform?t(rr).sync(ic,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(A()?S("python-pip"):C()?I("python3-pip"):P()&&await v("python3-pip")),t(rr).sync(ic,["-m","pip","install","-U","wheel"],{stdio:"inherit"})}if(t(rr).sync(ic,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===ac){if("linux"===process.platform)ac="/home/runner/.local/bin/";else if("darwin"===process.platform)ac="/usr/local/bin/";else try{ac=(0,Et.join)((await(0,Ps.getExecOutput)(ic+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{ac=(0,Et.join)((await(0,Ps.getExecOutput)(ic+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}(0,zt.info)(ac+" to PATH"),await f(ac)}return{binDir:ac}}async function Me(e,t,r){switch(process.platform){case"win32":return await R("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 O("graphviz",e);case"linux":if(A())return S("graphviz",e);if(C())return I("graphviz",e);if(P())return v("graphviz",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function Fe(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:$("doxygen"),extractedFolderName:t,extractFunction:ps.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:$("doxygen"),extractedFolderName:t,extractFunction:W,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Be(){if("darwin"===process.platform)try{const e=await(0,Ps.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await p("SDKROOT",t.trim()):(0,Yn.error)("SDKROOT not set")}catch(e){(0,Yn.error)(e)}}function He(e,t,r){if("win32"===t){const t=dc[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const n="ia32"===r?"i686":"x86_64",s="seh";return{binRelativeDir:"bin/",binFileName:$("g++"),extractedFolderName:"mingw64",extractFunction:z,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${n}-posix-${s}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function qe(e,r,n){let s;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||await R("gcc-arm-embedded",e);try{s=await X("g++",e,He,r,n)}catch(t){(0,Yn.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),s=await(async(e,t)=>{let r;var n,s;return await R("mingw",e),"x64"===t&&(0,xt.existsSync)("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await f(r)):"ia32"===t&&(0,xt.existsSync)("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await f(r)):(0,xt.existsSync)((null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(null!==(s=process.env.ChocolateyInstall)&&void 0!==s?s:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,n)}break;case"darwin":s=O("gcc",e);break;case"linux":"x64"===n?A()?s=S("gcc",e):C()?(s=I("gcc",e),I("gcc-c++",e),I("libstdc++-devel",void 0)):P()&&(await v("gcc",e,["ppa:ubuntu-toolchain-r/test"]),s=await v("g++",e,[])):((0,Yn.info)(`Install g++-multilib because gcc for ${n} was requested`),A()?S("gcc-multilib",e):P()&&await v("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]));break;default:throw Error("Unsupported platform for "+n)}if(void 0!==s)return await(async(e,r)=>{const n=[];if("win32"===process.platform)n.push(p("CC",$(r+"/gcc")),p("CXX",$(r+"/g++")));else{var s;const o=t(lc)(null!==(s=t(zs)(e))&&void 0!==s?s:e);5>o?(n.push(p("CC",`${r}/gcc-${e}`),p("CXX",`${r}/g++-${e}`)),P()&&(_("cc",`${r}/gcc-${e}`),_("cxx",`${r}/g++-${e}`),_("gcc",`${r}/gcc-${e}`),_("g++",`${r}/g++-${e}`))):(n.push(p("CC",`${r}/gcc-${o}`),p("CXX",`${r}/g++-${o}`)),P()&&(_("cc",`${r}/gcc-${o}`),_("cxx",`${r}/g++-${o}`),_("gcc",`${r}/gcc-${o}`),_("g++",`${r}/g++-${o}`)))}n.push(Be()),"github-actions"===t(Vn)()&&(()=>{const e=t(Et).join(uc,"gcc_matcher.json");if(!(0,xt.existsSync)(e))return(0,Yn.warning)("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Yn.info)("::add-matcher::"+e)})(),await Promise.all(n)})(e,s.binDir),s}function Ge(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function ze(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function Ve(e,r){switch(e){case"darwin":return(e=>{if(fc.has(e))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Gs)(e,"9.0.1")?ze(e,r,n):Ge(e,r,n)})(r);case"linux":return(e=>{let r=e;const n=mc.get(r);let s;if(void 0!==n&&(r=n),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!pc.has(e))throw Error("Unsupported Ubuntu version: "+e);s=r.replace(e,""),r=Le(pc,e)[0]}else""!==r&&r in gc?s=gc[r]:(s=gc["14.0.0"],(0,Yn.warning)(`Falling back to LLVM version 14.0.0 ${s} for the Ubuntu.`));const o="clang+llvm-",i="5.0.0"===r?`-linux-x86_64${s}.tar.xz`:`-x86_64-linux-gnu${s}.tar.xz`;return t(Gs)(r,"9.0.1")?ze(r,o,i):Ge(r,o,i)})(r);case"win32":return(async e=>{if(yc.has(e))return null;const r="LLVM-",n=t(Gs)(e,"3.7.0")?"-win32.exe":"-win64.exe",s=t(Gs)(e,"9.0.1");let o,i=!1;return s&&(o=ze(e,r,n),await t(Vs)(o)||(i=!0)),!i&&s||(o=Ge(e,r,n)),o})(r);default:return null}}async function We(e,r,n){const[s,o]=await(async(e,r,n,s)=>{if("linux"===r&&n.includes("ubuntu")){const e=await s(r,n);if(null!==e&&await t(Vs)(e))return[n,e]}if(!e.has(n))throw Error(`Unsupported target! (platform='${r}', version='${n}')`);for(const o of Le(e,n)){const e=await s(r,o);if(null!==e&&await t(Vs)(e))return[o,e]}throw Error(`Unsupported target! (platform='${r}', version='${n}')`)})(pc,r,e,Ve);return(0,zt.setOutput)("version",s),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:$("clang"),extractFunction:"win32"===r?V:(e,t)=>Y(e,t,["--strip-components=1"])}}async function Ye(e,r,n){const s=await Xe(e,r,n);var o;return await(async(e,r)=>{const n=(e=>{if(null===t(rc)(e))try{const r=t(zs)(e);if(null!==r)return(0,Yn.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),s=Et.join(e,"lib");var o;const i=null!==(o=process.env.LD_LIBRARY_PATH)&&void 0!==o?o:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",l=[p("LLVM_PATH",e),p("LD_LIBRARY_PATH",`${s}${Et.delimiter}${i}`),p("DYLD_LIBRARY_PATH",`${s}${Et.delimiter}${c}`),p("LDFLAGS",`-L"${e}/lib"`),p("CPPFLAGS",`-I"${e}/include"`),p("CC",$(e+"/bin/clang")),p("CXX",$(e+"/bin/clang++")),p("LIBRARY_PATH",e+"/lib"),Be()];if("win32"!==process.platform){const r=t(lc)(n);(0,xt.existsSync)(`${e}/lib/clang/${n}/include`)?l.push(p("CPATH",`${e}/lib/clang/${n}/include`)):(0,xt.existsSync)(`${e}/lib/clang/${r}/include`)&&l.push(p("CPATH",`${e}/lib/clang/${r}/include`))}P()&&(_("cc",e+"/bin/clang"),_("cxx",e+"/bin/clang++"),_("clang",e+"/bin/clang"),_("clang++",e+"/bin/clang++"),_("lld",e+"/bin/lld"),_("ld.lld",e+"/bin/ld.lld"),_("llvm-ar",e+"/bin/llvm-ar")),"github-actions"===t(Vn)()&&Je(),await Promise.all(l)})(null!==(o=s.installDir)&&void 0!==o?o:r,e),s}async function Xe(e,t,r){const n=await X("llvm",e,We,t,r);return vc||("linux"===process.platform&&(await qe(je("gcc",void 0),"",r),A()||P()&&await v("libtinfo-dev")),vc=!0),n}function Ke(e,r,n){return"github-actions"===t(Vn)()&&Je(),Xe(e,r,n)}function Je(){const e=Et.join(hc,"llvm_matcher.json");if(!(0,xt.existsSync)(e))return(0,Yn.warning)("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Yn.info)("::add-matcher::"+e)}function Qe(e,t,r){const n=new Cc(e,t,r);process.stdout.write(""+n+Rc.EOL)}function Ze(e){Oc.issue("error",e instanceof Error?""+e:e)}function et(e){Oc.issue("group",e)}function tt(){Oc.issue("endgroup")}function rt(e){return Object.values(Hc).includes(e)?e:e in Hc?Hc[e]:e}function nt(e){if(Object.keys(Hc).includes(e))return e;for(const[t,r]of Object.entries(Hc))if(r===e)return t;return e}function st(e){const t=rt(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let n=((e,t)=>{try{return(""+Ct.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){xc.warning("vswhere failed: "+e)}return null})(0,r);if(n&&xt.existsSync(n))return xc.info("Found with vswhere: "+n),n;xc.info("Not found with vswhere");const s=e?[nt(e)]:Bc;for(const e of Mc)for(const t of s)for(const r of Fc)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,xc.info("Trying standard location: "+n),xt.existsSync(n))return xc.info("Found standard location: "+n),n;if(xc.info("Not found in standard locations"),n=Dc+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",xt.existsSync(n))return xc.info("Found VS 2015: "+n),n;throw xc.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}function ot(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function it(e,t,r,n,s,o,i){void 0!==t&&(0,xt.existsSync)(t)&&((0,Yn.info)(`Adding ${t} to PATH`),await p("VCTargetsPath",t)),Ec((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),s,n,o,i,e)}async function at(e,r,n,s,o,i){if("win32"!==process.platform)return;const a=bc(e);(0,Yn.info)(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=wc(a);u=!0,(0,Yn.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await R("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(c="14.16",await R("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(c="14.29",await R("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(c=void 0,await R("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):(0,Yn.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,Yn.error)(e)}await it(a,l,n,c,s,o,i),"github-actions"===t(Vn)()&&(()=>{const e=t(Et).join(zc,"msvc_matcher.json");if(!(0,xt.existsSync)(e))return(0,Yn.warning)("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Yn.info)("::add-matcher::"+e)})()}function ct(e,t,r){const n=(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:$("ninja"),extractedFolderName:"",extractFunction:W,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`}}function lt(e,t,r){return X("ninja",e,ct,t,r)}function ut(e){return null==e?[]:Array.isArray(e)?e:[e]}function dt(e,t,r,n){var s,o=e[t],i=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(s=+r)==0?s:r),!!r)):0*(s=+r)==0?s:r;e[t]=null==o?i:Array.isArray(o)?o.concat(i):[o,i]}function ht(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:$("kcov"),extractFunction:Y}}function pt(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:$("kcov"),extractFunction:ft}}async function ft(e,r){const n=await Y(e,r,["--strip-components=1"]),s=await(async()=>{let e=t(Vt).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Q(je("cmake",void 0),(0,Et.join)(d(""),"cmake"),"");e=(0,Et.join)(t,"cmake")}return null===t(Vt).sync("ninja",{nothrow:!0})&&await lt(je("ninja",void 0),(0,Et.join)(d(""),"ninja"),""),e})();"linux"===process.platform&&(A()?(S("libdwarf"),S("libcurl-openssl")):C()?(I("libdwarf-devel"),I("libcurl-devel")):P()&&(await v("libdw-dev"),await v("libcurl4-openssl-dev")));const o=(0,Et.join)(n,"build");return await t(rr)(s,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await t(rr)(s,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function mt(e){"github-actions"!==t(Vn)()&&(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=gt(e);var n;r.help&&(0,Yn.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 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 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--bazel\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--nala\n--sevenzip\n--graphviz\n ');const s=null!==(n=r.architecture)&&void 0!==n?n:process.arch;var o;const i=null!==(o=process.env.SETUP_CPP_DIR)&&void 0!==o?o:d(""),a=[],c=[],l=Vc.create({autoloadLocales:!0});let u,h;Vc.addLocale(t(Gc)),Wc.addLocale(t(Yc));let f=null;try{f=await(async()=>{if(P()){null===t(Vt).sync("lsb_release",{nothrow:!0})&&await v("lsb-release");const e=await(0,Xc.getUbuntuVersion)();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){(0,Yn.warning)(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const n=t.slice(0,r).concat(t.slice(r+1)),s=t[r];if(!Ue(e[s],s))for(let t=0;n.length>t;t++){const r=n[t];if(Ue(e[r],n[t]))e[r]=e[s];else if(e[s]!==e[n[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return(0,Yn.error)("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of Zc){const t=r[e];if(void 0!==t){u=Date.now(),(0,zt.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await it(je(e,t,f),void 0,s,void 0,void 0,!1,!1);else{const n=Qc[e],o=(0,Et.join)(i,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await n(je(e,t,f),o,s)}a.push(bt(e,r))}catch(t){(0,Yn.error)(t),c.push(e+" failed to install")}(0,zt.endGroup)(),h=Date.now(),(0,Yn.info)("took "+(l.format(u,h)||"0 seconds"))}}const m=r.compiler;u=Date.now();try{if(void 0!==m){const{compiler:e,version:t}=yt(m);switch((0,zt.startGroup)(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await Ye(je("llvm",t,f),(0,Et.join)(i,"llvm"),s);a.push(bt("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await qe(je("gcc",t,f),(0,Et.join)(i,"gcc"),s);a.push(bt("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await at(je("msvc",t,f),(0,Et.join)(i,"msvc"),s);a.push(bt("msvc",e));break}case"appleclang":case"applellvm":(0,zt.notice)("Assuming apple-clang is already installed"),await Promise.all([p("CC","clang"),p("CXX","clang++")]),a.push(bt("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}(0,zt.endGroup)(),h=Date.now(),(0,Yn.info)("took "+(l.format(u,h)||"0 seconds"))}}catch(e){(0,Yn.error)(e),c.push("Failed to install the "+m),(0,zt.endGroup)(),h=Date.now(),(0,Yn.info)("took "+(l.format(u,h)||"0 seconds"))}if(0===a.length&&0===c.length)return(0,Yn.warning)("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>(0,Yn.success)(e))),c.forEach((e=>(0,Yn.error)(e))),(0,Yn.info)("setup_cpp finished"),"github-actions"!==t(Vn)())switch(process.platform){case"win32":(0,Yn.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,Yn.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function gt(e){return((e,t)=>{var r,n,s,o,i,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;const h=void 0!==(t=t||{}).alias,p=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=ut(t.string),t.boolean=ut(t.boolean),h)for(r in t.alias)for(n=t.alias[r]=ut(t.alias[r]),c=0;n.length>c;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(n=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(n[l]);for(c=t.string.length;c-- >0;)for(l=(n=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(n[l]);if(f)for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),c=0;n.length>c;c++)t[o].push(n[c]);const m=p?Object.keys(t.alias):[];for(c=0;d>c;c++){if("--"===(s=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;s.length>l&&45===s.charCodeAt(l);l++);if(0===l)a._.push(s);else if("no-"===s.substring(l,l+3)){if(o=s.substring(l+3),p&&!~m.indexOf(o))return t.unknown(s);a[o]=!1}else{for(u=l+1;s.length>u&&61!==s.charCodeAt(u);u++);for(o=s.substring(l,u),i=s.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],n=2===l?[o]:o,u=0;n.length>u;u++){if(o=n[u],p&&!~m.indexOf(o))return t.unknown("-".repeat(l)+o);dt(a,o,n.length>u+1||i,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(h)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a})(e,{string:el,default:Object.fromEntries(el.map((e=>[e,vt(e)]))),alias:{h:"help"},boolean:"help"})}function yt(e){const r=e.split("-"),n=r[0];if(1 in r){const e=r[1];return null!==t(rc)(e)||(0,Yn.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}function vt(e){const t=(0,zt.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function bt(e,t){let r=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r}var wt=require("os"),Et=require("path"),xt=require("fs"),_t=require("http"),St=require("https");require("net");var Ot=require("tls"),Tt=require("events"),Rt=require("assert"),At=require("util"),Ct=require("child_process"),It=require("crypto"),Pt=require("string_decoder"),$t=require("timers"),kt=require("stream"),Nt=require("buffer"),Lt=require("url"),jt=require("querystring"),Ut=require("zlib"),Dt=require("dgram"),Mt=require("punycode"),Ft=require("process"),Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ht={},qt={},Gt=Bt.parcelRequire810d;null==Gt&&((Gt=e=>{if(e in Ht)return Ht[e].exports;if(e in qt){var t=qt[e];delete qt[e];var r={id:e,exports:{}};return Ht[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{qt[e]=t},Bt.parcelRequire810d=Gt),Gt.register("04fde",(function(e,t){"use strict";function r(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function n(e,t={}){u.issueCommand("error",h.toCommandProperties(t),e instanceof Error?""+e:e)}function s(e){u.issue("group",e)}function o(){u.issue("endgroup")}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var u=Gt("2iva8"),d=Gt("kCOkT"),h=Gt("hGWy4");const p=c(wt),f=c(Et);var m,g,y=Gt("1hWAC");(g=m=e.exports.ExitCode||(e.exports.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=h.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";d.issueCommand("ENV",`${e}<<${t}${p.EOL}${r}${p.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 n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))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(p.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,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,e.exports.warning=(e,t={})=>{u.issueCommand("warning",h.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",h.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+p.EOL)},e.exports.startGroup=s,e.exports.endGroup=o,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;s(e);try{r=yield t()}finally{o()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield y.OidcClient.getIDToken(e)}))};var v=Gt("hILBc");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return v.summary}}),v=Gt("hILBc"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return v.markdownSummary}});var b=Gt("39f1T");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return b.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return b.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return b.toPlatformPath}})})),Gt.register("2iva8",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+i.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=o(wt);var a=Gt("hGWy4");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${t=s,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}}})),Gt.register("hGWy4",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Gt.register("kCOkT",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const o=s(xt),i=s(wt);var a=Gt("hGWy4");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(!o.existsSync(r))throw Error("Missing file at path: "+r);o.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}})),Gt.register("1hWAC",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=Gt("4z9RF"),s=Gt("7v249"),o=Gt("04fde");class i{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(i.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=i.createHttpClient(),n=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}`)})),s=null===(t=n.result)||void 0===t?void 0:t.value;if(!s)throw Error("Response json body do not have ID Token field");return s}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=i.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),o.debug("ID token url is "+t);const r=yield i.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=i})),Gt.register("4z9RF",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;const i=s(_t),a=s(St),c=s(Gt("2IaKG")),l=s(Gt("bbp3j"));var u,d,h,p,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",(p=h=e.exports.Headers||(e.exports.Headers={})).Accept="accept",p.ContentType="content-type",(f=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{const t=c.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],y=["OPTIONS","GET","DELETE","HEAD"];class v extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,v.prototype)}}e.exports.HttpClientError=v;class b{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))))}))}}e.exports.HttpClientResponse=b,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 o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return o(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return o(this,void 0,void 0,(function*(){t[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,f.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return o(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&y.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(o,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,o,r):a}let t=this._maxRedirects;for(;a.message.statusCode&&m.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const i=a.message.headers.location;if(!i)break;const c=new URL(i);if("https:"===s.protocol&&s.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),c.hostname!==s.hostname)for(const e in n)"authorization"===e.toLowerCase()&&delete n[e];o=this._prepareRequest(e,c,n),a=yield this.requestRaw(o,r),t--}if(!a.message.statusCode||!g.includes(a.message.statusCode))return a;c+=1,i>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(i>c);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?n(e):t?r(t):n(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function n(e,t){s||(s=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let s=!1;const o=e.httpModule.request(e.options,(e=>{n(void 0,new b(e))}));let i;o.on("socket",(e=>{i=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{i&&i.end(),n(Error("Request timeout: "+e.options.path))})),o.on("error",(e=>{n(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s="https:"===n.parsedUrl.protocol;n.httpModule=s?a:i;const o=s?443:80;if(n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(n.options);return n}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r}_getAgent(e){let t;const r=c.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const s="https:"===e.protocol;let o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||i.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i="https:"===r.protocol;n=s?i?l.httpsOverHttps:l.httpsOverHttp:i?l.httpOverHttps:l.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new a.Agent(e):new i.Agent(e),this._agent=t}return t||(t=s?a.globalAgent:i.globalAgent),s&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return o(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 o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>o(this,void 0,void 0,(function*(){const s=e.message.statusCode||0,o={statusCode:s,result:null,headers:{}};let i,a;s===u.NotFound&&r(o);try{a=yield e.readBody(),a&&a.length>0&&(i=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),o.result=i),o.headers=e.message.headers}catch(e){}if(s>299){let e;e=i&&i.message?i.message:a&&a.length>0?a:`Failed request: (${s})`;const t=new v(e,s);t.result=o.result,n(t)}else r(o)}))))}))}};const w=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),Gt.register("2IaKG",((e,t)=>{"use strict";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 n=[e.hostname.toUpperCase()];"number"==typeof r&&n.push(`${n[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(n.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 n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0},e.exports.checkBypass=r})),Gt.register("bbp3j",((e,t)=>{e.exports=Gt("fNJ5J")})),Gt.register("fNJ5J",(function(t,r){function n(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||_t.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,n,s)=>{for(var i=o(r,n,s),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===i.host&&l.port===i.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function s(e,t){var r=this;n.prototype.createSocket.call(r,e,(n=>{var s=e.request.getHeader("host"),o=i({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host}),a=Ot.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,t(a)}))}function o(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function i(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var s=Object.keys(n),o=0,i=s.length;i>o;++o){var a=s[o];void 0!==n[a]&&(e[a]=n[a])}}return e}var a,c,l,u,d,h;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new n(e);return t.request=_t.request,t},c=e=>{var t=new n(e);return t.request=_t.request,t.createSocket=s,t.defaultPort=443,t},l=e=>{var t=new n(e);return t.request=St.request,t},u=e=>{var t=new n(e);return t.request=St.request,t.createSocket=s,t.defaultPort=443,t},At.inherits(n,Tt.EventEmitter),n.prototype.addRequest=function(e,t,r,n){var s=this,a=i({request:e},s.options,o(t,r,n));this.maxSockets>s.sockets.length?s.createSocket(a,(t=>{function r(){s.emit("free",t,a)}function n(e){s.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n)}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t)})):s.requests.push(a)},n.prototype.createSocket=function(e,t){function r(r,o,i){var c;return a.removeAllListeners(),o.removeAllListeners(),200!==r.statusCode?(h("tunneling socket could not be established, statusCode=%d",r.statusCode),o.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(s)):i.length>0?(h("got illegal response body from proxy"),o.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(s)):(h("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=o,t(o))}var n=this,s={};n.sockets.push(s);var o=i({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),h("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,n)=>{process.nextTick((()=>{r(e,t,n)}))})),a.once("connect",r),a.once("error",(t=>{a.removeAllListeners(),h("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),n.removeSocket(s)})),a.end()},n.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=h=()=>{}})),Gt.register("7v249",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}}})),Gt.register("hILBc",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;const{access:n,appendFile:s,writeFile:o}=xt.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 i=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 n(t,xt.constants.R_OK|xt.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 n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),n=t?o:s;return yield n(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(wt.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",n=e.map((e=>this.wrap("li",e))).join(""),s=this.wrap(r,n);return this.addRaw(s).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:n,rowspan:s}=e,o=t?"th":"td",i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).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:n,height:s}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",s=this.wrap(n,e);return this.addRaw(s).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}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=i,e.exports.summary=i})),Gt.register("39f1T",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const o=s(Et);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,o.sep)})),Gt.register("ftrAD",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var s=r[n].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s)return!0}return!1})(t,r)}function n(e,t,n){xt.stat(e,((s,o)=>{n(s,!s&&r(o,e,t))}))}e.exports=n,n.sync=(e,t)=>r(xt.statSync(e),e,t)})),Gt.register("9yF3I",((e,t)=>{function r(e,t,r){xt.stat(e,((e,s)=>{r(e,!e&&n(s,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,s=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&s===i||r&a&&n===o||r&l&&0===o})(e,t)}e.exports=r,r.sync=(e,t)=>n(xt.statSync(e),t)})),Gt.register("bJALw",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")})),Gt.register("gmbrv",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTION?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),Gt.register("ditiY",((r,n)=>{function s(e){return"github-actions"===t(u)()?l.error(e):console.log(`${e}`)}function o(e){return console.log(`${e}`)}function i(e){return"github-actions"===t(u)()?l.warning(e):console.log(`${e}`)}function a(e){return"github-actions"===t(u)()?l.notice(e):console.log(`${e}`)}function c(e){return"github-actions"===t(u)()?l.info(e):console.log(e)}e(r.exports,"error",(()=>s)),e(r.exports,"success",(()=>o)),e(r.exports,"warning",(()=>i)),e(r.exports,"notice",(()=>a)),e(r.exports,"info",(()=>c));var l=Gt("04fde"),u=Gt("gmbrv")})),Gt.register("fvrnx",(function(e,t){"use strict";function r(e){return u(this,void 0,void 0,(function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=p.getCmdPath();(yield p.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 p.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield p.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield m("rm",["-rf",""+e]):yield p.unlink(e)}}))}function n(e){return u(this,void 0,void 0,(function*(){Rt.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0})}))}function s(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(h.delimiter))e&&t.push(e);if(p.isRooted(e)){const r=yield p.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(h.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(h.delimiter))e&&r.push(e);const n=[];for(const s of r){const r=yield p.tryGetExecutablePath(h.join(s,e),t);r&&n.push(r)}return n}))}function o(e,t,r,s){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield n(t);const a=yield p.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield p.lstat(a)).isDirectory()?yield o(a,c,r,s):yield i(a,c,s)}yield p.chmod(t,(yield p.stat(e)).mode)}))}function i(e,t,r){return u(this,void 0,void 0,(function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t)}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t))}const r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null)}else(yield p.exists(t))&&!r||(yield p.copyFile(e,t))}))}var a=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;const d=l(Ct),h=l(Et),p=l(Gt("2GOko")),f=At.promisify(d.exec),m=At.promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:n,recursive:s,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield p.exists(t))?yield p.stat(t):null;if(c&&c.isFile()&&!n)return;const l=c&&c.isDirectory()&&a?h.join(t,h.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield o(e,l,0,n)}else{if(""===h.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield i(e,l,n)}}))},e.exports.mv=function(e,t,s={}){return u(this,void 0,void 0,(function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=h.join(t,h.basename(e)),n=yield p.exists(t)),n){if(null!=s.force&&!s.force)throw Error("Destination already exists");yield r(t)}}yield n(h.dirname(t)),yield p.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=n,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(p.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 n=yield s(t);return n&&n.length>0?n[0]:""}))},e.exports.findInPath=s})),Gt.register("2GOko",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=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 o(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=i(xt),l=i(Et);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rmdir=n.rmdir,e.exports.stat=n.stat,e.exports.symlink=n.symlink,e.exports.unlink=n.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,n){return a(this,void 0,void 0,(function*(){let s;try{s=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(s&&s.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(r(s))return t;const o=t;for(const i of n){t=o+i,s=void 0;try{s=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(s&&s.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),n=l.basename(t).toUpperCase();for(const s of yield e.exports.readdir(r))if(n===s.toUpperCase()){t=l.join(r,s);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(s))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Gt.register("6kHxT",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const i=s(Gt("4URNm"));var a=Gt("04fde");e.exports._findMatch=function(t,r,n,s){return o(this,void 0,void 0,(function*(){const o=wt.platform();let c,l,u;for(const c of n){const n=c.version;if(a.debug(`check ${n} satisfies ${t}`),i.satisfies(n,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${s} && ${t.platform}===${o}`);let r=t.arch===s&&t.platform===o;if(r&&t.platform_version){const n=e.exports._getOsVersion();r=n===t.platform_version||i.satisfies(n,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=wt.platform();let r="";if("darwin"===t)r=""+Ct.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 xt.existsSync(e)?r=""+xt.readFileSync(e):xt.existsSync(t)&&(r=""+xt.readFileSync(t)),r}})),Gt.register("4URNm",((e,t)=>{var r=Gt("bikcG");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Gt("bgOMw").SEMVER_SPEC_VERSION,SemVer:Gt("7qUJS"),compareIdentifiers:Gt("12NXI").compareIdentifiers,rcompareIdentifiers:Gt("12NXI").rcompareIdentifiers,parse:Gt("gdrva"),valid:Gt("fVzwP"),clean:Gt("hOYls"),inc:Gt("dGcr6"),diff:Gt("bBssn"),major:Gt("fB2B7"),minor:Gt("bye2i"),patch:Gt("87ZGF"),prerelease:Gt("4agny"),compare:Gt("howpO"),rcompare:Gt("zcbgY"),compareLoose:Gt("iGBo4"),compareBuild:Gt("80ezM"),sort:Gt("4qmtg"),rsort:Gt("4pjXu"),gt:Gt("6KPS4"),lt:Gt("lr5pz"),eq:Gt("jXghC"),neq:Gt("fqqGA"),gte:Gt("5cRW4"),lte:Gt("fwsB7"),cmp:Gt("823yM"),coerce:Gt("1YYsi"),Comparator:Gt("eR6XK"),Range:Gt("hvUff"),satisfies:Gt("c8FZS"),toComparators:Gt("2J2hR"),maxSatisfying:Gt("lbfMG"),minSatisfying:Gt("5wbuE"),minVersion:Gt("hZRNG"),validRange:Gt("fqnzG"),outside:Gt("77bPN"),gtr:Gt("gD8Tz"),ltr:Gt("bpPww"),intersects:Gt("cHIUn"),simplifyRange:Gt("k8aCs"),subset:Gt("388OD")}})),Gt.register("bikcG",((e,t)=>{var r=Gt("bgOMw").MAX_SAFE_COMPONENT_LENGTH,n=Gt("jkMsx");const s=(t=e.exports={}).re=[],o=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),i[e]=c,o[c]=t,s[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[i.NUMERICIDENTIFIER]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[i.NUMERICIDENTIFIERLOOSE]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[i.PRERELEASEIDENTIFIER]}(?:\\.${o[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[i.BUILDIDENTIFIER]}(?:\\.${o[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[i.MAINVERSION]}${o[i.PRERELEASE]}?${o[i.BUILD]}?`),c("FULL",`^${o[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[i.MAINVERSIONLOOSE]}${o[i.PRERELEASELOOSE]}?${o[i.BUILD]}?`),c("LOOSE",`^${o[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",o[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",o[i.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:${o[i.PRERELEASE]})?${o[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:${o[i.PRERELEASELOOSE]})?${o[i.BUILD]}?)?)?`),c("XRANGE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",o[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[i.LONECARET]}${o[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[i.LONECARET]}${o[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[i.GTLT]}\\s*(${o[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]}|${o[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[i.XRANGEPLAIN]})\\s+-\\s+(${o[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Gt.register("bgOMw",((e,t)=>{e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}})),Gt.register("jkMsx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Gt.register("7qUJS",(function(e,t){var r=Gt("jkMsx"),n=Gt("bgOMw"),s=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,i=Gt("bikcG"),a=i.re,c=i.t,l=Gt("eUvvN"),u=Gt("12NXI").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||0>this.major)throw new TypeError("Invalid major version");if(this.minor>o||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>o||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&o>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof 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 n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return u(n,s)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const n=this.build[t],s=e.build[t];if(r("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return-1;if(n!==s)return u(n,s)}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})),Gt.register("eUvvN",((e,t)=>{const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}})),Gt.register("12NXI",((e,t)=>{const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),s=r.test(t);return n&&s&&(e=+e,t=+t),e===t?0:n&&!s?-1:s&&!n?1:t>e?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers(e,t){return n(t,e)}}})),Gt.register("gdrva",((e,t)=>{var r=Gt("bgOMw").MAX_LENGTH,n=Gt("bikcG"),s=n.re,o=n.t,i=Gt("7qUJS"),a=Gt("eUvvN");e.exports=(e,t)=>{if(t=a(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?s[o.LOOSE]:s[o.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),Gt.register("fVzwP",((e,t)=>{var r=Gt("gdrva");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}})),Gt.register("hOYls",((e,t)=>{var r=Gt("gdrva");e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}})),Gt.register("dGcr6",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t,n,s)=>{"string"==typeof n&&(s=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,s).version}catch(e){return null}}})),Gt.register("bBssn",((e,t)=>{var r=Gt("gdrva"),n=Gt("jXghC");e.exports=(e,t)=>{if(n(e,t))return null;{const n=r(e),s=r(t),o=n.prerelease.length||s.prerelease.length,i=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==s[e])return i+e;return a}}})),Gt.register("jXghC",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>0===r(e,t,n)})),Gt.register("howpO",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))})),Gt.register("fB2B7",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t)=>new r(e,t).major})),Gt.register("bye2i",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t)=>new r(e,t).minor})),Gt.register("87ZGF",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t)=>new r(e,t).patch})),Gt.register("4agny",((e,t)=>{var r=Gt("gdrva");e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}})),Gt.register("zcbgY",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>r(t,e,n)})),Gt.register("iGBo4",((e,t)=>{var r=Gt("howpO");e.exports=(e,t)=>r(e,t,!0)})),Gt.register("80ezM",((e,t)=>{var r=Gt("7qUJS");e.exports=(e,t,n)=>{const s=new r(e,n),o=new r(t,n);return s.compare(o)||s.compareBuild(o)}})),Gt.register("4qmtg",((e,t)=>{var r=Gt("80ezM");e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))})),Gt.register("4pjXu",((e,t)=>{var r=Gt("80ezM");e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))})),Gt.register("6KPS4",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>r(e,t,n)>0})),Gt.register("lr5pz",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>0>r(e,t,n)})),Gt.register("fqqGA",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>0!==r(e,t,n)})),Gt.register("5cRW4",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>r(e,t,n)>=0})),Gt.register("fwsB7",((e,t)=>{var r=Gt("howpO");e.exports=(e,t,n)=>0>=r(e,t,n)})),Gt.register("823yM",((e,t)=>{var r=Gt("jXghC"),n=Gt("fqqGA"),s=Gt("6KPS4"),o=Gt("5cRW4"),i=Gt("lr5pz"),a=Gt("fwsB7");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return n(e,c,l);case">":return s(e,c,l);case">=":return o(e,c,l);case"<":return i(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Gt.register("1YYsi",((e,t)=>{var r=Gt("7qUJS"),n=Gt("gdrva"),s=Gt("bikcG"),o=s.re,i=s.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let s=null;if((t=t||{}).rtl){let t;for(;(t=o[i.COERCERTL].exec(e))&&(!s||s.index+s[0].length!==e.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),o[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[i.COERCERTL].lastIndex=-1}else s=e.match(o[i.COERCE]);return null===s?null:n(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,t)}})),Gt.register("eR6XK",(function(e,t){const r=Symbol();class n{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))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),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||s||o&&i||a||l}}e.exports=n;var s=Gt("eUvvN"),o=Gt("bikcG"),i=o.re,a=o.t,c=Gt("823yM"),l=Gt("jkMsx"),u=Gt("7qUJS"),d=Gt("hvUff")})),Gt.register("hvUff",(function(e,t){class r{constructor(e,t){if(t=s(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)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=n.get(t);if(r)return r;const s=this.options.loose;e=e.replace(s?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],R(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),i("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],h)).replace(l[u.CARETTRIM],p)).split(/\s+/).join(" ")).split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));s&&(a=a.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),i("range list",a);const c=new Map,m=a.map((e=>new o(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const g=[...c.values()];return n.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(A(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const n=new(Gt("6MLkQ"))({max:1e3});var s=Gt("eUvvN"),o=Gt("eR6XK"),i=Gt("jkMsx"),a=Gt("7qUJS"),c=Gt("bikcG"),l=c.re,u=c.t,d=c.comparatorTrimReplace,h=c.tildeTrimReplace,p=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},y=(e,t)=>(i("comp",e,t),e=E(e,t),i("caret",e),e=b(e,t),i("tildes",e),e=_(e,t),i("xrange",e),e=O(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,n,s,o)=>{let a;return i("tilde",e,t,r,n,s,o),v(r)?a="":v(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:v(s)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(i("replaceTilde pr",o),a=`>=${r}.${n}.${s}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,i("tilde return",a),a})),E=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{i("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,n,s,o,a)=>{let c;return i("caret",e,t,n,s,o,a),v(n)?c="":v(s)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(o)?c="0"===n?`>=${n}.${s}.0${r} <${n}.${+s+1}.0-0`:`>=${n}.${s}.0${r} <${+n+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===n?"0"===s?`>=${n}.${s}.${o}-${a} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o}-${a} <${+n+1}.0.0-0`):(i("no pr"),c="0"===n?"0"===s?`>=${n}.${s}.${o}${r} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}${r} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o} <${+n+1}.0.0-0`),i("caret return",c),c}))},_=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,n,s,o,a,c)=>{i("xRange",e,r,n,s,o,a,c);const l=v(s),u=l||v(o),d=u||v(a);return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(o=0),a=0,">"===n?(n=">=",u?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?s=+s+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+s}.${o}.${a}${c}`):u?r=`>=${s}.0.0${c} <${+s+1}.0.0-0`:d&&(r=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),i("xRange return",r),r})),O=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),T=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),R=e=>(t,r,n,s,o,i,a,c,l,u,d,h,p)=>`${r=v(n)?"":v(s)?`>=${n}.0.0${e?"-0":""}`:v(o)?`>=${n}.${s}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${c=v(l)?"":v(u)?`<${+l+1}.0.0-0`:v(d)?`<${l}.${+u+1}.0-0`:h?`<=${l}.${u}.${d}-${h}`:e?`<${l}.${u}.${+d+1}-0`:"<="+c}`.trim(),A=(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(i(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}})),Gt.register("6MLkQ",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new n.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),s=new Set,o=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},i=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:n}=f,{get:s}=Object.getOwnPropertyDescriptor(n,e);l(r,e+" method",`cache.${t}()`,s)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!s.has(e),l=(e,t,r,n)=>{s.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,n)},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:h:Uint32Array:Uint16Array:Uint8Array:null;class h extends Array{constructor(e){super(e),this.fill(0)}}class p{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:n=1,ttlAutopurge:i,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:m,dispose:g,disposeAfter:y,noDisposeOnSet:v,noUpdateTTL:b,maxSize:w=0,sizeCalculation:E,fetchMethod:x}=e,{length:_,maxAge:S,stale:O}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const T=t?d(t):Array;if(!T)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=w,this.sizeCalculation=E||_,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=x||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(t),this.prev=new T(t),this.head=0,this.tail=0,this.free=new p(t),this.initialFill=1,this.size=0,"function"==typeof g&&(this.dispose=g),"function"==typeof y?(this.disposeAfter=y,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!v,this.noUpdateTTL=!!b,0!==this.maxSize){if(!u(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!O,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!h,this.ttlResolution=u(n)||0===n?n:1,this.ttlAutopurge=!!i,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";c(e)&&(s.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}O&&o("stale","allowStale"),S&&o("maxAge","ttl"),_&&o("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new h(this.max),this.starts=new h(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 n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(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 h(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,r,n)=>{if(!u(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,n)=>{this.sizes[e]=n;const s=this.maxSize-this.sizes[e];for(;this.calculatedSize>s;)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,n){}requireSize(e,t,r,n){if(r||n)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 i("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],n={value:this.valList[t]};this.ttls&&(n.ttl=this.ttls[t]),this.sizes&&(n.size=this.sizes[t]),e.unshift([r,n])}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:n=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:i=this.noUpdateTTL}={}){s=this.requireSize(e,t,s,o);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,s),i=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():n||(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,s)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),i||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],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,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 s=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(s))return s;const o=new n,i={signal:o.signal,options:r},a=Promise.resolve(this.fetchMethod(e,s,i)).then((t=>(o.signal.aborted||this.set(e,t,i.options),t)));return a.__abortController=o,a.__staleWhileFetching=s,void 0===t?(this.set(e,a,i.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:n=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:i=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:n,noDisposeOnSet:s,size:o,sizeCalculation:i,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const n=this.valList[l];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),n;const s=this.backgroundFetch(e,l,c);return t&&void 0!==s.__staleWhileFetching?s.__staleWhileFetching:s}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const n=this.keyMap.get(e);if(void 0!==n){const s=this.valList[n],o=this.isBackgroundFetch(s);if(this.isStale(n))return o?t?s.__staleWhileFetching:void 0:(this.delete(e),t?s:void 0);if(o)return;return this.moveToTail(n),r&&this.updateItemAge(n),s}}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 i("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 i("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),Gt.register("c8FZS",((e,t)=>{var r=Gt("hvUff");e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}})),Gt.register("2J2hR",((e,t)=>{var r=Gt("hvUff");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Gt.register("lbfMG",((e,t)=>{var r=Gt("7qUJS"),n=Gt("hvUff");e.exports=(e,t,s)=>{let o=null,i=null,a=null;try{a=new n(t,s)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new r(o,s)))})),o}})),Gt.register("5wbuE",((e,t)=>{var r=Gt("7qUJS"),n=Gt("hvUff");e.exports=(e,t,s)=>{let o=null,i=null,a=null;try{a=new n(t,s)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new r(o,s)))})),o}})),Gt.register("hZRNG",((e,t)=>{var r=Gt("7qUJS"),n=Gt("hvUff"),s=Gt("6KPS4");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o))return o;if(o=new r("0.0.0-0"),e.test(o))return o;o=null;for(let t=0;e.set.length>t;++t){let n=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">=":n&&!s(t,n)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!n||o&&!s(o,n)||(o=n)}return o&&e.test(o)?o:null}})),Gt.register("fqnzG",((e,t)=>{var r=Gt("hvUff");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Gt.register("77bPN",((e,t)=>{var r=Gt("7qUJS"),n=Gt("eR6XK");const{ANY:s}=n;var o=Gt("hvUff"),i=Gt("c8FZS"),a=Gt("6KPS4"),c=Gt("lr5pz"),l=Gt("fwsB7"),u=Gt("5cRW4");e.exports=(e,t,d,h)=>{let p,f,m,g,y;switch(e=new r(e,h),t=new o(t,h),d){case">":p=a,f=l,m=c,g=">",y=">=";break;case"<":p=c,f=u,m=a,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,h))return!1;for(let r=0;t.set.length>r;++r){let o=null,i=null;if(t.set[r].forEach((e=>{e.semver===s&&(e=new n(">=0.0.0")),o=o||e,i=i||e,p(e.semver,o.semver,h)?o=e:m(e.semver,i.semver,h)&&(i=e)})),o.operator===g||o.operator===y)return!1;if((!i.operator||i.operator===g)&&f(e,i.semver))return!1;if(i.operator===y&&m(e,i.semver))return!1}return!0}})),Gt.register("gD8Tz",((e,t)=>{var r=Gt("77bPN");e.exports=(e,t,n)=>r(e,t,">",n)})),Gt.register("bpPww",((e,t)=>{var r=Gt("77bPN");e.exports=(e,t,n)=>r(e,t,"<",n)})),Gt.register("cHIUn",((e,t)=>{var r=Gt("hvUff");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))})),Gt.register("k8aCs",((e,t)=>{var r=Gt("c8FZS"),n=Gt("howpO");e.exports=(e,t,s)=>{const o=[];let i=null,a=null;const c=e.sort(((e,t)=>n(e,t,s)));for(const e of c)r(e,t,s)?(a=e,i||(i=e)):(a&&o.push([i,a]),a=null,i=null);i&&o.push([i,null]);const l=[];for(const[e,t]of o)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Gt.register("388OD",((e,t)=>{var r=Gt("hvUff"),n=Gt("eR6XK");const{ANY:s}=n;var o=Gt("c8FZS"),i=Gt("howpO");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===s){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const a=new Set;let u,d,h,p,f,m,g;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(h=i(u.semver,d.semver,r),h>0)return null;if(0===h&&(">="!==u.operator||"<="!==d.operator))return null}for(const e of a){if(u&&!o(e,u+"",r))return null;if(d&&!o(e,d+"",r))return null;for(const n of t)if(!o(e,n+"",r))return!1;return!0}let y=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,v=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;y&&1===y.prerelease.length&&"<"===d.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)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(p=c(u,e,r),p===e&&p!==u)return!1}else if(">="===u.operator&&!o(u.semver,e+"",r))return!1;if(d)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(f=l(d,e,r),f===e&&f!==d)return!1}else if("<="===d.operator&&!o(d.semver,e+"",r))return!1;if(!e.operator&&(d||u)&&0!==h)return!1}return!(u&&m&&!d&&0!==h||d&&g&&!u&&0!==h||v||y)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:0>n||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return 0>n?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let s=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,n);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}})),Gt.register("iFKS7",((e,t)=>{var r=Gt("joDHm"),n=Gt("inTPA");e.exports=(e,t,s)=>{var o=t&&s||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;16>a;++a)t[o+a]=i[a];return t||n(i)}})),Gt.register("joDHm",((e,t)=>{e.exports=()=>It.randomBytes(16)})),Gt.register("inTPA",((e,t)=>{for(var r=[],n=0;256>n;++n)r[n]=(n+256).toString(16).substr(1);e.exports=(e,t)=>{var n=t||0;return""+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}})),Gt.register("ca0ts",(function(e,t){"use strict";function r(e,t,r){return i(this,void 0,void 0,(function*(){const n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const s=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(s,t,r).exec()}))}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=o(Gt("e0fPv"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,n){var s,o;return i(this,void 0,void 0,(function*(){let i="",a="";const c=new Pt.StringDecoder("utf8"),l=new Pt.StringDecoder("utf8"),u=null===(s=null==n?void 0:n.listeners)||void 0===s?void 0:s.stdout,d=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stderr,h=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout(e){i+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),p=yield r(e,t,Object.assign(Object.assign({},n),{listeners:h}));return i+=c.end(),a+=l.end(),{exitCode:p,stdout:i,stderr:a}}))}})),Gt.register("e0fPv",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 s in e)"default"!==s&&Object.hasOwnProperty.call(e,s)&&r(t,e,s);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=s(wt),a=s(Tt),c=s(Ct),l=s(Et),u=s(Gt("fvrnx")),d=s(Gt("2GOko")),h="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(),n=this._getSpawnArgs(e);let s=t?"":"[command]";if(h)if(this._isCmdFile()){s+=r;for(const e of n)s+=" "+e}else if(e.windowsVerbatimArguments){s+=`"${r}"`;for(const e of n)s+=" "+e}else{s+=this._windowsQuoteCmdArg(r);for(const e of n)s+=" "+this._windowsQuoteCmdArg(e)}else{s+=r;for(const e of n)s+=" "+e}return s}_processLineBuffer(e,t,r){try{let n=t+""+e,s=n.indexOf(i.EOL);for(;s>-1;)r(n.substring(0,s)),n=n.substring(s+i.EOL.length),s=n.indexOf(i.EOL);return n}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return h&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(h&&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 n of e)if(t.some((e=>e===n))){r=!0;break}if(!r)return e;let n='"',s=!0;for(let t=e.length;t>0;t--)n+=e[t-1],s&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(s=!0,n+='"'):s=!1;return n+='"',n.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 n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return t+='"',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 o(this,void 0,void 0,(function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>o(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)+i.EOL);const n=new p(r,this.toolPath);if(n.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 s=this._getSpawnFileName(),o=c.spawn(s,this._getSpawnArgs(r),this._getSpawnOptions(this.options,s));let a="";o.stdout&&o.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(o.stderr&&o.stderr.on("data",(e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),o.on("error",(e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete()})),o.on("exit",(e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete()})),o.on("close",(e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete()})),n.on("done",((r,n)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),o.removeAllListeners(),r?t(r):e(n)})),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){s&&'"'!==e&&(o+="\\"),o+=e,s=!1}const r=[];let n=!1,s=!1,o="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&s?t(a):"\\"===a&&n?s=!0:" "!==a||n?t(a):o.length>0&&(r.push(o),o=""):s?t(a):n=!n}return o.length>0&&r.push(o.trim()),r};class p 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=$t.setTimeout(p.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())}}})),Gt.register("d0ovd",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.feac98a0.js")).then((()=>Gt("apy8x")))})),Gt.register("fxp1R",((e,t)=>{"disable"===process.env.READABLE_STREAM&&kt?(e.exports=kt,(t=e.exports=kt.Readable).Readable=kt.Readable,t.Writable=kt.Writable,t.Duplex=kt.Duplex,t.Transform=kt.Transform,t.PassThrough=kt.PassThrough,t.Stream=kt):((t=e.exports=Gt("g51ol")).Stream=kt||t,t.Readable=t,t.Writable=Gt("kUGl4"),t.Duplex=Gt("9sAaU"),t.Transform=Gt("k6Y8J"),t.PassThrough=Gt("3lyKu"))})),Gt.register("g51ol",(function(e,t){"use strict";function r(e,t){var r=t instanceof(b=b||Gt("9sAaU"));this.objectMode=!!(e=e||{}).objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,s=e.readableHighWaterMark;this.highWaterMark=n||0===n?n:r&&(s||0===s)?s:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new A,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(R||(R=Gt("gD0OV").StringDecoder),this.decoder=new R(e.encoding),this.encoding=e.encoding)}function n(e){if(b=b||Gt("9sAaU"),!(this instanceof n))return new n(e);this._readableState=new r(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),x.call(this)}function s(e,t,r,n,s){var i,c=e._readableState;return null===t?(c.reading=!1,((e,t)=>{if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,a(e)}})(e,c)):(s||(i=((e,t)=>{var r,n;return _.isBuffer(n=t)||n instanceof S||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r})(c,t)),i?e.emit("error",i):c.objectMode||t&&t.length>0?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===_.prototype||(t=(e=>_.from(e))(t)),n?c.endEmitted?e.emit("error",Error("stream.unshift() after end event")):o(e,c,t,!0):c.ended?e.emit("error",Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?o(e,c,t,!1):l(e,c)):o(e,c,t,!1))):n||(c.reading=!1)),(e=>!e.ended&&(e.needReadable||e.highWaterMark>e.length||0===e.length))(c)}function o(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&a(e)),l(e,t)}function i(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(e=>(P>e?(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++):e=P,e))(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function a(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(T("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?v.nextTick(c,e):c(e))}function c(e){T("emit readable"),e.emit("readable"),p(e)}function l(e,t){t.readingMore||(t.readingMore=!0,v.nextTick(u,e,t))}function u(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.highWaterMark>t.length&&(T("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function d(e){T("readable nexttick read 0"),e.read(0)}function h(e,t){t.reading||(T("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),p(e),t.flowing&&!t.reading&&e.read(0)}function p(e){var t=e._readableState;for(T("flow",t.flowing);t.flowing&&null!==e.read(););}function f(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():e&&t.length>e?r=((e,t,r)=>{var n;return t.head.data.length>e?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?((e,t)=>{var r=t.head,n=1,s=r.data;for(e-=s.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(s+=i===o.length?o:o.slice(0,e),0==(e-=i)){i===o.length?(++n,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=o.slice(i));break}++n}return t.length-=n,s})(e,t):((e,t)=>{var r=_.allocUnsafe(e),n=t.head,s=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,i=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,i),0==(e-=i)){i===o.length?(++s,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=o.slice(i));break}++s}return t.length-=s,r})(e,t),n})(e,t.buffer,t.decoder):(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()),r);var r}function m(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,v.nextTick(g,t,e))}function g(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function y(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}var v=Gt("dyWGi");e.exports=n;var b,w=Gt("3fzzD");n.ReadableState=r;var E=(e,t)=>e.listeners(t).length,x=Gt("5BjC0"),_=Gt("44hFV").Buffer,S=Bt.Uint8Array||(()=>{}),O=Object.create(Gt("2hJf0"));O.inherits=Gt("8MQIj");var T=void 0;T=At&&At.debuglog?At.debuglog("stream"):()=>{};var R,A=Gt("dvrCl"),C=Gt("ktlsh");O.inherits(n,x);var I=["error","close","destroy","pause","resume"];Object.defineProperty(n.prototype,"destroyed",{get(){return void 0!==this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}}),n.prototype.destroy=C.destroy,n.prototype._undestroy=C.undestroy,n.prototype._destroy=function(e,t){this.push(null),t(e)},n.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=_.from(e,t),t=""),r=!0),s(this,e,t,!1,r)},n.prototype.unshift=function(e){return s(this,e,null,!0,!1)},n.prototype.isPaused=function(){return!1===this._readableState.flowing},n.prototype.setEncoding=function(e){return R||(R=Gt("gD0OV").StringDecoder),this._readableState.decoder=new R(e),this._readableState.encoding=e,this};var P=8388608;n.prototype.read=function(e){T("read",e);var t=this._readableState,r=e=parseInt(e,10);if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return T("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?m(this):a(this),null;if(0===(e=i(e,t))&&t.ended)return 0===t.length&&m(this),null;var n,s=t.needReadable;return T("need readable",s),(0===t.length||t.highWaterMark>t.length-e)&&T("length less than watermark",s=!0),t.ended||t.reading?T("reading or ended",s=!1):s&&(T("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=i(r,t))),null===(n=e>0?f(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&m(this)),null!==n&&this.emit("data",n),n},n.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},n.prototype.pipe=function(e,t){function r(){T("onend"),e.end()}function n(t){T("ondata"),f=!1,!1!==e.write(t)||f||((1===l.pipesCount&&l.pipes===e||l.pipesCount>1&&-1!==y(l.pipes,e))&&!h&&(T("false write response, pause",c._readableState.awaitDrain),c._readableState.awaitDrain++,f=!0),c.pause())}function s(t){T("onerror",t),a(),e.removeListener("error",s),0===E(e,"error")&&e.emit("error",t)}function o(){e.removeListener("finish",i),a()}function i(){T("onfinish"),e.removeListener("close",o),a()}function a(){T("unpipe"),c.unpipe(e)}var c=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=e;break;case 1:l.pipes=[l.pipes,e];break;default:l.pipes.push(e)}l.pipesCount+=1,T("pipe count=%d opts=%j",l.pipesCount,t);var u=t&&!1===t.end||e===process.stdout||e===process.stderr?a:r;l.endEmitted?v.nextTick(u):c.once("end",u),e.on("unpipe",(function t(u,p){T("onunpipe"),u===c&&p&&!1===p.hasUnpiped&&(p.hasUnpiped=!0,T("cleanup"),e.removeListener("close",o),e.removeListener("finish",i),e.removeListener("drain",d),e.removeListener("error",s),e.removeListener("unpipe",t),c.removeListener("end",r),c.removeListener("end",a),c.removeListener("data",n),h=!0,!l.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}));var d=(e=>()=>{var t=e._readableState;T("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&E(e,"data")&&(t.flowing=!0,p(e))})(c);e.on("drain",d);var h=!1,f=!1;return c.on("data",n),((e,t,r)=>{if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?w(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)})(e,"error",s),e.once("close",o),e.once("finish",i),e.emit("pipe",c),l.flowing||(T("pipe resume"),c.resume()),e},n.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;s>o;o++)n[o].emit("unpipe",this,r);return this}var i=y(t.pipes,e);return-1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},n.prototype.addListener=n.prototype.on=function(e,t){var r=x.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&a(this):v.nextTick(d,this))}return r},n.prototype.resume=function(){var e=this._readableState;return e.flowing||(T("resume"),e.flowing=!0,((e,t)=>{t.resumeScheduled||(t.resumeScheduled=!0,v.nextTick(h,e,t))})(this,e)),this},n.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this},n.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var s in e.on("end",(()=>{if(T("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(s=>{T("wrapped data"),r.decoder&&(s=r.decoder.write(s)),r.objectMode&&null==s||(r.objectMode||s&&s.length)&&(t.push(s)||(n=!0,e.pause()))})),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=(t=>function(){return e[t].apply(e,arguments)})(s));for(var o=0;I.length>o;o++)e.on(I[o],this.emit.bind(this,I[o]));return this._read=t=>{T("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(n.prototype,"readableHighWaterMark",{enumerable:!1,get(){return this._readableState.highWaterMark}}),n._fromList=f})),Gt.register("dyWGi",((e,t)=>{"use strict";e.exports="undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var s,o,i=arguments.length;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((()=>{e.call(null,t)}));case 3:return process.nextTick((()=>{e.call(null,t,r)}));case 4:return process.nextTick((()=>{e.call(null,t,r,n)}));default:for(s=Array(i-1),o=0;s.length>o;)s[o++]=arguments[o];return process.nextTick((()=>{e.apply(null,s)}))}}}:process})),Gt.register("3fzzD",((e,t)=>{var r={}.toString;e.exports=Array.isArray||(e=>"[object Array]"==r.call(e))})),Gt.register("5BjC0",((e,t)=>{e.exports=kt})),Gt.register("44hFV",((e,t)=>{function r(e,t){for(var r in e)t[r]=e[r]}function n(e,t,r){return s(e,t,r)}var s=Nt.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=Nt:(r(Nt,e.exports),e.exports.Buffer=n),r(s,n),n.from=(e,t,r)=>{if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},n.alloc=(e,t,r)=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},n.allocUnsafe=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},n.allocUnsafeSlow=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return Nt.SlowBuffer(e)}})),Gt.register("2hJf0",((t,r)=>{function n(e){return{}.toString.call(e)}var s,o,i,a,c,l,u,d,h,p,f,m,g,y,v;e(t.exports,"isArray",(()=>s),(e=>s=e)),e(t.exports,"isBoolean",(()=>o),(e=>o=e)),e(t.exports,"isNull",(()=>i),(e=>i=e)),e(t.exports,"isNullOrUndefined",(()=>a),(e=>a=e)),e(t.exports,"isNumber",(()=>c),(e=>c=e)),e(t.exports,"isString",(()=>l),(e=>l=e)),e(t.exports,"isSymbol",(()=>u),(e=>u=e)),e(t.exports,"isUndefined",(()=>d),(e=>d=e)),e(t.exports,"isRegExp",(()=>h),(e=>h=e)),e(t.exports,"isObject",(()=>p),(e=>p=e)),e(t.exports,"isDate",(()=>f),(e=>f=e)),e(t.exports,"isError",(()=>m),(e=>m=e)),e(t.exports,"isFunction",(()=>g),(e=>g=e)),e(t.exports,"isPrimitive",(()=>y),(e=>y=e)),e(t.exports,"isBuffer",(()=>v),(e=>v=e)),s=e=>Array.isArray?Array.isArray(e):"[object Array]"===n(e),o=e=>"boolean"==typeof e,i=e=>null===e,a=e=>null==e,c=e=>"number"==typeof e,l=e=>"string"==typeof e,u=e=>"symbol"==typeof e,d=e=>void 0===e,h=e=>"[object RegExp]"===n(e),p=e=>"object"==typeof e&&null!==e,f=e=>"[object Date]"===n(e),m=e=>"[object Error]"===n(e)||e instanceof Error,g=e=>"function"==typeof e,y=e=>null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e,v=Nt.Buffer.isBuffer})),Gt.register("8MQIj",((e,t)=>{try{var r=$665bb24ae9025433$import$7debb50ef11d5e0b;if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=Gt("7aQGq")}})),Gt.register("7aQGq",((e,t)=>{e.exports="function"==typeof Object.create?(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),Gt.register("dvrCl",(function(e,t){"use strict";var r=Gt("44hFV").Buffer;e.exports=function(){function e(){((e,t)=>{if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")})(0,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,s=0;n;)n.data.copy(t,s),s+=n.data.length,n=n.next;return t},e}(),At&&At.inspect&&At.inspect.custom&&(e.exports.prototype[At.inspect.custom]=function(){var e=At.inspect({length:this.length});return this.constructor.name+" "+e})})),Gt.register("ktlsh",(function(e,t){"use strict";function r(e,t){e.emit("error",t)}var n=Gt("dyWGi");e.exports={destroy(e,t){var s=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(r,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(e=>{!t&&e?(n.nextTick(r,s,e),s._writableState&&(s._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}})),Gt.register("9sAaU",(function(e,t){"use strict";function r(e){if(!(this instanceof r))return new r(e);c.call(this,e),l.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended||o.nextTick(s,this)}function s(e){e.end()}var o=Gt("dyWGi"),i=Object.keys||(e=>{var t=[];for(var r in e)t.push(r);return t});e.exports=r;var a=Object.create(Gt("2hJf0"));a.inherits=Gt("8MQIj");var c=Gt("g51ol"),l=Gt("kUGl4");a.inherits(r,c);for(var u=i(l.prototype),d=0;u.length>d;d++){var h=u[d];r.prototype[h]||(r.prototype[h]=l.prototype[h])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),r.prototype._destroy=function(e,t){this.push(null),this.end(),o.nextTick(t,e)}})),Gt.register("kUGl4",(function(e,t){"use strict";function r(e){var t=this;this.next=null,this.entry=null,this.finish=()=>{((e,t,r)=>{var n=e.entry;for(e.entry=null;n;){var s=n.callback;t.pendingcb--,s(void 0),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e})(t,e)}}function n(){}function s(e,t){p=p||Gt("9sAaU");var n=t instanceof p;this.objectMode=!!(e=e||{}).objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var s=e.highWaterMark,o=e.writableHighWaterMark;this.highWaterMark=s||0===s?s:n&&(o||0===o)?o:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===e.decodeStrings),this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=e=>{((e,t)=>{var r=e._writableState,n=r.sync,s=r.writecb;if((e=>{e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0})(r),t)((e,t,r,n,s)=>{--t.pendingcb,r?(h.nextTick(s,n),h.nextTick(d,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(s(n),e._writableState.errorEmitted=!0,e.emit("error",n),d(e,t))})(e,r,n,t,s);else{var o=l(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||c(e,r),n?f(a,e,r,o,s):a(e,r,o,s)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function o(e){if(p=p||Gt("9sAaU"),!(g.call(o,this)||this instanceof p))return new o(e);this._writableState=new s(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),v.call(this)}function i(e,t,r,n,s,o,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,r?e._writev(s,t.onwrite):e._write(s,o,t.onwrite),t.sync=!1}function a(e,t,r,n){r||((e,t)=>{0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))})(e,t),t.pendingcb--,n(),d(e,t)}function c(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var s=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)s[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;s.allBuffers=c,i(e,t,!0,t.length,s,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk;if(i(e,t,!1,t.objectMode?1:l.length,l,n.encoding,n.callback),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function l(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function u(e,t){e._final((r=>{t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),d(e,t)}))}function d(e,t){var r=l(t);return r&&(((e,t)=>{t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,h.nextTick(u,e,t)):(t.prefinished=!0,e.emit("prefinish")))})(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}var h=Gt("dyWGi");e.exports=o;var p,f=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:h.nextTick;o.WritableState=s;var m=Object.create(Gt("2hJf0"));m.inherits=Gt("8MQIj");var g,y={deprecate:Gt("ldOxW")},v=Gt("5BjC0"),b=Gt("44hFV").Buffer,w=Bt.Uint8Array||(()=>{}),E=Gt("ktlsh");m.inherits(o,v),s.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(s.prototype,"buffer",{get:y.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(o,Symbol.hasInstance,{value(e){return!!g.call(this,e)||this===o&&e&&e._writableState instanceof s}})):g=function(e){return e instanceof this},o.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},o.prototype.write=function(e,t,r){var s,o=this._writableState,a=!1,c=!o.objectMode&&(b.isBuffer(s=e)||s instanceof w);return c&&!b.isBuffer(e)&&(e=(e=>b.from(e))(e)),"function"==typeof t&&(r=t,t=null),c?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=n),o.ended?((e,t)=>{var r=Error("write after end");e.emit("error",r),h.nextTick(t,r)})(this,r):(c||((e,t,r,n)=>{var s=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),h.nextTick(n,o),s=!1),s})(this,o,e,r))&&(o.pendingcb++,a=((e,t,r,n,s,o)=>{if(!r){var a=((e,t,r)=>(e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=b.from(t,r)),t))(t,n,s);n!==a&&(r=!0,s="buffer",n=a)}var c=t.objectMode?1:n.length;t.length+=c;var l=t.highWaterMark>t.length;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:s,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else i(e,t,!1,c,n,s,o);return l})(this,o,c,e,t,r)),a},o.prototype.cork=function(){this._writableState.corked++},o.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||c(this,e))},o.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1>=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get(){return this._writableState.highWaterMark}}),o.prototype._write=(e,t,r)=>{r(Error("_write() is not implemented"))},o.prototype._writev=null,o.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||((e,t,r)=>{t.ending=!0,d(e,t),r&&(t.finished?h.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1})(this,n,r)},Object.defineProperty(o.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),o.prototype.destroy=E.destroy,o.prototype._undestroy=E.undestroy,o.prototype._destroy=function(e,t){this.end(),t(e)}})),Gt.register("ldOxW",((e,t)=>{e.exports=At.deprecate})),Gt.register("gD0OV",(function(t,r){function n(e){var t;switch(this.encoding=(e=>{var t=(e=>{if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}})(e);if("string"!=typeof t&&(p.isEncoding===f||!f(e)))throw Error("Unknown encoding: "+e);return t||e})(e),this.encoding){case"utf16le":this.text=i,this.end=a,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=u,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=p.allocUnsafe(t)}function s(e){return e>127?e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2:0}function o(e){var t=this.lastTotal-this.lastNeed,r=((e,t,r)=>{if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}})(this,e);return void 0!==r?r:this.lastNeed>e.length?(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length)):(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal))}function i(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&56319>=n)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}var h;e(t.exports,"StringDecoder",(()=>h),(e=>h=e));var p=Gt("44hFV").Buffer,f=p.isEncoding||(e=>{switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}});h=n,n.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return e.length>r?t?t+this.text(e,r):this.text(e,r):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var r=((e,t,r)=>{var n=t.length-1;if(r>n)return 0;var o=s(t[n]);return 0>o?--n(o=s(t[n]))?--n(o=s(t[n]))?0:(o>0&&(2===o?o=0:e.lastNeed=o-3),o):(o>0&&(e.lastNeed=o-2),o):(o>0&&(e.lastNeed=o-1),o)})(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},n.prototype.fillLast=function(e){if(e.length>=this.lastNeed)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}})),Gt.register("k6Y8J",(function(e,t){"use strict";function r(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.highWaterMark>s.length)&&this._read(s.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e);i.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(((t,r)=>{o(e,t,r)})):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}e.exports=n;var i=Gt("9sAaU"),a=Object.create(Gt("2hJf0"));a.inherits=Gt("8MQIj"),a.inherits(n,i),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},n.prototype._transform=(e,t,r)=>{throw Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var s=this._readableState;(n.needTransform||s.needReadable||s.highWaterMark>s.length)&&this._read(s.highWaterMark)}},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,(e=>{t(e),r.emit("close")}))}})),Gt.register("3lyKu",(function(e,t){"use strict";function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}e.exports=r;var n=Gt("k6Y8J"),s=Object.create(Gt("2hJf0"));s.inherits=Gt("8MQIj"),s.inherits(r,n),r.prototype._transform=(e,t,r)=>{r(null,e)}})),Gt.register("2r32K",((e,t)=>{"use strict";e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()})),Gt.register("fdKVL",((e,t)=>{})),Gt.register("cReTf",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function n(e,t,r){const n=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let n=null;if(r.some((e=>{if(void 0!==t[e])return n=t[e],!0})),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n})(r);return s.pluralize(r.locale,t,n[e]).replace("{0}",t)}var s=Gt("5FRs7"),o=Gt("3Zbea");const i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],a={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,s,a){return((e,t,s)=>{if(((e,t)=>{const{autoload:n}=t;if(!c[e]){if(!o||!n)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)}})(s.locale,{autoload:s.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 n=[];return i.some((e=>{const t=e[0],s=e[1],o=Math.floor(r/s);if(r-=o*s,n.push([t,o]),0>=r)return!0})),n})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(n(t,r,s)),l.length>=s.span)break}return l.join(s.delimiter)})(t,s,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Gt.register("5FRs7",((e,t)=>{e.exports=Gt("j5MHF")})),Gt.register("j5MHF",(function(e,t){var r=Et.resolve(__dirname,"../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){"use strict";function t(e,t,r){if(n(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var o=s[e](t);return void 0!==r[o]?r[o]:null}function n(e){(e=>void 0!==s[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var s={},o={create(e){return n(e),{pluralize(r,n){return t(e,r,n)}}},addLocale(e,t){s[e]=t},pluralize:t};void 0!==e.exports?e.exports=o:this.numerous=o}).call(e.exports)})),Gt.register("3Zbea",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),e(module.exports,"main",(()=>mt)),e(module.exports,"parseArgs",(()=>gt)),e(module.exports,"getCompilerInfo",(()=>yt));var zt=Gt("04fde"),Vt={};const Wt="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Yt=Wt?";":":";var Xt,Kt={};Xt="win32"===process.platform||Bt.TESTING_WINDOWS?Gt("ftrAD"):Gt("9yF3I"),Kt=r,r.sync=(e,t)=>{try{return Xt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Jt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Qt=(e,t)=>{const r=t.colon||Yt,n=e.match(/\//)||Wt&&e.match(/\\/)?[""]:[...Wt?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],s=Wt?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Wt?s.split(r):[""];return Wt&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:s}},Zt=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:s,pathExtExe:o}=Qt(e,t),i=[],a=r=>new Promise(((s,o)=>{if(r===n.length)return t.all&&i.length?s(i):o(Jt(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Et.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;s(c(d,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===s.length)return l(a(r+1));const d=s[n];Kt(e+d,{pathExt:o},((s,o)=>{if(!s&&o){if(!t.all)return l(e+d);i.push(e+d)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let er;Vt=Zt,Zt.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:s}=Qt(e,t),o=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=Et.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){const r=u+n[e];try{if(Kt.sync(r,{pathExt:s})){if(!t.all)return r;o.push(r)}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw Jt(e)};var tr,rr={},nr={},sr={},or={};const ir=(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 ar,cr;(or=ir).default=ir,tr=e=>s(e)||s(e,!0);const lr=/([()\][%!^"`<>&|;, *?])/g;ar=e=>e.replace(lr,"^$1"),cr=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(lr,"^$1"),t&&(e=e.replace(lr,"^$1")),e);var ur,dr,hr;dr=/^#!(.*)/,ur=(e="")=>{const t=e.match(dr);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return"env"===s?n:n?`${s} ${n}`:s},hr=e=>{const t=Buffer.alloc(150);let r;try{r=xt.openSync(e,"r"),xt.readSync(r,t,0,150,0),xt.closeSync(r)}catch(e){}return ur(""+t)};const pr="win32"===process.platform,fr=/\.(?:com|exe)$/i,mr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;sr=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!pr)return e;const t=(e=>{e.file=tr(e);const t=e.file&&hr(e.file);return t?(e.args.unshift(e.file),e.command=t,tr(e)):e.file})(e),r=!fr.test(t);if(e.options.forceShell||r){const r=mr.test(t);e.command=Et.normalize(e.command),e.command=ar(e.command),e.args=e.args.map((e=>cr(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)};var gr={};const yr="win32"===process.platform;var vr;gr={hookChildProcess(e,t){if(!yr)return;const r=e.emit;e.emit=function(n,s){if("exit"===n){const n=i(s,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:i,verifyENOENTSync(e,t){return yr&&1===e&&!t.file?o(t.original,"spawnSync"):null},notFoundError:o},(nr=a).spawn=a,nr.sync=(e,t,r)=>{const n=sr(e,t,r),s=Ct.spawnSync(n.command,n.args,n.options);return s.error=s.error||gr.verifyENOENTSync(s.status,n),s},nr._parse=sr,nr._enoent=gr,vr=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 br={};const wr=e=>{let t;e={cwd:process.cwd(),path:process.env[or()],execPath:process.execPath,...e};let r=Et.resolve(e.cwd);const n=[];for(;t!==r;)n.push(Et.join(r,"node_modules/.bin")),t=r,r=Et.resolve(r,"..");const s=Et.resolve(e.cwd,e.execPath,"..");return n.push(s),n.concat(e.path).join(Et.delimiter)};(br=wr).default=wr,br.env=e=>{const t={...(e={env:process.env,...e}).env},r=or({env:t});return e.path=t[r],t[r]=br(e),t};var Er={},xr={};const _r=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(xr=_r).default=_r;const Sr=new WeakMap,Or=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const s=e.displayName||e.name||"",o=function(...i){if(Sr.set(o,++n),1===n)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${s}\` can only be called once`);return r};return xr(o,e),Sr.set(o,n),o};(Er=Or).default=Or,Er.callCount=e=>{if(!Sr.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Sr.get(e)};var Tr,Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.signalsByNumber=Rr.signalsByName=void 0;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.getSignals=void 0;var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.SIGNALS=void 0,Cr.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 Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.SIGRTMAX=Ir.getRealtimeSignals=void 0,Ir.getRealtimeSignals=()=>Array.from({length:kr-$r+1},Pr);const Pr=(e,t)=>({name:"SIGRT"+(t+1),number:$r+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),$r=34,kr=64;Ir.SIGRTMAX=kr,Ar.getSignals=()=>{const e=(0,Ir.getRealtimeSignals)();return[...Cr.SIGNALS,...e].map(Nr)};const Nr=({name:e,number:t,description:r,action:n,forced:s=!1,standard:o})=>{const{signals:{[e]:i}}=wt.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:n,forced:s,standard:o}},Lr=(0,Ar.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:s,action:o,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:s,action:o,forced:i,standard:a}})),{});Rr.signalsByName=Lr;const jr=(()=>{const e=(0,Ar.getSignals)(),t=Array.from({length:Ir.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>wt.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:s,supported:o,action:i,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:s,supported:o,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();Rr.signalsByNumber=jr;var Ur=Rr.signalsByName;Tr=({stdout:e,stderr:t,all:r,error:n,signal:s,exitCode:o,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const h=void 0===(s=null===s?void 0:s)?void 0:Ur[s].description,p=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:s,exitCode:o,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${s})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:s,signalDescription:h,exitCode:o=null===o?void 0:o,isCanceled:l}),f=`Command ${p}: ${i}`,m="[object Error]"==={}.toString.call(n),g=m?`${f}\n${n.message}`:f,y=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=g,n.command=i,n.escapedCommand=a,n.exitCode=o,n.signal=s,n.signalDescription=h,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var Dr={};const Mr=["stdin","stdout","stderr"],Fr=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Mr.map((t=>e[t]));if((e=>Mr.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Mr.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,Mr.length)},((e,r)=>t[r]))};(Dr=Fr).node=e=>{const t=Fr(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var Br,Hr={},qr=Bt.process;const Gr=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(Gr(qr)){var zr,Vr=Rt,Wr=Gt("bJALw"),Yr=/^win/i.test(qr.platform),Xr=Tt;"function"!=typeof Xr&&(Xr=Xr.EventEmitter),qr.__signal_exit_emitter__?zr=qr.__signal_exit_emitter__:((zr=qr.__signal_exit_emitter__=new Xr).count=0,zr.emitted={}),zr.infinite||(zr.setMaxListeners(1/0),zr.infinite=!0),Hr=(e,t)=>{if(!Gr(Bt.process))return()=>{};Vr.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Zr&&en();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),zr.on(r,e),()=>{zr.removeListener(r,e),0===zr.listeners("exit").length&&0===zr.listeners("afterexit").length&&Kr()}};var Kr=()=>{Zr&&Gr(Bt.process)&&(Zr=!1,Wr.forEach((e=>{try{qr.removeListener(e,Qr[e])}catch(e){}})),qr.emit=nn,qr.reallyExit=tn,zr.count-=1)};Hr.unload=Kr;var Jr=(e,t,r)=>{zr.emitted[e]||(zr.emitted[e]=!0,zr.emit(e,t,r))},Qr={};Wr.forEach((e=>{Qr[e]=()=>{Gr(Bt.process)&&qr.listeners(e).length===zr.count&&(Kr(),Jr("exit",null,e),Jr("afterexit",null,e),Yr&&"SIGHUP"===e&&(e="SIGINT"),qr.kill(qr.pid,e))}})),Hr.signals=()=>Wr;var Zr=!1,en=()=>{!Zr&&Gr(Bt.process)&&(Zr=!0,zr.count+=1,Wr=Wr.filter((e=>{try{return qr.on(e,Qr[e]),!0}catch(e){return!1}})),qr.emit=sn,qr.reallyExit=rn)};Hr.load=en;var tn=qr.reallyExit,rn=e=>{Gr(Bt.process)&&(qr.exitCode=e||0,Jr("exit",qr.exitCode,null),Jr("afterexit",qr.exitCode,null),tn.call(qr,qr.exitCode))},nn=qr.emit,sn=function(e,t){if("exit"===e&&Gr(Bt.process)){void 0!==t&&(qr.exitCode=t);var r=nn.apply(this,arguments);return Jr("exit",qr.exitCode,null),Jr("afterexit",qr.exitCode,null),r}return nn.apply(this,arguments)}}else Hr=()=>()=>{};const on=e=>e===wt.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var an,cn=(Br={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>on(e)&&!1!==t&&r)(t,r,n))return;const s=(({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),o=setTimeout((()=>{e("SIGKILL")}),s);o.unref&&o.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let s;const o=new Promise(((n,o)=>{s=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,o)}),t)})),i=n.finally((()=>{clearTimeout(s)}));return Promise.race([o,i])},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},n){if(!t||r)return n;const s=Hr((()=>{e.kill()}));return n.finally((()=>{s()}))}}).spawnedKill,ln=Br.spawnedCancel,un=Br.setupTimeout,dn=Br.validateTimeout,hn=Br.setExitHandler,pn={};const fn=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;fn.writable=e=>fn(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,fn.readable=e=>fn(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,fn.duplex=e=>fn.writable(e)&&fn.readable(e),fn.transform=e=>fn.duplex(e)&&"function"==typeof e._transform,pn=fn;var mn,gn={},yn=Nt.constants,vn=kt.PassThrough;mn=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let s=!1;t?s=!(r||n):r=r||"utf8",n&&(r=null);const o=new vn({objectMode:s});r&&o.setEncoding(r);let i=0;const a=[];return o.on("data",(e=>{a.push(e),s?i=a.length:i+=e.length})),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,i):a.join(""),o.getBufferedLength=()=>i,o};const bn=(0,At.promisify)(kt.pipeline);class wn extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(gn=c).buffer=(e,t)=>c(e,{...t,encoding:"buffer"}),gn.array=(e,t)=>c(e,{...t,array:!0}),gn.MaxBufferError=wn;var En,xn=kt.PassThrough;En=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(n.push(t),t.once("end",r.bind(null,t)),t.once("error",s.emit.bind(s,"error")),t.pipe(s,{end:!1}),this)}function t(){return 0==n.length}function r(e){!(n=n.filter((t=>t!==e))).length&&s.readable&&s.end()}var n=[],s=new xn({objectMode:!0});return s.setMaxListeners(0),s.add=e,s.isEmpty=t,s.on("unpipe",r),[].slice.call(arguments).forEach(e),s};const _n=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Sn=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?gn(e,{encoding:t,maxBuffer:n}):gn.buffer(e,{maxBuffer:n})};var On,Tn=(an={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(pn(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=En();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:s,maxBuffer:o},i){const a=Sn(e,{encoding:n,buffer:s,maxBuffer:o}),c=Sn(t,{encoding:n,buffer:s,maxBuffer:o}),l=Sn(r,{encoding:n,buffer:s,maxBuffer:2*o});try{return await Promise.all([i,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},_n(e,a),_n(t,c),_n(r,l)])}},validateInputSync({input:e}){if(pn(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,Rn=an.getSpawnedResult,An=an.makeAllStream,Cn=an.validateInputSync;const In=(async()=>{})().constructor.prototype,Pn=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(In,e)]));var $n,kn=(On={mergePromise(e,t){for(const[r,n]of Pn){const s="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:s})}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,Nn=On.getSpawnedPromise;const Ln=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],jn=/^[\w.-]+$/,Un=/"/g,Dn=/ +/g;var Mn=($n={joinCommand(e,t){return Ln(e,t).join(" ")},getEscapedCommand(e,t){return Ln(e,t).map((e=>(e=>"string"!=typeof e||jn.test(e)?e:`"${e.replace(Un,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(Dn)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Fn=$n.parseCommand,Bn=$n.getEscapedCommand;const Hn=(e,t,r={})=>{const n=nr._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:s})=>{const o=t?{...process.env,...e}:e;return r?br.env({env:o,cwd:n,execPath:s}):o})(r),r.stdio=Dr(r),"win32"===process.platform&&"cmd"===Et.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},qn=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?vr(t):t:void 0===r?void 0:"",Gn=(e,t,r)=>{const n=Hn(e,t,r),s=Mn(e,t),o=Bn(e,t);let i;dn(n.options);try{i=Ct.spawn(n.file,n.args,n.options)}catch(e){const t=new Ct.ChildProcess,r=Promise.reject(Tr({error:e,stdout:"",stderr:"",all:"",command:s,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return kn(t,r)}const a=Nn(i),c=un(i,n.options,a),l=hn(i,n.options,c),u={isCanceled:!1};i.kill=cn.bind(null,i.kill.bind(i)),i.cancel=ln.bind(null,i,u);const d=Er((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,h]=await Rn(i,n.options,l),p=qn(n.options,c),f=qn(n.options,d),m=qn(n.options,h);if(e||0!==t||null!==r){const c=Tr({error:e,exitCode:t,signal:r,stdout:p,stderr:f,all:m,command:s,escapedCommand:o,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!n.options.reject)return c;throw c}return{command:s,escapedCommand:o,exitCode:0,stdout:p,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Tn(i,n.options.input),i.all=An(i,n.options),kn(i,d)};(rr=Gn).sync=(e,t,r)=>{const n=Hn(e,t,r),s=Mn(e,t),o=Bn(e,t);let i;Cn(n.options);try{i=Ct.spawnSync(n.file,n.args,n.options)}catch(e){throw Tr({error:e,stdout:"",stderr:"",all:"",command:s,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=qn(n.options,i.stdout,i.error),c=qn(n.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=Tr({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:s,escapedCommand:o,parsed:n,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!n.options.reject)return e;throw e}return{command:s,escapedCommand:o,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},rr.command=(e,t)=>{const[r,...n]=Fn(e);return Gn(r,n,t)},rr.commandSync=(e,t)=>{const[r,...n]=Fn(e);return Gn.sync(r,n,t)},rr.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=Dr.node(r),s=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:o=process.execPath,nodeOptions:i=s}=r;return Gn(o,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})},zt=Gt("04fde");var zn,Vn=Gt("gmbrv");zt=Gt("04fde"),Vn=Gt("gmbrv");const Wn=wt.homedir();zn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Wn?e.replace(/^~(?=$|\/|\\)/,Wn):e};var Yn=Gt("ditiY");let Xn;var Kn;const Jn="win32"!==wt.platform(),Qn=wt.release(),Zn=/(\d+\.\d+)\.(\d+)/;Kn=e=>Jn?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...Zn.exec(Qn).splice(1))?e:e.replace(/(\s+)/g,"%20");const es=d(".cpprc");let ts=!1,rs=!1,ns=!1;Yn=Gt("ditiY");let ss=!1,os=!1;zt=Gt("04fde");let is,as=!1;zt=Gt("04fde"),Yn=Gt("ditiY");let cs,ls,us,ds=!1;Yn=Gt("ditiY");var hs=Gt("fvrnx"),ps=(Yn=Gt("ditiY"),{}),fs=Et.resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),ms=ps&&ps.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),gs=ps&&ps.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),ys=ps&&ps.__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)&&ms(t,e,r);return gs(t,e),t}),vs=ps&&ps.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),bs=ps&&ps.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(ps,"__esModule",{value:!0}),ps.evaluateVersions=ps.isExplicitVersion=ps.findFromManifest=ps.getManifestFromRepo=ps.findAllVersions=ps.find=ps.cacheFile=ps.cacheDir=ps.extractZip=ps.extractXar=ps.extractTar=ps.extract7z=ps.downloadTool=ps.HTTPError=void 0;const ws=ys(Gt("04fde")),Es=ys(Gt("fvrnx")),xs=ys(xt),_s=ys(Gt("6kHxT")),Ss=ys(wt),Os=ys(Et),Ts=ys(Gt("4z9RF")),Rs=ys(Gt("4URNm")),As=ys(kt),Cs=ys(At),Is=bs(Gt("iFKS7"));var Ps=Gt("ca0ts"),$s={},ks=$s&&$s.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),Ns=$s&&$s.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Ls=$s&&$s.__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)&&ks(t,e,r);return Ns(t,e),t}),js=$s&&$s.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty($s,"__esModule",{value:!0}),$s.RetryHelper=void 0;const Us=Ls(Gt("04fde"));$s.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 js(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;Us.info(e.message)}const n=this.getSleepAmount();Us.info(`Waiting ${n} seconds before trying again`),yield this.sleep(n),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return js(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class Ds extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}ps.HTTPError=Ds;const Ms="win32"===process.platform,Fs="darwin"===process.platform;let Bs;ps.downloadTool=function(e,t,r,n){return vs(this,void 0,void 0,(function*(){t=t||Os.join(q(),Is.default()),yield Es.mkdirP(Os.dirname(t)),ws.debug("Downloading "+e),ws.debug("Destination "+t);const s=G("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=G("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new $s.RetryHelper(3,s,o);return yield i.execute((()=>vs(this,void 0,void 0,(function*(){return yield function(e,t,r,n){return vs(this,void 0,void 0,(function*(){if(xs.existsSync(t))throw Error(`Destination file path ${t} already exists`);const s=new Ts.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(ws.debug("set auth"),void 0===n&&(n={}),n.authorization=r);const o=yield s.get(e,n);if(200!==o.message.statusCode){const t=new Ds(o.message.statusCode);throw ws.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}const i=Cs.promisify(As.pipeline),a=G("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message))();let c=!1;try{return yield i(a,xs.createWriteStream(t)),ws.debug("download complete"),c=!0,t}finally{if(!c){ws.debug("download failed");try{yield Es.rmRF(t)}catch(e){ws.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,n)}))),(e=>!(e instanceof Ds&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},ps.extract7z=function(e,t,r){return vs(this,void 0,void 0,(function*(){Rt.ok(Ms,"extract7z() not supported on current OS"),Rt.ok(e,'parameter "file" is required'),t=yield U(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",ws.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],s={silent:!0};yield Ps.exec(`"${r}"`,t,s)}finally{process.chdir(n)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Os.join(fs,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],s={silent:!0};try{const e=yield Es.which("powershell",!0);yield Ps.exec(`"${e}"`,r,s)}finally{process.chdir(n)}}return t}))},ps.extractTar=function(e,t,r="xz"){return vs(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield U(t),ws.debug("Checking tar --version");let n="";yield Ps.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e},stderr(e){return n+=""+e}}}),ws.debug(n.trim());const s=n.toUpperCase().includes("GNU TAR");let o;o=r instanceof Array?r:[r],ws.isDebug()&&!r.includes("v")&&o.push("-v");let i=t,a=e;return Ms&&s&&(o.push("--force-local"),i=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),s&&(o.push("--warning=no-unknown-keyword"),o.push("--overwrite")),o.push("-C",i,"-f",a),yield Ps.exec("tar",o),t}))},ps.extractXar=function(e,t,r=[]){return vs(this,void 0,void 0,(function*(){let n;Rt.ok(Fs,"extractXar() not supported on current OS"),Rt.ok(e,'parameter "file" is required'),t=yield U(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),ws.isDebug()&&n.push("-v");const s=yield Es.which("xar",!0);var o;return yield Ps.exec(`"${s}"`,(o=n,Array.from(new Set(o)))),t}))},ps.extractZip=function(e,t){return vs(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield U(t),Ms?yield function(e,t){return vs(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=yield Es.which("pwsh",!1);if(s){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}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];ws.debug("Using pwsh at path: "+s),yield Ps.exec(`"${s}"`,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 '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],t=yield Es.which("powershell",!0);ws.debug("Using powershell at path: "+t),yield Ps.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return vs(this,void 0,void 0,(function*(){const r=yield Es.which("unzip",!0),n=[e];ws.isDebug()||n.unshift("-q"),n.unshift("-o"),yield Ps.exec(`"${r}"`,n,{cwd:t})}))}(e,t),t}))},ps.cacheDir=function(e,t,r,n){return vs(this,void 0,void 0,(function*(){if(r=Rs.clean(r)||r,n=n||Ss.arch(),ws.debug(`Caching tool ${t} ${r} ${n}`),ws.debug("source dir: "+e),!xs.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield D(t,r,n);for(const t of xs.readdirSync(e)){const r=Os.join(e,t);yield Es.cp(r,s,{recursive:!0})}return M(t,r,n),s}))},ps.cacheFile=function(e,t,r,n,s){return vs(this,void 0,void 0,(function*(){if(n=Rs.clean(n)||n,s=s||Ss.arch(),ws.debug(`Caching tool ${r} ${n} ${s}`),ws.debug("source file: "+e),!xs.statSync(e).isFile())throw Error("sourceFile is not a file");const o=yield D(r,n,s),i=Os.join(o,t);return ws.debug("destination file "+i),yield Es.cp(e,i),M(r,n,s),o}))},ps.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Ss.arch(),F(t)||(t=B(j(e,r),t));let n="";if(t){t=Rs.clean(t)||"";const s=Os.join(H(),e,t,r);ws.debug("checking cache: "+s),xs.existsSync(s)&&xs.existsSync(s+".complete")?(ws.debug(`Found tool in cache ${e} ${t} ${r}`),n=s):ws.debug("not found")}return n},ps.findAllVersions=j,ps.getManifestFromRepo=function(e,t,r,n="master"){return vs(this,void 0,void 0,(function*(){let s=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,i=new Ts.HttpClient("tool-cache"),a={};r&&(ws.debug("set auth"),a.authorization=r);const c=yield i.getJson(o,a);if(!c.result)return s;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{s=JSON.parse(u)}catch(e){ws.debug("Invalid json")}}return s}))},ps.findFromManifest=function(e,t,r,n=Ss.arch()){return vs(this,void 0,void 0,(function*(){return yield _s._findMatch(e,t,r,n)}))},ps.isExplicitVersion=F,ps.evaluateVersions=B,zt=Gt("04fde"),Vn=Gt("gmbrv");let Hs=!1;var qs,Gs=Gt("fwsB7"),zs=Gt("1YYsi"),Vs=(Ps=Gt("ca0ts"),zt=Gt("04fde"),Vn=Gt("gmbrv"),Yn=Gt("ditiY"),{}),Ws=kt.Writable,Ys={},Xs=kt.PassThrough;(te.prototype=Object.create(kt.Duplex.prototype,{constructor:{value:te}}))._write=function(e,t,r){this._writable.write(e,t,r)},te.prototype._read=function(){for(var e,t=0;null!==(e=this._readable.read());)this.push(e),t++;0===t&&(this._waiting=!0)},(qs=(e,t,r)=>new te(e,t,r)).DuplexWrapper=te;var Ks,Js=Ks=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Js.writable=e=>Js(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Js.readable=e=>Js(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Js.duplex=e=>Js.writable(e)&&Js.readable(e),Js.transform=e=>Js.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState;var Qs,Zs,eo,to,ro,no,so={},oo=kt.PassThrough;Qs=e=>{const t=(e=Object.assign({},e)).array;let r=e.encoding;const n="buffer"===r;let s=!1;t?s=!(r||n):r=r||"utf8",n&&(r=null);let o=0;const i=[],a=new oo({objectMode:s});return r&&a.setEncoding(r),a.on("data",(e=>{i.push(e),s?o=i.length:o+=e.length})),a.getBufferedValue=()=>t?i:n?Buffer.concat(i,o):i.join(""),a.getBufferedLength=()=>o,a},(so=re).buffer=(e,t)=>re(e,Object.assign({},t,{encoding:"buffer"})),so.array=(e,t)=>re(e,Object.assign({},t,{array:!0})),Zs=(e,t)=>{function r(){e.timeoutTimer&&(clearTimeout(e.timeoutTimer),e.timeoutTimer=null)}function n(){r(),void 0!==s.socket&&e.setTimeout(s.socket,(()=>{e.abort();var t=Error("Socket timed out on request"+o);t.code="ESOCKETTIMEDOUT",e.emit("error",t)}))}if(e.timeoutTimer)return e;var s=isNaN(t)?t:{socket:t,connect:t},o=e._headers?" to "+e._headers.host:"";return void 0!==s.connect&&(e.timeoutTimer=setTimeout((()=>{e.abort();var t=Error("Connection timed out on request"+o);t.code="ETIMEDOUT",e.emit("error",t)}),s.connect)),e.on("socket",(e=>{e.connecting||e._connecting?e.once("connect",n):n()})),e.on("error",r)},to=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return e=e.trim(),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,"http://")},eo=e=>{var t=to(e),r=Lt.parse(t);return t!==e&&(r.protocol=null),r},ro=e=>{for(var t={},r=Object.keys(Object(e)),n=0;r.length>n;n++)t[r[n].toLowerCase()]=e[r[n]];return t},no=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");return 300===e||301===e||302===e||303===e||305===e||307===e||308===e};var io,ao=kt.PassThrough;io=e=>{if(-1===["gzip","deflate"].indexOf(e.headers["content-encoding"]))return e;const t=Ut.createUnzip(),r=new ao;return r.httpVersion=e.httpVersion,r.headers=e.headers,r.rawHeaders=e.rawHeaders,r.trailers=e.trailers,r.rawTrailers=e.rawTrailers,r.setTimeout=e.setTimeout.bind(e),r.statusCode=e.statusCode,r.statusMessage=e.statusMessage,r.socket=e.socket,t.on("error",(e=>{"Z_BUF_ERROR"!==e.code?r.emit("error",e):r.end()})),e.pipe(t).pipe(r),r};var co,lo={};lo=Error.captureStackTrace||function(e){var t=Error();Object.defineProperty(e,"stack",{configurable:!0,get(){var e=t.stack;return Object.defineProperty(this,"stack",{value:e}),e}})},co=function(e,t){if("string"!=typeof e)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(e))throw Error("className contains invalid characters");t=t||function(e){this.message=e};var r,n,s=function(){Object.defineProperty(this,"name",{configurable:!0,value:e,writable:!0}),lo(this,this.constructor),t.apply(this,arguments)};return(r=s).super_=n=Error,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s};var uo,ho=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],po=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];uo=e=>!e||!e.code||-1!==ho.indexOf(e.code)||-1===po.indexOf(e.code);var fo={},mo=Nt.Buffer;mo.from&&mo.alloc&&mo.allocUnsafe&&mo.allocUnsafeSlow?fo=Nt:(ne(Nt,fo),fo.Buffer=se),se.prototype=Object.create(mo.prototype),ne(mo,se),se.from=(e,t,r)=>{if("number"==typeof e)throw new TypeError("Argument must not be a number");return mo(e,t,r)},se.alloc=(e,t,r)=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=mo(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},se.allocUnsafe=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return mo(e)},se.allocUnsafeSlow=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return Nt.SlowBuffer(e)};var go,yo=fo.Buffer;go=JSON.parse('{"name":"got","version":"6.7.1","description":"Simplified HTTP requests","license":"MIT","repository":"sindresorhus/got","maintainers":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"}],"engines":{"node":">=4"},"browser":{"unzip-response":false},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch"],"dependencies":{"create-error-class":"^3.0.0","duplexer3":"^0.1.4","get-stream":"^3.0.0","is-redirect":"^1.0.0","is-retry-allowed":"^1.0.0","is-stream":"^1.0.0","lowercase-keys":"^1.0.0","safe-buffer":"^5.0.1","timed-out":"^4.0.0","unzip-response":"^2.0.1","url-parse-lax":"^1.0.0"},"devDependencies":{"ava":"^0.17.0","coveralls":"^2.11.4","form-data":"^2.1.1","get-port":"^2.0.0","into-stream":"^3.0.0","nyc":"^10.0.0","pem":"^1.4.4","pify":"^2.3.0","tempfile":"^1.1.1","xo":"*"},"xo":{"esnext":true},"ava":{"concurrency":4}}');const vo=["get","post","put","patch","head","delete"];vo.forEach((e=>{ae[e]=(t,r)=>ae(t,Object.assign({},r,{method:e}))})),ae.stream=(e,t)=>(e=>{const t=new Xs,r=new Xs,n=qs(t,r);if(e.json)throw Error("got can not be used as stream when options.json is used");e.body&&(n.write=()=>{throw Error("got's stream is not writable when options.body is used")});const s=oe(e);return s.on("request",(r=>{n.emit("request",r),Ks(e.body)?e.body.pipe(r):e.body?r.end(e.body):"POST"!==e.method&&"PUT"!==e.method&&"PATCH"!==e.method?r.end():t.pipe(r)})),s.on("response",(t=>{const s=t.statusCode;t.pipe(r),200>s||s>299?n.emit("error",new ae.HTTPError(s,e),null,t):n.emit("response",t)})),s.on("redirect",n.emit.bind(n,"redirect")),s.on("error",n.emit.bind(n,"error")),n})(ie(e,t));for(const e of vo)ae.stream[e]=(t,r)=>ae.stream(t,Object.assign({},r,{method:e}));ae.RequestError=co("RequestError",ce),ae.ReadError=co("ReadError",ce),ae.ParseError=co("ParseError",(function(e,t,r,n){ce.call(this,e,r),this.statusCode=t,this.statusMessage=_t.STATUS_CODES[this.statusCode],this.message=`${e.message} in "${Lt.format(r)}": \n${n.slice(0,77)}...`})),ae.HTTPError=co("HTTPError",(function(e,t){ce.call(this,{},t),this.statusCode=e,this.statusMessage=_t.STATUS_CODES[this.statusCode],this.message=`Response code ${this.statusCode} (${this.statusMessage})`})),ae.MaxRedirectsError=co("MaxRedirectsError",(function(e,t){ce.call(this,{},t),this.statusCode=e,this.statusMessage=_t.STATUS_CODES[this.statusCode],this.message="Redirected 10 times. Aborting."})),Ys=ae;var bo,wo,Eo,xo={};e(xo,"v4",(()=>wo),(e=>wo=e)),e(xo,"v6",(()=>Eo),(e=>Eo=e));var _o,So,Oo,To,Ro,Ao,Co,Io={};To=e=>{switch(e){case 1:return"A";case 10:return"NULL";case 28:return"AAAA";case 18:return"AFSDB";case 42:return"APL";case 257:return"CAA";case 60:return"CDNSKEY";case 59:return"CDS";case 37:return"CERT";case 5:return"CNAME";case 49:return"DHCID";case 32769:return"DLV";case 39:return"DNAME";case 48:return"DNSKEY";case 43:return"DS";case 55:return"HIP";case 13:return"HINFO";case 45:return"IPSECKEY";case 25:return"KEY";case 36:return"KX";case 29:return"LOC";case 15:return"MX";case 35:return"NAPTR";case 2:return"NS";case 47:return"NSEC";case 50:return"NSEC3";case 51:return"NSEC3PARAM";case 12:return"PTR";case 46:return"RRSIG";case 17:return"RP";case 24:return"SIG";case 6:return"SOA";case 99:return"SPF";case 33:return"SRV";case 44:return"SSHFP";case 32768:return"TA";case 249:return"TKEY";case 52:return"TLSA";case 250:return"TSIG";case 16:return"TXT";case 252:return"AXFR";case 251:return"IXFR";case 41:return"OPT";case 255:return"ANY"}return"UNKNOWN_"+e},Ro=e=>{switch(e.toUpperCase()){case"A":return 1;case"NULL":return 10;case"AAAA":return 28;case"AFSDB":return 18;case"APL":return 42;case"CAA":return 257;case"CDNSKEY":return 60;case"CDS":return 59;case"CERT":return 37;case"CNAME":return 5;case"DHCID":return 49;case"DLV":return 32769;case"DNAME":return 39;case"DNSKEY":return 48;case"DS":return 43;case"HIP":return 55;case"HINFO":return 13;case"IPSECKEY":return 45;case"KEY":return 25;case"KX":return 36;case"LOC":return 29;case"MX":return 15;case"NAPTR":return 35;case"NS":return 2;case"NSEC":return 47;case"NSEC3":return 50;case"NSEC3PARAM":return 51;case"PTR":return 12;case"RRSIG":return 46;case"RP":return 17;case"SIG":return 24;case"SOA":return 6;case"SPF":return 99;case"SRV":return 33;case"SSHFP":return 44;case"TA":return 32768;case"TKEY":return 249;case"TLSA":return 52;case"TSIG":return 250;case"TXT":return 16;case"AXFR":return 252;case"IXFR":return 251;case"OPT":return 41;case"ANY":case"*":return 255}return 0},Ao=e=>{switch(e){case 0:return"NOERROR";case 1:return"FORMERR";case 2:return"SERVFAIL";case 3:return"NXDOMAIN";case 4:return"NOTIMP";case 5:return"REFUSED";case 6:return"YXDOMAIN";case 7:return"YXRRSET";case 8:return"NXRRSET";case 9:return"NOTAUTH";case 10:return"NOTZONE";case 11:return"RCODE_11";case 12:return"RCODE_12";case 13:return"RCODE_13";case 14:return"RCODE_14";case 15:return"RCODE_15"}return"RCODE_"+e},Co=e=>{switch(e){case 0:return"QUERY";case 1:return"IQUERY";case 2:return"STATUS";case 3:return"OPCODE_3";case 4:return"NOTIFY";case 5:return"UPDATE";case 6:return"OPCODE_6";case 7:return"OPCODE_7";case 8:return"OPCODE_8";case 9:return"OPCODE_9";case 10:return"OPCODE_10";case 11:return"OPCODE_11";case 12:return"OPCODE_12";case 13:return"OPCODE_13";case 14:return"OPCODE_14";case 15:return"OPCODE_15"}return"OPCODE_"+e};var Po={},$o=Po,ko=Nt.Buffer;$o.toBuffer=function(e,t,r){var n;if(r=~~r,this.isV4Format(e))n=t||new ko(r+4),e.split(/\./g).map((e=>{n[r++]=255&parseInt(e,10)}));else if(this.isV6Format(e)){var s,o=e.split(":",8);for(s=0;o.length>s;s++){var i;this.isV4Format(o[s])&&(i=this.toBuffer(o[s]),o[s]=i.slice(0,2).toString("hex")),i&&8>++s&&o.splice(s,0,i.slice(2,4).toString("hex"))}if(""===o[0])for(;8>o.length;)o.unshift("0");else if(""===o[o.length-1])for(;8>o.length;)o.push("0");else if(8>o.length){for(s=0;o.length>s&&""!==o[s];s++);var a=[s,1];for(s=9-o.length;s>0;s--)a.push("0");o.splice.apply(o,a)}for(n=t||new ko(r+16),s=0;o.length>s;s++){var c=parseInt(o[s],16);n[r++]=c>>8&255,n[r++]=255&c}}if(!n)throw Error("Invalid ip address: "+e);return n},$o.toString=(e,t,r)=>{t=~~t;var n,s=[];if(4===(r=r||e.length-t)){for(n=0;r>n;n++)s.push(e[t+n]);s=s.join(".")}else if(16===r){for(n=0;r>n;n+=2)s.push(e.readUInt16BE(t+n).toString(16));s=(s=(s=s.join(":")).replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3")).replace(/:{3,4}/,"::")}return s};var No=/^(\d{1,3}\.){3,3}\d{1,3}$/,Lo=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;$o.isV4Format=e=>No.test(e),$o.isV6Format=e=>Lo.test(e),$o.fromPrefixLen=(e,t)=>{var r=4;"ipv6"===(t=e>32?"ipv6":le(t))&&(r=16);for(var n=new ko(r),s=0,o=n.length;o>s;++s){var i=8;8>e&&(i=e),e-=i,n[s]=255&~(255>>i)}return $o.toString(n)},$o.mask=(e,t)=>{e=$o.toBuffer(e),t=$o.toBuffer(t);var r,n=new ko(Math.max(e.length,t.length));if(e.length===t.length)for(r=0;e.length>r;r++)n[r]=e[r]&t[r];else if(4===t.length)for(r=0;t.length>r;r++)n[r]=e[e.length-4+r]&t[r];else{for(r=0;n.length-6>r;r++)n[r]=0;for(n[10]=255,n[11]=255,r=0;e.length>r;r++)n[r+12]=e[r]&t[r+12];r+=12}for(;n.length>r;r++)n[r]=0;return $o.toString(n)},$o.cidr=e=>{var t=e.split("/"),r=t[0];if(2!==t.length)throw Error("invalid CIDR subnet: "+r);var n=$o.fromPrefixLen(parseInt(t[1],10));return $o.mask(r,n)},$o.subnet=(e,t)=>{for(var r=$o.toLong($o.mask(e,t)),n=$o.toBuffer(t),s=0,o=0;n.length>o;o++)if(255===n[o])s+=8;else for(var i=255&n[o];i;)i=i<<1&255,s++;var a=Math.pow(2,32-s);return{networkAddress:$o.fromLong(r),firstAddress:$o.fromLong(a>2?r+1:r),lastAddress:$o.fromLong(a>2?r+a-2:r+a-1),broadcastAddress:$o.fromLong(r+a-1),subnetMask:t,subnetMaskLength:s,numHosts:a>2?a-2:a,length:a,contains:e=>r===$o.toLong($o.mask(e,t))}},$o.cidrSubnet=e=>{var t=e.split("/"),r=t[0];if(2!==t.length)throw Error("invalid CIDR subnet: "+r);var n=$o.fromPrefixLen(parseInt(t[1],10));return $o.subnet(r,n)},$o.not=e=>{for(var t=$o.toBuffer(e),r=0;t.length>r;r++)t[r]=255^t[r];return $o.toString(t)},$o.or=(e,t)=>{var r;if(e=$o.toBuffer(e),t=$o.toBuffer(t),e.length===t.length){for(r=0;e.length>r;++r)e[r]|=t[r];return $o.toString(e)}var n=e,s=t;t.length>e.length&&(n=t,s=e);var o=n.length-s.length;for(r=o;n.length>r;++r)n[r]|=s[r-o];return $o.toString(n)},$o.isEqual=(e,t)=>{var r;if(e=$o.toBuffer(e),t=$o.toBuffer(t),e.length===t.length){for(r=0;e.length>r;r++)if(e[r]!==t[r])return!1;return!0}if(4===t.length){var n=t;t=e,e=n}for(r=0;10>r;r++)if(0!==t[r])return!1;var s=t.readUInt16BE(10);if(0!==s&&65535!==s)return!1;for(r=0;4>r;r++)if(e[r]!==t[r+12])return!1;return!0},$o.isPrivate=e=>/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^f[cd][0-9a-f]{2}:/i.test(e)||/^fe80:/i.test(e)||/^::1$/.test(e)||/^::$/.test(e),$o.isPublic=e=>!$o.isPrivate(e),$o.isLoopback=e=>/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(e)||/^fe80::1$/.test(e)||/^::1$/.test(e)||/^::$/.test(e),$o.loopback=e=>{if("ipv4"!==(e=le(e))&&"ipv6"!==e)throw Error("family must be ipv4 or ipv6");return"ipv4"===e?"127.0.0.1":"fe80::1"},$o.address=(e,t)=>{var r=wt.networkInterfaces();if(t=le(t),e&&"private"!==e&&"public"!==e){var n=r[e].filter((e=>le(e.family)===t));if(0===n.length)return;return n[0].address}var s=Object.keys(r).map((n=>{var s=r[n].filter((r=>(r.family=le(r.family),r.family===t&&!$o.isLoopback(r.address)&&(!e||("public"===e?$o.isPrivate(r.address):$o.isPublic(r.address))))));return s.length?s[0].address:void 0})).filter(Boolean);return s.length?s[0]:$o.loopback(t)},$o.toLong=e=>{var t=0;return e.split(".").forEach((e=>{t<<=8,t+=parseInt(e)})),t>>>0},$o.fromLong=e=>`${e>>>24}.${e>>16&255}.${e>>8&255}.${255&e}`;var jo=fo.Buffer,Uo={encode(e,t,r){t||(t=jo.alloc(Uo.encodingLength(e))),r||(r=0);var n=r,s=e.replace(/^\.|\.$/gm,"");if(s.length)for(var o=s.split("."),i=0;o.length>i;i++){var a=t.write(o[i],r+1);t[r]=a,r+=a+1}return t[r++]=0,Uo.encode.bytes=r-n,t}};Uo.encode.bytes=0,Uo.decode=(e,t)=>{t||(t=0);var r=[],n=t,s=e[t++];if(0===s)return Uo.decode.bytes=1,".";if(s>=192){var o=Uo.decode(e,e.readUInt16BE(t-1)-49152);return Uo.decode.bytes=2,o}for(;s;){if(s>=192){r.push(Uo.decode(e,e.readUInt16BE(t-1)-49152)),t++;break}r.push(e.toString("utf-8",t,t+s)),t+=s,s=e[t++]}return Uo.decode.bytes=t-n,r.join(".")},Uo.decode.bytes=0,Uo.encodingLength=e=>"."===e||".."===e?1:jo.byteLength(e.replace(/^\.|\.$/gm,""))+2;var Do={encode(e,t,r){t||(t=jo.alloc(Do.encodingLength(e))),r||(r=0);var n=t.write(e,r+1);return t[r]=n,Do.encode.bytes=n+1,t}};Do.encode.bytes=0,Do.decode=(e,t)=>{t||(t=0);var r=e[t],n=e.toString("utf-8",t+1,t+1+r);return Do.decode.bytes=r+1,n},Do.decode.bytes=0,Do.encodingLength=e=>jo.byteLength(e)+1;var Mo={encode(e,t,r){t||(t=Mo.encodingLength(e)),r||(r=0);var n=32767&(e.flags||0),s="response"===e.type?32768:0;return t.writeUInt16BE(e.id||0,r),t.writeUInt16BE(n|s,r+2),t.writeUInt16BE(e.questions.length,r+4),t.writeUInt16BE(e.answers.length,r+6),t.writeUInt16BE(e.authorities.length,r+8),t.writeUInt16BE(e.additionals.length,r+10),t}};Mo.encode.bytes=12,Mo.decode=(e,t)=>{if(t||(t=0),12>e.length)throw Error("Header must be 12 bytes");var r=e.readUInt16BE(t+2);return{id:e.readUInt16BE(t),type:32768&r?"response":"query",flags:32767&r,flag_qr:1==(r>>15&1),opcode:Co(r>>11&15),flag_auth:1==(r>>10&1),flag_trunc:1==(r>>9&1),flag_rd:1==(r>>8&1),flag_ra:1==(r>>7&1),flag_z:1==(r>>6&1),flag_ad:1==(r>>5&1),flag_cd:1==(r>>4&1),rcode:Ao(15&r),questions:Array(e.readUInt16BE(t+4)),answers:Array(e.readUInt16BE(t+6)),authorities:Array(e.readUInt16BE(t+8)),additionals:Array(e.readUInt16BE(t+10))}},Mo.decode.bytes=12,Mo.encodingLength=()=>12;var Fo={encode(e,t,r){return t||(t=jo.alloc(Fo.encodingLength(e))),r||(r=0),t.writeUInt16BE(e.length,r),e.copy(t,r+2),Fo.encode.bytes=e.length+2,t}};Fo.encode.bytes=0,Fo.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=e.slice(t+2,t+2+r);return Fo.decode.bytes=r+2,n},Fo.decode.bytes=0,Fo.encodingLength=e=>e.length+2;var Bo={encode(e,t,r){return t||(t=jo.alloc(Bo.encodingLength(e))),r||(r=0),Uo.encode(e,t,r+2),t.writeUInt16BE(Uo.encode.bytes,r),Bo.encode.bytes=Uo.encode.bytes+2,t}};Bo.encode.bytes=0,Bo.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=Uo.decode(e,t+2);return Bo.decode.bytes=r+2,n},Bo.decode.bytes=0,Bo.encodingLength=e=>Uo.encodingLength(e)+2;var Ho={encode(e,t,r){t||(t=jo.alloc(Ho.encodingLength(e))),r||(r=0);var n=r;return Uo.encode(e.mname,t,r+=2),Uo.encode(e.rname,t,r+=Uo.encode.bytes),t.writeUInt32BE(e.serial||0,r+=Uo.encode.bytes),t.writeUInt32BE(e.refresh||0,r+=4),t.writeUInt32BE(e.retry||0,r+=4),t.writeUInt32BE(e.expire||0,r+=4),t.writeUInt32BE(e.minimum||0,r+=4),t.writeUInt16BE((r+=4)-n-2,n),Ho.encode.bytes=r-n,t}};Ho.encode.bytes=0,Ho.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.mname=Uo.decode(e,t+=2),n.rname=Uo.decode(e,t+=Uo.decode.bytes),n.serial=e.readUInt32BE(t+=Uo.decode.bytes),n.refresh=e.readUInt32BE(t+=4),n.retry=e.readUInt32BE(t+=4),n.expire=e.readUInt32BE(t+=4),n.minimum=e.readUInt32BE(t+=4),Ho.decode.bytes=(t+=4)-r,n},Ho.decode.bytes=0,Ho.encodingLength=e=>22+Uo.encodingLength(e.mname)+Uo.encodingLength(e.rname);var qo={},Go=qo;qo.encode=(e,t,r)=>{t||(t=jo.alloc(qo.encodingLength(e))),r||(r=0),"string"==typeof e&&(e=jo.from(e)),e||(e=jo.alloc(0));var n=r,s=e.length;return e.copy(t,r+=2,0,s),t.writeUInt16BE((r+=s)-n-2,n),qo.encode.bytes=r-n,t},qo.encode.bytes=0,qo.decode=(e,t)=>{t||(t=0);var r=t,n=e.readUInt16BE(t),s=e.slice(t+=2,t+n);return qo.decode.bytes=(t+=n)-r,s},qo.decode.bytes=0,qo.encodingLength=e=>e?(jo.isBuffer(e)?e.length:jo.byteLength(e))+2:2;var zo={encode(e,t,r){t||(t=jo.alloc(zo.encodingLength(e))),r||(r=0);var n=r;return Do.encode(e.cpu,t,r+=2),Do.encode(e.os,t,r+=Do.encode.bytes),t.writeUInt16BE((r+=Do.encode.bytes)-n-2,n),zo.encode.bytes=r-n,t}};zo.encode.bytes=0,zo.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.cpu=Do.decode(e,t+=2),n.os=Do.decode(e,t+=Do.decode.bytes),zo.decode.bytes=(t+=Do.decode.bytes)-r,n},zo.decode.bytes=0,zo.encodingLength=e=>Do.encodingLength(e.cpu)+Do.encodingLength(e.os)+2;var Vo={},Wo=Vo,Yo=Vo;Vo.encode=(e,t,r)=>(t||(t=jo.alloc(Vo.encodingLength(e))),r||(r=0),Uo.encode(e,t,r+2),t.writeUInt16BE(Uo.encode.bytes,r),Vo.encode.bytes=Uo.encode.bytes+2,t),Vo.encode.bytes=0,Vo.decode=(e,t)=>{t||(t=0);var r=Uo.decode(e,t+2);return Vo.decode.bytes=Uo.decode.bytes+2,r},Vo.decode.bytes=0,Vo.encodingLength=e=>Uo.encodingLength(e)+2;var Xo={encode(e,t,r){t||(t=jo.alloc(Xo.encodingLength(e))),r||(r=0),t.writeUInt16BE(e.priority||0,r+2),t.writeUInt16BE(e.weight||0,r+4),t.writeUInt16BE(e.port||0,r+6),Uo.encode(e.target,t,r+8);var n=Uo.encode.bytes+6;return t.writeUInt16BE(n,r),Xo.encode.bytes=n+2,t}};Xo.encode.bytes=0,Xo.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n={};return n.priority=e.readUInt16BE(t+2),n.weight=e.readUInt16BE(t+4),n.port=e.readUInt16BE(t+6),n.target=Uo.decode(e,t+8),Xo.decode.bytes=r+2,n},Xo.decode.bytes=0,Xo.encodingLength=e=>8+Uo.encodingLength(e.target);var Ko={ISSUER_CRITICAL:128,encode(e,t,r){var n=Ko.encodingLength(e);return t||(t=jo.alloc(Ko.encodingLength(e))),r||(r=0),e.issuerCritical&&(e.flags=Ko.ISSUER_CRITICAL),t.writeUInt16BE(n-2,r),t.writeUInt8(e.flags||0,r+=2),Do.encode(e.tag,t,r+=1),t.write(e.value,r+=Do.encode.bytes),r+=jo.byteLength(e.value),Ko.encode.bytes=n,t}};Ko.encode.bytes=0,Ko.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=t+=2,s={};return s.flags=e.readUInt8(t),s.tag=Do.decode(e,t+=1),s.value=e.toString("utf-8",t+=Do.decode.bytes,n+r),s.issuerCritical=!!(s.flags&Ko.ISSUER_CRITICAL),Ko.decode.bytes=r+2,s},Ko.decode.bytes=0,Ko.encodingLength=e=>Do.encodingLength(e.tag)+Do.encodingLength(e.value)+2;var Jo={encode(e,t,r){return t||(t=jo.alloc(Jo.encodingLength(e))),r||(r=0),t.writeUInt16BE(4,r),Po.toBuffer(e,t,r+=2),Jo.encode.bytes=6,t}};Jo.encode.bytes=0,Jo.decode=(e,t)=>{t||(t=0);var r=Po.toString(e,t+=2,4);return Jo.decode.bytes=6,r},Jo.decode.bytes=0,Jo.encodingLength=()=>6;var Qo={encode(e,t,r){return t||(t=jo.alloc(Qo.encodingLength(e))),r||(r=0),t.writeUInt16BE(16,r),Po.toBuffer(e,t,r+=2),Qo.encode.bytes=18,t}};Qo.encode.bytes=0,Qo.decode=(e,t)=>{t||(t=0);var r=Po.toString(e,t+=2,16);return Qo.decode.bytes=18,r},Qo.decode.bytes=0,Qo.encodingLength=()=>18;var Zo=e=>{switch(e.toUpperCase()){case"A":return Jo;case"PTR":return Vo;case"CNAME":return Wo;case"DNAME":return Yo;case"TXT":return qo;case"NULL":return Go;case"AAAA":return Qo;case"SRV":return Xo;case"HINFO":return zo;case"CAA":return Ko;case"NS":return Bo;case"SOA":return Ho}return Fo},ei={encode(e,t,r){t||(t=jo.alloc(ei.encodingLength(e))),r||(r=0);var n=r;Uo.encode(e.name,t,r),r+=Uo.encode.bytes,t.writeUInt16BE(Ro(e.type),r);var s=void 0===e.class?1:e.class;e.flush&&(s|=32768),t.writeUInt16BE(s,r+2),t.writeUInt32BE(e.ttl||0,r+4);var o=Zo(e.type);return o.encode(e.data,t,r+8),ei.encode.bytes=(r+=8+o.encode.bytes)-n,t}};ei.encode.bytes=0,ei.decode=(e,t)=>{t||(t=0);var r={},n=t;r.name=Uo.decode(e,t),r.type=To(e.readUInt16BE(t+=Uo.decode.bytes)),r.class=e.readUInt16BE(t+2),r.ttl=e.readUInt32BE(t+4),r.flush=!!(32768&r.class),r.flush&&(r.class&=-32769);var s=Zo(r.type);return r.data=s.decode(e,t+8),ei.decode.bytes=(t+=8+s.decode.bytes)-n,r},ei.decode.bytes=0,ei.encodingLength=e=>Uo.encodingLength(e.name)+8+Zo(e.type).encodingLength(e.data);var ti={encode(e,t,r){t||(t=jo.alloc(ti.encodingLength(e))),r||(r=0);var n=r;return Uo.encode(e.name,t,r),r+=Uo.encode.bytes,t.writeUInt16BE(Ro(e.type),r),t.writeUInt16BE(void 0===e.class?1:e.class,r+=2),ti.encode.bytes=(r+=2)-n,e}};ti.encode.bytes=0,ti.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.name=Uo.decode(e,t),n.type=To(e.readUInt16BE(t+=Uo.decode.bytes)),n.class=e.readUInt16BE(t+=2),t+=2,!!(32768&n.class)&&(n.class&=-32769),ti.decode.bytes=t-r,n},ti.decode.bytes=0,ti.encodingLength=e=>Uo.encodingLength(e.name)+4,(_o=(e,t,r)=>{var n=!t;n&&(t=jo.alloc(Oo(e))),r||(r=0);var s=r;return e.questions||(e.questions=[]),e.answers||(e.answers=[]),e.authorities||(e.authorities=[]),e.additionals||(e.additionals=[]),Mo.encode(e,t,r),r=de(e.questions,ti,t,r+=Mo.encode.bytes),r=de(e.answers,ei,t,r),r=de(e.authorities,ei,t,r),r=de(e.additionals,ei,t,r),_o.bytes=r-s,n&&_o.bytes!==t.length?t.slice(0,_o.bytes):t}).bytes=0,(So=(e,t)=>{t||(t=0);var r=t,n=Mo.decode(e,t);return t=he(n.questions,ti,e,t+=Mo.decode.bytes),t=he(n.answers,ei,e,t),t=he(n.authorities,ei,e,t),t=he(n.additionals,ei,e,t),So.bytes=t-r,n}).bytes=0,Oo=e=>Mo.encodingLength(e)+ue(e.questions||[],ti)+ue(e.answers||[],ei)+ue(e.authorities||[],ei)+ue(e.additionals||[],ei),Io=pe,At.inherits(pe,Tt.EventEmitter),pe.RECURSION_DESIRED=pe.prototype.RECURSION_DESIRED=256,pe.RECURSION_AVAILABLE=pe.prototype.RECURSION_AVAILABLE=128,pe.TRUNCATED_RESPONSE=pe.prototype.TRUNCATED_RESPONSE=512,pe.AUTHORITATIVE_ANSWER=pe.prototype.AUTHORITATIVE_ANSWER=1024,pe.AUTHENTIC_DATA=pe.prototype.AUTHENTIC_DATA=32,pe.CHECKING_DISABLED=pe.prototype.CHECKING_DISABLED=16,pe.prototype.address=function(){return this.socket.address()},pe.prototype.bind=function(e,t){t&&this.once("listening",t),this.socket.bind(e)},pe.prototype.destroy=function(e){if(e&&this.once("close",e),!this.destroyed){this.destroyed=!0,clearInterval(this._interval),this.socket.close();for(var t=0;this._queries.length>t;t++){var r=this._queries[t];r&&r.callback(Error("Socket destroyed"))}this._queries=[],this._ids=[],this.inflight=0}},pe.prototype._ontimeout=function(){for(var e=0;this._queries.length>e;e++){var t=this._queries[e];t&&(t.tries.length?--t.tries[0]||(t.tries.shift(),this.socket.send(t.buffer,0,t.buffer.length,t.port,t.host)):(this._queries[e]=null,this._ids[e]=0,this.inflight--,this.emit("timeout",t.query,t.port,t.host),t.callback(Error("Query timed out"))))}this._trim()},pe.prototype._onmessage=function(e,t){try{var r=So(e)}catch(e){return void this.emit("warning",e)}if("response"===r.type&&r.id){var n=this._ids.indexOf(r.id),s=n>-1?this._queries[n]:null;s&&(this.inflight--,this._ids[n]=0,this._queries[n]=null,this._trim(),s.callback(null,r,s.query,t.port,t.address))}this.emit(r.type,r,t.port,t.address)},pe.prototype._trim=function(){for(;this._ids.length&&!this._ids[this._ids.length-1];)this._ids.pop(),this._queries.pop()},pe.prototype.unref=function(){this.socket.unref()},pe.prototype.ref=function(){this.socket.ref()},pe.prototype.response=function(e,t,r,n){if(!this.destroyed){t.type="response",t.id=e.id;var s=_o(t);this.socket.send(s,0,s.length,r,n||"127.0.0.1")}},pe.prototype.cancel=function(e){var t=this._ids.indexOf(e),r=this._queries[t];r&&(this._queries[t]=null,this._ids[t]=0,this.inflight--,r.callback(Error("Query cancelled")))},pe.prototype.setRetries=function(e,t){var r=this._ids.indexOf(e),n=this._queries[r];if(n){for(;t>n.tries.length;)n.tries.push(n.tries.length?2*n.tries[n.tries.length-1]:4);n.tries.length>t&&(n.tries=n.tries.slice(0,t))}},pe.prototype.query=function(e,t,r,n){if("function"==typeof r)return this.query(e,t,null,r);if(n||(n=fe),this.destroyed)return((e,t)=>{process.nextTick((()=>{e(t)}))})(n,Error("Socket destroyed")),0;this.inflight++,e.type="query",e.flags="number"==typeof e.flags?e.flags:pe.RECURSION_DESIRED;var s=e.id=this._id++;65535===this._id&&(this._id=1);var o=this._ids.indexOf(0);-1===o&&(o=this._ids.push(0)-1),this._queries.length===o&&this._queries.push(null);var i=_o(e),a=this._triesArray.slice(0);return this._ids[o]=s,this._queries[o]={callback:n,tries:a,query:e,buffer:i,port:t,host:r},this.socket.send(i,0,i.length,t,r||"127.0.0.1"),s};var ri,ni,si,oi,ii={},ai=kt.PassThrough,ci=kt.Transform,li={};oi=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()));var ui={},di=Object.getOwnPropertySymbols,hi={}.hasOwnProperty,pi={}.propertyIsEnumerable;ui=(()=>{try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;10>r;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((e=>t[e])).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((e=>{n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()?Object.assign:function(e,t){for(var r,n,s=ge(e),o=1;arguments.length>o;o++){for(var i in r=Object(arguments[o]))hi.call(r,i)&&(s[i]=r[i]);if(di){n=di(r);for(var a=0;n.length>a;a++)pi.call(r,n[a])&&(s[n[a]]=r[n[a]])}}return s};var fi,mi,gi=RegExp("%[a-f0-9]{2}","gi"),yi=RegExp("(%[a-f0-9]{2})+","gi");fi=e=>{if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return(e=>{for(var t={"%FE%FF":"��","%FF%FE":"��"},r=yi.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=ve(r[0]);n!==r[0]&&(t[r[0]]=n)}r=yi.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),o=0;s.length>o;o++){var i=s[o];e=e.replace(RegExp(i,"g"),t[i])}return e})(e)}},ni=(e,t)=>{var r=(e=>{var t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),n[e=e.replace(/\[\]$/,"")]=t?void 0!==n[e]?[].concat(n[e],r):[r]:r};default:return(e,t,r)=>{r[e]=void 0!==r[e]?[].concat(r[e],t):t}}})(t=ui({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((e=>{var t=e.replace(/\+/g," ").split("="),s=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:fi(o),r(fi(s),o,n)})),Object.keys(n).sort().reduce(((e,t)=>{var r=n[t];return e[t]=r&&"object"==typeof r&&!Array.isArray(r)?we(r):r,e}),Object.create(null))):n},si=(e,t)=>{!1===(t=ui({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=()=>{});var r=(e=>{switch(e.arrayFormat){case"index":return(t,r,n)=>null===r?be(t,e)+"["+n+"]":be(t,e)+"["+be(n,e)+"]="+be(r,e);case"bracket":return(t,r)=>null===r?be(t,e):be(t,e)+"[]="+be(r,e);default:return(t,r)=>null===r?be(t,e):be(t,e)+"="+be(r,e)}})(t);return e?Object.keys(e).sort(t.sort).map((n=>{var s=e[n];if(void 0===s)return"";if(null===s)return be(n,t);if(Array.isArray(s)){var o=[];return s.slice().forEach((e=>{void 0!==e&&o.push(r(n,e,o.length))})),o.join("&")}return be(n,t)+"="+be(s,t)})).filter((e=>e.length>0)).join("&"):""},mi=(e,t)=>{if("string"!=typeof e)throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``);return e=e.trim(),t=Object.assign({https:!1},t),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")};var vi,bi,wi={}.toString;bi=e=>{var t;return"[object Object]"===wi.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))},vi=(e,t)=>{if(!bi(e))throw new TypeError("Expected a plain object");if("function"==typeof(t=t||{}))throw new TypeError("Specify the compare function as an option instead");const r=t.deep,n=[],s=[],o=e=>{const i=n.indexOf(e);if(-1!==i)return s[i];const a={},c=Object.keys(e).sort(t.compare);n.push(e),s.push(a);for(let t=0;c.length>t;t++){const n=c[t],s=e[n];if(r&&Array.isArray(s)){const e=[];for(let t=0;s.length>t;t++)e[t]=bi(s[t])?o(s[t]):s[t];a[n]=e}else a[n]=r&&bi(s)?o(s):s}return a};return o(e)};const Ei={"http:":80,"https:":443,"ftp:":21},xi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};ri=(e,t)=>{if(t=Object.assign({normalizeProtocol:!0,normalizeHttps:!1,stripFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),"string"!=typeof e)throw new TypeError("Expected a string");const r=e.startsWith("//");e=mi(e.trim()).replace(/^\/\//,"http://");const n=Lt.parse(e);if(t.normalizeHttps&&"https:"===n.protocol&&(n.protocol="http:"),!n.hostname&&!n.pathname)throw Error("Invalid URL");if(delete n.host,delete n.query,t.stripFragment&&delete n.hash,+n.port===Ei[n.protocol]&&delete n.port,n.pathname&&(n.pathname=n.pathname.replace(/\/{2,}/g,"/")),n.pathname&&(n.pathname=decodeURI(n.pathname)),!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=n.pathname.split("/");Ee(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),n.pathname=e.slice(1).join("/")+"/")}if(xi[n.protocol]){const e=n.protocol+"//"+n.hostname,t=Lt.resolve(e,n.pathname);n.pathname=t.replace(e,"")}n.hostname&&(n.hostname=Mt.toUnicode(n.hostname).toLowerCase(),n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&(n.hostname=n.hostname.replace(/^www\./,""))),"?"===n.search&&delete n.search;const s=ni(n.search);if(Array.isArray(t.removeQueryParameters))for(const e in s)Ee(e,t.removeQueryParameters)&&delete s[e];return t.sortQueryParameters&&(n.search=si(vi(s))),null!==n.search&&(n.search=decodeURIComponent(n.search)),e=Lt.format(n),(t.removeTrailingSlash||"/"===n.pathname)&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),e};var _i={},Si=[200,203,204,206,300,301,404,405,410,414,501],Oi=[200,203,204,300,301,302,303,307,308,404,405,410,414,501],Ti={connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Ri={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};_i=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=n.shared,o=n.cacheHeuristic,i=n.immutableMinTimeToLive,a=n.ignoreCargoCult,c=n._fromObject;if(xe(this,e),c)this._fromObject(c);else{if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=!1!==s,this._cacheHeuristic=void 0!==o?o:.1,this._immutableMinTtl=void 0!==i?i:864e5,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=_e(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=_e(t.headers["cache-control"]),a&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Se(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),!r.headers["cache-control"]&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}}return e.prototype.now=()=>Date.now(),e.prototype.storable=function(){return!(this._reqcc["no-store"]||!("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())||-1===Oi.indexOf(this._status)||this._rescc["no-store"]||this._isShared&&this._rescc.private||this._isShared&&!this._noAuthorization&&!this._allowsStoringAuthenticated()||!(this._resHeaders.expires||this._rescc.public||this._rescc["max-age"]||this._rescc["s-maxage"]||-1!==Si.indexOf(this._status)))},e.prototype._hasExplicitExpiration=function(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires},e.prototype._assertRequestHasHeaders=e=>{if(!e||!e.headers)throw Error("Request headers missing")},e.prototype.satisfiesWithoutRevalidation=function(e){this._assertRequestHasHeaders(e);var t=_e(e.headers["cache-control"]);return!t["no-cache"]&&!/no-cache/.test(e.headers.pragma)&&(!t["max-age"]||this.age()<=t["max-age"])&&(!t["min-fresh"]||this.timeToLive()>=1e3*t["min-fresh"])&&!(this.stale()&&(!t["max-stale"]||this._rescc["must-revalidate"]||!0!==t["max-stale"]&&t["max-stale"]<=this.age()-this.maxAge()))&&this._requestMatches(e,!1)},e.prototype._requestMatches=function(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)},e.prototype._allowsStoringAuthenticated=function(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]},e.prototype._varyMatches=function(e){if(!this._resHeaders.vary)return!0;if("*"===this._resHeaders.vary)return!1;for(var t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/),r=Array.isArray(s=t),n=0,s=r?s:s[Symbol.iterator]();;){var o;if(r){if(n>=s.length)break;o=s[n++]}else{if((n=s.next()).done)break;o=n.value}if(e.headers[o]!==this._reqHeaders[o])return!1}return!0},e.prototype._copyWithoutHopByHopHeaders=e=>{var t={};for(var r in e)Ti[r]||(t[r]=e[r]);if(e.connection)for(var n=e.connection.trim().split(/\s*,\s*/),s=Array.isArray(i=n),o=0,i=s?i:i[Symbol.iterator]();;){var a;if(s){if(o>=i.length)break;a=i[o++]}else{if((o=i.next()).done)break;a=o.value}delete t[a]}if(t.warning){var c=t.warning.split(/,/).filter((e=>!/^\s*1[0-9][0-9]/.test(e)));c.length?t.warning=c.join(",").trim():delete t.warning}return t},e.prototype.responseHeaders=function(){var e=this._copyWithoutHopByHopHeaders(this._resHeaders),t=this.age();return t>86400&&!this._hasExplicitExpiration()&&this.maxAge()>86400&&(e.warning=(e.warning?e.warning+", ":"")+'113 - "rfc7234 5.5.4"'),e.age=""+Math.round(t),e},e.prototype.date=function(){var e=Date.parse(this._resHeaders.date),t=288e5;return Number.isNaN(e)||this._responseTime-t>e||e>this._responseTime+t?this._responseTime:e},e.prototype.age=function(){var e=Math.max(0,(this._responseTime-this.date())/1e3);if(this._resHeaders.age){var t=this._ageValue();t>e&&(e=t)}return e+(this.now()-this._responseTime)/1e3},e.prototype._ageValue=function(){var e=parseInt(this._resHeaders.age);return isFinite(e)?e:0},e.prototype.maxAge=function(){if(!this.storable()||this._rescc["no-cache"])return 0;if(this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)return 0;if("*"===this._resHeaders.vary)return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return parseInt(this._rescc["s-maxage"],10)}if(this._rescc["max-age"])return parseInt(this._rescc["max-age"],10);var e=this._rescc.immutable?this._immutableMinTtl:0,t=this.date();if(this._resHeaders.expires){var r=Date.parse(this._resHeaders.expires);return Number.isNaN(r)||t>r?0:Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){var n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&t>n)return Math.max(e,(t-n)/1e3*this._cacheHeuristic)}return e},e.prototype.timeToLive=function(){return 1e3*Math.max(0,this.maxAge()-this.age())},e.prototype.stale=function(){return this.maxAge()<=this.age()},e.fromObject=function(e){return new this(void 0,void 0,{_fromObject:e})},e.prototype._fromObject=function(e){if(this._responseTime)throw Error("Reinitialized");if(!e||1!==e.v)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=void 0!==e.imm?e.imm:864e5,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc},e.prototype.toObject=function(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}},e.prototype.revalidationHeaders=function(e){this._assertRequestHasHeaders(e);var t=this._copyWithoutHopByHopHeaders(e.headers);if(delete t["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete t["if-none-match"],delete t["if-modified-since"],t;if(this._resHeaders.etag&&(t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&"GET"!=this._method){if(delete t["if-modified-since"],t["if-none-match"]){var r=t["if-none-match"].split(/,/).filter((e=>!/^\s*W\//.test(e)));r.length?t["if-none-match"]=r.join(",").trim():delete t["if-none-match"]}}else this._resHeaders["last-modified"]&&!t["if-modified-since"]&&(t["if-modified-since"]=this._resHeaders["last-modified"]);return t},e.prototype.revalidatedPolicy=function(e,t){if(this._assertRequestHasHeaders(e),!t||!t.headers)throw Error("Response headers missing");var r=!1;if(void 0!==t.status&&304!=t.status?r=!1:t.headers.etag&&!/^\s*W\//.test(t.headers.etag)?r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag:this._resHeaders.etag&&t.headers.etag?r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?r=this._resHeaders["last-modified"]===t.headers["last-modified"]:this._resHeaders.etag||this._resHeaders["last-modified"]||t.headers.etag||t.headers["last-modified"]||(r=!0),!r)return{policy:new this.constructor(e,t),modified:!0};var n={};for(var s in this._resHeaders)n[s]=s in t.headers&&!Ri[s]?t.headers[s]:this._resHeaders[s];var o=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,o),modified:!1}},e}();var Ai,Ci,Ii=kt.Readable;Ai=class extends Ii{constructor(e,t,r,n){if("number"!=typeof e)throw new TypeError("Argument `statusCode` should be a number");if("object"!=typeof t)throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if("string"!=typeof n)throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=ro(t),this.body=r,this.url=n}_read(){this.push(this.body),this.push(null)}},Ci=e=>{for(var t={},r=Object.keys(Object(e)),n=0;r.length>n;n++)t[r[n].toLowerCase()]=e[r[n]];return t};var Pi,$i,ki=kt.PassThrough;const Ni=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];var Li,ji,Ui;Pi=(e,t)=>{const r=new Set(Object.keys(e).concat(Ni));for(const n of r)n in t||(t[n]="function"==typeof e[n]?e[n].bind(e):e[n])},$i=e=>{if(!e||!e.pipe)throw new TypeError("Parameter `response` must be a response stream.");const t=new ki;return Pi(e,t),e.pipe(t)},Li=function e(t){if(void 0===t)return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&"object"==typeof t){var r="",n=Array.isArray(t);r=n?"[":"{";var s=!0;for(var o in t){var i="function"==typeof t[o]||!n&&void 0===t[o];Object.hasOwnProperty.call(t,o)&&!i&&(s||(r+=","),s=!1,n?r+=null==t[o]?"null":e(t[o]):void 0!==t[o]&&(r+=e(o)+":"+e(t[o])))}return r+(n?"]":"}")}return"string"==typeof t?JSON.stringify(/^:/.test(t)?":"+t:t):void 0===t?"null":JSON.stringify(t)},ji=e=>JSON.parse(e,((e,t)=>"string"==typeof t?/^:base64:/.test(t)?new Buffer(t.substring(8),"base64"):/^:/.test(t)?t.substring(1):t:t)),Ui=class extends Tt{constructor(e,t){if(super(),this.opts=Object.assign({namespace:"keyv"},"string"==typeof e?{uri:e}:e,t),!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=(e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map})(e)}"function"==typeof this.opts.store.on&&this.opts.store.on("error",(e=>this.emit("error",e))),this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then((()=>t.get(e))).then((t=>{if(void 0!==(t="string"==typeof t?ji(t):t)){if("number"!=typeof t.expires||Date.now()<=t.expires)return t.value;this.delete(e)}}))}set(e,t,r){e=this._getKeyPrefix(e),void 0===r&&(r=this.opts.ttl),0===r&&(r=void 0);const n=this.opts.store;return Promise.resolve().then((()=>{const s="number"==typeof r?Date.now()+r:null;return n.set(e,Li(t={value:t,expires:s}),r)})).then((()=>!0))}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then((()=>t.delete(e)))}clear(){const e=this.opts.store;return Promise.resolve().then((()=>e.clear()))}};class Di{constructor(e,t){if("function"!=typeof e)throw new TypeError("Parameter `request` must be a function");return this.cache=new Ui({uri:"string"==typeof t&&t,store:"string"!=typeof t&&t,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{"string"==typeof t&&(t=Lt.parse(t)),(t=Object.assign({headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1},t)).headers=Ci(t.headers);const n=new Tt,s=ri(Lt.format(t)),o=`${t.method}:${s}`;let i=!1,a=!1;const c=t=>{a=!0;const s=e=>{if(i){const r=_i.fromObject(i.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();(e=new Ai(e.statusCode,t,i.body,i.url)).cachePolicy=r.policy,e.fromCache=!0}}let s;e.fromCache||(e.cachePolicy=new _i(t,e),e.fromCache=!1),t.cache&&e.cachePolicy.storable()?(s=$i(e),so.buffer(e).then((r=>{const n={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?i.statusCode:e.statusCode,body:r},s=t.strictTtl?e.cachePolicy.timeToLive():void 0;return this.cache.set(o,n,s)})).catch((e=>n.emit("error",new Di.CacheError(e))))):t.cache&&i&&this.cache.delete(o).catch((e=>n.emit("error",new Di.CacheError(e)))),n.emit("response",s||e),"function"==typeof r&&r(s||e)};try{const r=e(t,s);n.emit("request",r)}catch(e){n.emit("error",new Di.RequestError(e))}};return this.cache.on("error",(e=>n.emit("error",new Di.CacheError(e)))),(e=>Promise.resolve().then((()=>e.cache?this.cache.get(o):void 0)).then((t=>{if(void 0===t)return c(e);const s=_i.fromObject(t.cachePolicy);if(s.satisfiesWithoutRevalidation(e)){const e=s.responseHeaders(),o=new Ai(t.statusCode,e,t.body,t.url);o.cachePolicy=s,o.fromCache=!0,n.emit("response",o),"function"==typeof r&&r(o)}else i=t,e.headers=s.revalidationHeaders(e),c(e)})))(t).catch((e=>{t.automaticFailover&&!a&&c(t),n.emit("error",new Di.CacheError(e))})),n}}}Di.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}},Di.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}},li=Di;var Mi,Fi={},Bi=Gt("fxp1R").Readable,Hi=Gt("8MQIj");Fi=Oe,Oe.ctor=Te,Oe.obj=(e,t)=>(("function"==typeof e||Array.isArray(e))&&(t=e,e={}),(e=Ae(e)).objectMode=!0,e.highWaterMark=16,Oe(e,t));var qi,Gi=Te();qi=e=>e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch,(Mi=e=>{function t(t){r=qi(e=t)?e:null;const s=!r&&e[Symbol.iterator]&&"string"!=typeof e&&!Buffer.isBuffer(e);n=s?e[Symbol.iterator]():null}let r,n;return Array.isArray(e)&&(e=e.slice()),t(e),Fi((function s(o,i){if(r)return void r.then(t).then((()=>s.call(this,o,i)),i);if(n){const e=n.next();return void setImmediate(i,null,e.done?null:e.value)}if(0===e.length)return void setImmediate(i,null,null);const a=e.slice(0,o);e=e.slice(o),setImmediate(i,null,a)}))}).obj=e=>{function t(t){r=qi(e=t)?e:null,n=!r&&e[Symbol.iterator]?e[Symbol.iterator]():null}let r,n;return Array.isArray(e)&&(e=e.slice()),t(e),Fi.obj((function s(o,i){if(r)r.then(t).then((()=>s.call(this,o,i)),i);else if(n){const e=n.next();setImmediate(i,null,e.done?null:e.value)}else this.push(e),setImmediate(i,null,null)}))};var zi={};Object.defineProperty(zi,"__esModule",{value:!0});const Vi={}.toString,Wi=e=>t=>typeof t===e,Yi=e=>Vi.call(e).slice(8,-1)||null,Xi=e=>t=>Yi(t)===e;var Ki;(e=>{const t=e=>"object"==typeof e;e.undefined=Wi("undefined"),e.string=Wi("string"),e.number=Wi("number"),e.function_=Wi("function"),e.null_=e=>null===e,e.class_=t=>e.function_(t)&&(""+t).startsWith("class "),e.boolean=e=>!0===e||!1===e,e.symbol=Wi("symbol"),e.array=Array.isArray,e.buffer=Buffer.isBuffer,e.nullOrUndefined=t=>e.null_(t)||e.undefined(t),e.object=r=>!e.nullOrUndefined(r)&&(e.function_(r)||t(r)),e.iterable=t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]),e.generator=t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw),e.nativePromise=Xi("Promise"),e.promise=r=>e.nativePromise(r)||(r=>!e.null_(r)&&t(r)&&e.function_(r.then)&&e.function_(r.catch))(r);const r=t=>r=>e.function_(r)&&e.function_(r.constructor)&&r.constructor.name===t;e.generatorFunction=r("GeneratorFunction"),e.asyncFunction=r("AsyncFunction"),e.boundFunction=t=>e.function_(t)&&!t.hasOwnProperty("prototype"),e.regExp=Xi("RegExp"),e.date=Xi("Date"),e.error=Xi("Error"),e.map=Xi("Map"),e.set=Xi("Set"),e.weakMap=Xi("WeakMap"),e.weakSet=Xi("WeakSet"),e.int8Array=Xi("Int8Array"),e.uint8Array=Xi("Uint8Array"),e.uint8ClampedArray=Xi("Uint8ClampedArray"),e.int16Array=Xi("Int16Array"),e.uint16Array=Xi("Uint16Array"),e.int32Array=Xi("Int32Array"),e.uint32Array=Xi("Uint32Array"),e.float32Array=Xi("Float32Array"),e.float64Array=Xi("Float64Array"),e.arrayBuffer=Xi("ArrayBuffer"),e.sharedArrayBuffer=Xi("SharedArrayBuffer"),e.dataView=Xi("DataView"),e.directInstanceOf=(t,r)=>e.object(t)&&e.object(r)&&Object.getPrototypeOf(t)===r.prototype,e.truthy=e=>!!e,e.falsy=e=>!e,e.nan=e=>Number.isNaN(e);const n=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=t=>e.null_(t)||n.has(typeof t),e.integer=e=>Number.isInteger(e),e.safeInteger=e=>Number.isSafeInteger(e),e.plainObject=e=>{let t;return"Object"===Yi(e)&&(t=Object.getPrototypeOf(e),null===t||t===Object.getPrototypeOf({}))};const s=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=e=>{const t=Yi(e);return null!==t&&s.has(t)},e.arrayLike=t=>!e.nullOrUndefined(t)&&!e.function_(t)&&(t=>e.safeInteger(t)&&t>-1)(t.length),e.inRange=(t,r)=>{if(e.number(r))return t>=Math.min(0,r)&&Math.max(r,0)>=t;if(e.array(r)&&2===r.length)return t>=Math.min.apply(null,r)&&t<=Math.max.apply(null,r);throw new TypeError("Invalid range: "+At.inspect(r))};const o=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=t=>e.object(t)&&1===t.nodeType&&e.string(t.nodeName)&&!e.plainObject(t)&&o.every((e=>e in t)),e.nodeStream=r=>!e.nullOrUndefined(r)&&t(r)&&e.function_(r.pipe),e.infinite=e=>e===1/0||e===-1/0;const i=t=>r=>e.integer(r)&&Math.abs(r%2)===t;e.even=i(0),e.odd=i(1),e.empty=t=>e.falsy(t)||(t=>(e.string(t)||e.array(t))&&0===t.length)(t)||(t=>!e.map(t)&&!e.set(t)&&e.object(t)&&0===Object.keys(t).length)(t)||(t=>(e.map(t)||e.set(t))&&0===t.size)(t),e.emptyOrWhitespace=t=>e.empty(t)||(t=>e.string(t)&&!1===/\S/.test(t))(t);const a=(t,r,n)=>{const s=[].slice.call(n,1);if(!1===e.function_(r))throw new TypeError("Invalid predicate: "+At.inspect(r));if(0===s.length)throw new TypeError("Invalid number of values");return t.call(s,r)};e.any=function(e){return a([].some,e,arguments)},e.all=function(e){return a([].every,e,arguments)}})(Ce||(Ce={})),Object.defineProperties(Ce,{class:{value:Ce.class_},function:{value:Ce.function_},null:{value:Ce.null_}}),zi.default=Ce,(zi=Ce).default=Ce,Ki=(e,t)=>{if("string"!=typeof e)throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`);const r=mi(e,Object.assign({https:!0},t));return Lt.parse(r)};var Ji={};Ji=e=>{var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return""!==e.port&&(t.port=+e.port),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t};var Qi,Zi=kt.PassThrough;Qi=e=>{if(-1===["gzip","deflate"].indexOf(e.headers["content-encoding"]))return e;const t=Ut.createUnzip(),r=new Zi;return Pi(e,r),t.on("error",(e=>{"Z_BUF_ERROR"!==e.code?r.emit("error",e):r.end()})),e.pipe(t).pipe(r),r};var ea,ta,ra={};ea=Gt("2r32K")&&"symbol"==typeof Symbol.toStringTag,ta=e=>"object"==typeof e&&null!==e;const na={}.toString,sa=(e,t)=>!!ta(e)&&(!ea&&"[object URL]"===na.call(e)||"href"in e&&"protocol"in e&&"username"in e&&"password"in e&&"hostname"in e&&"port"in e&&"host"in e&&"pathname"in e&&"search"in e&&"hash"in e&&!(!0!==t&&!ta(e.searchParams)));sa.lenient=e=>sa(e,!0),ra=sa;var oa,ia,aa,ca={};class la extends Error{constructor(){super("Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class ua{static fn(e){return function(){const t=[].slice.apply(arguments);return new ua(((r,n,s)=>{t.push(s),e.apply(null,t).then(r,n)}))}}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._promise=new Promise(((t,r)=>(this._reject=r,e((e=>{this._isPending=!1,t(e)}),(e=>{this._isPending=!1,r(e)}),(e=>{this._cancelHandlers.push(e)})))))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(){if(this._isPending&&!this._isCanceled){if(this._cancelHandlers.length>0)try{for(const e of this._cancelHandlers)e()}catch(e){this._reject(e)}this._isCanceled=!0,this._reject(new la)}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(ua.prototype,Promise.prototype),(ca=ua).CancelError=la,ia=(e,t)=>(t=t||(()=>{}),e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e})))));class da extends Error{constructor(e){super(e),this.name="TimeoutError"}}(oa=(e,t,r)=>new Promise(((n,s)=>{if("number"!=typeof t||0>t)throw new TypeError("Expected `ms` to be a positive number");const o=setTimeout((()=>{if("function"==typeof r){try{n(r())}catch(o){s(o)}return}const o=r instanceof Error?r:new da("string"==typeof r?r:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),s(o)}),t);ia(e.then(n,s),(()=>{clearTimeout(o)}))}))).TimeoutError=da;const ha=(e,t)=>function(){const r=t.promiseModule,n=Array(arguments.length);for(let e=0;arguments.length>e;e++)n[e]=arguments[e];return new r(((r,s)=>{n.push(t.errorFirst?function(e,n){if(t.multiArgs){const t=Array(arguments.length-1);for(let e=1;arguments.length>e;e++)t[e-1]=arguments[e];e?(t.unshift(e),s(t)):r(t)}else e?s(e):r(n)}:function(e){if(t.multiArgs){const e=Array(arguments.length-1);for(let t=0;arguments.length>t;t++)e[t]=arguments[t];r(e)}else r(e)}),e.apply(this,n)}))};aa=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let n;n="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):ha(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const s in e){const o=e[s];n[s]="function"==typeof o&&r(s)?ha(o,t):o}return n};var pa,fa=fo.Buffer;pa=JSON.parse('{"name":"got","version":"8.3.2","description":"Simplified HTTP requests","license":"MIT","repository":"sindresorhus/got","maintainers":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},{"name":"Alexander Tesfamichael","email":"alex.tesfamichael@gmail.com","url":"alextes.me"}],"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","errors.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],"dependencies":{"@sindresorhus/is":"^0.7.0","cacheable-request":"^2.1.1","decompress-response":"^3.3.0","duplexer3":"^0.1.4","get-stream":"^3.0.0","into-stream":"^3.1.0","is-retry-allowed":"^1.1.0","isurl":"^1.0.0-alpha5","lowercase-keys":"^1.0.0","mimic-response":"^1.0.0","p-cancelable":"^0.4.0","p-timeout":"^2.0.1","pify":"^3.0.0","safe-buffer":"^5.1.1","timed-out":"^4.0.1","url-parse-lax":"^3.0.0","url-to-options":"^1.0.1"},"devDependencies":{"ava":"^0.25.0","coveralls":"^3.0.0","form-data":"^2.1.1","get-port":"^3.0.0","nyc":"^11.0.2","p-event":"^1.3.0","pem":"^1.4.4","proxyquire":"^1.8.0","sinon":"^4.0.0","slow-stream":"0.0.4","tempfile":"^2.0.0","tempy":"^0.2.1","universal-url":"1.0.0-alpha","xo":"^0.20.0"},"ava":{"concurrency":4},"browser":{"decompress-response":false,"electron":false}}');var ma,ga,ya,va,ba,wa,Ea,xa,_a,Sa={};e(Sa,"GotError",(()=>ma),(e=>ma=e)),e(Sa,"CacheError",(()=>ga),(e=>ga=e)),e(Sa,"RequestError",(()=>ya),(e=>ya=e)),e(Sa,"ReadError",(()=>va),(e=>va=e)),e(Sa,"ParseError",(()=>ba),(e=>ba=e)),e(Sa,"HTTPError",(()=>wa),(e=>wa=e)),e(Sa,"MaxRedirectsError",(()=>Ea),(e=>Ea=e)),e(Sa,"UnsupportedProtocolError",(()=>xa),(e=>xa=e)),e(Sa,"CancelError",(()=>_a),(e=>_a=e));class Oa extends Error{constructor(e,t,r){super(e),Error.captureStackTrace(this,this.constructor),this.name="GotError",zi.undefined(t.code)||(this.code=t.code),Object.assign(this,{host:r.host,hostname:r.hostname,method:r.method,path:r.path,protocol:r.protocol,url:r.href})}}ma=Oa,ga=class extends Oa{constructor(e,t){super(e.message,e,t),this.name="CacheError"}},ya=class extends Oa{constructor(e,t){super(e.message,e,t),this.name="RequestError"}},va=class extends Oa{constructor(e,t){super(e.message,e,t),this.name="ReadError"}},ba=class extends Oa{constructor(e,t,r,n){super(`${e.message} in "${Lt.format(r)}": \n${n.slice(0,77)}...`,e,r),this.name="ParseError",this.statusCode=t,this.statusMessage=_t.STATUS_CODES[this.statusCode]}},wa=class extends Oa{constructor(e,t,r,n){super(`Response code ${e} (${t=t?t.replace(/\r?\n/g," ").trim():_t.STATUS_CODES[e]})`,{},n),this.name="HTTPError",this.statusCode=e,this.statusMessage=t,this.headers=r}},Ea=class extends Oa{constructor(e,t,r){super("Redirected 10 times. Aborting.",{},r),this.name="MaxRedirectsError",this.statusCode=e,this.statusMessage=_t.STATUS_CODES[this.statusCode],this.redirectUrls=t}},xa=class extends Oa{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e),this.name="UnsupportedProtocolError"}},_a=ca.CancelError;const Ta=new Set([300,301,302,303,304,305,307,308]),Ra=new Set([300,303,307,308]),Aa=e=>zi.nodeStream(e)&&zi.function(e.getBoundary);ke.stream=(e,t)=>Pe($e(e,t));const Ca=["get","post","put","patch","head","delete"];for(const e of Ca)ke[e]=(t,r)=>ke(t,Object.assign({},r,{method:e})),ke.stream[e]=(t,r)=>ke.stream(t,Object.assign({},r,{method:e}));var Ia,Pa;Object.assign(ke,Sa),ii=ke;const $a="(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0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th0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Na=Pa=e=>e&&e.exact?RegExp(`(?:^${$a}$)|(?:^${ka}$)`):RegExp(`(?:${$a})|(?:${ka})`,"g");Na.v4=e=>e&&e.exact?RegExp(`^${$a}$`):RegExp($a,"g"),Na.v6=e=>e&&e.exact?RegExp(`^${ka}$`):RegExp(ka,"g");const La=Ia=e=>Pa({exact:!0}).test(e);La.v4=e=>Pa.v4({exact:!0}).test(e),La.v6=e=>Pa.v6({exact:!0}).test(e);const ja={timeout:5e3,https:!1},Ua={v4:{dnsServer:"208.67.222.222",dnsQuestion:{name:"myip.opendns.com",type:"A"},httpsUrl:"https://ipv4.icanhazip.com/"},v6:{dnsServer:"2620:0:ccc::2",dnsQuestion:{name:"myip.opendns.com",type:"AAAA"},httpsUrl:"https://ipv6.icanhazip.com/"}},Da=(e,t)=>{const r=Ua[e],n=Io({retries:0,socket:Dt.createSocket("v6"===e?"udp6":"udp4"),timeout:t.timeout}),s=aa(n.query.bind(n))({questions:[r.dnsQuestion]},53,r.dnsServer).then((t=>{n.destroy();const r=(t.answers[0]&&t.answers[0].data||"").trim();if(!r||!Ia[e](r))throw Error("Couldn't find your IP");return r})).catch((e=>{throw n.destroy(),e}));return s.cancel=()=>{n.cancel()},s},Ma=(e,t)=>{const r=ii(Ua[e].httpsUrl,{family:"v6"===e?6:4,retries:0,timeout:t.timeout}),n=r.then((e=>{const t=(e.body||"").trim();if(!t)throw Error("Couldn't find your IP");return t})).catch((e=>{if(!(e instanceof ii.CancelError))throw e}));return n.cancel=r.cancel,n};wo=e=>(e=Object.assign({},ja,e)).https?Ma("v4",e):Da("v4",e),Eo=e=>(e=Object.assign({},ja,e)).https?Ma("v6",e):Da("v6",e);var Fa,Ba,Ha,qa,Ga={};Ha=(e,t,r)=>{const n="object"==typeof r?Object.assign({indent:" "},r):{indent:r||" "};if(t=void 0===t?1:t,"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof n.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);return 0===t?e:e.replace(n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm,n.indent.repeat(t))};const za=/\s+at.*(?:\(|\s)(.*)\)?/,Va=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/babel-polyfill\/.*)?\w+)\.js:\d+:\d+)|native)/,Wa=wt.homedir();qa=(e,t)=>(t=Object.assign({pretty:!1},t),e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(za);if(null===t||!t[1])return!0;const r=t[1];return!r.includes(".app/Contents/Resources/electron.asar")&&!r.includes(".app/Contents/Resources/default_app.asar")&&!Va.test(r)})).filter((e=>""!==e.trim())).map((e=>t.pretty?e.replace(za,((e,t)=>e.replace(t,t.replace(Wa,"~")))):e)).join("\n"));class Ya extends Error{constructor(e){if(!e[Symbol.iterator]||"string"==typeof e)throw new TypeError("Expected input to be iterable, got "+typeof e);let t=(e=Array.from(e).map((e=>e instanceof Error?e:Error(e)))).map((e=>qa(e.stack).replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""))).join("\n");t="\n"+Ha(t,4),super(t),this.name=this.constructor.name,Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors)yield e}}var Xa;(Fa=(e,t)=>Ba(e,Object.assign({},t,{count:1})).then((e=>e[0]))).AggregateError=(Ba=(e,t)=>new Promise(((r,n)=>{if(t=Object.assign({},t),!Number.isFinite(t.count))throw new TypeError("Expected a finite number, got "+typeof t.count);const s=[],o=[];let i=0,a=1-t.count,c=1-t.count,l=!1;const u=e=>{l||("function"!=typeof t.filter||t.filter(e)?(s.push(e),0==--t.count&&(l=!0,r(s))):0==--c&&(l=!0,n(new RangeError("Not enough values pass the `filter` option"))))},d=e=>{l||(o.push(e),0==--a&&(l=!0,n(new Ga(o))))};for(const t of e)a++,c++,i++,Promise.resolve(t).then(u,d);if(t.count>i)throw new RangeError(`Expected input to contain at least ${t.count} items, but contains ${i} items`)}))).AggregateError=Ga=Ya;class Ka extends Error{constructor(e){super(e),this.name="TimeoutError"}}(Xa=(e,t,r)=>new Promise(((n,s)=>{if("number"!=typeof t||0>t)throw new TypeError("Expected `ms` to be a positive number");const o=setTimeout((()=>{if("function"==typeof r)return void n(r());const e=r instanceof Error?r:new Ka("string"==typeof r?r:`Promise timed out after ${t} milliseconds`);s(e)}),t);ia(e.then(n,s),(()=>{clearTimeout(o)}))}))).TimeoutError=Ka;const Ja={timeout:5e3,version:"v4"};var Qa;let Za;bo=e=>{e=Object.assign({},Ja,e);const t=Fa([xo[e.version]().then((()=>!0)),xo[e.version]({https:!0}).then((()=>!0)),Ne(e)]);return Xa(t,e.timeout).catch((()=>!1))},Qa=JSON.parse('{"name":"is-link-working","version":"2.2.0","description":"Checks if a given link is working or broken","main":"index.js","scripts":{"lint":"eslint \'{*.js,test/**/*.js}\' --ignore-pattern=test/coverage","test":"mocha --bail","test-cov":"istanbul cover --dir test/coverage _mocha -- --bail && echo Coverage lies in test/coverage/lcov-report/index.html","test-travis":"istanbul cover _mocha --report lcovonly -- --bail && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"bugs":{"url":"https://github.com/IndigoUnited/node-is-link-working/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-is-link-working.git"},"keywords":["url","link","uri","working","check","alive","ok","broken"],"author":"IndigoUnited (http://indigounited.com)","license":"MIT","dependencies":{"got":"^6.3.0","is-online":"^7.0.0"},"devDependencies":{"@satazor/eslint-config":"^3.0.0","chai":"^3.4.1","coveralls":"^2.11.6","eslint":"^3.0.0","istanbul":"^0.4.1","mocha":"^3.0.2","mock-require":"^2.0.0","nock":"^9.0.0","promise-delay":"^2.1.0"},"engines":{"node":">=4.0.0"}}');class ec extends Ws{_write(e,t,r){r()}}(Vs=(e,t)=>{const r={timeout:(t=Object.assign({checkConnectivity:!1,followRedirect:!0,timeout:15e3,retries:3,agent:null},t)).timeout,followRedirect:t.followRedirect,retries:t.retries,agent:t.agent,headers:{"user-agent":`is-link-working/${Qa.version} (https://github.com/IndigoUnited/is-link-working)`}};return((e,t)=>Ys.head(e,t).then((()=>!0)))(e,r).catch((()=>((e,t,r)=>new Promise(((n,s)=>{let o,i;try{o=Ys.stream(e,r)}catch(e){return n(!1)}o.on("request",(e=>{i=e})).on("response",(e=>{e.on("error",(()=>{})),setImmediate((()=>i.abort())),n(!0)})).on("error",((e,r,o)=>{return o&&o.on("error",(()=>{})),setImmediate((()=>i.abort())),e instanceof Ys.MaxRedirectsError||e instanceof Ys.HTTPError?n(!1):e instanceof Ys.RequestError?n(!!t.checkConnectivity&&(a=e,(Za&&Za.cachedAt>Date.now()-Vs.connectivityCacheDuration||(Za=new Promise(((e,t)=>{bo(((r,n)=>{r?(delete Za.promise,t(r)):e(n)}))})),Za.cachedAt=Date.now()),Za).catch((()=>{throw a})).then((e=>{if(!e)throw a;return!1})))):void s(e);var a})).pipe(new ec)})))(e,t,r)))}).connectivityCacheDuration=5e3;var tc=Gt("howpO"),rc=(zs=Gt("1YYsi"),Gt("fVzwP"));Ps=Gt("ca0ts"),Yn=Gt("ditiY");const nc=/v?(\d\S*)/,sc={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.50.0",meson:"0.63.0",kcov:"40",task:"3.14.0",doxygen:A()?"1.9.3-1":"1.9.4",gcc:"11"},oc={llvm:{22:"13.0.0-ubuntu-20.04",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:{22:"13.0.0-ubuntu-20.04",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:{22:"13.0.0-ubuntu-20.04",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.63.0",18:"0.61.4"},doxygen:{20:"1.9.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};let ic,ac,cc=!1;Yn=Gt("ditiY"),Gs=Gt("fwsB7");var lc=Gt("fB2B7"),uc=(Ps=Gt("ca0ts"),Yn=Gt("ditiY"),zt=Gt("04fde"),Yn=Gt("ditiY"),Vn=Gt("gmbrv"),lc=Gt("fB2B7"),zs=Gt("1YYsi"),Yn=Gt("ditiY"),Vn=Gt("gmbrv"),Et.resolve(__dirname,"../src/gcc"));const dc={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 hc=Et.resolve(__dirname,"../src/llvm");const pc=(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","14.0.4","14.0.5","14.0.6"]),fc=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"]),mc=new Map,gc={"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"},yc=new Set(["10.0.1"]);let vc=!1;var bc,wc,Ec,xc={},_c=xc&&xc.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((s,o)=>{function i(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),Sc=xc&&xc.__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(xc,"__esModule",{value:!0});var Oc={},Tc=Oc&&Oc.__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(Oc,"__esModule",{value:!0});const Rc=Tc(wt);var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Oc.issueCommand=Qe,Oc.issue=(e,t="")=>{Qe(e,{},t)};class Cc{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 n in this.properties)if(this.properties.hasOwnProperty(n)){const s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${t=s,Ac.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Ac.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Ic={},Pc=Ic&&Ic.__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(Ic,"__esModule",{value:!0});const $c=Pc(xt),kc=Pc(wt);Ic.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!$c.existsSync(r))throw Error("Missing file at path: "+r);$c.appendFileSync(r,`${Ac.toCommandValue(t)}${kc.EOL}`,{encoding:"utf8"})};const Nc=Sc(wt),Lc=Sc(Et);var jc,Uc;(Uc=jc=xc.ExitCode||(xc.ExitCode={}))[Uc.Success=0]="Success",Uc[Uc.Failure=1]="Failure",xc.exportVariable=(e,t)=>{const r=Ac.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Ic.issueCommand("ENV",`${e}<<${t}${Nc.EOL}${r}${Nc.EOL}${t}`)}else Oc.issueCommand("set-env",{name:e},r)},xc.setSecret=e=>{Oc.issueCommand("add-mask",{},e)},xc.addPath=e=>{process.env.GITHUB_PATH?Ic.issueCommand("PATH",e):Oc.issueCommand("add-path",{},e),process.env.PATH=`${e}${Lc.delimiter}${process.env.PATH}`},xc.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()},xc.setOutput=(e,t)=>{Oc.issueCommand("set-output",{name:e},t)},xc.setCommandEcho=e=>{Oc.issue("echo",e?"on":"off")},xc.setFailed=e=>{process.exitCode=jc.Failure,Ze(e)},xc.isDebug=()=>"1"===process.env.RUNNER_DEBUG,xc.debug=e=>{Oc.issueCommand("debug",{},e)},xc.error=Ze,xc.warning=e=>{Oc.issue("warning",e instanceof Error?""+e:e)},xc.info=e=>{process.stdout.write(e+Nc.EOL)},xc.startGroup=et,xc.endGroup=tt,xc.group=function(e,t){return _c(this,void 0,void 0,(function*(){let r;et(e);try{r=yield t()}finally{tt()}return r}))},xc.saveState=(e,t)=>{Oc.issueCommand("save-state",{name:e},t)},xc.getState=e=>process.env["STATE_"+e]||"";const Dc=Ft.env["ProgramFiles(x86)"],Mc=[Ft.env["ProgramFiles(x86)"],Ft.env.ProgramFiles],Fc=["Enterprise","Professional","Community"],Bc=["2022","2019","2017"],Hc={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};bc=rt;const qc=Dc+"\\Microsoft Visual Studio\\Installer";wc=st,Ec=(e,t,r,n,s,o)=>{if("win32"!=Ft.platform)return void xc.info("This is not a Windows virtual environment, bye!");Ft.env.PATH+=Et.delimiter+qc;let i={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in i&&(e=i[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==s&&a.push("-vcvars_spectre_libs=spectre");const c=`"${st(o)}" ${a.join(" ")}`;xc.debug("vcvars command-line: "+c);const l=(""+Ct.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),d=l[1].split("\r\n"),h=l[2].split("\r\n"),p=d.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(p.length>0)throw Error("invalid parameters\r\n"+p.join("\r\n"));let f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}xc.startGroup("Environment variables");for(let e of h){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(xc.info("Setting "+t),ot(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),xc.exportVariable(t,r))}xc.endGroup(),xc.info("Configured Developer Command Prompt")},Yn=Gt("ditiY"),Vn=Gt("gmbrv"),Yn=Gt("ditiY");var Gc,zc=Et.resolve(__dirname,"../src/msvc"),Vc=(Vn=Gt("gmbrv"),{});Vc=Gt("cReTf"),Gc={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 Wc=Gt("5FRs7"),Yc={};Gt("j5MHF").addLocale("en",(e=>{var t=Math.floor(Math.abs(e)),r=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r?"one":"other"}));var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.getUbuntuVersion=void 0,Xc.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,n)=>{Ct.execFile(t,r,{encoding:"utf8",shell:!1},((s,o,i)=>{if(s)return"errno"in s&&"ENOENT"===s.code?void e(null):void n(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${s} (stderr=${i})`));e(o)}))})));var t,r;if(null===e)return[];const n=/^Distributor ID:\s*(.+)$/,s=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,o=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let i=null,a=null,c=!1;for(const t of e.split("\n")){const e=t.match(n);if(null!==e){if("Ubuntu"!==e[1])return[];c=!0}const r=t.match(s);r&&(i=r);const l=t.match(o);if(l&&(a=l),c&&i&&a)break}if(!c)return[];for(const e of[i,a])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},rc=Gt("fVzwP"),Yn=Gt("ditiY"),Yn=Gt("ditiY");let Kc,Jc=!1;Yn=Gt("ditiY");const Qc={async nala(e,r,n){if(!P())return;if("string"==typeof Kc)return{binDir:Kc};const s=t(Vt).sync("nala",{nothrow:!0});if(null!==s)return Kc=(0,Et.dirname)(s),{binDir:Kc};u("/bin/bash",["-c",`echo "deb [signed-by=${await x("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key")}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await v("nala",void 0,[],!0):await v("nala-legacy",void 0,[],!0)}catch(e){await v("nala-legacy",void 0,[],!0)}return Kc="/usr/bin",{binDir:Kc}},cmake:Q,ninja:lt,python:Z,async vcpkg(e,r,n){return Jc&&null!==t(Vt).sync("vcpkg",{nothrow:!0})?{binDir:(0,Et.dirname)(t(Vt).sync("vcpkg"))}:("linux"===process.platform&&(A()?(S("curl"),S("zip"),S("unzip"),S("tar"),S("git"),S("pkg-config")):C()?(I("curl"),I("zip"),I("unzip"),I("tar"),I("git"),I("pkg-config")):P()&&(await v("curl"),await v("zip"),await v("unzip"),await v("tar"),await v("git"),await v("pkg-config"))),(0,xt.existsSync)((0,Et.join)(r,k("bootstrap-vcpkg")))?(0,Yn.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(rr).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,Et.dirname)(r),stdio:"inherit"}),t(rr).sync(k((s="bootstrap-vcpkg","win32"===process.platform?s:"./"+s)),{cwd:r,shell:!0,stdio:"inherit"}),L(r),await f(r),Jc=!0,{binDir:r});var s},async bazel(e,t,r){switch(process.platform){case"win32":return R("bazelisk",e);case"darwin":return O("bazelisk",e);case"linux":if(A())throw Error("installing bazel on Arch linux is not supported yet");if(C())return I("dnf-plugins-core",void 0),u("dnf",["copr","enable","vbatts/bazel"]),I("bazel4",void 0);if(P())return u("bash",["-c",`echo "deb [arch=amd64 signed-by=${await x("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg")}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),v("bazel",e,[],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async conan(e,t,r){return await De("setuptools",""),De("conan",e)},meson(e,t,r){return De("meson",e)},gcovr(e,t,r){return De("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await R("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:Ye,gcc:qe,choco:T,brew:n,ccache(e,t,r){switch(process.platform){case"win32":return R("ccache",e);case"darwin":return O("ccache",e);case"linux":if(A())return S("ccache",e);if(C())return I("ccache",e);if(P())return v("ccache",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await R("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((0,xt.existsSync)((0,Et.join)(e,"doxygen.exe")))return await f(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await Me(je("graphviz",void 0)),t}case"darwin":{const e=O("doxygen",void 0);return await Me(je("graphviz",void 0)),e}case"linux":{let n;if(""===e||A()||C())if(A())n=S("doxygen",e);else{if(C())return I("doxygen",e);if(!P())throw Error("Unsupported linux distributions");n=await v("doxygen",e)}else{if(!P())throw Error("Unsupported linux distributions");try{n=await X("doxygen",e,Fe,t,r),await v("libclang-cpp9")}catch(e){(0,Yn.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await v("doxygen",void 0)}}return await Me(je("graphviz",void 0)),n}default:throw Error("Unsupported platform")}},graphviz:Me,async cppcheck(e,t,r){switch(process.platform){case"win32":return await R("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return O("cppcheck",e);case"linux":if(A())return S("cppcheck",e);if(C())return I("ccache",e);if(P())return v("cppcheck",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},clangtidy:Ke,clangformat:Ke,msvc:at,vcvarsall:it,async kcov(e,t,r){if("linux"!==process.platform)return void(0,Yn.info)("Kcov is not supported on non-linux");const n=e.split("-");let s=(e=>e.match(/^v/)?e:"v"+e)(n[0]);const o=n[1],i=(e=>parseInt(e.replace(/^v/,""),10))(s);let a;return 38===i&&(s="v38"),"binary"!==o||39>i?(a=await X("kcov",s,pt,t,r),a):(a=await X("kcov",s,ht,t,r),A()?S("binutils"):C()?I("binutils"):P()&&await v("libbinutils"),a)},async make(e,t,r){switch(process.platform){case"win32":return R("make",e);case"darwin":return O("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(A())return S("make",e);if(C())return I("make",e);if(P())return v("make",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task(e,t,r){return X("task",e,K,t,r)},sevenzip:N},Zc=["nala","choco","brew","python","vcpkg","bazel","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],el=["compiler","architecture",...Zc];mt(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,Yn.error)("main() panicked!"),(0,Yn.error)(e),process.exitCode=1})); //# sourceMappingURL=setup_cpp.js.map diff --git a/dist/setup_cpp.js.map b/dist/setup_cpp.js.map index cdeb8f9c..0a20dd99 100644 --- a/dist/setup_cpp.js.map +++ b/dist/setup_cpp.js.map @@ -1 +1 @@ -{"mappings":"4IAWA,SAASA,EAAOC,EAAMC,EAASC,GAM7B,GALuB,mBAAZD,IACTC,EAAKD,EACLA,EAAU,KAGPC,EAAI,CACP,GAAuB,mBAAZC,QACT,MAAM,IAAIC,UAAU,yBAGtB,OAAO,IAAID,SAAQ,CAAUE,EAASC,KACpCP,EAAMC,EAAMC,GAAW,IAAI,CAAUM,EAAIC,KACnCD,EACFD,EAAOC,GAEPF,EAAQG,E,OAMhBC,GAAKT,EAAMC,GAAW,IAAI,CAAUM,EAAIC,KAElCD,IACc,WAAZA,EAAGG,MAAqBT,GAAWA,EAAQU,gBAC7CJ,EAAK,KACLC,GAAK,GAGTN,EAAGK,EAAIC,E,IClCJ,SAASI,EAAUC,EAAkBC,EAAmBC,GAC7D,IAAK,CAAC,SAAU,SAASC,SAASC,QAAQC,UACxC,OAEF,GAAsB,iBAAXC,GACT,MAAO,C,OAAEA,IAGX,MAAMC,EAAcC,EAAAC,IAAMC,KAAK,OAAQ,CAAEC,SAAS,IAClD,OAAoB,OAAhBJ,GACFD,IAAS,EAAAM,GAAAC,SAAQN,GACV,C,OAAED,OAIX,EAAAQ,GAAAC,cAAa,kGAAmG,CAC9GC,MAAO,YAETV,GAAS,kBAE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AAnBsrD,IACFp5D,EAAU,OAIU,WAAlBm5D,GAAgD,GAAlBC,GAWhCtrD,QAAyBpG,EAAS,OAAQ1H,EAAS+V,GAAyBnO,EAAU5D,GAEjF8J,IAZLA,QAAyBpG,EAAS,OAAQ1H,EAAS8V,GAA4BlO,EAAU5D,GACrFhB,IACFxB,EAAgB,YACP0B,IACTE,EAAa,YACJE,WACHvD,EAAa,eAEd+N,E,ECnCTurD,WyH7D8Br5D,EAAiB1H,EAAmBC,GAClE,OAAQE,QAAQC,UACd,IAAK,QACH,OAAO8J,EAAe,OAAQxC,GAEhC,IAAK,SAGH,OAFA6B,EAAc,OAAQ7B,SAChBlB,EAAQ,sCACP,CAAEiC,OAAQ,sCAEnB,IAAK,QACH,GAAIiC,IACF,OAAOxB,EAAgB,OAAQxB,GAC1B,GAAIkD,IACT,OAAOE,EAAa,OAAQpD,GACvB,GAAIsD,IACT,OAAOvD,EAAa,OAAQC,GAE9B,MAAUpF,MAAM,kCAElB,QACE,MAAUA,MAAM,wB,EzHyCpBq6D,KpB7BwBj1D,EAAiB4H,EAAkB5D,GAC3D,OAAO0D,EAAS,OAAQ1H,EAASgJ,EAAoBpB,EAAU5D,E,EoB6B/Ds1D,SAAU11D,GAINsU,GAAoC,CACxC,OACA,QACA,OACA,SACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,kBACA,SACA,UACA,WACA,WACA,YACA,cACA,OACA,MACA,OACA,YACA,OACA,OACA,OACA,YAOI6B,GAAwB,CAAC,WAAY,kBAAmB7B,IAgM9D9B,GAAK3d,QAAQ8gE,MACVxnB,MAAMlI,IACLpxC,QAAQ4jB,SAAWwtB,CAAG,IAEvBrpB,OAAOxmB,KACN,EAAA2E,GAAAzC,OAAM,qBACN,EAAAyC,GAAAzC,OAAMlC,GACNvB,QAAQ4jB,SAAW,CAAC","sources":["node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","src/brew/brew.ts","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js","packages/root-tools/src/index.ts","packages/untildify-user/src/index.ts","packages/exec-powershell/src/index.ts","src/utils/env/addEnv.ts","src/utils/setup/setupAptPack.ts","src/utils/setup/setupPacmanPack.ts","src/utils/setup/setupBrewPack.ts","src/chocolatey/chocolatey.ts","src/utils/setup/setupChocoPack.ts","src/utils/env/isArch.ts","src/utils/env/hasDnf.ts","src/utils/setup/setupDnfPack.ts","src/utils/env/isUbuntu.ts","packages/extension-tools/src/index.ts","src/sevenzip/sevenzip.ts","packages/user-access/src/index.ts","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/tool-cache.ts","src/utils/setup/extract.ts","src/utils/setup/setupBin.ts","src/task/task.ts","src/cmake/cmake.ts","src/python/python.ts","src/utils/http/validate_url.ts","src/utils/setup/version.ts","src/default_versions.ts","src/utils/setup/setupPipPack.ts","src/graphviz/graphviz.ts","src/doxygen/doxygen.ts","src/macos-sdk/macos-sdk.ts","src/gcc/gcc.ts","src/llvm/llvm.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/lib.js","src/vcvarsall/vcvarsall.ts","src/msvc/msvc.ts","src/ninja/ninja.ts","node_modules/.pnpm/mri@1.2.0/node_modules/mri/lib/index.mjs","src/kcov/kcov.ts","src/main.ts","src/utils/env/ubuntu_version.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/oidc-utils.ts","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/index.ts","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/proxy.ts","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/auth.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/summary.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/path-utils.ts","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","src/utils/io/io.ts","node_modules/.pnpm/github.com+aminya+ci-detect@37fe40075bebec96794ba0a7c4a6d5c70cbea00d/node_modules/@npmcli/ci-detect/lib/index.js","node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js","node_modules/.pnpm/@actions+io@1.1.2/node_modules/@actions/io/src/io.ts","node_modules/.pnpm/@actions+io@1.1.2/node_modules/@actions/io/src/io-util.ts","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/manifest.ts","node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js","node_modules/.pnpm/lru-cache@7.8.1/node_modules/lru-cache/index.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/v4.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/rng.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/bytesToUuid.js","node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/src/exec.ts","node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/src/toolrunner.ts","node_modules/.pnpm/@parcel+runtime-js@2.6.2_@parcel+core@2.6.2/node_modules/@parcel/runtime-js/lib/runtime-5490b668a0a39291.js","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/lib/time-delta.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/index.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib/numerous.js","node_modules/.pnpm/is-node@1.0.2/node_modules/is-node/index.js","node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js","node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js","node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js","node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js","node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js","node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/main.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/signals.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/core.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/realtime.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js","node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js","node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js","node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js","node_modules/.pnpm/untildify@4.0.0/node_modules/untildify/index.js","node_modules/.pnpm/github.com+aminya+escape-path-with-spaces@d9f81ee649203ddc55783a2f96ada59df06118e3/node_modules/escape-path-with-spaces/index.js","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/retry-helper.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/index.js","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/locales/en.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/locales/en.js","node_modules/.pnpm/ubuntu-version@2.0.0/node_modules/ubuntu-version/index.js","src/vcpkg/vcpkg.ts","src/nala/nala.ts","src/bazel/bazel.ts","src/conan/conan.ts","src/meson/meson.ts","src/gcovr/gcovr.ts","src/opencppcoverage/opencppcoverage.ts","src/ccache/ccache.ts","src/cppcheck/cppcheck.ts","src/make/make.ts"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","import { execFileSync } from \"child_process\"\nimport { dirname } from \"path\"\nimport which from \"which\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n execFileSync(`/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"`, {\n stdio: \"inherit\",\n })\n binDir = \"/usr/local/bin/\"\n\n return { binDir }\n}\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","import which from \"which\"\nimport execa from \"execa\"\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return (Boolean(process.env.CI) || isRoot()) && which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/** Detect if the process has root privileges */\nexport function isRoot(): boolean {\n return process.getuid?.() === 0\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: execa.SyncOptions = { stdio: \"inherit\", shell: true }\n): execa.ExecaSyncReturnValue {\n if (isSudo()) {\n return execa.commandSync(`sudo ${[program, ...args].map((arg) => `'${arg}'`).join(\" \")}`, execOptions)\n } else {\n return execa.sync(program, args, execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: execa.Options = { stdio: \"inherit\", shell: true }\n): execa.ExecaChildProcess {\n if (isSudo()) {\n return execa.command(`sudo ${[program, ...args].map((arg) => `'${arg}'`).join(\" \")}`, execOptions)\n } else {\n return execa(program, args, execOptions)\n }\n}\n","import { join } from \"path\"\nimport untildify from \"untildify\"\nimport { isSudo } from \"root-tools\"\n\nexport function untildifyUser(path: string) {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER, path)\n } else {\n return join(\"/home/\", process.env.SUDO_USER, path)\n }\n } else {\n return untildify(`~/${path}`)\n }\n}\n","import execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" }\n): execa.ExecaChildProcess {\n return execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" }\n): execa.ExecaSyncReturnValue {\n return execa.sync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import { exportVariable, addPath as ghAddPath, info, setFailed } from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { untildifyUser } from \"untildify-user\"\nimport { appendFileSync, existsSync, readFileSync } from \"fs\"\nimport { error, warning } from \"../io/io\"\nimport { execPowershell } from \"exec-powershell\"\nimport { delimiter } from \"path\"\nimport escapeSpace from \"escape-path-with-spaces\"\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(name: string, valGiven: string | undefined, shouldEscapeSpace: boolean = false) {\n const val = shouldEscapeSpace ? escapeSpace(valGiven ?? \"\") : valGiven\n try {\n if (ciDetect() === \"github-actions\") {\n try {\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val)\n }\n } else {\n await addEnvSystem(name, val)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (ciDetect() === \"github-actions\") {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\".cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execa.sync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execa.sync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport function setupCppInProfile() {\n if (setupCppInProfile_called) {\n return\n }\n\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"export SOURCE_CPPRC=0\"\n\n if (existsSync(cpprc_path)) {\n const cpprc_content = readFileSync(cpprc_path, \"utf8\")\n if (cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n return\n }\n }\n\n appendFileSync(cpprc_path, `\\n${source_cpprc_str}\\n`)\n info(`Added ${source_cpprc_str} to ${cpprc_path}`)\n\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n // source cpprc in .profile\n const profile_path = untildifyUser(\".profile\")\n appendFileSync(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n\n // source cpprc in .bashrc too\n const bashrc_path = untildifyUser(\".bashrc\")\n appendFileSync(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info } from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { addEnv, cpprc_path, setupCppInProfile } from \"../env/addEnv\"\nimport { appendFileSync, existsSync } from \"fs\"\nimport which from \"which\"\n\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(\n name: string,\n version?: string,\n repositories: string[] = [],\n update = false\n): Promise {\n const apt: string = getApt()\n\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n if (Array.isArray(repositories) && repositories.length !== 0) {\n for (const repo of repositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"--update\", \"-y\", repo])\n }\n updateRepos(apt)\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", `${name}=${version}`])\n } catch {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", `${name}-${version}`])\n }\n } else {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nfunction getApt() {\n let apt: string\n if (which.sync(\"nala\", { nothrow: true }) !== null) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\")\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\")\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n await addEnv(\"LANG\", \"C.UTF-8\")\n await addEnv(\"LC_ALL\", \"C.UTF-8\")\n }\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!existsSync(fileName)) {\n initGpg()\n for (const key of keys) {\n execRootSync(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n }\n return fileName\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!existsSync(fileName)) {\n initGpg()\n await setupAptPack(\"curl\", undefined)\n execRootSync(\"bash\", [\"-c\", `curl -s ${url} | gpg --no-default-keyring --keyring gnupg-ring:${fileName} --import`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport function updateAptAlternatives(name: string, path: string) {\n if (ciDetect() === \"github-actions\") {\n return execRootSync(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, \"40\"])\n } else {\n setupCppInProfile()\n return appendFileSync(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} 40; fi\\n`\n )\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info } from \"../io/io\"\n\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport function setupPacmanPack(name: string, version?: string, aur?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (!didUpdate) {\n execRootSync(pacman, [\"-Syuu\", \"--noconfirm\"])\n didUpdate = true\n }\n\n if (!didInit) {\n // install base-devel\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", `${name}=${version}`])\n } catch {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", `${name}${version}`])\n }\n } else {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport function setupBrewPack(name: string, version?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n // brew is not thread-safe\n execa.sync(\"brew\", [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name], {\n stdio: \"inherit\",\n })\n\n return { binDir: \"/usr/local/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname } from \"path\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execa.sync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" }\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (existsSync(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","/* eslint-disable require-atomic-updates */\nimport { addPath } from \"../env/addEnv\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { InstallationInfo } from \"./setupBin\"\nimport execa from \"execa\"\nimport { info } from \"@actions/core\"\nimport { notice } from \"../io/io\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execa.sync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execa.sync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n notice(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info, warning } from \"../io/io\"\n\n// let didUpdate: boolean = false\n\n/** A function that installs a package using dnf */\nexport function setupDnfPack(name: string, version?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n\n const dnf = \"dnf\"\n\n // if (!didUpdate) {\n // execRootSync(dnf, [\"-y\", \"check-update\"])\n // didUpdate = true\n // }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(dnf, [\"-y\", \"install\", `${name}-${version}`])\n } catch (err) {\n warning(`${(err as Error).toString()}\\nInstalling the default version available via dnf`)\n execRootSync(dnf, [\"-y\", \"install\", name])\n }\n } else {\n execRootSync(dnf, [\"-y\", \"install\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.exe` on Windows\n * @param unix_ext `\"\"` On unix.\n */\nexport function addBinExtension(name: string, win_ext = \".exe\", unix_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${unix_ext}`\n}\n\n/**\n * Add native shell extension to the given name\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.bat` on Windows\n * @param unix_ext `.sh` On unix.\n */\nexport function addShellExtension(name: string, win_ext = \".bat\", unix_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${unix_ext}`\n}\n\n/** Prefix a `./` for unix shell and nothing for the cmd shell */\nexport function addShellHere(name: string) {\n if (process.platform === \"win32\") {\n return name\n }\n return `./${name}`\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n setupDnfPack(\"p7zip\", version)\n return setupDnfPack(\"p7zip-plugins\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"p7zip-full\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { isSudo, execRootSync } from \"root-tools\"\n\n/**\n * Give the user access to the given path and its sub-directories. It changes the owner to the SUDO_USER. This allows\n * the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport function giveUserAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n execRootSync(\"chown\", [\"-R\", process.env.SUDO_USER, path], { cwd: path, stdio: \"inherit\", shell: true })\n }\n}\n",null,"import execa from \"execa\"\nimport { mkdirP } from \"@actions/io\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nimport { warning } from \"../io/io\"\nimport { giveUserAccess } from \"user-access\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n giveUserAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n giveUserAccess(dest)\n return dest\n}\n","import { find, downloadTool, cacheDir } from \"@actions/tool-cache\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../env/addEnv\"\nimport { join } from \"path\"\nimport { existsSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\nimport { isArch } from \"../env/isArch\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { isUbuntu } from \"../env/isUbuntu\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise | Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch\n )\n\n // Restore from cache (if found).\n if (ciDetect() === \"github-actions\") {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (existsSync(binDir) && existsSync(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if (!existsSync(binDir) || !existsSync(binFile)) {\n info(`Download and extract ${name} ${version}`)\n\n if (!didInit) {\n if (process.platform === \"linux\") {\n // extraction dependencies\n if (isArch()) {\n setupPacmanPack(\"unzip\")\n setupPacmanPack(\"tar\")\n setupPacmanPack(\"xz\")\n } else if (hasDnf()) {\n setupDnfPack(\"unzip\")\n setupDnfPack(\"tar\")\n setupDnfPack(\"xz\")\n } else if (isUbuntu()) {\n await setupAptPack(\"unzip\")\n await setupAptPack(\"tar\")\n await setupAptPack(\"xz-utils\")\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n try {\n const downloaded = await downloadTool(url)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (ciDetect() === \"github-actions\" && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","import { addBinExtension } from \"extension-tools\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport semverLte from \"semver/functions/lte\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractZip } from \"../utils/setup/extract\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { warning, info } from \"../utils/io/io\"\nimport { isArch } from \"../utils/env/isArch\"\nimport which from \"which\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { dirname, join } from \"path\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string) {\n if (ciDetect() !== \"github-actions\") {\n // TODO parse version\n return setupPythonViaSystem(version, setupDir, arch)\n }\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n return setupActionsPython(version, setupDir, arch)\n } catch (err) {\n warning((err as Error).toString())\n return setupPythonViaSystem(version, setupDir, arch)\n }\n}\n\nexport async function setupPythonViaSystem(\n version: string,\n setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const pythonBinPath =\n which.sync(\"python3.exe\", { nothrow: true }) ??\n which.sync(\"python.exe\", { nothrow: true }) ??\n join(setupDir, \"python.exe\")\n const pythonSetupDir = dirname(pythonBinPath)\n /** The directory which the tool is installed to */\n await activateWinPython(pythonSetupDir)\n return { installDir: pythonSetupDir, binDir: pythonSetupDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"python3\", version)\n }\n case \"linux\": {\n let installInfo: InstallationInfo\n if (isArch()) {\n installInfo = setupPacmanPack(\"python\", version)\n setupPacmanPack(\"python-pip\")\n } else if (hasDnf()) {\n installInfo = setupDnfPack(\"python3\", version)\n setupDnfPack(\"python3-pip\")\n } else if (isUbuntu()) {\n installInfo = await setupAptPack(\"python3\", version)\n await setupAptPack(\"python3-pip\")\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n return installInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinPython(binDir: string) {\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n}\n","import * as https from \"https\"\n\nexport function isValidUrl(url: string) {\n return new Promise((resolve) => {\n https.get(url, (res) => {\n if (res.statusCode !== undefined && res.statusCode >= 200 && res.statusCode <= 399) {\n resolve(true)\n } else {\n resolve(false)\n }\n })\n })\n}\n","import { isValidUrl } from \"../http/validate_url\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverValid from \"semver/functions/valid\"\nimport { getExecOutput } from \"@actions/exec\"\nimport { info } from \"../io/io\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort()\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isValidUrl(url))) {\n return [version, url]\n }\n }\n\n if (!versions.has(version)) {\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n }\n\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isValidUrl(url))) {\n return [specificVersion, url]\n }\n }\n\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return version\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (\n typeof givenVersion === \"string\" &&\n typeof targetVersion === \"string\" &&\n givenVersion !== \"\" &&\n targetVersion !== \"\"\n ) {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","import { Inputs, Opts } from \"./main\"\nimport { isArch } from \"./utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nconst DefaultVersions: Record = {\n llvm: \"13.0.0\", // https://github.com/llvm/llvm-project/releases\n clangtidy: \"13.0.0\",\n clangformat: \"13.0.0\",\n ninja: \"1.11.0\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.23.2\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.1\", // https://pypi.org/project/gcovr/\n conan: \"1.50.0\", // https://github.com/conan-io/conan/releases\n meson: \"0.63.0\", // https://github.com/mesonbuild/meson/releases\n kcov: \"40\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.14.0\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.9.3-1\" : \"1.9.4\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: \"11\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nconst DefaultUbuntuVersion: Record> = {\n llvm: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 20: \"5.1\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"0.63.0\",\n 18: \"0.61.4\",\n },\n doxygen: {\n 20: \"1.9.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"40\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (useDefault(version, name)) {\n // choose the default linux version based on ubuntu version\n if (process.platform === \"linux\" && osVersion !== null && name in DefaultUbuntuVersion) {\n const osVersionMaj = osVersion[0]\n const newest = parseInt(Object.keys(DefaultUbuntuVersion[name])[0], 10) // newest version with the default\n if (osVersionMaj >= newest) {\n return DefaultUbuntuVersion[name][osVersionMaj]\n } else {\n return \"\"\n }\n }\n // anything else\n return DefaultVersions[name]\n } else {\n return version ?? \"\"\n }\n}\n\nfunction useDefault(version: string | undefined, name: string) {\n return version === \"true\" || (version === undefined && name in DefaultVersions)\n}\n\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n for (let i = 0; i < tools.length; i++) {\n // tools excluding i_tool\n const otherTools = tools.slice(0, i).concat(tools.slice(i + 1))\n\n const tool = tools[i]\n\n if (!useDefault(opts[tool], tool)) {\n for (let i_other = 0; i_other < otherTools.length; i_other++) {\n const otherTool = otherTools[i_other]\n const useDefaultOtherTool = useDefault(opts[otherTool], otherTools[i_other])\n if (useDefaultOtherTool) {\n // use the same version if the other tool was requested with the default\n opts[otherTool] = opts[tool]\n } else if (opts[tool] !== opts[otherTools[i_other]]) {\n // error if different from the other given versions\n return false\n }\n }\n }\n }\n return true\n}\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../env/addEnv\"\nimport { setupPython } from \"../../python/python\"\nimport { isBinUptoDate } from \"./version\"\nimport { join } from \"path\"\nimport { getVersion } from \"../../default_versions\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { setupDnfPack } from \"./setupDnfPack\"\n\nlet python: string | undefined\nlet binDir: string | undefined\n\nlet tried = false\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(name: string, version?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pip`)\n\n // setup python and pip if needed\n if (python === undefined) {\n if (which.sync(\"python3\", { nothrow: true }) !== null) {\n python = \"python3\"\n } else if (which.sync(\"python\", { nothrow: true }) !== null && (await isBinUptoDate(\"python\", \"3.0.0\"))) {\n python = \"python\"\n } else {\n info(\"python3 was not found. Installing python\")\n await setupPython(getVersion(\"python\", undefined), \"\", process.arch)\n // try again\n if (tried) {\n throw new Error(\"Failed to install python\")\n }\n tried = true\n return setupPipPack(name, version)\n }\n if (process.platform === \"win32\") {\n // downgrade pip on Windows\n // https://github.com/pypa/pip/issues/10875#issuecomment-1030293005\n execa.sync(python, [\"-m\", \"pip\", \"install\", \"-U\", \"pip==21.3.1\"], { stdio: \"inherit\" })\n } else if (process.platform === \"linux\") {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n if (isArch()) {\n setupPacmanPack(\"python-pip\")\n } else if (hasDnf()) {\n setupDnfPack(\"python3-pip\")\n } else if (isUbuntu()) {\n await setupAptPack(\"python3-pip\")\n }\n }\n\n // install wheel (required for Conan, Meson, etc.)\n execa.sync(python, [\"-m\", \"pip\", \"install\", \"-U\", \"wheel\"], { stdio: \"inherit\" })\n }\n\n execa.sync(python, [\"-m\", \"pip\", \"install\", version !== undefined && version !== \"\" ? `${name}==${version}` : name], {\n stdio: \"inherit\",\n })\n\n if (binDir === undefined) {\n if (process.platform === \"linux\") {\n binDir = \"/home/runner/.local/bin/\"\n } else if (process.platform === \"darwin\") {\n binDir = \"/usr/local/bin/\"\n } else {\n // windows or others\n try {\n binDir = join(\n (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim(),\n \"Scripts\"\n )\n } catch {\n binDir = join(\n (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim(),\n \"Scripts\"\n )\n }\n }\n info(`${binDir} to PATH`)\n await addPath(binDir)\n }\n\n return { binDir }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"graphviz\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"graphviz\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { notice } from \"../utils/io/io\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { getVersion } from \"../default_versions\"\nimport { existsSync } from \"fs\"\nimport { join } from \"path\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"doxygen.install\", version)\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n const installationInfo = setupBrewPack(\"doxygen\", undefined)\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"doxygen\", version)\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack(\"doxygen\", version)\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n await setupAptPack(\"libclang-cpp9\")\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack(\"doxygen\", undefined)\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]) {\n if (existsSync(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { error } from \"../utils/io/io\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import { addPath, addEnv } from \"../utils/env/addEnv\"\nimport { existsSync } from \"fs\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport semverMajor from \"semver/functions/major\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport path from \"path\"\nimport { warning, info } from \"../utils/io/io\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { addBinExtension } from \"extension-tools\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"12\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"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\" },\n \"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\" },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"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\" },\n \"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\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"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\" },\n \"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\" },\n \"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\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = setupDnfPack(\"gcc\", version)\n setupDnfPack(\"gcc-c++\", version)\n setupDnfPack(\"libstdc++-devel\", undefined)\n } else if (isUbuntu()) {\n await setupAptPack(\"gcc\", version, [\"ppa:ubuntu-toolchain-r/test\"])\n installationInfo = await setupAptPack(\"g++\", version, [])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack(\"gcc-multilib\", version, [\"ppa:ubuntu-toolchain-r/test\"])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && existsSync(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && existsSync(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (existsSync(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string) {\n const promises: Promise[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addBinExtension(`${binDir}/gcc`)), addEnv(\"CXX\", addBinExtension(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`)\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`)\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`)\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`)\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`)\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`)\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`)\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`)\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (ciDetect() === \"github-actions\") {\n addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nfunction addGccLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"gcc_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import * as path from \"path\"\nimport semverLte from \"semver/functions/lte\"\nimport semverMajor from \"semver/functions/major\"\nimport { isValidUrl } from \"../utils/http/validate_url\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport {\n getSpecificVersionAndUrl,\n getSpecificVersions,\n getVersions,\n semverCoerceIfInvalid,\n} from \"../utils/setup/version\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addBinExtension } from \"extension-tools\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setOutput } from \"@actions/core\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { info, warning } from \"../utils/io/io\"\nimport { existsSync } from \"fs\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { getVersion } from \"../default_versions\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n//================================================\n// Version\n//================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n])\n\n//================================================\n// URL\n//================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING: Set = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n])\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"14.0.0\"\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let ubuntu: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n ubuntu = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n ubuntu = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n ubuntu = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${ubuntu} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n const suffix = version === \"5.0.0\" ? `-linux-x86_64${ubuntu}.tar.xz` : `-x86_64-linux-gnu${ubuntu}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\"])\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isValidUrl(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\n//================================================\n// Exports\n//================================================\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nasync function getLLVMPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n setOutput(\"version\", specificVersion)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addBinExtension(\"clang\"),\n extractFunction:\n platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await _setupLLVM(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir, version)\n return installationInfo\n}\n\nlet didInit = false\nasync function _setupLLVM(version: string, setupDir: string, arch: string) {\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n if (!didInit) {\n if (process.platform === \"linux\") {\n // install llvm build dependencies\n await setupGcc(getVersion(\"gcc\", undefined), \"\", arch) // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first\n if (isArch()) {\n // setupPacmanPack(\"ncurses\")\n // TODO: install libtinfo ?\n } else if (isUbuntu()) {\n await setupAptPack(\"libtinfo-dev\")\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n return installationInfo\n}\n\nexport async function activateLLVM(directory: string, versionGiven: string) {\n const version = semverCoerceIfInvalid(versionGiven)\n\n const lib = path.join(directory, \"lib\")\n\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const promises = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${lib}${path.delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${lib}${path.delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addBinExtension(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addBinExtension(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // windows builds fail with llvm's CPATH\n if (process.platform !== \"win32\") {\n const llvmMajor = semverMajor(version)\n if (existsSync(`${directory}/lib/clang/${version}/include`)) {\n promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n } else if (existsSync(`${directory}/lib/clang/${llvmMajor}/include`)) {\n promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n }\n }\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`)\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`)\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`)\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`)\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`)\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`)\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`)\n }\n\n if (ciDetect() === \"github-actions\") {\n addLLVMLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\n/** Setup llvm tools (clang tidy, clang format, etc) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string): Promise {\n if (ciDetect() === \"github-actions\") {\n addLLVMLoggingMatcher()\n }\n return _setupLLVM(version, setupDir, arch)\n}\n\nfunction addLLVMLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"llvm_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n",null,null,"const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/** See https://github.com/ilammy/msvc-dev-cmd#inputs */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n if (uwp == 'true') {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre == 'true') {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, { shell: \"cmd\" }).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd","import { existsSync } from \"fs\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { info } from \"../utils/io/io\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n) {\n if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { vsversion_to_versionnumber, findVcvarsall } from \"msvc-dev-cmd/lib.js\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport path from \"path\"\nimport { existsSync } from \"fs\"\nimport { error, info, warning } from \"../utils/io/io\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (ciDetect() === \"github-actions\") {\n addMSVCLoggingMatcher()\n }\n}\n\nfunction addMSVCLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"msvc_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { addBinExtension } from \"extension-tools\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import execa from \"execa\"\nimport { join } from \"path\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { getVersion } from \"../default_versions\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { info } from \"../utils/io/io\"\nimport { untildifyUser } from \"untildify-user\"\nimport { setupNinja } from \"../ninja/ninja\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addBinExtension(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addBinExtension(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n setupPacmanPack(\"libdwarf\")\n setupPacmanPack(\"libcurl-openssl\")\n } else if (hasDnf()) {\n setupDnfPack(\"libdwarf-devel\")\n setupDnfPack(\"libcurl-devel\")\n } else if (isUbuntu()) {\n await setupAptPack(\"libdw-dev\")\n await setupAptPack(\"libcurl4-openssl-dev\")\n }\n }\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(getVersion(\"cmake\", undefined), join(untildifyUser(\"\"), \"cmake\"), \"\")\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined), join(untildifyUser(\"\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n setupDnfPack(\"binutils\")\n } else if (isUbuntu()) {\n await setupAptPack(\"libbinutils\")\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { getInput, endGroup, startGroup, notice } from \"@actions/core\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupMake } from \"./make/make\"\nimport { setupTask } from \"./task/task\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupLLVM, setupClangTools } from \"./llvm/llvm\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPython } from \"./python/python\"\nimport mri from \"mri\"\nimport { untildifyUser } from \"untildify-user\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport * as timeDelta from \"time-delta\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport * as numerous from \"numerous\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport numerousLocale from \"numerous/locales/en.js\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\n\nimport semverValid from \"semver/functions/valid\"\nimport { getVersion, syncVersions } from \"./default_versions\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { error, info, success, warning } from \"./utils/io/io\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { join } from \"path\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupBazel } from \"./bazel/bazel\"\n\n/** The setup functions */\nconst setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n ccache: setupCcache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangTools,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\n/** The tools that can be installed */\nconst tools: Array = [\n \"nala\",\n \"choco\",\n \"brew\",\n \"python\",\n \"vcpkg\",\n \"bazel\",\n \"cmake\",\n \"ninja\",\n \"conan\",\n \"meson\",\n \"gcovr\",\n \"opencppcoverage\",\n \"ccache\",\n \"doxygen\",\n \"graphviz\",\n \"cppcheck\",\n \"clangtidy\",\n \"clangformat\",\n \"llvm\",\n \"gcc\",\n \"msvc\",\n \"vcvarsall\",\n \"kcov\",\n \"make\",\n \"task\",\n \"sevenzip\",\n]\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\"\n\n// an array of possible inputs\nconst inputs: Array = [\"compiler\", \"architecture\", ...tools]\n\n/** The main entry function */\nexport async function main(args: string[]): Promise {\n if (ciDetect() !== \"github-actions\") {\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n let osVersion: number[] | null = null\n try {\n // get the version if not already done\n osVersion = await ubuntuVersion()\n } catch (err) {\n warning((err as Error).toString())\n }\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n // loop over the tools and run their setup function\n for (const tool of tools) {\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n startGroup(`Installing ${tool} ${version}`)\n try {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(\n getVersion(tool, version, osVersion),\n undefined,\n arch,\n undefined,\n undefined,\n false,\n false\n )\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool) ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n time1 = Date.now()\n try {\n if (maybeCompiler !== undefined) {\n const { compiler, version } = getCompilerInfo(maybeCompiler)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch\n )\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const installationInfo = await setupGcc(getVersion(\"gcc\", version, osVersion), join(setupCppDir, \"gcc\"), arch)\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch\n )\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n } catch (e) {\n error(e as string | Error)\n errorMessages.push(`Failed to install the ${maybeCompiler}`)\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup_cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup_cpp finished\")\n\n if (ciDetect() !== \"github-actions\") {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n }\n>\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: inputs,\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(maybeCompiler: string) {\n const compilerAndMaybeVersion = maybeCompiler.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\nfunction printHelp() {\n 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 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 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--bazel\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--nala\n--sevenzip\n--graphviz\n `)\n}\n\n/** Get an object from github actions */\nfunction maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\n\nfunction getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","import { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nexport async function ubuntuVersion(): Promise {\n if (isUbuntu()) {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack(\"lsb-release\")\n }\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n throw new Error(\"Failed to get the ubuntu major version.\")\n }\n\n return versionSplitted\n } else {\n return null\n }\n}\n",null,null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,"module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","import * as core from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\n\nexport function error(err: string | Error) {\n return ciDetect() === \"github-actions\" ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return ciDetect() === \"github-actions\" ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return ciDetect() === \"github-actions\" ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return ciDetect() === \"github-actions\" ? core.info(msg) : console.log(msg)\n}\n","module.exports = () =>\n process.env.GERRIT_PROJECT ? 'gerrit'\n : process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI ? 'azure-pipelines'\n : process.env.BITRISE_IO ? 'bitrise'\n : process.env.BUDDY_WORKSPACE_ID ? 'buddy'\n : process.env.BUILDKITE ? 'buildkite'\n : process.env.CIRRUS_CI ? 'cirrus'\n : process.env.GITLAB_CI ? 'gitlab'\n : process.env.APPVEYOR ? 'appveyor'\n : process.env.CIRCLECI ? 'circle-ci'\n : process.env.SEMAPHORE ? 'semaphore'\n : process.env.DRONE ? 'drone'\n : process.env.DSARI ? 'dsari'\n : process.env.GITHUB_ACTION ? 'github-actions'\n : process.env.TDDIUM ? 'tddium'\n : process.env.SCREWDRIVER ? 'screwdriver'\n : process.env.STRIDER ? 'strider'\n : process.env.TASKCLUSTER_ROOT_URL ? 'taskcluster'\n : process.env.JENKINS_URL ? 'jenkins'\n : process.env['bamboo.buildKey'] ? 'bamboo'\n : process.env.GO_PIPELINE_NAME ? 'gocd'\n : process.env.HUDSON_URL ? 'hudson'\n : process.env.WERCKER ? 'wercker'\n : process.env.NETLIFY ? 'netlify'\n : process.env.NOW_GITHUB_DEPLOYMENT ? 'now-github'\n : process.env.GITLAB_DEPLOYMENT ? 'now-gitlab'\n : process.env.BITBUCKET_DEPLOYMENT ? 'now-bitbucket'\n : process.env.BITBUCKET_BUILD_NUMBER ? 'bitbucket-pipelines'\n : process.env.NOW_BUILDER ? 'now'\n : process.env.VERCEL_GITHUB_DEPLOYMENT ? 'vercel-github'\n : process.env.VERCEL_GITLAB_DEPLOYMENT ? 'vercel-gitlab'\n : process.env.VERCEL_BITBUCKET_DEPLOYMENT ? 'vercel-bitbucket'\n : process.env.VERCEL_URL ? 'vercel'\n : process.env.MAGNUM ? 'magnum'\n : process.env.NEVERCODE ? 'nevercode'\n : process.env.RENDER ? 'render'\n : process.env.SAIL_CI ? 'sail'\n : process.env.SHIPPABLE ? 'shippable'\n : process.env.TEAMCITY_VERSION ? 'teamcity'\n // codeship and a few others\n : process.env.CI_NAME ? process.env.CI_NAME\n // heroku doesn't set envs other than node in a heroku-specific location\n : /\\/\\.heroku\\/node\\/bin\\/node$/.test(process.env.NODE || '') ? 'heroku'\n // test travis after the others, since several CI systems mimic it\n : process.env.TRAVIS ? 'travis-ci'\n // aws CodeBuild/CodePipeline\n : process.env.CODEBUILD_SRC_DIR ? 'aws-codebuild'\n : process.env.CI === 'true' || process.env.CI === '1' ? 'custom'\n // Google Cloud Build - it sets almost nothing\n : process.env.BUILDER_OUTPUT ? 'builder'\n : false\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n",null,null,null,"// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nmodule.exports = {\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: require('./internal/constants').SEMVER_SPEC_VERSION,\n SemVer: require('./classes/semver'),\n compareIdentifiers: require('./internal/identifiers').compareIdentifiers,\n rcompareIdentifiers: require('./internal/identifiers').rcompareIdentifiers,\n parse: require('./functions/parse'),\n valid: require('./functions/valid'),\n clean: require('./functions/clean'),\n inc: require('./functions/inc'),\n diff: require('./functions/diff'),\n major: require('./functions/major'),\n minor: require('./functions/minor'),\n patch: require('./functions/patch'),\n prerelease: require('./functions/prerelease'),\n compare: require('./functions/compare'),\n rcompare: require('./functions/rcompare'),\n compareLoose: require('./functions/compare-loose'),\n compareBuild: require('./functions/compare-build'),\n sort: require('./functions/sort'),\n rsort: require('./functions/rsort'),\n gt: require('./functions/gt'),\n lt: require('./functions/lt'),\n eq: require('./functions/eq'),\n neq: require('./functions/neq'),\n gte: require('./functions/gte'),\n lte: require('./functions/lte'),\n cmp: require('./functions/cmp'),\n coerce: require('./functions/coerce'),\n Comparator: require('./classes/comparator'),\n Range: require('./classes/range'),\n satisfies: require('./functions/satisfies'),\n toComparators: require('./ranges/to-comparators'),\n maxSatisfying: require('./ranges/max-satisfying'),\n minSatisfying: require('./ranges/min-satisfying'),\n minVersion: require('./ranges/min-version'),\n validRange: require('./ranges/valid'),\n outside: require('./ranges/outside'),\n gtr: require('./ranges/gtr'),\n ltr: require('./ranges/ltr'),\n intersects: require('./ranges/intersects'),\n simplifyRange: require('./ranges/simplify'),\n subset: require('./ranges/subset'),\n}\n","const { MAX_SAFE_COMPONENT_LENGTH } = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst createToken = (name, value, isGlobal) => {\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', '\\\\d*[a-zA-Z-][a-zA-Z0-9-]*')\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\nmodule.exports = {\n SEMVER_SPEC_VERSION,\n MAX_LENGTH,\n MAX_SAFE_INTEGER,\n MAX_SAFE_COMPONENT_LENGTH,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about so we always get a consistent\n// obj with keys in a consistent order.\nconst opts = ['includePrerelease', 'loose', 'rtl']\nconst parseOptions = options =>\n !options ? {}\n : typeof options !== 'object' ? { loose: true }\n : opts.filter(k => options[k]).reduce((o, k) => {\n o[k] = true\n return o\n }, {})\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const { MAX_LENGTH } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\nconst SemVer = require('../classes/semver')\n\nconst parseOptions = require('../internal/parse-options')\nconst parse = (version, options) => {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n const r = options.loose ? re[t.LOOSE] : re[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier) => {\n if (typeof (options) === 'string') {\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse')\nconst eq = require('./eq')\n\nconst diff = (version1, version2) => {\n if (eq(version1, version2)) {\n return null\n } else {\n const v1 = parse(version1)\n const v2 = parse(version2)\n const hasPre = v1.prerelease.length || v2.prerelease.length\n const prefix = hasPre ? 'pre' : ''\n const defaultResult = hasPre ? 'prerelease' : ''\n for (const key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\nmodule.exports = diff\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false,\n }\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n const sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n const sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n const sameSemVer = this.semver.version === comp.semver.version\n const differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n const oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<')\n const oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>')\n\n return (\n sameDirectionIncreasing ||\n sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan ||\n oppositeDirectionsGreaterThan\n )\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First, split based on boolean or ||\n this.raw = range\n this.set = range\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${range}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => {\n return comps.join(' ').trim()\n })\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n range = range.trim()\n\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = Object.keys(this.options).join(',')\n const memoKey = `parseRange:${memoOpts}:${range}`\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\nconst replaceTildes = (comp, options) =>\n comp.trim().split(/\\s+/).map((c) => {\n return replaceTilde(c, options)\n }).join(' ')\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\nconst replaceCarets = (comp, options) =>\n comp.trim().split(/\\s+/).map((c) => {\n return replaceCaret(c, options)\n }).join(' ')\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map((c) => {\n return replaceXRange(c, options)\n }).join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp.trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return (`${from} ${to}`).trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","const perf = typeof performance === 'object' && performance &&\n typeof performance.now === 'function' ? performance : Date\n\nconst hasAbortController = typeof AbortController !== 'undefined'\n\n// minimal backwards-compatibility polyfill\nconst AC = hasAbortController ? AbortController : Object.assign(\n class AbortController {\n constructor () { this.signal = new AC.AbortSignal }\n abort () { this.signal.aborted = true }\n },\n { AbortSignal: class AbortSignal { constructor () { this.aborted = false }}}\n)\n\nconst warned = new Set()\nconst deprecatedOption = (opt, instead) => {\n const code = `LRU_CACHE_OPTION_${opt}`\n if (shouldWarn(code)) {\n warn(code, `${opt} option`, `options.${instead}`, LRUCache)\n }\n}\nconst deprecatedMethod = (method, instead) => {\n const code = `LRU_CACHE_METHOD_${method}`\n if (shouldWarn(code)) {\n const { prototype } = LRUCache\n const { get } = Object.getOwnPropertyDescriptor(prototype, method)\n warn(code, `${method} method`, `cache.${instead}()`, get)\n }\n}\nconst deprecatedProperty = (field, instead) => {\n const code = `LRU_CACHE_PROPERTY_${field}`\n if (shouldWarn(code)) {\n const { prototype } = LRUCache\n const { get } = Object.getOwnPropertyDescriptor(prototype, field)\n warn(code, `${field} property`, `cache.${instead}`, get)\n }\n}\n\nconst emitWarning = (...a) => {\n typeof process === 'object' &&\n process &&\n typeof process.emitWarning === 'function'\n ? process.emitWarning(...a)\n : console.error(...a)\n}\n\nconst shouldWarn = code => !warned.has(code)\n\nconst warn = (code, what, instead, fn) => {\n warned.add(code)\n const msg = `The ${what} is deprecated. Please use ${instead} instead.`\n emitWarning(msg, 'DeprecationWarning', code, fn)\n}\n\nconst isPosInt = n => n && n === Math.floor(n) && n > 0 && isFinite(n)\n\n/* istanbul ignore next - This is a little bit ridiculous, tbh.\n * The maximum array length is 2^32-1 or thereabouts on most JS impls.\n * And well before that point, you're caching the entire world, I mean,\n * that's ~32GB of just integers for the next/prev links, plus whatever\n * else to hold that many keys and values. Just filling the memory with\n * zeroes at init time is brutal when you get that big.\n * But why not be complete?\n * Maybe in the future, these limits will have expanded. */\nconst getUintArray = max => !isPosInt(max) ? null\n: max <= Math.pow(2, 8) ? Uint8Array\n: max <= Math.pow(2, 16) ? Uint16Array\n: max <= Math.pow(2, 32) ? Uint32Array\n: max <= Number.MAX_SAFE_INTEGER ? ZeroArray\n: null\n\nclass ZeroArray extends Array {\n constructor (size) {\n super(size)\n this.fill(0)\n }\n}\n\nclass Stack {\n constructor (max) {\n if (max === 0) {\n return []\n }\n const UintArray = getUintArray(max)\n this.heap = new UintArray(max)\n this.length = 0\n }\n push (n) {\n this.heap[this.length++] = n\n }\n pop () {\n return this.heap[--this.length]\n }\n}\n\nclass LRUCache {\n constructor (options = {}) {\n const {\n max = 0,\n ttl,\n ttlResolution = 1,\n ttlAutopurge,\n updateAgeOnGet,\n updateAgeOnHas,\n allowStale,\n dispose,\n disposeAfter,\n noDisposeOnSet,\n noUpdateTTL,\n maxSize = 0,\n sizeCalculation,\n fetchMethod,\n } = options\n\n // deprecated options, don't trigger a warning for getting them if\n // the thing being passed in is another LRUCache we're copying.\n const {\n length,\n maxAge,\n stale,\n } = options instanceof LRUCache ? {} : options\n\n if (max !== 0 && !isPosInt(max)) {\n throw new TypeError('max option must be a nonnegative integer')\n }\n\n const UintArray = max ? getUintArray(max) : Array\n if (!UintArray) {\n throw new Error('invalid max value: ' + max)\n }\n\n this.max = max\n this.maxSize = maxSize\n this.sizeCalculation = sizeCalculation || length\n if (this.sizeCalculation) {\n if (!this.maxSize) {\n throw new TypeError('cannot set sizeCalculation without setting maxSize')\n }\n if (typeof this.sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation set to non-function')\n }\n }\n\n this.fetchMethod = fetchMethod || null\n if (this.fetchMethod && typeof this.fetchMethod !== 'function') {\n throw new TypeError('fetchMethod must be a function if specified')\n }\n\n this.keyMap = new Map()\n this.keyList = new Array(max).fill(null)\n this.valList = new Array(max).fill(null)\n this.next = new UintArray(max)\n this.prev = new UintArray(max)\n this.head = 0\n this.tail = 0\n this.free = new Stack(max)\n this.initialFill = 1\n this.size = 0\n\n if (typeof dispose === 'function') {\n this.dispose = dispose\n }\n if (typeof disposeAfter === 'function') {\n this.disposeAfter = disposeAfter\n this.disposed = []\n } else {\n this.disposeAfter = null\n this.disposed = null\n }\n this.noDisposeOnSet = !!noDisposeOnSet\n this.noUpdateTTL = !!noUpdateTTL\n\n if (this.maxSize !== 0) {\n if (!isPosInt(this.maxSize)) {\n throw new TypeError('maxSize must be a positive integer if specified')\n }\n this.initializeSizeTracking()\n }\n\n this.allowStale = !!allowStale || !!stale\n this.updateAgeOnGet = !!updateAgeOnGet\n this.updateAgeOnHas = !!updateAgeOnHas\n this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0\n ? ttlResolution : 1\n this.ttlAutopurge = !!ttlAutopurge\n this.ttl = ttl || maxAge || 0\n if (this.ttl) {\n if (!isPosInt(this.ttl)) {\n throw new TypeError('ttl must be a positive integer if specified')\n }\n this.initializeTTLTracking()\n }\n\n // do not allow completely unbounded caches\n if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {\n throw new TypeError('At least one of max, maxSize, or ttl is required')\n }\n if (!this.ttlAutopurge && !this.max && !this.maxSize) {\n const code = 'LRU_CACHE_UNBOUNDED'\n if (shouldWarn(code)) {\n warned.add(code)\n const msg = 'TTL caching without ttlAutopurge, max, or maxSize can ' +\n 'result in unbounded memory consumption.'\n emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache)\n }\n }\n\n if (stale) {\n deprecatedOption('stale', 'allowStale')\n }\n if (maxAge) {\n deprecatedOption('maxAge', 'ttl')\n }\n if (length) {\n deprecatedOption('length', 'sizeCalculation')\n }\n }\n\n getRemainingTTL (key) {\n return this.has(key, { updateAgeOnHas: false }) ? Infinity : 0\n }\n\n initializeTTLTracking () {\n this.ttls = new ZeroArray(this.max)\n this.starts = new ZeroArray(this.max)\n\n this.setItemTTL = (index, ttl) => {\n this.starts[index] = ttl !== 0 ? perf.now() : 0\n this.ttls[index] = ttl\n if (ttl !== 0 && this.ttlAutopurge) {\n const t = setTimeout(() => {\n if (this.isStale(index)) {\n this.delete(this.keyList[index])\n }\n }, ttl + 1)\n /* istanbul ignore else - unref() not supported on all platforms */\n if (t.unref) {\n t.unref()\n }\n }\n }\n\n this.updateItemAge = (index) => {\n this.starts[index] = this.ttls[index] !== 0 ? perf.now() : 0\n }\n\n // debounce calls to perf.now() to 1s so we're not hitting\n // that costly call repeatedly.\n let cachedNow = 0\n const getNow = () => {\n const n = perf.now()\n if (this.ttlResolution > 0) {\n cachedNow = n\n const t = setTimeout(() => cachedNow = 0, this.ttlResolution)\n /* istanbul ignore else - not available on all platforms */\n if (t.unref) {\n t.unref()\n }\n }\n return n\n }\n\n this.getRemainingTTL = (key) => {\n const index = this.keyMap.get(key)\n if (index === undefined) {\n return 0\n }\n return this.ttls[index] === 0 || this.starts[index] === 0 ? Infinity\n : ((this.starts[index] + this.ttls[index]) - (cachedNow || getNow()))\n }\n\n this.isStale = (index) => {\n return this.ttls[index] !== 0 && this.starts[index] !== 0 &&\n ((cachedNow || getNow()) - this.starts[index] > this.ttls[index])\n }\n }\n updateItemAge (index) {}\n setItemTTL (index, ttl) {}\n isStale (index) { return false }\n\n initializeSizeTracking () {\n this.calculatedSize = 0\n this.sizes = new ZeroArray(this.max)\n this.removeItemSize = index => this.calculatedSize -= this.sizes[index]\n this.requireSize = (k, v, size, sizeCalculation) => {\n if (!isPosInt(size)) {\n if (sizeCalculation) {\n if (typeof sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation must be a function')\n }\n size = sizeCalculation(v, k)\n if (!isPosInt(size)) {\n throw new TypeError('sizeCalculation return invalid (expect positive integer)')\n }\n } else {\n throw new TypeError('invalid size value (must be positive integer)')\n }\n }\n return size\n }\n this.addItemSize = (index, v, k, size) => {\n this.sizes[index] = size\n const maxSize = this.maxSize - this.sizes[index]\n while (this.calculatedSize > maxSize) {\n this.evict(true)\n }\n this.calculatedSize += this.sizes[index]\n }\n this.delete = k => {\n if (this.size !== 0) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n this.calculatedSize -= this.sizes[index]\n }\n }\n return LRUCache.prototype.delete.call(this, k)\n }\n }\n removeItemSize (index) {}\n addItemSize (index, v, k, size) {}\n requireSize (k, v, size, sizeCalculation) {\n if (size || sizeCalculation) {\n throw new TypeError('cannot set size without setting maxSize on cache')\n }\n }\n\n *indexes ({ allowStale = this.allowStale } = {}) {\n if (this.size) {\n for (let i = this.tail; true; ) {\n if (!this.isValidIndex(i)) {\n break\n }\n if (allowStale || !this.isStale(i)) {\n yield i\n }\n if (i === this.head) {\n break\n } else {\n i = this.prev[i]\n }\n }\n }\n }\n\n *rindexes ({ allowStale = this.allowStale } = {}) {\n if (this.size) {\n for (let i = this.head; true; ) {\n if (!this.isValidIndex(i)) {\n break\n }\n if (allowStale || !this.isStale(i)) {\n yield i\n }\n if (i === this.tail) {\n break\n } else {\n i = this.next[i]\n }\n }\n }\n }\n\n isValidIndex (index) {\n return this.keyMap.get(this.keyList[index]) === index\n }\n\n *entries () {\n for (const i of this.indexes()) {\n yield [this.keyList[i], this.valList[i]]\n }\n }\n *rentries () {\n for (const i of this.rindexes()) {\n yield [this.keyList[i], this.valList[i]]\n }\n }\n\n *keys () {\n for (const i of this.indexes()) {\n yield this.keyList[i]\n }\n }\n *rkeys () {\n for (const i of this.rindexes()) {\n yield this.keyList[i]\n }\n }\n\n *values () {\n for (const i of this.indexes()) {\n yield this.valList[i]\n }\n }\n *rvalues () {\n for (const i of this.rindexes()) {\n yield this.valList[i]\n }\n }\n\n [Symbol.iterator] () {\n return this.entries()\n }\n\n find (fn, getOptions = {}) {\n for (const i of this.indexes()) {\n if (fn(this.valList[i], this.keyList[i], this)) {\n return this.get(this.keyList[i], getOptions)\n }\n }\n }\n\n forEach (fn, thisp = this) {\n for (const i of this.indexes()) {\n fn.call(thisp, this.valList[i], this.keyList[i], this)\n }\n }\n\n rforEach (fn, thisp = this) {\n for (const i of this.rindexes()) {\n fn.call(thisp, this.valList[i], this.keyList[i], this)\n }\n }\n\n get prune () {\n deprecatedMethod('prune', 'purgeStale')\n return this.purgeStale\n }\n\n purgeStale () {\n let deleted = false\n for (const i of this.rindexes({ allowStale: true })) {\n if (this.isStale(i)) {\n this.delete(this.keyList[i])\n deleted = true\n }\n }\n return deleted\n }\n\n dump () {\n const arr = []\n for (const i of this.indexes()) {\n const key = this.keyList[i]\n const value = this.valList[i]\n const entry = { value }\n if (this.ttls) {\n entry.ttl = this.ttls[i]\n }\n if (this.sizes) {\n entry.size = this.sizes[i]\n }\n arr.unshift([key, entry])\n }\n return arr\n }\n\n load (arr) {\n this.clear()\n for (const [key, entry] of arr) {\n this.set(key, entry.value, entry)\n }\n }\n\n dispose (v, k, reason) {}\n\n set (k, v, {\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n } = {}) {\n size = this.requireSize(k, v, size, sizeCalculation)\n let index = this.size === 0 ? undefined : this.keyMap.get(k)\n if (index === undefined) {\n // addition\n index = this.newIndex()\n this.keyList[index] = k\n this.valList[index] = v\n this.keyMap.set(k, index)\n this.next[this.tail] = index\n this.prev[index] = this.tail\n this.tail = index\n this.size ++\n this.addItemSize(index, v, k, size)\n noUpdateTTL = false\n } else {\n // update\n const oldVal = this.valList[index]\n if (v !== oldVal) {\n if (this.isBackgroundFetch(oldVal)) {\n oldVal.__abortController.abort()\n } else {\n if (!noDisposeOnSet) {\n this.dispose(oldVal, k, 'set')\n if (this.disposeAfter) {\n this.disposed.push([oldVal, k, 'set'])\n }\n }\n }\n this.removeItemSize(index)\n this.valList[index] = v\n this.addItemSize(index, v, k, size)\n }\n this.moveToTail(index)\n }\n if (ttl !== 0 && this.ttl === 0 && !this.ttls) {\n this.initializeTTLTracking()\n }\n if (!noUpdateTTL) {\n this.setItemTTL(index, ttl)\n }\n if (this.disposeAfter) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n return this\n }\n\n newIndex () {\n if (this.size === 0) {\n return this.tail\n }\n if (this.size === this.max && this.max !== 0) {\n return this.evict(false)\n }\n if (this.free.length !== 0) {\n return this.free.pop()\n }\n // initial fill, just keep writing down the list\n return this.initialFill++\n }\n\n pop () {\n if (this.size) {\n const val = this.valList[this.head]\n this.evict(true)\n return val\n }\n }\n\n evict (free) {\n const head = this.head\n const k = this.keyList[head]\n const v = this.valList[head]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n this.dispose(v, k, 'evict')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'evict'])\n }\n }\n this.removeItemSize(head)\n // if we aren't about to use the index, then null these out\n if (free) {\n this.keyList[head] = null\n this.valList[head] = null\n this.free.push(head)\n }\n this.head = this.next[head]\n this.keyMap.delete(k)\n this.size --\n return head\n }\n\n has (k, { updateAgeOnHas = this.updateAgeOnHas } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n if (!this.isStale(index)) {\n if (updateAgeOnHas) {\n this.updateItemAge(index)\n }\n return true\n }\n }\n return false\n }\n\n // like get(), but without any LRU updating or TTL expiration\n peek (k, { allowStale = this.allowStale } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined && (allowStale || !this.isStale(index))) {\n return this.valList[index]\n }\n }\n\n backgroundFetch (k, index, options) {\n const v = index === undefined ? undefined : this.valList[index]\n if (this.isBackgroundFetch(v)) {\n return v\n }\n const ac = new AC()\n const fetchOpts = {\n signal: ac.signal,\n options,\n }\n const p = Promise.resolve(this.fetchMethod(k, v, fetchOpts)).then(v => {\n if (!ac.signal.aborted) {\n this.set(k, v, fetchOpts.options)\n }\n return v\n })\n p.__abortController = ac\n p.__staleWhileFetching = v\n if (index === undefined) {\n this.set(k, p, fetchOpts.options)\n index = this.keyMap.get(k)\n } else {\n this.valList[index] = p\n }\n return p\n }\n\n isBackgroundFetch (p) {\n return p && typeof p === 'object' && typeof p.then === 'function' &&\n Object.prototype.hasOwnProperty.call(p, '__staleWhileFetching')\n }\n\n // this takes the union of get() and set() opts, because it does both\n async fetch (k, {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n } = {}) {\n if (!this.fetchMethod) {\n return this.get(k, {allowStale, updateAgeOnGet})\n }\n\n const options = {\n allowStale,\n updateAgeOnGet,\n ttl,\n noDisposeOnSet,\n size,\n sizeCalculation,\n noUpdateTTL,\n }\n\n let index = this.keyMap.get(k)\n if (index === undefined) {\n return this.backgroundFetch(k, index, options)\n } else {\n // in cache, maybe already fetching\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n return allowStale && v.__staleWhileFetching !== undefined\n ? v.__staleWhileFetching : v\n }\n\n if (!this.isStale(index)) {\n this.moveToTail(index)\n if (updateAgeOnGet) {\n this.updateItemAge(index)\n }\n return v\n }\n\n // ok, it is stale, and not already fetching\n // refresh the cache.\n const p = this.backgroundFetch(k, index, options)\n return allowStale && p.__staleWhileFetching !== undefined\n ? p.__staleWhileFetching : p\n }\n }\n\n get (k, {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n const value = this.valList[index]\n const fetching = this.isBackgroundFetch(value)\n if (this.isStale(index)) {\n // delete only if not an in-flight background fetch\n if (!fetching) {\n this.delete(k)\n return allowStale ? value : undefined\n } else {\n return allowStale ? value.__staleWhileFetching : undefined\n }\n } else {\n // if we're currently fetching it, we don't actually have it yet\n // it's not stale, which means this isn't a staleWhileRefetching,\n // so we just return undefined\n if (fetching) {\n return undefined\n }\n this.moveToTail(index)\n if (updateAgeOnGet) {\n this.updateItemAge(index)\n }\n return value\n }\n }\n }\n\n connect (p, n) {\n this.prev[n] = p\n this.next[p] = n\n }\n\n moveToTail (index) {\n // if tail already, nothing to do\n // if head, move head to next[index]\n // else\n // move next[prev[index]] to next[index] (head has no prev)\n // move prev[next[index]] to prev[index]\n // prev[index] = tail\n // next[tail] = index\n // tail = index\n if (index !== this.tail) {\n if (index === this.head) {\n this.head = this.next[index]\n } else {\n this.connect(this.prev[index], this.next[index])\n }\n this.connect(this.tail, index)\n this.tail = index\n }\n }\n\n get del () {\n deprecatedMethod('del', 'delete')\n return this.delete\n }\n delete (k) {\n let deleted = false\n if (this.size !== 0) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n deleted = true\n if (this.size === 1) {\n this.clear()\n } else {\n this.removeItemSize(index)\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n this.dispose(v, k, 'delete')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'delete'])\n }\n }\n this.keyMap.delete(k)\n this.keyList[index] = null\n this.valList[index] = null\n if (index === this.tail) {\n this.tail = this.prev[index]\n } else if (index === this.head) {\n this.head = this.next[index]\n } else {\n this.next[this.prev[index]] = this.next[index]\n this.prev[this.next[index]] = this.prev[index]\n }\n this.size --\n this.free.push(index)\n }\n }\n }\n if (this.disposed) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n return deleted\n }\n\n clear () {\n for (const index of this.rindexes({ allowStale: true })) {\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n const k = this.keyList[index]\n this.dispose(v, k, 'delete')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'delete'])\n }\n }\n }\n\n this.keyMap.clear()\n this.valList.fill(null)\n this.keyList.fill(null)\n if (this.ttls) {\n this.ttls.fill(0)\n this.starts.fill(0)\n }\n if (this.sizes) {\n this.sizes.fill(0)\n }\n this.head = 0\n this.tail = 0\n this.initialFill = 1\n this.free.length = 0\n this.calculatedSize = 0\n this.size = 0\n if (this.disposed) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n }\n get reset () {\n deprecatedMethod('reset', 'clear')\n return this.clear\n }\n\n get length () {\n deprecatedProperty('length', 'size')\n return this.size\n }\n}\n\nmodule.exports = LRUCache\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = [new Comparator('>=0.0.0-0')]\n } else {\n sub = [new Comparator('>=0.0.0')]\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = [new Comparator('>=0.0.0')]\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,"module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"actions_python.feac98a0.js\"))).then(() => parcelRequire('apy8x'));","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nmodule.exports = input => {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\treturn input;\n};\n","'use strict';\nconst path = require('path');\nconst pathKey = require('path-key');\n\nconst npmRunPath = options => {\n\toptions = {\n\t\tcwd: process.cwd(),\n\t\tpath: process.env[pathKey()],\n\t\texecPath: process.execPath,\n\t\t...options\n\t};\n\n\tlet previous;\n\tlet cwdPath = path.resolve(options.cwd);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used\n\tconst execPathDir = path.resolve(options.cwd, options.execPath, '..');\n\tresult.push(execPathDir);\n\n\treturn result.concat(options.path).join(path.delimiter);\n};\n\nmodule.exports = npmRunPath;\n// TODO: Remove this for the next major release\nmodule.exports.default = npmRunPath;\n\nmodule.exports.env = options => {\n\toptions = {\n\t\tenv: process.env,\n\t\t...options\n\t};\n\n\tconst env = {...options.env};\n\tconst path = pathKey({env});\n\n\toptions.path = env[path];\n\tenv[path] = module.exports(options);\n\n\treturn env;\n};\n","'use strict';\n\nconst mimicFn = (to, from) => {\n\tfor (const prop of Reflect.ownKeys(from)) {\n\t\tObject.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));\n\t}\n\n\treturn to;\n};\n\nmodule.exports = mimicFn;\n// TODO: Remove this for the next major release\nmodule.exports.default = mimicFn;\n","'use strict';\nconst mimicFn = require('mimic-fn');\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFn(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nmodule.exports = onetime;\n// TODO: Remove this for the next major release\nmodule.exports.default = onetime;\n\nmodule.exports.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n","import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n const signals = getSignals()\n return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n signalByNameMemo,\n { name, number, description, supported, action, forced, standard },\n) {\n return {\n ...signalByNameMemo,\n [name]: { name, number, description, supported, action, forced, standard },\n }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n const signals = getSignals()\n const length = SIGRTMAX + 1\n const signalsA = Array.from({ length }, (value, number) =>\n getSignalByNumber(number, signals),\n )\n return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n const signal = findSignalByNumber(number, signals)\n\n if (signal === undefined) {\n return {}\n }\n\n const { name, description, supported, action, forced, standard } = signal\n return {\n [number]: {\n name,\n number,\n description,\n supported,\n action,\n forced,\n standard,\n },\n }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n if (signal !== undefined) {\n return signal\n }\n\n return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n","import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n const realtimeSignals = getRealtimeSignals()\n const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n return signals\n}\n\n// Normalize signal:\n// - `number`: signal numbers are OS-specific. This is taken into account by\n// `os.constants.signals`. However we provide a default `number` since some\n// signals are not defined for some OS.\n// - `forced`: set default to `false`\n// - `supported`: set value\nconst normalizeSignal = function({\n name,\n number: defaultNumber,\n description,\n action,\n forced = false,\n standard,\n}) {\n const {\n signals: { [name]: constantSignal },\n } = constants\n const supported = constantSignal !== undefined\n const number = supported ? constantSignal : defaultNumber\n return { name, number, description, supported, action, forced, standard }\n}\n","/* eslint-disable max-lines */\n// List of known process signals with information about them\nexport const SIGNALS = [\n {\n name: 'SIGHUP',\n number: 1,\n action: 'terminate',\n description: 'Terminal closed',\n standard: 'posix',\n },\n {\n name: 'SIGINT',\n number: 2,\n action: 'terminate',\n description: 'User interruption with CTRL-C',\n standard: 'ansi',\n },\n {\n name: 'SIGQUIT',\n number: 3,\n action: 'core',\n description: 'User interruption with CTRL-\\\\',\n standard: 'posix',\n },\n {\n name: 'SIGILL',\n number: 4,\n action: 'core',\n description: 'Invalid machine instruction',\n standard: 'ansi',\n },\n {\n name: 'SIGTRAP',\n number: 5,\n action: 'core',\n description: 'Debugger breakpoint',\n standard: 'posix',\n },\n {\n name: 'SIGABRT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'ansi',\n },\n {\n name: 'SIGIOT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'bsd',\n },\n {\n name: 'SIGBUS',\n number: 7,\n action: 'core',\n description:\n 'Bus error due to misaligned, non-existing address or paging error',\n standard: 'bsd',\n },\n {\n name: 'SIGEMT',\n number: 7,\n action: 'terminate',\n description: 'Command should be emulated but is not implemented',\n standard: 'other',\n },\n {\n name: 'SIGFPE',\n number: 8,\n action: 'core',\n description: 'Floating point arithmetic error',\n standard: 'ansi',\n },\n {\n name: 'SIGKILL',\n number: 9,\n action: 'terminate',\n description: 'Forced termination',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGUSR1',\n number: 10,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGSEGV',\n number: 11,\n action: 'core',\n description: 'Segmentation fault',\n standard: 'ansi',\n },\n {\n name: 'SIGUSR2',\n number: 12,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGPIPE',\n number: 13,\n action: 'terminate',\n description: 'Broken pipe or socket',\n standard: 'posix',\n },\n {\n name: 'SIGALRM',\n number: 14,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'posix',\n },\n {\n name: 'SIGTERM',\n number: 15,\n action: 'terminate',\n description: 'Termination',\n standard: 'ansi',\n },\n {\n name: 'SIGSTKFLT',\n number: 16,\n action: 'terminate',\n description: 'Stack is empty or overflowed',\n standard: 'other',\n },\n {\n name: 'SIGCHLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'posix',\n },\n {\n name: 'SIGCLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'other',\n },\n {\n name: 'SIGCONT',\n number: 18,\n action: 'unpause',\n description: 'Unpaused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGSTOP',\n number: 19,\n action: 'pause',\n description: 'Paused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGTSTP',\n number: 20,\n action: 'pause',\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: 'posix',\n },\n {\n name: 'SIGTTIN',\n number: 21,\n action: 'pause',\n description: 'Background process cannot read terminal input',\n standard: 'posix',\n },\n {\n name: 'SIGBREAK',\n number: 21,\n action: 'terminate',\n description: 'User interruption with CTRL-BREAK',\n standard: 'other',\n },\n {\n name: 'SIGTTOU',\n number: 22,\n action: 'pause',\n description: 'Background process cannot write to terminal output',\n standard: 'posix',\n },\n {\n name: 'SIGURG',\n number: 23,\n action: 'ignore',\n description: 'Socket received out-of-band data',\n standard: 'bsd',\n },\n {\n name: 'SIGXCPU',\n number: 24,\n action: 'core',\n description: 'Process timed out',\n standard: 'bsd',\n },\n {\n name: 'SIGXFSZ',\n number: 25,\n action: 'core',\n description: 'File too big',\n standard: 'bsd',\n },\n {\n name: 'SIGVTALRM',\n number: 26,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGPROF',\n number: 27,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGWINCH',\n number: 28,\n action: 'ignore',\n description: 'Terminal window size changed',\n standard: 'bsd',\n },\n {\n name: 'SIGIO',\n number: 29,\n action: 'terminate',\n description: 'I/O is available',\n standard: 'other',\n },\n {\n name: 'SIGPOLL',\n number: 29,\n action: 'terminate',\n description: 'Watched event',\n standard: 'other',\n },\n {\n name: 'SIGINFO',\n number: 29,\n action: 'ignore',\n description: 'Request for process information',\n standard: 'other',\n },\n {\n name: 'SIGPWR',\n number: 30,\n action: 'terminate',\n description: 'Device running out of power',\n standard: 'systemv',\n },\n {\n name: 'SIGSYS',\n number: 31,\n action: 'core',\n description: 'Invalid system call',\n standard: 'other',\n },\n {\n name: 'SIGUNUSED',\n number: 31,\n action: 'terminate',\n description: 'Invalid system call',\n standard: 'other',\n },\n]\n/* eslint-enable max-lines */\n","// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n const length = SIGRTMAX - SIGRTMIN + 1\n return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n return {\n name: `SIGRT${index + 1}`,\n number: SIGRTMIN + index,\n action: 'terminate',\n description: 'Application-specific signal (realtime)',\n standard: 'posix',\n }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n","'use strict';\nconst {signalsByName} = require('human-signals');\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nconst makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}}\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n\nmodule.exports = makeError;\n","'use strict';\nconst aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nconst normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\nmodule.exports = normalizeStdio;\n\n// `ipc` is pushed unless it is already present\nmodule.exports.node = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","'use strict';\nconst os = require('os');\nconst onExit = require('signal-exit');\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nconst spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => {\n\treturn isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n};\n\nconst isSigterm = signal => {\n\treturn signal === os.constants.signals.SIGTERM ||\n\t\t(typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n};\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nconst spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nconst setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nconst validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nconst setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n\nmodule.exports = {\n\tspawnedKill,\n\tspawnedCancel,\n\tsetupTimeout,\n\tvalidateTimeout,\n\tsetExitHandler\n};\n","'use strict';\nconst path = require('path');\nconst childProcess = require('child_process');\nconst crossSpawn = require('cross-spawn');\nconst stripFinalNewline = require('strip-final-newline');\nconst npmRunPath = require('npm-run-path');\nconst onetime = require('onetime');\nconst makeError = require('./lib/error');\nconst normalizeStdio = require('./lib/stdio');\nconst {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} = require('./lib/kill');\nconst {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = require('./lib/stream');\nconst {mergePromise, getSpawnedPromise} = require('./lib/promise');\nconst {joinCommand, parseCommand, getEscapedCommand} = require('./lib/command');\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPath.env({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\t...options\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execa.sync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nconst execa = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t}));\n\t\treturn mergePromise(dummySpawned, errorPromise);\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled,\n\t\t\t\tkilled: spawned.killed\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options.input);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\treturn mergePromise(spawned, handlePromiseOnce);\n};\n\nmodule.exports = execa;\n\nmodule.exports.sync = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false\n\t};\n};\n\nmodule.exports.command = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n};\n\nmodule.exports.commandSync = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa.sync(file, args, options);\n};\n\nmodule.exports.node = (scriptPath, args, options = {}) => {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdio.node(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : [])\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false\n\t\t}\n\t);\n};\n","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","'use strict';\nconst isStream = require('is-stream');\nconst getStream = require('get-stream');\nconst mergeStream = require('merge-stream');\n\n// `input` option\nconst handleInput = (spawned, input) => {\n\t// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852\n\t// @todo remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0\n\tif (input === undefined || spawned.stdin === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nconst makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\tif (!stream) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nconst getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise)\n\t\t]);\n\t}\n};\n\nconst validateInputSync = ({input}) => {\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n};\n\nmodule.exports = {\n\thandleInput,\n\tmakeAllStream,\n\tgetSpawnedResult,\n\tvalidateInputSync\n};\n\n","'use strict';\n\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property)\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nconst mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function' ?\n\t\t\t(...args) => Reflect.apply(descriptor.value, promise(), args) :\n\t\t\tdescriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n\n\treturn spawned;\n};\n\n// Use promises instead of `child_process` events\nconst getSpawnedPromise = spawned => {\n\treturn new Promise((resolve, reject) => {\n\t\tspawned.on('exit', (exitCode, signal) => {\n\t\t\tresolve({exitCode, signal});\n\t\t});\n\n\t\tspawned.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\n\t\tif (spawned.stdin) {\n\t\t\tspawned.stdin.on('error', error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t}\n\t});\n};\n\nmodule.exports = {\n\tmergePromise,\n\tgetSpawnedPromise\n};\n\n","'use strict';\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nconst joinCommand = (file, args) => {\n\treturn normalizeArgs(file, args).join(' ');\n};\n\nconst getEscapedCommand = (file, args) => {\n\treturn normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n};\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execa.command()`\nconst parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nmodule.exports = {\n\tjoinCommand,\n\tgetEscapedCommand,\n\tparseCommand\n};\n","'use strict';\nconst os = require('os');\n\nconst homeDirectory = os.homedir();\n\nmodule.exports = pathWithTilde => {\n\tif (typeof pathWithTilde !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof pathWithTilde}`);\n\t}\n\n\treturn homeDirectory ? pathWithTilde.replace(/^~(?=$|\\/|\\\\)/, homeDirectory) : pathWithTilde;\n};\n","const os = require(\"os\");\n\n// to detect on with os user had used path.resolve(...)\nconst is_posix_os = (os.platform() !== \"win32\");\nconst version = os.release();\n\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n\nmodule.exports = function (given_path) {\n return (is_posix_os)\n // for posix path, escape is simple\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\n // for windows, it depend of the build\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\n // on major version, no need to escape anymore\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\n ? given_path\n // on older version, replace space with symbol %20\n : given_path.replace(/(\\s+)/g, '%20');\n};",null,null,null,"\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname, join } from \"path\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { addShellExtension, addShellHere } from \"extension-tools\"\nimport { notice } from \"../utils/io/io\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { giveUserAccess } from \"user-access\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n setupPacmanPack(\"curl\")\n setupPacmanPack(\"zip\")\n setupPacmanPack(\"unzip\")\n setupPacmanPack(\"tar\")\n setupPacmanPack(\"git\")\n setupPacmanPack(\"pkg-config\")\n } else if (hasDnf()) {\n setupDnfPack(\"curl\")\n setupDnfPack(\"zip\")\n setupDnfPack(\"unzip\")\n setupDnfPack(\"tar\")\n setupDnfPack(\"git\")\n setupDnfPack(\"pkg-config\")\n } else if (isUbuntu()) {\n await setupAptPack(\"curl\")\n await setupAptPack(\"zip\")\n await setupAptPack(\"unzip\")\n await setupAptPack(\"tar\")\n await setupAptPack(\"git\")\n await setupAptPack(\"pkg-config\")\n }\n }\n\n if (!existsSync(join(setupDir, addShellExtension(\"bootstrap-vcpkg\")))) {\n execa.sync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execa.sync(addShellExtension(addShellHere(\"bootstrap-vcpkg\")), { cwd: setupDir, shell: true, stdio: \"inherit\" })\n\n giveUserAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { dirname } from \"path\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { execRootSync } from \"root-tools\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\"\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack(\"nala\", undefined, [], true)\n } else {\n await setupAptPack(\"nala-legacy\", undefined, [], true)\n }\n } catch (err) {\n await setupAptPack(\"nala-legacy\", undefined, [], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n","import { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { execRootSync } from \"root-tools\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n setupDnfPack(\"dnf-plugins-core\", undefined)\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack(\"bazel4\", undefined)\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\"\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack(\"bazel\", version, [], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n await setupPipPack(\"setuptools\", \"\")\n return setupPipPack(\"conan\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"ccache\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"ccache\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"ccache\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"cppcheck\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"make\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"make\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n"],"names":["$1d8d028d9c47b73d$var$isexe","path","options","cb","Promise","TypeError","resolve","reject","er","is","$1d8d028d9c47b73d$var$core","code","ignoreErrors","$b50fe22cd1c82159$export$c5eeb9c87a610a0e","_version","_setupDir","_arch","includes","process","platform","$b50fe22cd1c82159$var$binDir","maybeBinDir","$parcel$interopDefault","$4ca03dc05bbe4be0$exports","sync","nothrow","$dLzlS$path","dirname","$dLzlS$child_process","execFileSync","stdio","$51d58653c6048ffd$var$resolveCommandAttempt","parsed","withoutPathExt","env","cwd","hasCustomCwd","shouldSwitchCwd","undefined","chdir","disabled","err","resolved","command","$e9929770d50e0ca3$exports","pathExt","delimiter","e","$cee8c79eb01cd876$var$notFoundError","original","syscall","Object","assign","Error","errno","spawnargs","args","$cee8c79eb01cd876$var$verifyENOENT","status","$cee8c79eb01cd876$var$isWin","file","$338cd3297632d74f$var$spawn","$9cf15e4f01e764e1$exports","spawned","spawn","$cee8c79eb01cd876$exports","hookChildProcess","async","$3f8980e86d9447d4$var$getStream","inputStream","maxBuffer","Infinity","stream1","$2791e057b208c733$exports","rejectPromise","error","getBufferedLength","$3f8980e86d9447d4$require$BufferConstants","MAX_LENGTH","bufferedData","getBufferedValue","$3f8980e86d9447d4$var$streamPipelinePromisified","on","$3f8980e86d9447d4$var$MaxBufferError","$373ec10beb4d7153$export$316200228f28b8ce","CI","ref","getuid","call","$373ec10beb4d7153$export$58f152936f209932","program","execOptions","shell","$c3e9e2f843627429$exports","commandSync","map","arg","join","$3f4c9366e55e0917$export$8312d9eeba321950","SUDO_USER","$a7308743a0157ada$exports","$6e1462338680af59$export$43324456a02f71b0","startupFlags","$6e1462338680af59$var$powershell","maybePwsh","maybePowerShell","$6e1462338680af59$export$4dfdd3964d242d20","$7bb732a40a25bec4$export$f63d3080ce25e0fd","name","valGiven","shouldEscapeSpace","val","$892cf68de9d02605$exports","$gmbrv","$04fde","exportVariable","$ditiY","$7bb732a40a25bec4$var$addEnvSystem","setFailed","$7bb732a40a25bec4$export$4c25481b843feb0b","PATH","addPath","$7bb732a40a25bec4$var$addPathSystem","info","$7bb732a40a25bec4$export$bd1dffd792f43c41","$dLzlS$fs","appendFileSync","$7bb732a40a25bec4$export$1bbbc3a810c5799d","$7bb732a40a25bec4$var$setupCppInProfile_called","source_cpprc_str","existsSync","readFileSync","source_cpprc_string","profile_path","bashrc_path","warning","$b264a6d5b746ae82$export$d73dc343f5abf26","version","repositories","update","apt","$b264a6d5b746ae82$var$getApt","DEBIAN_FRONTEND","$b264a6d5b746ae82$var$didUpdate","$b264a6d5b746ae82$var$updateRepos","$b264a6d5b746ae82$var$didInit","$b264a6d5b746ae82$export$11aa10c05ada0934","$b264a6d5b746ae82$var$initApt","Array","isArray","length","repo","binDir","$b264a6d5b746ae82$var$initGpg","keys","server","fileName","key","$b264a6d5b746ae82$export$7fb1a688af1305f0","url","$b264a6d5b746ae82$export$6fe6436bd9f53d02","$debaf44f90dd37c4$export$cfa75578ee2d6e6c","aur","pacman","$debaf44f90dd37c4$var$didUpdate","$debaf44f90dd37c4$var$didInit","$57c286cd21b83a3a$export$ce5d13d8a85cb784","$57c286cd21b83a3a$var$hasBrew","$8937fb0e5906a8f2$export$b804d731cdad7ef9","$8937fb0e5906a8f2$var$binDir","powershell","SystemRoot","chocoPath","ALLUSERSPROFILE","maybeChoco","_ChocolateyInstall","ChocolateyInstall","$a1d9f9e35ead513b$export$9f6912bc890040b2","$a1d9f9e35ead513b$var$hasChoco","TMP","TEMP","Path","extendEnv","message","notice","$c4b56061e0dbde5f$export$d415ddb6702ec3a2","$c4b56061e0dbde5f$var$isArchCache","$cbc3e193f1217bd7$export$8ce8b4b22331a8c7","$cbc3e193f1217bd7$var$hasDnfCache","$d6741ec1214892d9$export$49d4f9ba8e0dd34f","dnf","$0f4e7dc450142f89$export$da8baf1d6c6802b6","$0f4e7dc450142f89$var$isUbuntuCache","$110a38e684aa0e04$export$e88210974180936f","win_ext","unix_ext","$110a38e684aa0e04$export$eae120f0e5838f32","$fb82248e8974c296$export$5fc39629e14c8173","$aa67f233b2c242f1$export$f9a3d10eb7c735af","$2032c186687979ea$var$findAllVersions","toolName","arch","versions","$2032c186687979ea$var$os","toolPath","$2032c186687979ea$var$path","$2032c186687979ea$var$_getCacheDirectory","$2032c186687979ea$var$fs","children","readdirSync","child","$2032c186687979ea$var$isExplicitVersion","fullPath","push","$2032c186687979ea$var$_createExtractFolder","dest","$2032c186687979ea$var$_getTempDirectory","$2032c186687979ea$var$v4_1","default","$2032c186687979ea$var$io","mkdirP","$2032c186687979ea$var$_createToolPath","tool","folderPath","$2032c186687979ea$var$semver","clean","$2032c186687979ea$var$core","debug","markerPath","rmRF","$2032c186687979ea$var$_completeToolPath","writeFileSync","versionSpec","c","valid","$2032c186687979ea$var$evaluateVersions","i","sort","a","b","gt","potential","satisfies","cacheDirectory","$dLzlS$assert","ok","tempDirectory","$2032c186687979ea$var$_getGlobal","defaultValue","value","$parcel$global","$d07bf20a0d39a78b$export$eecfe186811d4a20","$d07bf20a0d39a78b$var$sevenZip","$d07bf20a0d39a78b$var$getSevenZip","$d07bf20a0d39a78b$export$7949938b2681a4f0","$d07bf20a0d39a78b$export$6411c5cbab21135b","$d07bf20a0d39a78b$export$2ab07ac150064014","flags","$fvrnx","$5378b225b5c95af5$export$334f77c9844c21f6","getPackageInfo","setupDir","_RUNNER_TEMP","_RUNNER_TOOL_CACHE","RUNNER_TEMP","$dLzlS$os","tmpdir","RUNNER_TOOL_CACHE","binRelativeDir","binFileName","extractedFolderName","extractFunction","dir","$2032c186687979ea$exports","find","installDir","binFile","$5378b225b5c95af5$var$didInit","downloaded","downloadTool","cacheDir","$fee36361a2bad308$var$getTaskPackageInfo","taskPlatform","$fee36361a2bad308$var$getTaskPlatform","taskArch","$fee36361a2bad308$var$getTaskArch","isZip","extension","$775e54fd09f86a26$var$getCmakePackageInfo","semVersion","$1YYsi","isOld","$fwsB7","osArchStr","folderName","extractTar","$775e54fd09f86a26$export$c28663a621f418ce","$644ae3dba93653dd$export$2b0b68e9df3d4a02","$644ae3dba93653dd$export$33cd96f062979ce0","setupActionsPython","parcelRequire","ref1","pythonBinPath","pythonSetupDir","$644ae3dba93653dd$var$activateWinPython","installInfo","$571b32d09287ce56$export$bef94a5618bf18bf","$dLzlS$https","get","res","statusCode","$788ba5c4da878b74$export$deb1064c8260c54c","semversion","from","filter","v","test","startsWith","reverse","$68635a7be6556a7e$export$c506eb22e615ba4a","osVersion","$68635a7be6556a7e$var$useDefault","$68635a7be6556a7e$var$DefaultUbuntuVersion","osVersionMaj","parseInt","$68635a7be6556a7e$var$DefaultVersions","$725285b1d6baf678$export$4020cb77ffa3ffac","$725285b1d6baf678$var$python","givenFile","targetVersion","versionRegex","$788ba5c4da878b74$export$d7ab5e2d33b06cd5","givenVersion","execout","$ca0ts","getExecOutput","stdout","stderr","trim","match","console","$788ba5c4da878b74$export$5b54ecc7386538f","$howpO","$725285b1d6baf678$var$tried","$725285b1d6baf678$var$binDir","$b19dce7371463457$export$b885bd977caaafb9","$b19dce7371463457$var$activateGraphviz","$9f276bb1312a9d71$var$getDoxygenPackageInfo","$89d2131bb8f4aa1b$export$28f5fd35e3005b7a","xcrun","sdkroot","$9c01b612305c09a3$var$getGccPackageInfo","mingwInfo","$9c01b612305c09a3$var$GccToMingwInfo","mingwArch","exceptionModel","releaseName","fileSuffix","$9c01b612305c09a3$export$405fab3de79b77b","installationInfo","_ChocolateyInstall1","$9c01b612305c09a3$var$setupChocoMingw","promises","majorVersion","$fB2B7","matcherPath","$9c01b612305c09a3$var$__dirname1","$9c01b612305c09a3$var$addGccLoggingMatcher","all","$9c01b612305c09a3$var$activateGcc","$2cacaea738b8f1ae$var$getGitHubUrl","prefix","suffix","$2cacaea738b8f1ae$var$getReleaseUrl","$2cacaea738b8f1ae$export$94df0e59ebebf4a7","$2cacaea738b8f1ae$var$DARWIN_MISSING","has","$2cacaea738b8f1ae$var$getDarwinUrl","versionGiven","rc","$2cacaea738b8f1ae$var$UBUNTU_RC","ubuntu","givenUbuntuVersion","replace","$2cacaea738b8f1ae$export$aa5307f1aca77413","$2cacaea738b8f1ae$var$UBUNTU_SUFFIX_MAP","$2cacaea738b8f1ae$export$ae24f9682a44836b","$2cacaea738b8f1ae$var$WIN32_MISSING","olderThan9_1","fallback","$2cacaea738b8f1ae$var$getWin32Url","$2cacaea738b8f1ae$var$getLLVMPackageInfo","specificVersion","getUrl","setOutput","$2cacaea738b8f1ae$export$3016de7ae9d14988","$2cacaea738b8f1ae$var$_setupLLVM","_installDir","directory","$fVzwP","coercedVersion","lib","_LD_LIBRARY_PATH","ld","LD_LIBRARY_PATH","_DYLD_LIBRARY_PATH","dyld","DYLD_LIBRARY_PATH","llvmMajor","$2cacaea738b8f1ae$var$addLLVMLoggingMatcher","$2cacaea738b8f1ae$export$6238b5ebfd6640e7","$2cacaea738b8f1ae$var$didInit","$2cacaea738b8f1ae$export$814ccfc953503728","$2cacaea738b8f1ae$var$__dirname1","$dcc4a5600f9a2a29$var$issueCommand","properties","cmd","$dcc4a5600f9a2a29$var$Command","write","$dcc4a5600f9a2a29$var$os","EOL","$d2814cb4b08c0425$var$error","$dcc4a5600f9a2a29$exports","issue","$d2814cb4b08c0425$var$startGroup","$d2814cb4b08c0425$var$endGroup","$44e2ea7eee739a17$var$vsversion_to_versionnumber","vsversion","values","$44e2ea7eee739a17$var$VsYearVersion","$44e2ea7eee739a17$var$vsversion_to_year","year","ver","entries","$44e2ea7eee739a17$var$findVcvarsall","vsversion_number","version_pattern","upper_bound","split","path1","pattern","execSync","installationPath","$d2814cb4b08c0425$exports","$44e2ea7eee739a17$var$findWithVswhere","years","$44e2ea7eee739a17$var$YEARS","prog_files","$44e2ea7eee739a17$var$PROGRAM_FILES","ed","$44e2ea7eee739a17$var$EDITIONS","$44e2ea7eee739a17$var$PROGRAM_FILES_X86","$44e2ea7eee739a17$var$isPathVariable","indexOf","toUpperCase","$28a0179cccdfc4cc$export$5dcf571c91fc8369","VCTargetsPath","toolset","sdk","uwp","spectre","$44e2ea7eee739a17$export$443b8bb890f5027e","$28a0179cccdfc4cc$var$getArch","$da99583472da45a4$export$a91ef0362c1a7298","$44e2ea7eee739a17$export$3c7cae5a162b1458","installed","vcvarsall_path","$44e2ea7eee739a17$export$a6a3bfb882356813","$da99583472da45a4$var$__dirname1","$da99583472da45a4$var$addMSVCLoggingMatcher","$9bc35ceb5b751351$var$getNinjaPackageInfo","ninjaPlatform","$9bc35ceb5b751351$var$getNinjaPlatform","$9bc35ceb5b751351$export$e6190f4bfe2ef71","$4012ecb407fc2f3d$var$toArr","any","$4012ecb407fc2f3d$var$toVal","out","opts","x","old","nxt","string","String","boolean","_","concat","$227396c887da582e$var$getDownloadKcovPackageInfo","$227396c887da582e$var$getBuildKcovPackageInfo","$227396c887da582e$var$buildKcov","cmake","$227396c887da582e$var$getCmake","buildDir","$ff26fdfb9b4deeb1$export$f22da7240b7add18","ACTIONS_ALLOW_UNSECURE_COMMANDS","$ff26fdfb9b4deeb1$export$7300a92932ee17a3","_architecture","help","architecture","_SETUP_CPP_DIR","setupCppDir","SETUP_CPP_DIR","successMessages","errorMessages","timeFormatter","$a6c8cb5c76e7e4f4$exports","create","autoloadLocales","time1","time2","addLocale","$21a9c7af84658271$exports","$5FRs7","$6dfec0551895c67b$exports","versionSplitted","$f095436a84b3b121$exports","getUbuntuVersion","tools","otherTools","slice","i_other","otherTool","tool1","$ff26fdfb9b4deeb1$var$tools","Date","now","startGroup","setupFunction","$ff26fdfb9b4deeb1$var$setups","$ff26fdfb9b4deeb1$var$getSuccessMessage","endGroup","format","maybeCompiler","compiler","$ff26fdfb9b4deeb1$export$588248dee5258836","forEach","success","k","arr","j","idx","len","alibi","alias","strict","unknown","defaults","splice","charCodeAt","substring","repeat","shift","$ff26fdfb9b4deeb1$var$inputs","fromEntries","inp","$ff26fdfb9b4deeb1$var$maybeGetInput","h","compilerAndMaybeVersion","maybeVersion","getInput","toLowerCase","msg","$00cc2cb44b74fa5a$var$getInput","required","trimWhitespace","$00cc2cb44b74fa5a$var$error","$2iva8","issueCommand","$hGWy4","toCommandProperties","$00cc2cb44b74fa5a$var$startGroup","$00cc2cb44b74fa5a$var$endGroup","$00cc2cb44b74fa5a$var$os","$00cc2cb44b74fa5a$var$__importStar","$00cc2cb44b74fa5a$var$path","$00cc2cb44b74fa5a$var$ExitCode","ExitCode1","module","exports","ExitCode","convertedVal","toCommandValue","$kCOkT","setSecret","secret","inputPath","getMultilineInput","getBooleanInput","setCommandEcho","enabled","exitCode","Failure","isDebug","group","fn","result","saveState","getState","getIDToken","aud","$1hWAC","OidcClient","defineProperty","enumerable","$hILBc","summary","markdownSummary","$39f1T","toPosixPath","toWin32Path","toPlatformPath","$1ac56f735470f2bc$var$issueCommand","$1ac56f735470f2bc$var$Command","$1ac56f735470f2bc$var$os","$1ac56f735470f2bc$var$__importStar","constructor","this","toString","cmdStr","first","hasOwnProperty","s","$1ac56f735470f2bc$var$escapeData","input","JSON","stringify","annotationProperties","title","line","startLine","endLine","col","startColumn","endColumn","$f03e66e97447a0d4$var$fs","$f03e66e97447a0d4$var$__importStar","$f03e66e97447a0d4$var$os","filePath","encoding","$0f04d3adb67492b4$var$OidcClient","static","allowRetry","maxRetry","requestOptions","allowRetries","maxRetries","$4z9RF","HttpClient","$7v249","BearerCredentialHandler","getRequestToken","token","runtimeUrl","id_token_url","httpclient","createHttpClient","getJson","catch","id_token","_a","audience","getIDTokenUrl","encodeURIComponent","getCall","$3532153250d0a8c3$var$http","$3532153250d0a8c3$var$__importStar","$dLzlS$http","$3532153250d0a8c3$var$https","$3532153250d0a8c3$var$pm","$3532153250d0a8c3$var$tunnel","$3532153250d0a8c3$var$HttpCodes","HttpCodes1","$3532153250d0a8c3$var$Headers","Headers1","$3532153250d0a8c3$var$MediaTypes","HttpCodes","Headers","MediaTypes","getProxyUrl","serverUrl","proxyUrl","URL","href","$3532153250d0a8c3$var$HttpRedirectCodes","MovedPermanently","ResourceMoved","SeeOther","TemporaryRedirect","PermanentRedirect","$3532153250d0a8c3$var$HttpResponseRetryCodes","BadGateway","ServiceUnavailable","GatewayTimeout","$3532153250d0a8c3$var$RetryableHttpVerbs","$3532153250d0a8c3$var$HttpClientError","super","setPrototypeOf","prototype","HttpClientError","$3532153250d0a8c3$var$HttpClientResponse","readBody","$3532153250d0a8c3$var$__awaiter","output","Buffer","alloc","chunk","HttpClientResponse","isHttps","requestUrl","protocol","userAgent","handlers","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","Math","max","keepAlive","additionalHeaders","request","del","post","data","patch","put","head","sendStream","verb","stream","Accept","_getExistingOrDefaultHeader","ApplicationJson","_processResponse","postJson","obj","ContentType","putJson","patchJson","headers","parsedUrl","_prepareRequest","maxTries","response","numTries","requestRaw","Unauthorized","authenticationHandler","handler","canHandleAuthentication","handleAuthentication","redirectsRemaining","redirectUrl","parsedRedirectUrl","hostname","header","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","onResult","handleResult","callbackCalled","byteLength","req","httpModule","socket","sock","setTimeout","end","pipe","getAgent","_getAgent","method","usingSsl","defaultPort","host","port","pathname","search","_mergeHeaders","agent","prepareRequest","$3532153250d0a8c3$var$lowercaseKeys","_default","clientHeader","useProxy","_proxyAgent","maxSockets","globalAgent","agentOptions","proxy","username","password","proxyAuth","tunnelAgent","overHttps","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","retryNumber","ms","pow","min","contents","NotFound","deserializeDates","parse","isNaN","valueOf","reduce","$1f9807f2878b82ba$var$checkBypass","reqUrl","noProxy","reqPort","upperReqHosts","upperNoProxyItem","some","proxyVar","checkBypass","$b80e68d5f6e6478f$var$TunnelingAgent","options1","self","proxyOptions","defaultMaxSockets","requests","sockets","localAddress","$b80e68d5f6e6478f$var$toOptions","pending","onSocket","removeSocket","$b80e68d5f6e6478f$var$createSecureSocket","createSocket","hostHeader","getHeader","tlsOptions","$b80e68d5f6e6478f$var$mergeOptions","servername","secureSocket","$dLzlS$tls","connect","target","arguments","overrides","keyLen","$b80e68d5f6e6478f$export$25cbd437c61a3835","$b80e68d5f6e6478f$export$c06e3df7111bae43","$b80e68d5f6e6478f$export$5d50e36ef656139f","$b80e68d5f6e6478f$export$212d6605025321cc","$b80e68d5f6e6478f$export$1c9f709888824e05","$b80e68d5f6e6478f$var$debug","$dLzlS$util","inherits","$dLzlS$events","EventEmitter","addRequest","onFree","emit","onCloseOrRemove","removeListener","onConnect","connectReq","removeAllListeners","placeholder","connectOptions","useChunkedEncodingByDefault","once","upgrade","nextTick","cause","stack","socket1","pos","BasicCredentialHandler","PersonalAccessTokenCredentialHandler","access","$ce6b77df7bbb7675$var$access","appendFile","$ce6b77df7bbb7675$var$appendFile","writeFile","$ce6b77df7bbb7675$var$writeFile","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","$ce6b77df7bbb7675$var$_summary","_buffer","_filePath","pathFromEnv","constants","R_OK","W_OK","wrap","tag","content","attrs","htmlAttrs","overwrite","writeFunc","emptyBuffer","clear","isEmptyBuffer","addRaw","text","addEOL","addCodeBlock","lang","element","addList","items","ordered","listItems","item","addTable","rows","tableBody","row","cells","cell","colspan","rowspan","addDetails","label","addImage","src","alt","width","height","addHeading","level","allowedTag","addSeparator","addBreak","addQuote","cite","addLink","$24addeec9ef57a1a$var$path","$24addeec9ef57a1a$var$__importStar","pth","sep","$b43ef73900290537$var$checkStat","stat","isSymbolicLink","isFile","pathext","PATHEXT","p","substr","$b43ef73900290537$var$checkPathExt","$b43ef73900290537$var$isexe","statSync","$6f57237f32b1c8cb$var$isexe","$6f57237f32b1c8cb$var$checkStat","mod","mode","uid","gid","myUid","myGid","getgid","u","g","ug","$6f57237f32b1c8cb$var$checkMode","$1b0116afdfeaeacc$export$a3bc9b8ed74fc","log","$1b0116afdfeaeacc$export$fe7c49d056ea1d88","$1b0116afdfeaeacc$export$491112666e282270","$1b0116afdfeaeacc$export$b31f6ae88848cf15","$1b0116afdfeaeacc$export$a80b3bd66acc52ff","GERRIT_PROJECT","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","BITRISE_IO","BUDDY_WORKSPACE_ID","BUILDKITE","CIRRUS_CI","GITLAB_CI","APPVEYOR","CIRCLECI","SEMAPHORE","DRONE","DSARI","GITHUB_ACTION","TDDIUM","SCREWDRIVER","STRIDER","TASKCLUSTER_ROOT_URL","JENKINS_URL","GO_PIPELINE_NAME","HUDSON_URL","WERCKER","NETLIFY","NOW_GITHUB_DEPLOYMENT","GITLAB_DEPLOYMENT","BITBUCKET_DEPLOYMENT","BITBUCKET_BUILD_NUMBER","NOW_BUILDER","VERCEL_GITHUB_DEPLOYMENT","VERCEL_GITLAB_DEPLOYMENT","VERCEL_BITBUCKET_DEPLOYMENT","VERCEL_URL","MAGNUM","NEVERCODE","RENDER","SAIL_CI","SHIPPABLE","TEAMCITY_VERSION","CI_NAME","NODE","TRAVIS","CODEBUILD_SRC_DIR","BUILDER_OUTPUT","$b49efd1a00c432ed$var$rmRF","$b49efd1a00c432ed$var$ioUtil","IS_WINDOWS","cmdPath","getCmdPath","isDirectory","$b49efd1a00c432ed$var$exec","unlink","err1","isDir","$b49efd1a00c432ed$var$execFile","$b49efd1a00c432ed$var$mkdirP","fsPath","mkdir","recursive","$b49efd1a00c432ed$var$findInPath","extensions","$b49efd1a00c432ed$var$path","isRooted","tryGetExecutablePath","directories","matches","$b49efd1a00c432ed$var$cpDirRecursive","sourceDir","destDir","currentDepth","force","files","readdir","srcFile","destFile","lstat","$b49efd1a00c432ed$var$copyFile","chmod","symlinkFull","readlink","symlink","exists","copyFile","$b49efd1a00c432ed$var$childProcess","$b49efd1a00c432ed$var$__importStar","promisify","exec","execFile","cp","source","copySourceDirectory","$b49efd1a00c432ed$var$readCopyOptions","destStat","newDest","basename","relative","mv","destExists","rename","which","$b49efd1a00c432ed$var$which","check","findInPath","$1f568b1c4242dba7$var$isUnixExecutable","stats","$1f568b1c4242dba7$var$fs","$1f568b1c4242dba7$var$__importStar","$1f568b1c4242dba7$var$path","$1f568b1c4242dba7$var$_a","rmdir","useStat","$1f568b1c4242dba7$var$normalizeSeparators","upperExt","extname","validExt","originalFilePath","upperName","actualName","_a1","$49c6639221a3e217$var$semver","$49c6639221a3e217$var$__importStar","_findMatch","stable","candidates","archFilter","platFilter","candidate","chk","platform_version","_getOsVersion","plat","lsbContents","_readLinuxVersionFile","lines","parts","lsbReleaseFile","osReleaseFile","$bikcG","re","tokens","t","SEMVER_SPEC_VERSION","SemVer","compareIdentifiers","rcompareIdentifiers","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","eq","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","MAX_SAFE_COMPONENT_LENGTH","R","createToken","isGlobal","index","$jkMsx","RegExp","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","$83910c29f6734fbd$require$MAX_SAFE_COMPONENT_LENGTH","COERCE","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","Number","MAX_SAFE_INTEGER","$e1357995fd1631a2$var$debug","$bgOMw","$5696f94a63c27d85$var$SemVer","$eUvvN","loose","includePrerelease","$5696f94a63c27d85$require$MAX_LENGTH","m","$5696f94a63c27d85$require$re","$5696f94a63c27d85$require$t","LOOSE","FULL","raw","$5696f94a63c27d85$require$MAX_SAFE_INTEGER","id","num","build","other","compareMain","comparePre","$5696f94a63c27d85$require$compareIdentifiers","release","identifier","$adaebd3d9a17271f$var$opts","o","$0c2cbbcfac21c924$var$numeric","$0c2cbbcfac21c924$var$compareIdentifiers","anum","bnum","$7qUJS","$bce3317ae792f650$require$MAX_LENGTH","$bce3317ae792f650$require$re","$bce3317ae792f650$require$t","$gdrva","version1","version2","$jXghC","v1","v2","hasPre","defaultResult","versionA","versionB","$80ezM","list","op","$fqqGA","$6KPS4","$5cRW4","$lr5pz","rtl","next","$171a4a37978eb9a3$require$re","$171a4a37978eb9a3$require$t","COERCERTL","lastIndex","$ad0b6a9469831548$var$ANY","Symbol","$ad0b6a9469831548$var$Comparator","ANY","comp","semver","operator","$ad0b6a9469831548$require$re","$ad0b6a9469831548$require$t","COMPARATORLOOSE","COMPARATOR","$823yM","$hvUff","sameDirectionIncreasing","sameDirectionDecreasing","sameSemVer","differentDirectionsInclusive","oppositeDirectionsLessThan","oppositeDirectionsGreaterThan","$cc00f5fd17503a13$var$Range","range","$eR6XK","set","r","parseRange","$cc00f5fd17503a13$var$isNullSet","$cc00f5fd17503a13$var$isAny","comps","memoKey","cached","$cc00f5fd17503a13$var$cache","$cc00f5fd17503a13$require$re","$cc00f5fd17503a13$require$t","HYPHENRANGELOOSE","HYPHENRANGE","$cc00f5fd17503a13$var$hyphenReplace","COMPARATORTRIM","$cc00f5fd17503a13$require$comparatorTrimReplace","rangeList","TILDETRIM","$cc00f5fd17503a13$require$tildeTrimReplace","CARETTRIM","$cc00f5fd17503a13$require$caretTrimReplace","$cc00f5fd17503a13$var$parseComparator","$cc00f5fd17503a13$var$replaceGTE0","rangeMap","Map","comparators","comp1","size","delete","thisComparators","$cc00f5fd17503a13$var$isSatisfiable","rangeComparators","every","thisComparator","rangeComparator","$cc00f5fd17503a13$var$testSet","remainingComparators","testComparator","pop","otherComparator","$cc00f5fd17503a13$var$replaceCarets","$cc00f5fd17503a13$var$replaceTildes","$cc00f5fd17503a13$var$replaceXRanges","$cc00f5fd17503a13$var$replaceStars","$cc00f5fd17503a13$var$isX","$cc00f5fd17503a13$var$replaceTilde","TILDELOOSE","TILDE","M","pr","ret","$cc00f5fd17503a13$var$replaceCaret","z","CARETLOOSE","CARET","$cc00f5fd17503a13$var$replaceXRange","XRANGELOOSE","XRANGE","gtlt","xM","xm","xp","STAR","GTE0PRE","GTE0","incPr","$0","fM","fm","fp","fpr","fb","to","tM","tm","tp","tpr","tb","allowed","$4f0bf18d6c99da3c$var$perf","performance","$4f0bf18d6c99da3c$var$AC","AbortController","signal","AbortSignal","abort","aborted","$4f0bf18d6c99da3c$var$warned","Set","$4f0bf18d6c99da3c$var$deprecatedOption","opt","instead","$4f0bf18d6c99da3c$var$shouldWarn","$4f0bf18d6c99da3c$var$warn","$4f0bf18d6c99da3c$var$LRUCache","$4f0bf18d6c99da3c$var$deprecatedMethod","getOwnPropertyDescriptor","$4f0bf18d6c99da3c$var$emitWarning","emitWarning","what","add","$4f0bf18d6c99da3c$var$isPosInt","n","floor","isFinite","$4f0bf18d6c99da3c$var$getUintArray","$4f0bf18d6c99da3c$var$ZeroArray","Uint32Array","Uint16Array","Uint8Array","fill","$4f0bf18d6c99da3c$var$Stack","UintArray","heap","ttl","ttlResolution","ttlAutopurge","updateAgeOnGet","updateAgeOnHas","allowStale","disposeAfter","noDisposeOnSet","noUpdateTTL","maxSize","sizeCalculation","fetchMethod","maxAge","stale","keyMap","keyList","valList","prev","tail","free","initialFill","disposed","initializeSizeTracking","initializeTTLTracking","getRemainingTTL","ttls","starts","setItemTTL","isStale","unref","updateItemAge","cachedNow","getNow","calculatedSize","sizes","removeItemSize","requireSize","addItemSize","evict","indexes","isValidIndex","rindexes","rentries","rkeys","rvalues","iterator","getOptions","thisp","rforEach","prune","purgeStale","deleted","dump","entry","unshift","load","reason","newIndex","oldVal","isBackgroundFetch","__abortController","moveToTail","peek","backgroundFetch","ac","fetchOpts","then","__staleWhileFetching","fetching","reset","field","$4f0bf18d6c99da3c$var$deprecatedProperty","maxSV","rangeObj","minSV","minver","setMin","comparator","compver","$52e25de88536d4d3$var$ANY","hilo","gtfn","ltefn","ltfn","ecomp","$c8FZS","high","low","$77bPN","r1","r2","ranges","simplified","$2478f50f5acc8298$var$ANY","$2478f50f5acc8298$var$simpleSubset","sub","dom","eqSet","gtltComp","higher","lower","hasDomLT","hasDomGT","$2478f50f5acc8298$var$higherGT","$2478f50f5acc8298$var$lowerLT","needDomLTPre","needDomGTPre","c1","sawNonNull","OUTER","simpleSub","simpleDom","isSub","$joDHm","buf","offset","rnds","random","rng","ii","$inTPA","$dLzlS$crypto","randomBytes","$d625aee022f0dd91$var$byteToHex","$d625aee022f0dd91$var$i","i1","$8da6c9556ccdcf3f$var$exec","commandLine","commandArgs","$8da6c9556ccdcf3f$var$tr","argStringToArray","ToolRunner","$8da6c9556ccdcf3f$var$__importStar","stdoutDecoder","$dLzlS$string_decoder","StringDecoder","stderrDecoder","originalStdoutListener","listeners","originalStdErrListener","_b","$a31d583cb10858c8$var$os","$a31d583cb10858c8$var$__importStar","$a31d583cb10858c8$var$events","$a31d583cb10858c8$var$child","$a31d583cb10858c8$var$path","$a31d583cb10858c8$var$io","$a31d583cb10858c8$var$ioUtil","$a31d583cb10858c8$var$IS_WINDOWS","_debug","_getCommandString","noPrefix","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","strBuffer","onLine","argline","_endsWith","str","endsWith","upperToolPath","_uvQuoteCmdArg","cmdSpecialChars","needsQuotes","char","quoteHit","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","$a31d583cb10858c8$var$__awaiter","optionsNonNull","state","$a31d583cb10858c8$var$ExecState","stdbuffer","stdline","errbuffer","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","argString","append","escaped","inQuotes","charAt","done","timeout","_setResult","$dLzlS$timers","HandleTimeout","clearTimeout","require","$95c5fc1c1b6165c5$var$addLocale","localeData","$95c5fc1c1b6165c5$var$locales","$95c5fc1c1b6165c5$var$pluralize","unit","config","unitTypeData","locale","lookupOrder","unitTypeLookupOrder","unitType","$95c5fc1c1b6165c5$var$getLocaleDataForUnitType","pluralize","$95c5fc1c1b6165c5$var$timeUnits","$95c5fc1c1b6165c5$var$defaultConfig","span","firstDate","secondDate","autoload","$3Zbea","localeId","$95c5fc1c1b6165c5$var$requireLocale","$95c5fc1c1b6165c5$var$ensureLocaleLoadedOrThrow","difference","results","divider","$95c5fc1c1b6165c5$var$getDifference","$95c5fc1c1b6165c5$var$format","variants","checkLocale","locales","hasLocale","$de644365a4a5582b$var$__dirname1","requireLocale","moduleDefinition","callable","numerous","node","$4ca03dc05bbe4be0$var$isWindows","OSTYPE","$4ca03dc05bbe4be0$var$COLON","TESTING_WINDOWS","$1d8d028d9c47b73d$exports","$4ca03dc05bbe4be0$var$getNotFoundError","$4ca03dc05bbe4be0$var$getPathInfo","colon","pathEnv","pathExtExe","$4ca03dc05bbe4be0$var$which","found","step","ppRaw","pathPart","pCmd","subStep","ext","cur","ex","$e9929770d50e0ca3$var$pathKey","environment","$14642610717c66e2$export$ae50443ffc990749","$14642610717c66e2$export$6ea29ee575e3f5ff","$51d58653c6048ffd$exports","$14642610717c66e2$var$metaCharsRegExp","doubleEscapeMetaChars","$70842f99e7c30891$exports","$58ccbcc4db2ecd48$exports","argument","binary","$572e9b86f5fc3342$exports","buffer","fd","openSync","readSync","closeSync","$9cf15e4f01e764e1$var$isWin","$9cf15e4f01e764e1$var$isExecutableRegExp","$9cf15e4f01e764e1$var$isCmdShimRegExp","commandFile","shebang","$9cf15e4f01e764e1$var$detectShebang","needsShell","forceShell","needsDoubleEscapeMetaChars","normalize","shellCommand","comspec","$9cf15e4f01e764e1$var$parseNonShell","originalEmit","arg1","apply","$338cd3297632d74f$exports","spawnSync","verifyENOENTSync","_parse","_enoent","$98427f994073a8a3$exports","CR","$e076d46b8261c78a$var$npmRunPath","previous","execPath","cwdPath","execPathDir","$e076d46b8261c78a$exports","$2826e4518080138e$var$mimicFn","prop","Reflect","ownKeys","$2826e4518080138e$exports","$2a4addac1ccdeac1$var$calledFunctions","WeakMap","$2a4addac1ccdeac1$var$onetime","function_","returnValue","callCount","functionName","displayName","onetime1","arguments_","throw","$2a4addac1ccdeac1$exports","$d078421bb3e3863b$exports","signalsByNumber","signalsByName","$7183a0a1bd319d48$exports","getSignals","standard","number","action","description","forced","getRealtimeSignals","SIGRTMAX","SIGRTMIN","getRealtimeSignal","$1d5ee7ec3cf727ea$var$SIGRTMAX","realtimeSignals","$1d5ee7ec3cf727ea$exports","SIGNALS","normalizeSignal","defaultNumber","signals","constantSignal","supported","signalByNameMemo","$d078421bb3e3863b$var$signalsByName","signalsA","signalA","findSignalByNumber","getSignalByNumber","getSignalsByNumber","$d078421bb3e3863b$var$signalsByNumber","$dd1b4f5e55037c97$exports","escapedCommand","timedOut","isCanceled","killed","signalDescription","$dd1b4f5e55037c97$require$signalsByName","errorCode","$dd1b4f5e55037c97$var$getErrorPrefix","execaMessage","isError","shortMessage","Boolean","originalMessage","failed","$9a6ccfc90813398a$var$aliases","$9a6ccfc90813398a$var$normalizeStdio","$9a6ccfc90813398a$var$hasAlias","$9a6ccfc90813398a$exports","$6a176bc6f7b604f3$var$process","$6a176bc6f7b604f3$var$processOk","process1","reallyExit","kill","pid","$6a176bc6f7b604f3$var$emitter","$6a176bc6f7b604f3$var$assert","$6a176bc6f7b604f3$var$signals","$6a176bc6f7b604f3$var$isWin","$6a176bc6f7b604f3$var$EE","__signal_exit_emitter__","count","emitted","infinite","setMaxListeners","$6a176bc6f7b604f3$exports","equal","$6a176bc6f7b604f3$var$loaded","$6a176bc6f7b604f3$var$load","ev","alwaysLast","$6a176bc6f7b604f3$var$unload","sig","$6a176bc6f7b604f3$var$sigListeners","$6a176bc6f7b604f3$var$originalProcessEmit","$6a176bc6f7b604f3$var$originalProcessReallyExit","unload","$6a176bc6f7b604f3$var$emit","event","$6a176bc6f7b604f3$var$processEmit","$6a176bc6f7b604f3$var$processReallyExit","$2808df33d6c30b25$var$isSigterm","SIGTERM","$2808df33d6c30b25$exports","killResult","forceKillAfterTimeout","$2808df33d6c30b25$var$shouldForceKill","$2808df33d6c30b25$var$getForceKillAfterTimeout","$2808df33d6c30b25$var$setKillTimeout","context","killSignal","spawnedPromise","timeoutId","timeoutPromise","$2808df33d6c30b25$var$timeoutKill","safeSpawnedPromise","finally","race","cleanup","detached","timedPromise","removeExitHandler","spawnedKill","spawnedCancel","setupTimeout","validateTimeout","setExitHandler","$70a93fcbba5dfccf$var$isStream","writable","_write","_writableState","readable","_read","_readableState","duplex","transform","_transform","$70a93fcbba5dfccf$exports","$dLzlS$buffer","$dLzlS$stream","PassThrough","array","isBuffer","objectMode","$2791e057b208c733$require$PassThroughStream","setEncoding","chunks","$3f8980e86d9447d4$require$promisify","pipeline","$3f8980e86d9447d4$exports","stream2","stream3","MaxBufferError","$093c506afc3bd46a$exports","sources","remove","bind","isEmpty","it","$093c506afc3bd46a$require$PassThrough","$695f2f6df63802a7$var$getBufferedData","streamPromise","$695f2f6df63802a7$var$getStreamPromise","$695f2f6df63802a7$exports","mixed","processDone","stdoutPromise","stderrPromise","allPromise","handleInput","getSpawnedResult","makeAllStream","validateInputSync","$183dab226baf544c$var$nativePromisePrototype","$183dab226baf544c$var$descriptors","property","$183dab226baf544c$exports","promise","descriptor","mergePromise","getSpawnedPromise","$b6e06bcb542f40f3$var$normalizeArgs","$b6e06bcb542f40f3$var$NO_ESCAPE_REGEXP","$b6e06bcb542f40f3$var$DOUBLE_QUOTES_REGEXP","$b6e06bcb542f40f3$var$SPACES_REGEXP","$b6e06bcb542f40f3$exports","$b6e06bcb542f40f3$var$escapeArg","previousToken","joinCommand","parseCommand","getEscapedCommand","$c3e9e2f843627429$var$handleArguments","stripFinalNewline","preferLocal","localDir","windowsHide","envOption","$c3e9e2f843627429$var$getEnv","$c3e9e2f843627429$var$handleOutput","$c3e9e2f843627429$var$execa","$c3e9e2f843627429$require$joinCommand","$c3e9e2f843627429$require$getEscapedCommand","$c3e9e2f843627429$require$validateTimeout","error1","dummySpawned","ChildProcess","errorPromise","$c3e9e2f843627429$require$mergePromise","$c3e9e2f843627429$require$getSpawnedPromise","$c3e9e2f843627429$require$setupTimeout","$c3e9e2f843627429$require$setExitHandler","$c3e9e2f843627429$require$spawnedKill","cancel","$c3e9e2f843627429$require$spawnedCancel","handlePromiseOnce","stdoutResult","stderrResult","allResult","$c3e9e2f843627429$require$getSpawnedResult","returnedError","$c3e9e2f843627429$require$handleInput","$c3e9e2f843627429$require$makeAllStream","$c3e9e2f843627429$require$validateInputSync","$c3e9e2f843627429$require$parseCommand","scriptPath","defaultExecArgv","execArgv","nodePath","nodeOptions","$a7308743a0157ada$var$homeDirectory","homedir","pathWithTilde","$892cf68de9d02605$var$is_posix_os","$892cf68de9d02605$var$version","$892cf68de9d02605$var$windows_version_regex","given_path","major_release","os_build","$892cf68de9d02605$var$should_not_escape","$2032c186687979ea$var$__importStar","$2032c186687979ea$var$mm","$2032c186687979ea$var$httpm","$2032c186687979ea$var$stream","$2032c186687979ea$var$util","$2032c186687979ea$var$__importDefault","$a3103f5469ee5040$var$core","$a3103f5469ee5040$var$__importStar","$a3103f5469ee5040$exports","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","isRetryable","attempt","seconds","getSleepAmount","sleep","$2032c186687979ea$var$HTTPError","httpStatusCode","HTTPError","$2032c186687979ea$var$IS_WINDOWS","$2032c186687979ea$var$IS_MAC","auth","retryHelper","$2032c186687979ea$var$__awaiter","http","authorization","statusMessage","readStream","responseMessageFactory","succeeded","createWriteStream","$2032c186687979ea$var$downloadToolAttempt","extract7z","_7zPath","originalCwd","$2032c186687979ea$var$__dirname1","powershellPath","versionOutput","isGnuTar","destArg","fileArg","extractXar","xarPath","extractZip","escapedFile","escapedDest","pwshPath","$2032c186687979ea$var$extractZipWin","unzipPath","$2032c186687979ea$var$extractZipNix","destPath","itemName","cacheFile","sourceFile","targetFile","destFolder","cachePath","findAllVersions","getManifestFromRepo","owner","branch","releases","treeUrl","manifestUrl","tree","versionsRaw","findFromManifest","manifest","isExplicitVersion","evaluateVersions","llvm","clangtidy","clangformat","ninja","gcovr","conan","meson","kcov","task","doxygen","gcc","nala","specific","$dcc4a5600f9a2a29$var$__importStar","$c10add6f7657d058$exports","$dcc4a5600f9a2a29$var$escapeData","$ffb53a3661600710$var$fs","$ffb53a3661600710$var$__importStar","$ffb53a3661600710$var$os","$ffb53a3661600710$exports","$d2814cb4b08c0425$var$os","$d2814cb4b08c0425$var$__importStar","$d2814cb4b08c0425$var$path","$d2814cb4b08c0425$var$ExitCode","$dLzlS$process","$44e2ea7eee739a17$var$VSWHERE_PATH","arch_aliases","win32","win64","x86_64","vcvars","cmd_output_parts","old_environment","vcvars_output","new_environment","error_messages","old_env_vars","string1","new_value","long","one","months","weeks","days","hours","minutes","narrow","short","abs","exe","reDistributor","reDescription","reRelease","distributorFound","desc","rel","ss","$af664557d133c197$var$binDir","$2c1dbb6d966096c4$var$hasVCPKG","python","vcpkg","bazel","opencppcoverage","$e72e2baab3c48b0e$var$activateOpencppcoverage","choco","brew","ccache","$9f276bb1312a9d71$var$activateWinDoxygen","graphviz","cppcheck","$3b5b7f21aafe5be9$var$activateWinCppcheck","msvc","vcvarsall","versionSplit","installMethod","version_number","make","sevenzip","argv"],"version":3,"file":"setup_cpp.js.map","sourceRoot":"../"} \ No newline at end of file +{"mappings":"4IAWA,SAASA,EAAOC,EAAMC,EAASC,GAM7B,GALuB,mBAAZD,IACTC,EAAKD,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AAyBza,EAAS,OAAQ1H,EAASypB,GAA4B7hB,EAAU5D,GACrFhB,IACFxB,EAAgB,YACP0B,IACTE,EAAa,YACJE,WACHvD,EAAa,eAEdoiB,E,ECnCTu2E,W8L7D8B14F,EAAiB1H,EAAmBC,GAClE,OAAQE,QAAQC,UACd,IAAK,QACH,OAAO8J,EAAe,OAAQxC,GAEhC,IAAK,SAGH,OAFA6B,EAAc,OAAQ7B,SAChBlB,EAAQ,sCACP,CAAEiC,OAAQ,sCAEnB,IAAK,QACH,GAAIiC,IACF,OAAOxB,EAAgB,OAAQxB,GAC1B,GAAIkD,IACT,OAAOE,EAAa,OAAQpD,GACvB,GAAIsD,IACT,OAAOvD,EAAa,OAAQC,GAE9B,MAAUpF,MAAM,kCAElB,QACE,MAAUA,MAAM,wB,E9LyCpB25F,KnC7BwBv0F,EAAiB4H,EAAkB5D,GAC3D,OAAO0D,EAAS,OAAQ1H,EAASgJ,EAAoBpB,EAAU5D,E,EmC6B/D20F,SAAU/0F,GAINgoB,GAAoC,CACxC,OACA,QACA,OACA,SACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,kBACA,SACA,UACA,WACA,WACA,YACA,cACA,OACA,MACA,OACA,YACA,OACA,OACA,OACA,YAOIwB,GAAwB,CAAC,WAAY,kBAAmBxB,IAgM9D7B,GAAKtxB,QAAQw9E,MACV/pE,MAAM6H,IACLtb,QAAQg3B,SAAW1b,CAAG,IAEvB9C,OAAOjX,KACN,EAAA2E,GAAAzC,OAAM,qBACN,EAAAyC,GAAAzC,OAAMlC,GACNvB,QAAQg3B,SAAW,CAAC","sources":["node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","src/brew/brew.ts","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js","packages/root-tools/src/index.ts","packages/untildify-user/src/index.ts","packages/exec-powershell/src/index.ts","src/utils/env/addEnv.ts","src/utils/setup/setupAptPack.ts","src/utils/setup/setupPacmanPack.ts","src/utils/setup/setupBrewPack.ts","src/chocolatey/chocolatey.ts","src/utils/setup/setupChocoPack.ts","src/utils/env/isArch.ts","src/utils/env/hasDnf.ts","src/utils/setup/setupDnfPack.ts","src/utils/env/isUbuntu.ts","packages/extension-tools/src/index.ts","src/sevenzip/sevenzip.ts","packages/user-access/src/index.ts","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/tool-cache.ts","src/utils/setup/extract.ts","src/utils/setup/setupBin.ts","src/task/task.ts","src/cmake/cmake.ts","src/python/python.ts","node_modules/.pnpm/duplexer3@0.1.5/node_modules/duplexer3/index.js","node_modules/.pnpm/get-stream@3.0.0/node_modules/get-stream/index.js","node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js","node_modules/.pnpm/got@6.7.1/node_modules/got/index.js","node_modules/.pnpm/ip@1.1.8/node_modules/ip/lib/ip.js","node_modules/.pnpm/dns-packet@1.3.4/node_modules/dns-packet/index.js","node_modules/.pnpm/dns-socket@1.6.3/node_modules/dns-socket/index.js","node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js","node_modules/.pnpm/decode-uri-component@0.2.0/node_modules/decode-uri-component/index.js","node_modules/.pnpm/query-string@5.1.1/node_modules/query-string/index.js","node_modules/.pnpm/normalize-url@2.0.1/node_modules/normalize-url/index.js","node_modules/.pnpm/http-cache-semantics@3.8.1/node_modules/http-cache-semantics/node4/index.js","node_modules/.pnpm/from2@2.3.0/node_modules/from2/index.js","node_modules/.pnpm/@sindresorhus+is@0.7.0/node_modules/@sindresorhus/is/dist/index.js","node_modules/.pnpm/got@8.3.2/node_modules/got/index.js","node_modules/.pnpm/is-online@7.0.0/node_modules/is-online/index.js","src/utils/setup/version.ts","src/default_versions.ts","src/utils/setup/setupPipPack.ts","src/graphviz/graphviz.ts","src/doxygen/doxygen.ts","src/macos-sdk/macos-sdk.ts","src/gcc/gcc.ts","src/llvm/llvm.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/lib.js","src/vcvarsall/vcvarsall.ts","src/msvc/msvc.ts","src/ninja/ninja.ts","node_modules/.pnpm/mri@1.2.0/node_modules/mri/lib/index.mjs","src/kcov/kcov.ts","src/main.ts","src/utils/env/ubuntu_version.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/oidc-utils.ts","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/index.ts","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/proxy.ts","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/auth.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/summary.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/path-utils.ts","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js","node_modules/.pnpm/github.com+aminya+ci-detect@37fe40075bebec96794ba0a7c4a6d5c70cbea00d/node_modules/@npmcli/ci-detect/lib/index.js","src/utils/io/io.ts","node_modules/.pnpm/@actions+io@1.1.2/node_modules/@actions/io/src/io.ts","node_modules/.pnpm/@actions+io@1.1.2/node_modules/@actions/io/src/io-util.ts","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/manifest.ts","node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js","node_modules/.pnpm/lru-cache@7.8.1/node_modules/lru-cache/index.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/v4.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/rng.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/bytesToUuid.js","node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/src/exec.ts","node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/src/toolrunner.ts","node_modules/.pnpm/@parcel+runtime-js@2.6.2_@parcel+core@2.6.2/node_modules/@parcel/runtime-js/lib/runtime-5490b668a0a39291.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/readable.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_readable.js","node_modules/.pnpm/process-nextick-args@2.0.1/node_modules/process-nextick-args/index.js","node_modules/.pnpm/isarray@1.0.0/node_modules/isarray/index.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/stream.js","node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js","node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js","node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js","node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/BufferList.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/destroy.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_writable.js","node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js","node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_transform.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_passthrough.js","node_modules/.pnpm/has-symbol-support-x@1.4.2/node_modules/has-symbol-support-x/index.js","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/lib/time-delta.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/index.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib/numerous.js","node_modules/.pnpm/is-node@1.0.2/node_modules/is-node/index.js","node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js","node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js","node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js","node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js","node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js","node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/main.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/signals.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/core.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/realtime.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js","node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js","node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js","node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js","node_modules/.pnpm/untildify@4.0.0/node_modules/untildify/index.js","node_modules/.pnpm/github.com+aminya+escape-path-with-spaces@d9f81ee649203ddc55783a2f96ada59df06118e3/node_modules/escape-path-with-spaces/index.js","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/retry-helper.ts","node_modules/.pnpm/is-link-working@2.2.0/node_modules/is-link-working/index.js","node_modules/.pnpm/is-stream@1.1.0/node_modules/is-stream/index.js","node_modules/.pnpm/get-stream@3.0.0/node_modules/get-stream/buffer-stream.js","node_modules/.pnpm/timed-out@4.0.1/node_modules/timed-out/index.js","node_modules/.pnpm/prepend-http@1.0.4/node_modules/prepend-http/index.js","node_modules/.pnpm/url-parse-lax@1.0.0/node_modules/url-parse-lax/index.js","node_modules/.pnpm/lowercase-keys@1.0.1/node_modules/lowercase-keys/index.js","node_modules/.pnpm/is-redirect@1.0.0/node_modules/is-redirect/index.js","node_modules/.pnpm/unzip-response@2.0.1/node_modules/unzip-response/index.js","node_modules/.pnpm/capture-stack-trace@1.0.1/node_modules/capture-stack-trace/index.js","node_modules/.pnpm/create-error-class@3.0.2/node_modules/create-error-class/index.js","node_modules/.pnpm/is-retry-allowed@1.2.0/node_modules/is-retry-allowed/index.js","node_modules/.pnpm/got@6.7.1/node_modules/got/package.json","node_modules/.pnpm/public-ip@2.5.0/node_modules/public-ip/index.js","node_modules/.pnpm/dns-packet@1.3.4/node_modules/dns-packet/types.js","node_modules/.pnpm/dns-packet@1.3.4/node_modules/dns-packet/rcodes.js","node_modules/.pnpm/dns-packet@1.3.4/node_modules/dns-packet/opcodes.js","node_modules/.pnpm/strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js","node_modules/.pnpm/prepend-http@2.0.0/node_modules/prepend-http/index.js","node_modules/.pnpm/is-plain-obj@1.1.0/node_modules/is-plain-obj/index.js","node_modules/.pnpm/sort-keys@2.0.0/node_modules/sort-keys/index.js","node_modules/.pnpm/responselike@1.0.2/node_modules/responselike/src/index.js","node_modules/.pnpm/lowercase-keys@1.0.0/node_modules/lowercase-keys/index.js","node_modules/.pnpm/clone-response@1.0.2/node_modules/clone-response/src/index.js","node_modules/.pnpm/mimic-response@1.0.1/node_modules/mimic-response/index.js","node_modules/.pnpm/json-buffer@3.0.0/node_modules/json-buffer/index.js","node_modules/.pnpm/keyv@3.0.0/node_modules/keyv/src/index.js","node_modules/.pnpm/cacheable-request@2.1.4/node_modules/cacheable-request/src/index.js","node_modules/.pnpm/p-is-promise@1.1.0/node_modules/p-is-promise/index.js","node_modules/.pnpm/into-stream@3.1.0/node_modules/into-stream/index.js","node_modules/.pnpm/url-parse-lax@3.0.0/node_modules/url-parse-lax/index.js","node_modules/.pnpm/url-to-options@1.0.1/node_modules/url-to-options/index.js","node_modules/.pnpm/decompress-response@3.3.0/node_modules/decompress-response/index.js","node_modules/.pnpm/has-to-string-tag-x@1.4.1/node_modules/has-to-string-tag-x/index.js","node_modules/.pnpm/is-object@1.0.2/node_modules/is-object/index.js","node_modules/.pnpm/isurl@1.0.0/node_modules/isurl/index.js","node_modules/.pnpm/p-cancelable@0.4.1/node_modules/p-cancelable/index.js","node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js","node_modules/.pnpm/p-timeout@2.0.1/node_modules/p-timeout/index.js","node_modules/.pnpm/pify@3.0.0/node_modules/pify/index.js","node_modules/.pnpm/got@8.3.2/node_modules/got/package.json","node_modules/.pnpm/got@8.3.2/node_modules/got/errors.js","node_modules/.pnpm/ip-regex@2.1.0/node_modules/ip-regex/index.js","node_modules/.pnpm/is-ip@2.0.0/node_modules/is-ip/index.js","node_modules/.pnpm/indent-string@3.2.0/node_modules/indent-string/index.js","node_modules/.pnpm/clean-stack@1.3.0/node_modules/clean-stack/index.js","node_modules/.pnpm/aggregate-error@1.0.0/node_modules/aggregate-error/index.js","node_modules/.pnpm/p-any@1.1.0/node_modules/p-any/index.js","node_modules/.pnpm/p-some@2.0.1/node_modules/p-some/index.js","node_modules/.pnpm/p-timeout@1.2.1/node_modules/p-timeout/index.js","node_modules/.pnpm/is-link-working@2.2.0/node_modules/is-link-working/package.json","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/index.js","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/locales/en.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/locales/en.js","node_modules/.pnpm/ubuntu-version@2.0.0/node_modules/ubuntu-version/index.js","src/vcpkg/vcpkg.ts","src/nala/nala.ts","src/bazel/bazel.ts","src/conan/conan.ts","src/meson/meson.ts","src/gcovr/gcovr.ts","src/opencppcoverage/opencppcoverage.ts","src/ccache/ccache.ts","src/cppcheck/cppcheck.ts","src/make/make.ts"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","import { execFileSync } from \"child_process\"\nimport { dirname } from \"path\"\nimport which from \"which\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n execFileSync(`/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"`, {\n stdio: \"inherit\",\n })\n binDir = \"/usr/local/bin/\"\n\n return { binDir }\n}\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","import which from \"which\"\nimport execa from \"execa\"\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return (Boolean(process.env.CI) || isRoot()) && which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/** Detect if the process has root privileges */\nexport function isRoot(): boolean {\n return process.getuid?.() === 0\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: execa.SyncOptions = { stdio: \"inherit\", shell: true }\n): execa.ExecaSyncReturnValue {\n if (isSudo()) {\n return execa.commandSync(`sudo ${[program, ...args].map((arg) => `'${arg}'`).join(\" \")}`, execOptions)\n } else {\n return execa.sync(program, args, execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: execa.Options = { stdio: \"inherit\", shell: true }\n): execa.ExecaChildProcess {\n if (isSudo()) {\n return execa.command(`sudo ${[program, ...args].map((arg) => `'${arg}'`).join(\" \")}`, execOptions)\n } else {\n return execa(program, args, execOptions)\n }\n}\n","import { join } from \"path\"\nimport untildify from \"untildify\"\nimport { isSudo } from \"root-tools\"\n\nexport function untildifyUser(path: string) {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER, path)\n } else {\n return join(\"/home/\", process.env.SUDO_USER, path)\n }\n } else {\n return untildify(`~/${path}`)\n }\n}\n","import execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" }\n): execa.ExecaChildProcess {\n return execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" }\n): execa.ExecaSyncReturnValue {\n return execa.sync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import { exportVariable, addPath as ghAddPath, info, setFailed } from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { untildifyUser } from \"untildify-user\"\nimport { appendFileSync, existsSync, readFileSync } from \"fs\"\nimport { error, warning } from \"../io/io\"\nimport { execPowershell } from \"exec-powershell\"\nimport { delimiter } from \"path\"\nimport escapeSpace from \"escape-path-with-spaces\"\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(name: string, valGiven: string | undefined, shouldEscapeSpace: boolean = false) {\n const val = shouldEscapeSpace ? escapeSpace(valGiven ?? \"\") : valGiven\n try {\n if (ciDetect() === \"github-actions\") {\n try {\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val)\n }\n } else {\n await addEnvSystem(name, val)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (ciDetect() === \"github-actions\") {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\".cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execa.sync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execa.sync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport function setupCppInProfile() {\n if (setupCppInProfile_called) {\n return\n }\n\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"export SOURCE_CPPRC=0\"\n\n if (existsSync(cpprc_path)) {\n const cpprc_content = readFileSync(cpprc_path, \"utf8\")\n if (cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n return\n }\n }\n\n appendFileSync(cpprc_path, `\\n${source_cpprc_str}\\n`)\n info(`Added ${source_cpprc_str} to ${cpprc_path}`)\n\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n // source cpprc in .profile\n const profile_path = untildifyUser(\".profile\")\n appendFileSync(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n\n // source cpprc in .bashrc too\n const bashrc_path = untildifyUser(\".bashrc\")\n appendFileSync(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info } from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { addEnv, cpprc_path, setupCppInProfile } from \"../env/addEnv\"\nimport { appendFileSync, existsSync } from \"fs\"\nimport which from \"which\"\n\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(\n name: string,\n version?: string,\n repositories: string[] = [],\n update = false\n): Promise {\n const apt: string = getApt()\n\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n if (Array.isArray(repositories) && repositories.length !== 0) {\n for (const repo of repositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"--update\", \"-y\", repo])\n }\n updateRepos(apt)\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", `${name}=${version}`])\n } catch {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", `${name}-${version}`])\n }\n } else {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nfunction getApt() {\n let apt: string\n if (which.sync(\"nala\", { nothrow: true }) !== null) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\")\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\")\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n await addEnv(\"LANG\", \"C.UTF-8\")\n await addEnv(\"LC_ALL\", \"C.UTF-8\")\n }\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!existsSync(fileName)) {\n initGpg()\n for (const key of keys) {\n execRootSync(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n }\n return fileName\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!existsSync(fileName)) {\n initGpg()\n await setupAptPack(\"curl\", undefined)\n execRootSync(\"bash\", [\"-c\", `curl -s ${url} | gpg --no-default-keyring --keyring gnupg-ring:${fileName} --import`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport function updateAptAlternatives(name: string, path: string) {\n if (ciDetect() === \"github-actions\") {\n return execRootSync(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, \"40\"])\n } else {\n setupCppInProfile()\n return appendFileSync(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} 40; fi\\n`\n )\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info } from \"../io/io\"\n\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport function setupPacmanPack(name: string, version?: string, aur?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (!didUpdate) {\n execRootSync(pacman, [\"-Syuu\", \"--noconfirm\"])\n didUpdate = true\n }\n\n if (!didInit) {\n // install base-devel\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", `${name}=${version}`])\n } catch {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", `${name}${version}`])\n }\n } else {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport function setupBrewPack(name: string, version?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n // brew is not thread-safe\n execa.sync(\"brew\", [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name], {\n stdio: \"inherit\",\n })\n\n return { binDir: \"/usr/local/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname } from \"path\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execa.sync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" }\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (existsSync(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","/* eslint-disable require-atomic-updates */\nimport { addPath } from \"../env/addEnv\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { InstallationInfo } from \"./setupBin\"\nimport execa from \"execa\"\nimport { info } from \"@actions/core\"\nimport { notice } from \"../io/io\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execa.sync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execa.sync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n notice(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info, warning } from \"../io/io\"\n\n// let didUpdate: boolean = false\n\n/** A function that installs a package using dnf */\nexport function setupDnfPack(name: string, version?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n\n const dnf = \"dnf\"\n\n // if (!didUpdate) {\n // execRootSync(dnf, [\"-y\", \"check-update\"])\n // didUpdate = true\n // }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(dnf, [\"-y\", \"install\", `${name}-${version}`])\n } catch (err) {\n warning(`${(err as Error).toString()}\\nInstalling the default version available via dnf`)\n execRootSync(dnf, [\"-y\", \"install\", name])\n }\n } else {\n execRootSync(dnf, [\"-y\", \"install\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.exe` on Windows\n * @param unix_ext `\"\"` On unix.\n */\nexport function addBinExtension(name: string, win_ext = \".exe\", unix_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${unix_ext}`\n}\n\n/**\n * Add native shell extension to the given name\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.bat` on Windows\n * @param unix_ext `.sh` On unix.\n */\nexport function addShellExtension(name: string, win_ext = \".bat\", unix_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${unix_ext}`\n}\n\n/** Prefix a `./` for unix shell and nothing for the cmd shell */\nexport function addShellHere(name: string) {\n if (process.platform === \"win32\") {\n return name\n }\n return `./${name}`\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n setupDnfPack(\"p7zip\", version)\n return setupDnfPack(\"p7zip-plugins\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"p7zip-full\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { isSudo, execRootSync } from \"root-tools\"\n\n/**\n * Give the user access to the given path and its sub-directories. It changes the owner to the SUDO_USER. This allows\n * the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport function giveUserAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n execRootSync(\"chown\", [\"-R\", process.env.SUDO_USER, path], { cwd: path, stdio: \"inherit\", shell: true })\n }\n}\n",null,"import execa from \"execa\"\nimport { mkdirP } from \"@actions/io\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nimport { warning } from \"../io/io\"\nimport { giveUserAccess } from \"user-access\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n giveUserAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n giveUserAccess(dest)\n return dest\n}\n","import { find, downloadTool, cacheDir } from \"@actions/tool-cache\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../env/addEnv\"\nimport { join } from \"path\"\nimport { existsSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\nimport { isArch } from \"../env/isArch\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { isUbuntu } from \"../env/isUbuntu\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise | Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch\n )\n\n // Restore from cache (if found).\n if (ciDetect() === \"github-actions\") {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (existsSync(binDir) && existsSync(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if (!existsSync(binDir) || !existsSync(binFile)) {\n info(`Download and extract ${name} ${version}`)\n\n if (!didInit) {\n if (process.platform === \"linux\") {\n // extraction dependencies\n if (isArch()) {\n setupPacmanPack(\"unzip\")\n setupPacmanPack(\"tar\")\n setupPacmanPack(\"xz\")\n } else if (hasDnf()) {\n setupDnfPack(\"unzip\")\n setupDnfPack(\"tar\")\n setupDnfPack(\"xz\")\n } else if (isUbuntu()) {\n await setupAptPack(\"unzip\")\n await setupAptPack(\"tar\")\n await setupAptPack(\"xz-utils\")\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n try {\n const downloaded = await downloadTool(url)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (ciDetect() === \"github-actions\" && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","import { addBinExtension } from \"extension-tools\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport semverLte from \"semver/functions/lte\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractZip } from \"../utils/setup/extract\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { warning, info } from \"../utils/io/io\"\nimport { isArch } from \"../utils/env/isArch\"\nimport which from \"which\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { dirname, join } from \"path\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string) {\n if (ciDetect() !== \"github-actions\") {\n // TODO parse version\n return setupPythonViaSystem(version, setupDir, arch)\n }\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n return setupActionsPython(version, setupDir, arch)\n } catch (err) {\n warning((err as Error).toString())\n return setupPythonViaSystem(version, setupDir, arch)\n }\n}\n\nexport async function setupPythonViaSystem(\n version: string,\n setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const pythonBinPath =\n which.sync(\"python3.exe\", { nothrow: true }) ??\n which.sync(\"python.exe\", { nothrow: true }) ??\n join(setupDir, \"python.exe\")\n const pythonSetupDir = dirname(pythonBinPath)\n /** The directory which the tool is installed to */\n await activateWinPython(pythonSetupDir)\n return { installDir: pythonSetupDir, binDir: pythonSetupDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"python3\", version)\n }\n case \"linux\": {\n let installInfo: InstallationInfo\n if (isArch()) {\n installInfo = setupPacmanPack(\"python\", version)\n setupPacmanPack(\"python-pip\")\n } else if (hasDnf()) {\n installInfo = setupDnfPack(\"python3\", version)\n setupDnfPack(\"python3-pip\")\n } else if (isUbuntu()) {\n installInfo = await setupAptPack(\"python3\", version)\n await setupAptPack(\"python3-pip\")\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n return installInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinPython(binDir: string) {\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n}\n","\"use strict\";\n\nvar stream = require(\"stream\");\n\nfunction DuplexWrapper(options, writable, readable) {\n if (typeof readable === \"undefined\") {\n readable = writable;\n writable = options;\n options = null;\n }\n\n stream.Duplex.call(this, options);\n\n if (typeof readable.read !== \"function\") {\n readable = (new stream.Readable(options)).wrap(readable);\n }\n\n this._writable = writable;\n this._readable = readable;\n this._waiting = false;\n\n var self = this;\n\n writable.once(\"finish\", function() {\n self.end();\n });\n\n this.once(\"finish\", function() {\n writable.end();\n });\n\n readable.on(\"readable\", function() {\n if (self._waiting) {\n self._waiting = false;\n self._read();\n }\n });\n\n readable.once(\"end\", function() {\n self.push(null);\n });\n\n if (!options || typeof options.bubbleErrors === \"undefined\" || options.bubbleErrors) {\n writable.on(\"error\", function(err) {\n self.emit(\"error\", err);\n });\n\n readable.on(\"error\", function(err) {\n self.emit(\"error\", err);\n });\n }\n}\n\nDuplexWrapper.prototype = Object.create(stream.Duplex.prototype, {constructor: {value: DuplexWrapper}});\n\nDuplexWrapper.prototype._write = function _write(input, encoding, done) {\n this._writable.write(input, encoding, done);\n};\n\nDuplexWrapper.prototype._read = function _read() {\n var buf;\n var reads = 0;\n while ((buf = this._readable.read()) !== null) {\n this.push(buf);\n reads++;\n }\n if (reads === 0) {\n this._waiting = true;\n }\n};\n\nmodule.exports = function duplex2(options, writable, readable) {\n return new DuplexWrapper(options, writable, readable);\n};\n\nmodule.exports.DuplexWrapper = DuplexWrapper;\n","'use strict';\nconst bufferStream = require('./buffer-stream');\n\nfunction getStream(inputStream, opts) {\n\tif (!inputStream) {\n\t\treturn Promise.reject(new Error('Expected a stream'));\n\t}\n\n\topts = Object.assign({maxBuffer: Infinity}, opts);\n\n\tconst maxBuffer = opts.maxBuffer;\n\tlet stream;\n\tlet clean;\n\n\tconst p = new Promise((resolve, reject) => {\n\t\tconst error = err => {\n\t\t\tif (err) { // null check\n\t\t\t\terr.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(err);\n\t\t};\n\n\t\tstream = bufferStream(opts);\n\t\tinputStream.once('error', error);\n\t\tinputStream.pipe(stream);\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\treject(new Error('maxBuffer exceeded'));\n\t\t\t}\n\t\t});\n\t\tstream.once('error', error);\n\t\tstream.on('end', resolve);\n\n\t\tclean = () => {\n\t\t\t// some streams doesn't implement the `stream.Readable` interface correctly\n\t\t\tif (inputStream.unpipe) {\n\t\t\t\tinputStream.unpipe(stream);\n\t\t\t}\n\t\t};\n\t});\n\n\tp.then(clean, clean);\n\n\treturn p.then(() => stream.getBufferedValue());\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, opts) => getStream(stream, Object.assign({}, opts, {encoding: 'buffer'}));\nmodule.exports.array = (stream, opts) => getStream(stream, Object.assign({}, opts, {array: true}));\n","/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","'use strict';\nconst EventEmitter = require('events');\nconst http = require('http');\nconst https = require('https');\nconst PassThrough = require('stream').PassThrough;\nconst urlLib = require('url');\nconst querystring = require('querystring');\nconst duplexer3 = require('duplexer3');\nconst isStream = require('is-stream');\nconst getStream = require('get-stream');\nconst timedOut = require('timed-out');\nconst urlParseLax = require('url-parse-lax');\nconst lowercaseKeys = require('lowercase-keys');\nconst isRedirect = require('is-redirect');\nconst unzipResponse = require('unzip-response');\nconst createErrorClass = require('create-error-class');\nconst isRetryAllowed = require('is-retry-allowed');\nconst Buffer = require('safe-buffer').Buffer;\nconst pkg = require('./package');\n\nfunction requestAsEventEmitter(opts) {\n\topts = opts || {};\n\n\tconst ee = new EventEmitter();\n\tconst requestUrl = opts.href || urlLib.resolve(urlLib.format(opts), opts.path);\n\tlet redirectCount = 0;\n\tlet retryCount = 0;\n\tlet redirectUrl;\n\n\tconst get = opts => {\n\t\tconst fn = opts.protocol === 'https:' ? https : http;\n\n\t\tconst req = fn.request(opts, res => {\n\t\t\tconst statusCode = res.statusCode;\n\n\t\t\tif (isRedirect(statusCode) && opts.followRedirect && 'location' in res.headers && (opts.method === 'GET' || opts.method === 'HEAD')) {\n\t\t\t\tres.resume();\n\n\t\t\t\tif (++redirectCount > 10) {\n\t\t\t\t\tee.emit('error', new got.MaxRedirectsError(statusCode, opts), null, res);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst bufferString = Buffer.from(res.headers.location, 'binary').toString();\n\n\t\t\t\tredirectUrl = urlLib.resolve(urlLib.format(opts), bufferString);\n\t\t\t\tconst redirectOpts = Object.assign({}, opts, urlLib.parse(redirectUrl));\n\n\t\t\t\tee.emit('redirect', res, redirectOpts);\n\n\t\t\t\tget(redirectOpts);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetImmediate(() => {\n\t\t\t\tconst response = typeof unzipResponse === 'function' && req.method !== 'HEAD' ? unzipResponse(res) : res;\n\t\t\t\tresponse.url = redirectUrl || requestUrl;\n\t\t\t\tresponse.requestUrl = requestUrl;\n\n\t\t\t\tee.emit('response', response);\n\t\t\t});\n\t\t});\n\n\t\treq.once('error', err => {\n\t\t\tconst backoff = opts.retries(++retryCount, err);\n\n\t\t\tif (backoff) {\n\t\t\t\tsetTimeout(get, backoff, opts);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tee.emit('error', new got.RequestError(err, opts));\n\t\t});\n\n\t\tif (opts.gotTimeout) {\n\t\t\ttimedOut(req, opts.gotTimeout);\n\t\t}\n\n\t\tsetImmediate(() => {\n\t\t\tee.emit('request', req);\n\t\t});\n\t};\n\n\tget(opts);\n\treturn ee;\n}\n\nfunction asPromise(opts) {\n\treturn new Promise((resolve, reject) => {\n\t\tconst ee = requestAsEventEmitter(opts);\n\n\t\tee.on('request', req => {\n\t\t\tif (isStream(opts.body)) {\n\t\t\t\topts.body.pipe(req);\n\t\t\t\topts.body = undefined;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\treq.end(opts.body);\n\t\t});\n\n\t\tee.on('response', res => {\n\t\t\tconst stream = opts.encoding === null ? getStream.buffer(res) : getStream(res, opts);\n\n\t\t\tstream\n\t\t\t\t.catch(err => reject(new got.ReadError(err, opts)))\n\t\t\t\t.then(data => {\n\t\t\t\t\tconst statusCode = res.statusCode;\n\t\t\t\t\tconst limitStatusCode = opts.followRedirect ? 299 : 399;\n\n\t\t\t\t\tres.body = data;\n\n\t\t\t\t\tif (opts.json && res.body) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tres.body = JSON.parse(res.body);\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\tthrow new got.ParseError(e, statusCode, opts, data);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (statusCode < 200 || statusCode > limitStatusCode) {\n\t\t\t\t\t\tthrow new got.HTTPError(statusCode, opts);\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(res);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tObject.defineProperty(err, 'response', {value: res});\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\n\t\tee.on('error', reject);\n\t});\n}\n\nfunction asStream(opts) {\n\tconst input = new PassThrough();\n\tconst output = new PassThrough();\n\tconst proxy = duplexer3(input, output);\n\n\tif (opts.json) {\n\t\tthrow new Error('got can not be used as stream when options.json is used');\n\t}\n\n\tif (opts.body) {\n\t\tproxy.write = () => {\n\t\t\tthrow new Error('got\\'s stream is not writable when options.body is used');\n\t\t};\n\t}\n\n\tconst ee = requestAsEventEmitter(opts);\n\n\tee.on('request', req => {\n\t\tproxy.emit('request', req);\n\n\t\tif (isStream(opts.body)) {\n\t\t\topts.body.pipe(req);\n\t\t\treturn;\n\t\t}\n\n\t\tif (opts.body) {\n\t\t\treq.end(opts.body);\n\t\t\treturn;\n\t\t}\n\n\t\tif (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {\n\t\t\tinput.pipe(req);\n\t\t\treturn;\n\t\t}\n\n\t\treq.end();\n\t});\n\n\tee.on('response', res => {\n\t\tconst statusCode = res.statusCode;\n\n\t\tres.pipe(output);\n\n\t\tif (statusCode < 200 || statusCode > 299) {\n\t\t\tproxy.emit('error', new got.HTTPError(statusCode, opts), null, res);\n\t\t\treturn;\n\t\t}\n\n\t\tproxy.emit('response', res);\n\t});\n\n\tee.on('redirect', proxy.emit.bind(proxy, 'redirect'));\n\tee.on('error', proxy.emit.bind(proxy, 'error'));\n\n\treturn proxy;\n}\n\nfunction normalizeArguments(url, opts) {\n\tif (typeof url !== 'string' && typeof url !== 'object') {\n\t\tthrow new Error(`Parameter \\`url\\` must be a string or object, not ${typeof url}`);\n\t}\n\n\tif (typeof url === 'string') {\n\t\turl = url.replace(/^unix:/, 'http://$&');\n\t\turl = urlParseLax(url);\n\n\t\tif (url.auth) {\n\t\t\tthrow new Error('Basic authentication must be done with auth option');\n\t\t}\n\t}\n\n\topts = Object.assign(\n\t\t{\n\t\t\tprotocol: 'http:',\n\t\t\tpath: '',\n\t\t\tretries: 5\n\t\t},\n\t\turl,\n\t\topts\n\t);\n\n\topts.headers = Object.assign({\n\t\t'user-agent': `${pkg.name}/${pkg.version} (https://github.com/sindresorhus/got)`,\n\t\t'accept-encoding': 'gzip,deflate'\n\t}, lowercaseKeys(opts.headers));\n\n\tconst query = opts.query;\n\n\tif (query) {\n\t\tif (typeof query !== 'string') {\n\t\t\topts.query = querystring.stringify(query);\n\t\t}\n\n\t\topts.path = `${opts.path.split('?')[0]}?${opts.query}`;\n\t\tdelete opts.query;\n\t}\n\n\tif (opts.json && opts.headers.accept === undefined) {\n\t\topts.headers.accept = 'application/json';\n\t}\n\n\tlet body = opts.body;\n\n\tif (body) {\n\t\tif (typeof body !== 'string' && !(body !== null && typeof body === 'object')) {\n\t\t\tthrow new Error('options.body must be a ReadableStream, string, Buffer or plain Object');\n\t\t}\n\n\t\topts.method = opts.method || 'POST';\n\n\t\tif (isStream(body) && typeof body.getBoundary === 'function') {\n\t\t\t// Special case for https://github.com/form-data/form-data\n\t\t\topts.headers['content-type'] = opts.headers['content-type'] || `multipart/form-data; boundary=${body.getBoundary()}`;\n\t\t} else if (body !== null && typeof body === 'object' && !Buffer.isBuffer(body) && !isStream(body)) {\n\t\t\topts.headers['content-type'] = opts.headers['content-type'] || 'application/x-www-form-urlencoded';\n\t\t\tbody = opts.body = querystring.stringify(body);\n\t\t}\n\n\t\tif (opts.headers['content-length'] === undefined && opts.headers['transfer-encoding'] === undefined && !isStream(body)) {\n\t\t\tconst length = typeof body === 'string' ? Buffer.byteLength(body) : body.length;\n\t\t\topts.headers['content-length'] = length;\n\t\t}\n\t}\n\n\topts.method = (opts.method || 'GET').toUpperCase();\n\n\tif (opts.hostname === 'unix') {\n\t\tconst matches = /(.+):(.+)/.exec(opts.path);\n\n\t\tif (matches) {\n\t\t\topts.socketPath = matches[1];\n\t\t\topts.path = matches[2];\n\t\t\topts.host = null;\n\t\t}\n\t}\n\n\tif (typeof opts.retries !== 'function') {\n\t\tconst retries = opts.retries;\n\n\t\topts.retries = (iter, err) => {\n\t\t\tif (iter > retries || !isRetryAllowed(err)) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\tconst noise = Math.random() * 100;\n\n\t\t\treturn ((1 << iter) * 1000) + noise;\n\t\t};\n\t}\n\n\tif (opts.followRedirect === undefined) {\n\t\topts.followRedirect = true;\n\t}\n\n\tif (opts.timeout) {\n\t\topts.gotTimeout = opts.timeout;\n\t\tdelete opts.timeout;\n\t}\n\n\treturn opts;\n}\n\nfunction got(url, opts) {\n\ttry {\n\t\treturn asPromise(normalizeArguments(url, opts));\n\t} catch (err) {\n\t\treturn Promise.reject(err);\n\t}\n}\n\nconst helpers = [\n\t'get',\n\t'post',\n\t'put',\n\t'patch',\n\t'head',\n\t'delete'\n];\n\nhelpers.forEach(el => {\n\tgot[el] = (url, opts) => got(url, Object.assign({}, opts, {method: el}));\n});\n\ngot.stream = (url, opts) => asStream(normalizeArguments(url, opts));\n\nfor (const el of helpers) {\n\tgot.stream[el] = (url, opts) => got.stream(url, Object.assign({}, opts, {method: el}));\n}\n\nfunction stdError(error, opts) {\n\tif (error.code !== undefined) {\n\t\tthis.code = error.code;\n\t}\n\n\tObject.assign(this, {\n\t\tmessage: error.message,\n\t\thost: opts.host,\n\t\thostname: opts.hostname,\n\t\tmethod: opts.method,\n\t\tpath: opts.path\n\t});\n}\n\ngot.RequestError = createErrorClass('RequestError', stdError);\ngot.ReadError = createErrorClass('ReadError', stdError);\ngot.ParseError = createErrorClass('ParseError', function (e, statusCode, opts, data) {\n\tstdError.call(this, e, opts);\n\tthis.statusCode = statusCode;\n\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\tthis.message = `${e.message} in \"${urlLib.format(opts)}\": \\n${data.slice(0, 77)}...`;\n});\n\ngot.HTTPError = createErrorClass('HTTPError', function (statusCode, opts) {\n\tstdError.call(this, {}, opts);\n\tthis.statusCode = statusCode;\n\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\tthis.message = `Response code ${this.statusCode} (${this.statusMessage})`;\n});\n\ngot.MaxRedirectsError = createErrorClass('MaxRedirectsError', function (statusCode, opts) {\n\tstdError.call(this, {}, opts);\n\tthis.statusCode = statusCode;\n\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\tthis.message = 'Redirected 10 times. Aborting.';\n});\n\nmodule.exports = got;\n","var ip = exports;\nvar { Buffer } = require('buffer');\nvar os = require('os');\n\nip.toBuffer = function (ip, buff, offset) {\n offset = ~~offset;\n\n var result;\n\n if (this.isV4Format(ip)) {\n result = buff || new Buffer(offset + 4);\n ip.split(/\\./g).map((byte) => {\n result[offset++] = parseInt(byte, 10) & 0xff;\n });\n } else if (this.isV6Format(ip)) {\n var sections = ip.split(':', 8);\n\n var i;\n for (i = 0; i < sections.length; i++) {\n var isv4 = this.isV4Format(sections[i]);\n var v4Buffer;\n\n if (isv4) {\n v4Buffer = this.toBuffer(sections[i]);\n sections[i] = v4Buffer.slice(0, 2).toString('hex');\n }\n\n if (v4Buffer && ++i < 8) {\n sections.splice(i, 0, v4Buffer.slice(2, 4).toString('hex'));\n }\n }\n\n if (sections[0] === '') {\n while (sections.length < 8) sections.unshift('0');\n } else if (sections[sections.length - 1] === '') {\n while (sections.length < 8) sections.push('0');\n } else if (sections.length < 8) {\n for (i = 0; i < sections.length && sections[i] !== ''; i++);\n var argv = [i, 1];\n for (i = 9 - sections.length; i > 0; i--) {\n argv.push('0');\n }\n sections.splice.apply(sections, argv);\n }\n\n result = buff || new Buffer(offset + 16);\n for (i = 0; i < sections.length; i++) {\n var word = parseInt(sections[i], 16);\n result[offset++] = (word >> 8) & 0xff;\n result[offset++] = word & 0xff;\n }\n }\n\n if (!result) {\n throw Error(`Invalid ip address: ${ip}`);\n }\n\n return result;\n};\n\nip.toString = function (buff, offset, length) {\n offset = ~~offset;\n length = length || (buff.length - offset);\n\n var result = [];\n var i;\n if (length === 4) {\n // IPv4\n for (i = 0; i < length; i++) {\n result.push(buff[offset + i]);\n }\n result = result.join('.');\n } else if (length === 16) {\n // IPv6\n for (i = 0; i < length; i += 2) {\n result.push(buff.readUInt16BE(offset + i).toString(16));\n }\n result = result.join(':');\n result = result.replace(/(^|:)0(:0)*:0(:|$)/, '$1::$3');\n result = result.replace(/:{3,4}/, '::');\n }\n\n return result;\n};\n\nvar ipv4Regex = /^(\\d{1,3}\\.){3,3}\\d{1,3}$/;\nvar ipv6Regex = /^(::)?(((\\d{1,3}\\.){3}(\\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;\n\nip.isV4Format = function (ip) {\n return ipv4Regex.test(ip);\n};\n\nip.isV6Format = function (ip) {\n return ipv6Regex.test(ip);\n};\n\nfunction _normalizeFamily(family) {\n if (family === 4) {\n return 'ipv4';\n }\n if (family === 6) {\n return 'ipv6';\n }\n return family ? family.toLowerCase() : 'ipv4';\n}\n\nip.fromPrefixLen = function (prefixlen, family) {\n if (prefixlen > 32) {\n family = 'ipv6';\n } else {\n family = _normalizeFamily(family);\n }\n\n var len = 4;\n if (family === 'ipv6') {\n len = 16;\n }\n var buff = new Buffer(len);\n\n for (var i = 0, n = buff.length; i < n; ++i) {\n var bits = 8;\n if (prefixlen < 8) {\n bits = prefixlen;\n }\n prefixlen -= bits;\n\n buff[i] = ~(0xff >> bits) & 0xff;\n }\n\n return ip.toString(buff);\n};\n\nip.mask = function (addr, mask) {\n addr = ip.toBuffer(addr);\n mask = ip.toBuffer(mask);\n\n var result = new Buffer(Math.max(addr.length, mask.length));\n\n // Same protocol - do bitwise and\n var i;\n if (addr.length === mask.length) {\n for (i = 0; i < addr.length; i++) {\n result[i] = addr[i] & mask[i];\n }\n } else if (mask.length === 4) {\n // IPv6 address and IPv4 mask\n // (Mask low bits)\n for (i = 0; i < mask.length; i++) {\n result[i] = addr[addr.length - 4 + i] & mask[i];\n }\n } else {\n // IPv6 mask and IPv4 addr\n for (i = 0; i < result.length - 6; i++) {\n result[i] = 0;\n }\n\n // ::ffff:ipv4\n result[10] = 0xff;\n result[11] = 0xff;\n for (i = 0; i < addr.length; i++) {\n result[i + 12] = addr[i] & mask[i + 12];\n }\n i += 12;\n }\n for (; i < result.length; i++) {\n result[i] = 0;\n }\n\n return ip.toString(result);\n};\n\nip.cidr = function (cidrString) {\n var cidrParts = cidrString.split('/');\n\n var addr = cidrParts[0];\n if (cidrParts.length !== 2) {\n throw new Error(`invalid CIDR subnet: ${addr}`);\n }\n\n var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));\n\n return ip.mask(addr, mask);\n};\n\nip.subnet = function (addr, mask) {\n var networkAddress = ip.toLong(ip.mask(addr, mask));\n\n // Calculate the mask's length.\n var maskBuffer = ip.toBuffer(mask);\n var maskLength = 0;\n\n for (var i = 0; i < maskBuffer.length; i++) {\n if (maskBuffer[i] === 0xff) {\n maskLength += 8;\n } else {\n var octet = maskBuffer[i] & 0xff;\n while (octet) {\n octet = (octet << 1) & 0xff;\n maskLength++;\n }\n }\n }\n\n var numberOfAddresses = Math.pow(2, 32 - maskLength);\n\n return {\n networkAddress: ip.fromLong(networkAddress),\n firstAddress: numberOfAddresses <= 2\n ? ip.fromLong(networkAddress)\n : ip.fromLong(networkAddress + 1),\n lastAddress: numberOfAddresses <= 2\n ? ip.fromLong(networkAddress + numberOfAddresses - 1)\n : ip.fromLong(networkAddress + numberOfAddresses - 2),\n broadcastAddress: ip.fromLong(networkAddress + numberOfAddresses - 1),\n subnetMask: mask,\n subnetMaskLength: maskLength,\n numHosts: numberOfAddresses <= 2\n ? numberOfAddresses : numberOfAddresses - 2,\n length: numberOfAddresses,\n contains(other) {\n return networkAddress === ip.toLong(ip.mask(other, mask));\n },\n };\n};\n\nip.cidrSubnet = function (cidrString) {\n var cidrParts = cidrString.split('/');\n\n var addr = cidrParts[0];\n if (cidrParts.length !== 2) {\n throw new Error(`invalid CIDR subnet: ${addr}`);\n }\n\n var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));\n\n return ip.subnet(addr, mask);\n};\n\nip.not = function (addr) {\n var buff = ip.toBuffer(addr);\n for (var i = 0; i < buff.length; i++) {\n buff[i] = 0xff ^ buff[i];\n }\n return ip.toString(buff);\n};\n\nip.or = function (a, b) {\n var i;\n\n a = ip.toBuffer(a);\n b = ip.toBuffer(b);\n\n // same protocol\n if (a.length === b.length) {\n for (i = 0; i < a.length; ++i) {\n a[i] |= b[i];\n }\n return ip.toString(a);\n\n // mixed protocols\n }\n var buff = a;\n var other = b;\n if (b.length > a.length) {\n buff = b;\n other = a;\n }\n\n var offset = buff.length - other.length;\n for (i = offset; i < buff.length; ++i) {\n buff[i] |= other[i - offset];\n }\n\n return ip.toString(buff);\n};\n\nip.isEqual = function (a, b) {\n var i;\n\n a = ip.toBuffer(a);\n b = ip.toBuffer(b);\n\n // Same protocol\n if (a.length === b.length) {\n for (i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n }\n\n // Swap\n if (b.length === 4) {\n var t = b;\n b = a;\n a = t;\n }\n\n // a - IPv4, b - IPv6\n for (i = 0; i < 10; i++) {\n if (b[i] !== 0) return false;\n }\n\n var word = b.readUInt16BE(10);\n if (word !== 0 && word !== 0xffff) return false;\n\n for (i = 0; i < 4; i++) {\n if (a[i] !== b[i + 12]) return false;\n }\n\n return true;\n};\n\nip.isPrivate = function (addr) {\n return /^(::f{4}:)?10\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/i\n .test(addr)\n || /^(::f{4}:)?192\\.168\\.([0-9]{1,3})\\.([0-9]{1,3})$/i.test(addr)\n || /^(::f{4}:)?172\\.(1[6-9]|2\\d|30|31)\\.([0-9]{1,3})\\.([0-9]{1,3})$/i\n .test(addr)\n || /^(::f{4}:)?127\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/i.test(addr)\n || /^(::f{4}:)?169\\.254\\.([0-9]{1,3})\\.([0-9]{1,3})$/i.test(addr)\n || /^f[cd][0-9a-f]{2}:/i.test(addr)\n || /^fe80:/i.test(addr)\n || /^::1$/.test(addr)\n || /^::$/.test(addr);\n};\n\nip.isPublic = function (addr) {\n return !ip.isPrivate(addr);\n};\n\nip.isLoopback = function (addr) {\n return /^(::f{4}:)?127\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})/\n .test(addr)\n || /^fe80::1$/.test(addr)\n || /^::1$/.test(addr)\n || /^::$/.test(addr);\n};\n\nip.loopback = function (family) {\n //\n // Default to `ipv4`\n //\n family = _normalizeFamily(family);\n\n if (family !== 'ipv4' && family !== 'ipv6') {\n throw new Error('family must be ipv4 or ipv6');\n }\n\n return family === 'ipv4' ? '127.0.0.1' : 'fe80::1';\n};\n\n//\n// ### function address (name, family)\n// #### @name {string|'public'|'private'} **Optional** Name or security\n// of the network interface.\n// #### @family {ipv4|ipv6} **Optional** IP family of the address (defaults\n// to ipv4).\n//\n// Returns the address for the network interface on the current system with\n// the specified `name`:\n// * String: First `family` address of the interface.\n// If not found see `undefined`.\n// * 'public': the first public ip address of family.\n// * 'private': the first private ip address of family.\n// * undefined: First address with `ipv4` or loopback address `127.0.0.1`.\n//\nip.address = function (name, family) {\n var interfaces = os.networkInterfaces();\n\n //\n // Default to `ipv4`\n //\n family = _normalizeFamily(family);\n\n //\n // If a specific network interface has been named,\n // return the address.\n //\n if (name && name !== 'private' && name !== 'public') {\n var res = interfaces[name].filter((details) => {\n var itemFamily = _normalizeFamily(details.family);\n return itemFamily === family;\n });\n if (res.length === 0) {\n return undefined;\n }\n return res[0].address;\n }\n\n var all = Object.keys(interfaces).map((nic) => {\n //\n // Note: name will only be `public` or `private`\n // when this is called.\n //\n var addresses = interfaces[nic].filter((details) => {\n details.family = _normalizeFamily(details.family);\n if (details.family !== family || ip.isLoopback(details.address)) {\n return false;\n } if (!name) {\n return true;\n }\n\n return name === 'public' ? ip.isPrivate(details.address)\n : ip.isPublic(details.address);\n });\n\n return addresses.length ? addresses[0].address : undefined;\n }).filter(Boolean);\n\n return !all.length ? ip.loopback(family) : all[0];\n};\n\nip.toLong = function (ip) {\n var ipl = 0;\n ip.split('.').forEach((octet) => {\n ipl <<= 8;\n ipl += parseInt(octet);\n });\n return (ipl >>> 0);\n};\n\nip.fromLong = function (ipl) {\n return (`${ipl >>> 24}.${\n ipl >> 16 & 255}.${\n ipl >> 8 & 255}.${\n ipl & 255}`);\n};\n","var types = require('./types')\nvar rcodes = require('./rcodes')\nvar opcodes = require('./opcodes')\nvar ip = require('ip')\nvar Buffer = require('safe-buffer').Buffer\n\nvar QUERY_FLAG = 0\nvar RESPONSE_FLAG = 1 << 15\nvar FLUSH_MASK = 1 << 15\nvar NOT_FLUSH_MASK = ~FLUSH_MASK\nvar QU_MASK = 1 << 15\nvar NOT_QU_MASK = ~QU_MASK\n\nvar name = exports.txt = exports.name = {}\n\nname.encode = function (str, buf, offset) {\n if (!buf) buf = Buffer.alloc(name.encodingLength(str))\n if (!offset) offset = 0\n var oldOffset = offset\n\n // strip leading and trailing .\n var n = str.replace(/^\\.|\\.$/gm, '')\n if (n.length) {\n var list = n.split('.')\n\n for (var i = 0; i < list.length; i++) {\n var len = buf.write(list[i], offset + 1)\n buf[offset] = len\n offset += len + 1\n }\n }\n\n buf[offset++] = 0\n\n name.encode.bytes = offset - oldOffset\n return buf\n}\n\nname.encode.bytes = 0\n\nname.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var list = []\n var oldOffset = offset\n var len = buf[offset++]\n\n if (len === 0) {\n name.decode.bytes = 1\n return '.'\n }\n if (len >= 0xc0) {\n var res = name.decode(buf, buf.readUInt16BE(offset - 1) - 0xc000)\n name.decode.bytes = 2\n return res\n }\n\n while (len) {\n if (len >= 0xc0) {\n list.push(name.decode(buf, buf.readUInt16BE(offset - 1) - 0xc000))\n offset++\n break\n }\n\n list.push(buf.toString('utf-8', offset, offset + len))\n offset += len\n len = buf[offset++]\n }\n\n name.decode.bytes = offset - oldOffset\n return list.join('.')\n}\n\nname.decode.bytes = 0\n\nname.encodingLength = function (n) {\n if (n === '.' || n === '..') return 1\n return Buffer.byteLength(n.replace(/^\\.|\\.$/gm, '')) + 2\n}\n\nvar string = {}\n\nstring.encode = function (s, buf, offset) {\n if (!buf) buf = Buffer.alloc(string.encodingLength(s))\n if (!offset) offset = 0\n\n var len = buf.write(s, offset + 1)\n buf[offset] = len\n string.encode.bytes = len + 1\n return buf\n}\n\nstring.encode.bytes = 0\n\nstring.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf[offset]\n var s = buf.toString('utf-8', offset + 1, offset + 1 + len)\n string.decode.bytes = len + 1\n return s\n}\n\nstring.decode.bytes = 0\n\nstring.encodingLength = function (s) {\n return Buffer.byteLength(s) + 1\n}\n\nvar header = {}\n\nheader.encode = function (h, buf, offset) {\n if (!buf) buf = header.encodingLength(h)\n if (!offset) offset = 0\n\n var flags = (h.flags || 0) & 32767\n var type = h.type === 'response' ? RESPONSE_FLAG : QUERY_FLAG\n\n buf.writeUInt16BE(h.id || 0, offset)\n buf.writeUInt16BE(flags | type, offset + 2)\n buf.writeUInt16BE(h.questions.length, offset + 4)\n buf.writeUInt16BE(h.answers.length, offset + 6)\n buf.writeUInt16BE(h.authorities.length, offset + 8)\n buf.writeUInt16BE(h.additionals.length, offset + 10)\n\n return buf\n}\n\nheader.encode.bytes = 12\n\nheader.decode = function (buf, offset) {\n if (!offset) offset = 0\n if (buf.length < 12) throw new Error('Header must be 12 bytes')\n var flags = buf.readUInt16BE(offset + 2)\n\n return {\n id: buf.readUInt16BE(offset),\n type: flags & RESPONSE_FLAG ? 'response' : 'query',\n flags: flags & 32767,\n flag_qr: ((flags >> 15) & 0x1) === 1,\n opcode: opcodes.toString((flags >> 11) & 0xf),\n flag_auth: ((flags >> 10) & 0x1) === 1,\n flag_trunc: ((flags >> 9) & 0x1) === 1,\n flag_rd: ((flags >> 8) & 0x1) === 1,\n flag_ra: ((flags >> 7) & 0x1) === 1,\n flag_z: ((flags >> 6) & 0x1) === 1,\n flag_ad: ((flags >> 5) & 0x1) === 1,\n flag_cd: ((flags >> 4) & 0x1) === 1,\n rcode: rcodes.toString(flags & 0xf),\n questions: new Array(buf.readUInt16BE(offset + 4)),\n answers: new Array(buf.readUInt16BE(offset + 6)),\n authorities: new Array(buf.readUInt16BE(offset + 8)),\n additionals: new Array(buf.readUInt16BE(offset + 10))\n }\n}\n\nheader.decode.bytes = 12\n\nheader.encodingLength = function () {\n return 12\n}\n\nvar runknown = exports.unknown = {}\n\nrunknown.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(runknown.encodingLength(data))\n if (!offset) offset = 0\n\n buf.writeUInt16BE(data.length, offset)\n data.copy(buf, offset + 2)\n\n runknown.encode.bytes = data.length + 2\n return buf\n}\n\nrunknown.encode.bytes = 0\n\nrunknown.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf.readUInt16BE(offset)\n var data = buf.slice(offset + 2, offset + 2 + len)\n runknown.decode.bytes = len + 2\n return data\n}\n\nrunknown.decode.bytes = 0\n\nrunknown.encodingLength = function (data) {\n return data.length + 2\n}\n\nvar rns = exports.ns = {}\n\nrns.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rns.encodingLength(data))\n if (!offset) offset = 0\n\n name.encode(data, buf, offset + 2)\n buf.writeUInt16BE(name.encode.bytes, offset)\n rns.encode.bytes = name.encode.bytes + 2\n return buf\n}\n\nrns.encode.bytes = 0\n\nrns.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf.readUInt16BE(offset)\n var dd = name.decode(buf, offset + 2)\n\n rns.decode.bytes = len + 2\n return dd\n}\n\nrns.decode.bytes = 0\n\nrns.encodingLength = function (data) {\n return name.encodingLength(data) + 2\n}\n\nvar rsoa = exports.soa = {}\n\nrsoa.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rsoa.encodingLength(data))\n if (!offset) offset = 0\n\n var oldOffset = offset\n offset += 2\n name.encode(data.mname, buf, offset)\n offset += name.encode.bytes\n name.encode(data.rname, buf, offset)\n offset += name.encode.bytes\n buf.writeUInt32BE(data.serial || 0, offset)\n offset += 4\n buf.writeUInt32BE(data.refresh || 0, offset)\n offset += 4\n buf.writeUInt32BE(data.retry || 0, offset)\n offset += 4\n buf.writeUInt32BE(data.expire || 0, offset)\n offset += 4\n buf.writeUInt32BE(data.minimum || 0, offset)\n offset += 4\n\n buf.writeUInt16BE(offset - oldOffset - 2, oldOffset)\n rsoa.encode.bytes = offset - oldOffset\n return buf\n}\n\nrsoa.encode.bytes = 0\n\nrsoa.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n var data = {}\n offset += 2\n data.mname = name.decode(buf, offset)\n offset += name.decode.bytes\n data.rname = name.decode(buf, offset)\n offset += name.decode.bytes\n data.serial = buf.readUInt32BE(offset)\n offset += 4\n data.refresh = buf.readUInt32BE(offset)\n offset += 4\n data.retry = buf.readUInt32BE(offset)\n offset += 4\n data.expire = buf.readUInt32BE(offset)\n offset += 4\n data.minimum = buf.readUInt32BE(offset)\n offset += 4\n\n rsoa.decode.bytes = offset - oldOffset\n return data\n}\n\nrsoa.decode.bytes = 0\n\nrsoa.encodingLength = function (data) {\n return 22 + name.encodingLength(data.mname) + name.encodingLength(data.rname)\n}\n\nvar rtxt = exports.txt = exports.null = {}\nvar rnull = rtxt\n\nrtxt.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rtxt.encodingLength(data))\n if (!offset) offset = 0\n\n if (typeof data === 'string') data = Buffer.from(data)\n if (!data) data = Buffer.alloc(0)\n\n var oldOffset = offset\n offset += 2\n\n var len = data.length\n data.copy(buf, offset, 0, len)\n offset += len\n\n buf.writeUInt16BE(offset - oldOffset - 2, oldOffset)\n rtxt.encode.bytes = offset - oldOffset\n return buf\n}\n\nrtxt.encode.bytes = 0\n\nrtxt.decode = function (buf, offset) {\n if (!offset) offset = 0\n var oldOffset = offset\n var len = buf.readUInt16BE(offset)\n\n offset += 2\n\n var data = buf.slice(offset, offset + len)\n offset += len\n\n rtxt.decode.bytes = offset - oldOffset\n return data\n}\n\nrtxt.decode.bytes = 0\n\nrtxt.encodingLength = function (data) {\n if (!data) return 2\n return (Buffer.isBuffer(data) ? data.length : Buffer.byteLength(data)) + 2\n}\n\nvar rhinfo = exports.hinfo = {}\n\nrhinfo.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rhinfo.encodingLength(data))\n if (!offset) offset = 0\n\n var oldOffset = offset\n offset += 2\n string.encode(data.cpu, buf, offset)\n offset += string.encode.bytes\n string.encode(data.os, buf, offset)\n offset += string.encode.bytes\n buf.writeUInt16BE(offset - oldOffset - 2, oldOffset)\n rhinfo.encode.bytes = offset - oldOffset\n return buf\n}\n\nrhinfo.encode.bytes = 0\n\nrhinfo.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n var data = {}\n offset += 2\n data.cpu = string.decode(buf, offset)\n offset += string.decode.bytes\n data.os = string.decode(buf, offset)\n offset += string.decode.bytes\n rhinfo.decode.bytes = offset - oldOffset\n return data\n}\n\nrhinfo.decode.bytes = 0\n\nrhinfo.encodingLength = function (data) {\n return string.encodingLength(data.cpu) + string.encodingLength(data.os) + 2\n}\n\nvar rptr = exports.ptr = {}\nvar rcname = exports.cname = rptr\nvar rdname = exports.dname = rptr\n\nrptr.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rptr.encodingLength(data))\n if (!offset) offset = 0\n\n name.encode(data, buf, offset + 2)\n buf.writeUInt16BE(name.encode.bytes, offset)\n rptr.encode.bytes = name.encode.bytes + 2\n return buf\n}\n\nrptr.encode.bytes = 0\n\nrptr.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var data = name.decode(buf, offset + 2)\n rptr.decode.bytes = name.decode.bytes + 2\n return data\n}\n\nrptr.decode.bytes = 0\n\nrptr.encodingLength = function (data) {\n return name.encodingLength(data) + 2\n}\n\nvar rsrv = exports.srv = {}\n\nrsrv.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rsrv.encodingLength(data))\n if (!offset) offset = 0\n\n buf.writeUInt16BE(data.priority || 0, offset + 2)\n buf.writeUInt16BE(data.weight || 0, offset + 4)\n buf.writeUInt16BE(data.port || 0, offset + 6)\n name.encode(data.target, buf, offset + 8)\n\n var len = name.encode.bytes + 6\n buf.writeUInt16BE(len, offset)\n\n rsrv.encode.bytes = len + 2\n return buf\n}\n\nrsrv.encode.bytes = 0\n\nrsrv.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf.readUInt16BE(offset)\n\n var data = {}\n data.priority = buf.readUInt16BE(offset + 2)\n data.weight = buf.readUInt16BE(offset + 4)\n data.port = buf.readUInt16BE(offset + 6)\n data.target = name.decode(buf, offset + 8)\n\n rsrv.decode.bytes = len + 2\n return data\n}\n\nrsrv.decode.bytes = 0\n\nrsrv.encodingLength = function (data) {\n return 8 + name.encodingLength(data.target)\n}\n\nvar rcaa = exports.caa = {}\n\nrcaa.ISSUER_CRITICAL = 1 << 7\n\nrcaa.encode = function (data, buf, offset) {\n var len = rcaa.encodingLength(data)\n\n if (!buf) buf = Buffer.alloc(rcaa.encodingLength(data))\n if (!offset) offset = 0\n\n if (data.issuerCritical) {\n data.flags = rcaa.ISSUER_CRITICAL\n }\n\n buf.writeUInt16BE(len - 2, offset)\n offset += 2\n buf.writeUInt8(data.flags || 0, offset)\n offset += 1\n string.encode(data.tag, buf, offset)\n offset += string.encode.bytes\n buf.write(data.value, offset)\n offset += Buffer.byteLength(data.value)\n\n rcaa.encode.bytes = len\n return buf\n}\n\nrcaa.encode.bytes = 0\n\nrcaa.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf.readUInt16BE(offset)\n offset += 2\n\n var oldOffset = offset\n var data = {}\n data.flags = buf.readUInt8(offset)\n offset += 1\n data.tag = string.decode(buf, offset)\n offset += string.decode.bytes\n data.value = buf.toString('utf-8', offset, oldOffset + len)\n\n data.issuerCritical = !!(data.flags & rcaa.ISSUER_CRITICAL)\n\n rcaa.decode.bytes = len + 2\n\n return data\n}\n\nrcaa.decode.bytes = 0\n\nrcaa.encodingLength = function (data) {\n return string.encodingLength(data.tag) + string.encodingLength(data.value) + 2\n}\n\nvar ra = exports.a = {}\n\nra.encode = function (host, buf, offset) {\n if (!buf) buf = Buffer.alloc(ra.encodingLength(host))\n if (!offset) offset = 0\n\n buf.writeUInt16BE(4, offset)\n offset += 2\n ip.toBuffer(host, buf, offset)\n ra.encode.bytes = 6\n return buf\n}\n\nra.encode.bytes = 0\n\nra.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n offset += 2\n var host = ip.toString(buf, offset, 4)\n ra.decode.bytes = 6\n return host\n}\n\nra.decode.bytes = 0\n\nra.encodingLength = function () {\n return 6\n}\n\nvar raaaa = exports.aaaa = {}\n\nraaaa.encode = function (host, buf, offset) {\n if (!buf) buf = Buffer.alloc(raaaa.encodingLength(host))\n if (!offset) offset = 0\n\n buf.writeUInt16BE(16, offset)\n offset += 2\n ip.toBuffer(host, buf, offset)\n raaaa.encode.bytes = 18\n return buf\n}\n\nraaaa.encode.bytes = 0\n\nraaaa.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n offset += 2\n var host = ip.toString(buf, offset, 16)\n raaaa.decode.bytes = 18\n return host\n}\n\nraaaa.decode.bytes = 0\n\nraaaa.encodingLength = function () {\n return 18\n}\n\nvar renc = exports.record = function (type) {\n switch (type.toUpperCase()) {\n case 'A': return ra\n case 'PTR': return rptr\n case 'CNAME': return rcname\n case 'DNAME': return rdname\n case 'TXT': return rtxt\n case 'NULL': return rnull\n case 'AAAA': return raaaa\n case 'SRV': return rsrv\n case 'HINFO': return rhinfo\n case 'CAA': return rcaa\n case 'NS': return rns\n case 'SOA': return rsoa\n }\n return runknown\n}\n\nvar answer = exports.answer = {}\n\nanswer.encode = function (a, buf, offset) {\n if (!buf) buf = Buffer.alloc(answer.encodingLength(a))\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n name.encode(a.name, buf, offset)\n offset += name.encode.bytes\n\n buf.writeUInt16BE(types.toType(a.type), offset)\n\n var klass = a.class === undefined ? 1 : a.class\n if (a.flush) klass |= FLUSH_MASK // the 1st bit of the class is the flush bit\n buf.writeUInt16BE(klass, offset + 2)\n\n buf.writeUInt32BE(a.ttl || 0, offset + 4)\n\n var enc = renc(a.type)\n enc.encode(a.data, buf, offset + 8)\n offset += 8 + enc.encode.bytes\n\n answer.encode.bytes = offset - oldOffset\n return buf\n}\n\nanswer.encode.bytes = 0\n\nanswer.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var a = {}\n var oldOffset = offset\n\n a.name = name.decode(buf, offset)\n offset += name.decode.bytes\n a.type = types.toString(buf.readUInt16BE(offset))\n a.class = buf.readUInt16BE(offset + 2)\n a.ttl = buf.readUInt32BE(offset + 4)\n\n a.flush = !!(a.class & FLUSH_MASK)\n if (a.flush) a.class &= NOT_FLUSH_MASK\n\n var enc = renc(a.type)\n a.data = enc.decode(buf, offset + 8)\n offset += 8 + enc.decode.bytes\n\n answer.decode.bytes = offset - oldOffset\n return a\n}\n\nanswer.decode.bytes = 0\n\nanswer.encodingLength = function (a) {\n return name.encodingLength(a.name) + 8 + renc(a.type).encodingLength(a.data)\n}\n\nvar question = exports.question = {}\n\nquestion.encode = function (q, buf, offset) {\n if (!buf) buf = Buffer.alloc(question.encodingLength(q))\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n name.encode(q.name, buf, offset)\n offset += name.encode.bytes\n\n buf.writeUInt16BE(types.toType(q.type), offset)\n offset += 2\n\n buf.writeUInt16BE(q.class === undefined ? 1 : q.class, offset)\n offset += 2\n\n question.encode.bytes = offset - oldOffset\n return q\n}\n\nquestion.encode.bytes = 0\n\nquestion.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var oldOffset = offset\n var q = {}\n\n q.name = name.decode(buf, offset)\n offset += name.decode.bytes\n\n q.type = types.toString(buf.readUInt16BE(offset))\n offset += 2\n\n q.class = buf.readUInt16BE(offset)\n offset += 2\n\n var qu = !!(q.class & QU_MASK)\n if (qu) q.class &= NOT_QU_MASK\n\n question.decode.bytes = offset - oldOffset\n return q\n}\n\nquestion.decode.bytes = 0\n\nquestion.encodingLength = function (q) {\n return name.encodingLength(q.name) + 4\n}\n\nexports.AUTHORITATIVE_ANSWER = 1 << 10\nexports.TRUNCATED_RESPONSE = 1 << 9\nexports.RECURSION_DESIRED = 1 << 8\nexports.RECURSION_AVAILABLE = 1 << 7\nexports.AUTHENTIC_DATA = 1 << 5\nexports.CHECKING_DISABLED = 1 << 4\n\nexports.encode = function (result, buf, offset) {\n var allocing = !buf\n if (allocing) buf = Buffer.alloc(exports.encodingLength(result))\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n if (!result.questions) result.questions = []\n if (!result.answers) result.answers = []\n if (!result.authorities) result.authorities = []\n if (!result.additionals) result.additionals = []\n\n header.encode(result, buf, offset)\n offset += header.encode.bytes\n\n offset = encodeList(result.questions, question, buf, offset)\n offset = encodeList(result.answers, answer, buf, offset)\n offset = encodeList(result.authorities, answer, buf, offset)\n offset = encodeList(result.additionals, answer, buf, offset)\n\n exports.encode.bytes = offset - oldOffset\n\n // just a quick sanity check\n if (allocing && exports.encode.bytes !== buf.length) {\n return buf.slice(0, exports.encode.bytes)\n }\n\n return buf\n}\n\nexports.encode.bytes = 0\n\nexports.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var oldOffset = offset\n var result = header.decode(buf, offset)\n offset += header.decode.bytes\n\n offset = decodeList(result.questions, question, buf, offset)\n offset = decodeList(result.answers, answer, buf, offset)\n offset = decodeList(result.authorities, answer, buf, offset)\n offset = decodeList(result.additionals, answer, buf, offset)\n\n exports.decode.bytes = offset - oldOffset\n\n return result\n}\n\nexports.decode.bytes = 0\n\nexports.encodingLength = function (result) {\n return header.encodingLength(result) +\n encodingLengthList(result.questions || [], question) +\n encodingLengthList(result.answers || [], answer) +\n encodingLengthList(result.authorities || [], answer) +\n encodingLengthList(result.additionals || [], answer)\n}\n\nfunction encodingLengthList (list, enc) {\n var len = 0\n for (var i = 0; i < list.length; i++) len += enc.encodingLength(list[i])\n return len\n}\n\nfunction encodeList (list, enc, buf, offset) {\n for (var i = 0; i < list.length; i++) {\n enc.encode(list[i], buf, offset)\n offset += enc.encode.bytes\n }\n return offset\n}\n\nfunction decodeList (list, enc, buf, offset) {\n for (var i = 0; i < list.length; i++) {\n list[i] = enc.decode(buf, offset)\n offset += enc.decode.bytes\n }\n return offset\n}\n","var dgram = require('dgram')\nvar util = require('util')\nvar packet = require('dns-packet')\nvar events = require('events')\n\nmodule.exports = DNS\n\nfunction DNS (opts) {\n if (!(this instanceof DNS)) return new DNS(opts)\n if (!opts) opts = {}\n\n events.EventEmitter.call(this)\n\n var self = this\n\n this.retries = opts.retries || 5\n this.timeout = opts.timeout || 7500\n this.destroyed = false\n this.inflight = 0\n this.socket = opts.socket || dgram.createSocket('udp4')\n this._id = Math.ceil(Math.random() * 65535)\n this._ids = []\n this._queries = []\n this._interval = null\n this._triesArray = getTriesArray(this.retries) // default: [2, 4, 8, 16] = .5s, 1s, 2s, 4s\n\n this.socket.on('error', onerror)\n this.socket.on('message', onmessage)\n if (isListening(this.socket)) onlistening()\n else this.socket.on('listening', onlistening)\n this.socket.on('close', onclose)\n\n function onerror (err) {\n if (err.code === 'EACCES' || err.code === 'EADDRINUSE') self.emit('error', err)\n else self.emit('warning', err)\n }\n\n function onmessage (message, rinfo) {\n self._onmessage(message, rinfo)\n }\n\n function onlistening () {\n var timeSlices = self._triesArray.reduce(add, 0)\n self._interval = setInterval(ontimeout, Math.round(self.timeout / timeSlices))\n self.emit('listening')\n }\n\n function onclose () {\n self.emit('close')\n }\n\n function ontimeout () {\n self._ontimeout()\n }\n}\n\nutil.inherits(DNS, events.EventEmitter)\n\nDNS.RECURSION_DESIRED = DNS.prototype.RECURSION_DESIRED = packet.RECURSION_DESIRED\nDNS.RECURSION_AVAILABLE = DNS.prototype.RECURSION_AVAILABLE = packet.RECURSION_AVAILABLE\nDNS.TRUNCATED_RESPONSE = DNS.prototype.TRUNCATED_RESPONSE = packet.TRUNCATED_RESPONSE\nDNS.AUTHORITATIVE_ANSWER = DNS.prototype.AUTHORITATIVE_ANSWER = packet.AUTHORITATIVE_ANSWER\nDNS.AUTHENTIC_DATA = DNS.prototype.AUTHENTIC_DATA = packet.AUTHENTIC_DATA\nDNS.CHECKING_DISABLED = DNS.prototype.CHECKING_DISABLED = packet.CHECKING_DISABLED\n\nDNS.prototype.address = function () {\n return this.socket.address()\n}\n\nDNS.prototype.bind = function (port, onlistening) {\n if (onlistening) this.once('listening', onlistening)\n this.socket.bind(port)\n}\n\nDNS.prototype.destroy = function (onclose) {\n if (onclose) this.once('close', onclose)\n if (this.destroyed) return\n this.destroyed = true\n clearInterval(this._interval)\n this.socket.close()\n for (var i = 0; i < this._queries.length; i++) {\n var q = this._queries[i]\n if (q) q.callback(new Error('Socket destroyed'))\n }\n this._queries = []\n this._ids = []\n this.inflight = 0\n}\n\nDNS.prototype._ontimeout = function () {\n for (var i = 0; i < this._queries.length; i++) {\n var q = this._queries[i]\n if (!q) continue\n if (!q.tries.length) {\n this._queries[i] = null\n this._ids[i] = 0\n this.inflight--\n this.emit('timeout', q.query, q.port, q.host)\n q.callback(new Error('Query timed out'))\n continue\n }\n if (--q.tries[0]) continue\n q.tries.shift()\n this.socket.send(q.buffer, 0, q.buffer.length, q.port, q.host)\n }\n this._trim()\n}\n\nDNS.prototype._onmessage = function (buffer, rinfo) {\n try {\n var message = packet.decode(buffer)\n } catch (err) {\n this.emit('warning', err)\n return\n }\n\n if (message.type === 'response' && message.id) {\n var i = this._ids.indexOf(message.id)\n var q = i > -1 ? this._queries[i] : null\n if (q) {\n this.inflight--\n this._ids[i] = 0\n this._queries[i] = null\n this._trim()\n q.callback(null, message, q.query, rinfo.port, rinfo.address)\n }\n }\n\n this.emit(message.type, message, rinfo.port, rinfo.address)\n}\n\nDNS.prototype._trim = function () {\n while (this._ids.length && !this._ids[this._ids.length - 1]) {\n this._ids.pop()\n this._queries.pop()\n }\n}\n\nDNS.prototype.unref = function () {\n this.socket.unref()\n}\n\nDNS.prototype.ref = function () {\n this.socket.ref()\n}\n\nDNS.prototype.response = function (query, response, port, host) {\n if (this.destroyed) return\n\n response.type = 'response'\n response.id = query.id\n\n var buffer = packet.encode(response)\n this.socket.send(buffer, 0, buffer.length, port, host || '127.0.0.1')\n}\n\nDNS.prototype.cancel = function (id) {\n var i = this._ids.indexOf(id)\n var q = this._queries[i]\n if (!q) return\n\n this._queries[i] = null\n this._ids[i] = 0\n this.inflight--\n q.callback(new Error('Query cancelled'))\n}\n\nDNS.prototype.setRetries = function (id, retries) {\n var i = this._ids.indexOf(id)\n var q = this._queries[i]\n if (!q) return\n\n while (q.tries.length < retries) {\n q.tries.push(q.tries.length ? 2 * q.tries[q.tries.length - 1] : 4)\n }\n if (q.tries.length > retries) {\n q.tries = q.tries.slice(0, retries)\n }\n}\n\nDNS.prototype.query = function (query, port, host, cb) {\n if (typeof host === 'function') return this.query(query, port, null, host)\n if (!cb) cb = noop\n\n if (this.destroyed) {\n nextTick(cb, new Error('Socket destroyed'))\n return 0\n }\n\n this.inflight++\n query.type = 'query'\n query.flags = typeof query.flags === 'number' ? query.flags : DNS.RECURSION_DESIRED\n var id = query.id = this._id++\n if (this._id === 65535) this._id = 1\n\n var i = this._ids.indexOf(0)\n if (i === -1) i = this._ids.push(0) - 1\n if (this._queries.length === i) this._queries.push(null)\n\n var buffer = packet.encode(query)\n var tries = this._triesArray.slice(0)\n\n this._ids[i] = id\n this._queries[i] = {\n callback: cb,\n tries: tries,\n query: query,\n buffer: buffer,\n port: port,\n host: host\n }\n\n this.socket.send(buffer, 0, buffer.length, port, host || '127.0.0.1')\n return id\n}\n\nfunction noop () {}\n\nfunction nextTick (cb, err) {\n process.nextTick(function () {\n cb(err)\n })\n}\n\nfunction add (a, b) {\n return a + b\n}\n\nfunction getTriesArray (retries) {\n var ret = []\n if (retries <= 1) return ret\n for (var i = 1; i <= retries - 1; i++) {\n ret.push(Math.pow(2, i))\n }\n return ret\n}\n\nfunction isListening (socket) {\n try {\n return socket.address().port !== 0\n } catch (err) {\n return false\n }\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","'use strict';\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn decodeURIComponent(components.join(''));\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher);\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher);\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n","'use strict';\nvar strictUriEncode = require('strict-uri-encode');\nvar objectAssign = require('object-assign');\nvar decodeComponent = require('decode-uri-component');\n\nfunction encoderForArrayFormat(opts) {\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, index) {\n\t\t\t\treturn value === null ? [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tindex,\n\t\t\t\t\t']'\n\t\t\t\t].join('') : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tencode(index, opts),\n\t\t\t\t\t']=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[]=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(opts) {\n\tvar result;\n\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t} else if (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction encode(value, opts) {\n\tif (opts.encode) {\n\t\treturn opts.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t} else if (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input)).sort(function (a, b) {\n\t\t\treturn Number(a) - Number(b);\n\t\t}).map(function (key) {\n\t\t\treturn input[key];\n\t\t});\n\t}\n\n\treturn input;\n}\n\nfunction extract(str) {\n\tvar queryStart = str.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\treturn str.slice(queryStart + 1);\n}\n\nfunction parse(str, opts) {\n\topts = objectAssign({arrayFormat: 'none'}, opts);\n\n\tvar formatter = parserForArrayFormat(opts);\n\n\t// Create an object with no prototype\n\t// https://github.com/sindresorhus/query-string/issues/47\n\tvar ret = Object.create(null);\n\n\tif (typeof str !== 'string') {\n\t\treturn ret;\n\t}\n\n\tstr = str.trim().replace(/^[?#&]/, '');\n\n\tif (!str) {\n\t\treturn ret;\n\t}\n\n\tstr.split('&').forEach(function (param) {\n\t\tvar parts = param.replace(/\\+/g, ' ').split('=');\n\t\t// Firefox (pre 40) decodes `%3D` to `=`\n\t\t// https://github.com/sindresorhus/query-string/pull/37\n\t\tvar key = parts.shift();\n\t\tvar val = parts.length > 0 ? parts.join('=') : undefined;\n\n\t\t// missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tval = val === undefined ? null : decodeComponent(val);\n\n\t\tformatter(decodeComponent(key), val, ret);\n\t});\n\n\treturn Object.keys(ret).sort().reduce(function (result, key) {\n\t\tvar val = ret[key];\n\t\tif (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(val);\n\t\t} else {\n\t\t\tresult[key] = val;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = function (obj, opts) {\n\tvar defaults = {\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none'\n\t};\n\n\topts = objectAssign(defaults, opts);\n\n\tif (opts.sort === false) {\n\t\topts.sort = function () {};\n\t}\n\n\tvar formatter = encoderForArrayFormat(opts);\n\n\treturn obj ? Object.keys(obj).sort(opts.sort).map(function (key) {\n\t\tvar val = obj[key];\n\n\t\tif (val === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (val === null) {\n\t\t\treturn encode(key, opts);\n\t\t}\n\n\t\tif (Array.isArray(val)) {\n\t\t\tvar result = [];\n\n\t\t\tval.slice().forEach(function (val2) {\n\t\t\t\tif (val2 === undefined) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tresult.push(formatter(key, val2, result.length));\n\t\t\t});\n\n\t\t\treturn result.join('&');\n\t\t}\n\n\t\treturn encode(key, opts) + '=' + encode(val, opts);\n\t}).filter(function (x) {\n\t\treturn x.length > 0;\n\t}).join('&') : '';\n};\n\nexports.parseUrl = function (str, opts) {\n\treturn {\n\t\turl: str.split('?')[0] || '',\n\t\tquery: parse(extract(str), opts)\n\t};\n};\n","'use strict';\nconst url = require('url');\nconst punycode = require('punycode');\nconst queryString = require('query-string');\nconst prependHttp = require('prepend-http');\nconst sortKeys = require('sort-keys');\n\nconst DEFAULT_PORTS = {\n\t'http:': 80,\n\t'https:': 443,\n\t'ftp:': 21\n};\n\n// Protocols that always contain a `//`` bit\nconst slashedProtocol = {\n\thttp: true,\n\thttps: true,\n\tftp: true,\n\tgopher: true,\n\tfile: true,\n\t'http:': true,\n\t'https:': true,\n\t'ftp:': true,\n\t'gopher:': true,\n\t'file:': true\n};\n\nfunction testParameter(name, filters) {\n\treturn filters.some(filter => filter instanceof RegExp ? filter.test(name) : filter === name);\n}\n\nmodule.exports = (str, opts) => {\n\topts = Object.assign({\n\t\tnormalizeProtocol: true,\n\t\tnormalizeHttps: false,\n\t\tstripFragment: true,\n\t\tstripWWW: true,\n\t\tremoveQueryParameters: [/^utm_\\w+/i],\n\t\tremoveTrailingSlash: true,\n\t\tremoveDirectoryIndex: false,\n\t\tsortQueryParameters: true\n\t}, opts);\n\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\tconst hasRelativeProtocol = str.startsWith('//');\n\n\t// Prepend protocol\n\tstr = prependHttp(str.trim()).replace(/^\\/\\//, 'http://');\n\n\tconst urlObj = url.parse(str);\n\n\tif (opts.normalizeHttps && urlObj.protocol === 'https:') {\n\t\turlObj.protocol = 'http:';\n\t}\n\n\tif (!urlObj.hostname && !urlObj.pathname) {\n\t\tthrow new Error('Invalid URL');\n\t}\n\n\t// Prevent these from being used by `url.format`\n\tdelete urlObj.host;\n\tdelete urlObj.query;\n\n\t// Remove fragment\n\tif (opts.stripFragment) {\n\t\tdelete urlObj.hash;\n\t}\n\n\t// Remove default port\n\tconst port = DEFAULT_PORTS[urlObj.protocol];\n\tif (Number(urlObj.port) === port) {\n\t\tdelete urlObj.port;\n\t}\n\n\t// Remove duplicate slashes\n\tif (urlObj.pathname) {\n\t\turlObj.pathname = urlObj.pathname.replace(/\\/{2,}/g, '/');\n\t}\n\n\t// Decode URI octets\n\tif (urlObj.pathname) {\n\t\turlObj.pathname = decodeURI(urlObj.pathname);\n\t}\n\n\t// Remove directory index\n\tif (opts.removeDirectoryIndex === true) {\n\t\topts.removeDirectoryIndex = [/^index\\.[a-z]+$/];\n\t}\n\n\tif (Array.isArray(opts.removeDirectoryIndex) && opts.removeDirectoryIndex.length > 0) {\n\t\tlet pathComponents = urlObj.pathname.split('/');\n\t\tconst lastComponent = pathComponents[pathComponents.length - 1];\n\n\t\tif (testParameter(lastComponent, opts.removeDirectoryIndex)) {\n\t\t\tpathComponents = pathComponents.slice(0, pathComponents.length - 1);\n\t\t\turlObj.pathname = pathComponents.slice(1).join('/') + '/';\n\t\t}\n\t}\n\n\t// Resolve relative paths, but only for slashed protocols\n\tif (slashedProtocol[urlObj.protocol]) {\n\t\tconst domain = urlObj.protocol + '//' + urlObj.hostname;\n\t\tconst relative = url.resolve(domain, urlObj.pathname);\n\t\turlObj.pathname = relative.replace(domain, '');\n\t}\n\n\tif (urlObj.hostname) {\n\t\t// IDN to Unicode\n\t\turlObj.hostname = punycode.toUnicode(urlObj.hostname).toLowerCase();\n\n\t\t// Remove trailing dot\n\t\turlObj.hostname = urlObj.hostname.replace(/\\.$/, '');\n\n\t\t// Remove `www.`\n\t\tif (opts.stripWWW) {\n\t\t\turlObj.hostname = urlObj.hostname.replace(/^www\\./, '');\n\t\t}\n\t}\n\n\t// Remove URL with empty query string\n\tif (urlObj.search === '?') {\n\t\tdelete urlObj.search;\n\t}\n\n\tconst queryParameters = queryString.parse(urlObj.search);\n\n\t// Remove query unwanted parameters\n\tif (Array.isArray(opts.removeQueryParameters)) {\n\t\tfor (const key in queryParameters) {\n\t\t\tif (testParameter(key, opts.removeQueryParameters)) {\n\t\t\t\tdelete queryParameters[key];\n\t\t\t}\n\t\t}\n\t}\n\n\t// Sort query parameters\n\tif (opts.sortQueryParameters) {\n\t\turlObj.search = queryString.stringify(sortKeys(queryParameters));\n\t}\n\n\t// Decode query parameters\n\tif (urlObj.search !== null) {\n\t\turlObj.search = decodeURIComponent(urlObj.search);\n\t}\n\n\t// Take advantage of many of the Node `url` normalizations\n\tstr = url.format(urlObj);\n\n\t// Remove ending `/`\n\tif (opts.removeTrailingSlash || urlObj.pathname === '/') {\n\t\tstr = str.replace(/\\/$/, '');\n\t}\n\n\t// Restore relative protocol, if applicable\n\tif (hasRelativeProtocol && !opts.normalizeProtocol) {\n\t\tstr = str.replace(/^http:\\/\\//, '//');\n\t}\n\n\treturn str;\n};\n","'use strict';\n// rfc7231 6.1\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar statusCodeCacheableByDefault = [200, 203, 204, 206, 300, 301, 404, 405, 410, 414, 501];\n\n// This implementation does not understand partial responses (206)\nvar understoodStatuses = [200, 203, 204, 300, 301, 302, 303, 307, 308, 404, 405, 410, 414, 501];\n\nvar hopByHopHeaders = { 'connection': true, 'keep-alive': true, 'proxy-authenticate': true, 'proxy-authorization': true, 'te': true, 'trailer': true, 'transfer-encoding': true, 'upgrade': true };\nvar excludedFromRevalidationUpdate = {\n // Since the old body is reused, it doesn't make sense to change properties of the body\n 'content-length': true, 'content-encoding': true, 'transfer-encoding': true,\n 'content-range': true\n};\n\nfunction parseCacheControl(header) {\n var cc = {};\n if (!header) return cc;\n\n // TODO: When there is more than one value present for a given directive (e.g., two Expires header fields, multiple Cache-Control: max-age directives),\n // the directive's value is considered invalid. Caches are encouraged to consider responses that have invalid freshness information to be stale\n var parts = header.trim().split(/\\s*,\\s*/); // TODO: lame parsing\n for (var _iterator = parts, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var part = _ref;\n\n var _part$split = part.split(/\\s*=\\s*/, 2),\n k = _part$split[0],\n v = _part$split[1];\n\n cc[k] = v === undefined ? true : v.replace(/^\"|\"$/g, ''); // TODO: lame unquoting\n }\n\n return cc;\n}\n\nfunction formatCacheControl(cc) {\n var parts = [];\n for (var k in cc) {\n var v = cc[k];\n parts.push(v === true ? k : k + '=' + v);\n }\n if (!parts.length) {\n return undefined;\n }\n return parts.join(', ');\n}\n\nmodule.exports = function () {\n function CachePolicy(req, res) {\n var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n shared = _ref2.shared,\n cacheHeuristic = _ref2.cacheHeuristic,\n immutableMinTimeToLive = _ref2.immutableMinTimeToLive,\n ignoreCargoCult = _ref2.ignoreCargoCult,\n _fromObject = _ref2._fromObject;\n\n _classCallCheck(this, CachePolicy);\n\n if (_fromObject) {\n this._fromObject(_fromObject);\n return;\n }\n\n if (!res || !res.headers) {\n throw Error(\"Response headers missing\");\n }\n this._assertRequestHasHeaders(req);\n\n this._responseTime = this.now();\n this._isShared = shared !== false;\n this._cacheHeuristic = undefined !== cacheHeuristic ? cacheHeuristic : 0.1; // 10% matches IE\n this._immutableMinTtl = undefined !== immutableMinTimeToLive ? immutableMinTimeToLive : 24 * 3600 * 1000;\n\n this._status = 'status' in res ? res.status : 200;\n this._resHeaders = res.headers;\n this._rescc = parseCacheControl(res.headers['cache-control']);\n this._method = 'method' in req ? req.method : 'GET';\n this._url = req.url;\n this._host = req.headers.host;\n this._noAuthorization = !req.headers.authorization;\n this._reqHeaders = res.headers.vary ? req.headers : null; // Don't keep all request headers if they won't be used\n this._reqcc = parseCacheControl(req.headers['cache-control']);\n\n // Assume that if someone uses legacy, non-standard uncecessary options they don't understand caching,\n // so there's no point stricly adhering to the blindly copy&pasted directives.\n if (ignoreCargoCult && \"pre-check\" in this._rescc && \"post-check\" in this._rescc) {\n delete this._rescc['pre-check'];\n delete this._rescc['post-check'];\n delete this._rescc['no-cache'];\n delete this._rescc['no-store'];\n delete this._rescc['must-revalidate'];\n this._resHeaders = Object.assign({}, this._resHeaders, { 'cache-control': formatCacheControl(this._rescc) });\n delete this._resHeaders.expires;\n delete this._resHeaders.pragma;\n }\n\n // When the Cache-Control header field is not present in a request, caches MUST consider the no-cache request pragma-directive\n // as having the same effect as if \"Cache-Control: no-cache\" were present (see Section 5.2.1).\n if (!res.headers['cache-control'] && /no-cache/.test(res.headers.pragma)) {\n this._rescc['no-cache'] = true;\n }\n }\n\n CachePolicy.prototype.now = function now() {\n return Date.now();\n };\n\n CachePolicy.prototype.storable = function storable() {\n // The \"no-store\" request directive indicates that a cache MUST NOT store any part of either this request or any response to it.\n return !!(!this._reqcc['no-store'] && (\n // A cache MUST NOT store a response to any request, unless:\n // The request method is understood by the cache and defined as being cacheable, and\n 'GET' === this._method || 'HEAD' === this._method || 'POST' === this._method && this._hasExplicitExpiration()) &&\n // the response status code is understood by the cache, and\n understoodStatuses.indexOf(this._status) !== -1 &&\n // the \"no-store\" cache directive does not appear in request or response header fields, and\n !this._rescc['no-store'] && (\n // the \"private\" response directive does not appear in the response, if the cache is shared, and\n !this._isShared || !this._rescc.private) && (\n // the Authorization header field does not appear in the request, if the cache is shared,\n !this._isShared || this._noAuthorization || this._allowsStoringAuthenticated()) && (\n // the response either:\n\n // contains an Expires header field, or\n this._resHeaders.expires ||\n // contains a max-age response directive, or\n // contains a s-maxage response directive and the cache is shared, or\n // contains a public response directive.\n this._rescc.public || this._rescc['max-age'] || this._rescc['s-maxage'] ||\n // has a status code that is defined as cacheable by default\n statusCodeCacheableByDefault.indexOf(this._status) !== -1));\n };\n\n CachePolicy.prototype._hasExplicitExpiration = function _hasExplicitExpiration() {\n // 4.2.1 Calculating Freshness Lifetime\n return this._isShared && this._rescc['s-maxage'] || this._rescc['max-age'] || this._resHeaders.expires;\n };\n\n CachePolicy.prototype._assertRequestHasHeaders = function _assertRequestHasHeaders(req) {\n if (!req || !req.headers) {\n throw Error(\"Request headers missing\");\n }\n };\n\n CachePolicy.prototype.satisfiesWithoutRevalidation = function satisfiesWithoutRevalidation(req) {\n this._assertRequestHasHeaders(req);\n\n // When presented with a request, a cache MUST NOT reuse a stored response, unless:\n // the presented request does not contain the no-cache pragma (Section 5.4), nor the no-cache cache directive,\n // unless the stored response is successfully validated (Section 4.3), and\n var requestCC = parseCacheControl(req.headers['cache-control']);\n if (requestCC['no-cache'] || /no-cache/.test(req.headers.pragma)) {\n return false;\n }\n\n if (requestCC['max-age'] && this.age() > requestCC['max-age']) {\n return false;\n }\n\n if (requestCC['min-fresh'] && this.timeToLive() < 1000 * requestCC['min-fresh']) {\n return false;\n }\n\n // the stored response is either:\n // fresh, or allowed to be served stale\n if (this.stale()) {\n var allowsStale = requestCC['max-stale'] && !this._rescc['must-revalidate'] && (true === requestCC['max-stale'] || requestCC['max-stale'] > this.age() - this.maxAge());\n if (!allowsStale) {\n return false;\n }\n }\n\n return this._requestMatches(req, false);\n };\n\n CachePolicy.prototype._requestMatches = function _requestMatches(req, allowHeadMethod) {\n // The presented effective request URI and that of the stored response match, and\n return (!this._url || this._url === req.url) && this._host === req.headers.host && (\n // the request method associated with the stored response allows it to be used for the presented request, and\n !req.method || this._method === req.method || allowHeadMethod && 'HEAD' === req.method) &&\n // selecting header fields nominated by the stored response (if any) match those presented, and\n this._varyMatches(req);\n };\n\n CachePolicy.prototype._allowsStoringAuthenticated = function _allowsStoringAuthenticated() {\n // following Cache-Control response directives (Section 5.2.2) have such an effect: must-revalidate, public, and s-maxage.\n return this._rescc['must-revalidate'] || this._rescc.public || this._rescc['s-maxage'];\n };\n\n CachePolicy.prototype._varyMatches = function _varyMatches(req) {\n if (!this._resHeaders.vary) {\n return true;\n }\n\n // A Vary header field-value of \"*\" always fails to match\n if (this._resHeaders.vary === '*') {\n return false;\n }\n\n var fields = this._resHeaders.vary.trim().toLowerCase().split(/\\s*,\\s*/);\n for (var _iterator2 = fields, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {\n var _ref3;\n\n if (_isArray2) {\n if (_i2 >= _iterator2.length) break;\n _ref3 = _iterator2[_i2++];\n } else {\n _i2 = _iterator2.next();\n if (_i2.done) break;\n _ref3 = _i2.value;\n }\n\n var name = _ref3;\n\n if (req.headers[name] !== this._reqHeaders[name]) return false;\n }\n return true;\n };\n\n CachePolicy.prototype._copyWithoutHopByHopHeaders = function _copyWithoutHopByHopHeaders(inHeaders) {\n var headers = {};\n for (var name in inHeaders) {\n if (hopByHopHeaders[name]) continue;\n headers[name] = inHeaders[name];\n }\n // 9.1. Connection\n if (inHeaders.connection) {\n var tokens = inHeaders.connection.trim().split(/\\s*,\\s*/);\n for (var _iterator3 = tokens, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {\n var _ref4;\n\n if (_isArray3) {\n if (_i3 >= _iterator3.length) break;\n _ref4 = _iterator3[_i3++];\n } else {\n _i3 = _iterator3.next();\n if (_i3.done) break;\n _ref4 = _i3.value;\n }\n\n var _name = _ref4;\n\n delete headers[_name];\n }\n }\n if (headers.warning) {\n var warnings = headers.warning.split(/,/).filter(function (warning) {\n return !/^\\s*1[0-9][0-9]/.test(warning);\n });\n if (!warnings.length) {\n delete headers.warning;\n } else {\n headers.warning = warnings.join(',').trim();\n }\n }\n return headers;\n };\n\n CachePolicy.prototype.responseHeaders = function responseHeaders() {\n var headers = this._copyWithoutHopByHopHeaders(this._resHeaders);\n var age = this.age();\n\n // A cache SHOULD generate 113 warning if it heuristically chose a freshness\n // lifetime greater than 24 hours and the response's age is greater than 24 hours.\n if (age > 3600 * 24 && !this._hasExplicitExpiration() && this.maxAge() > 3600 * 24) {\n headers.warning = (headers.warning ? `${headers.warning}, ` : '') + '113 - \"rfc7234 5.5.4\"';\n }\n headers.age = `${Math.round(age)}`;\n return headers;\n };\n\n /**\n * Value of the Date response header or current time if Date was demed invalid\n * @return timestamp\n */\n\n\n CachePolicy.prototype.date = function date() {\n var dateValue = Date.parse(this._resHeaders.date);\n var maxClockDrift = 8 * 3600 * 1000;\n if (Number.isNaN(dateValue) || dateValue < this._responseTime - maxClockDrift || dateValue > this._responseTime + maxClockDrift) {\n return this._responseTime;\n }\n return dateValue;\n };\n\n /**\n * Value of the Age header, in seconds, updated for the current time.\n * May be fractional.\n *\n * @return Number\n */\n\n\n CachePolicy.prototype.age = function age() {\n var age = Math.max(0, (this._responseTime - this.date()) / 1000);\n if (this._resHeaders.age) {\n var ageValue = this._ageValue();\n if (ageValue > age) age = ageValue;\n }\n\n var residentTime = (this.now() - this._responseTime) / 1000;\n return age + residentTime;\n };\n\n CachePolicy.prototype._ageValue = function _ageValue() {\n var ageValue = parseInt(this._resHeaders.age);\n return isFinite(ageValue) ? ageValue : 0;\n };\n\n /**\n * Value of applicable max-age (or heuristic equivalent) in seconds. This counts since response's `Date`.\n *\n * For an up-to-date value, see `timeToLive()`.\n *\n * @return Number\n */\n\n\n CachePolicy.prototype.maxAge = function maxAge() {\n if (!this.storable() || this._rescc['no-cache']) {\n return 0;\n }\n\n // Shared responses with cookies are cacheable according to the RFC, but IMHO it'd be unwise to do so by default\n // so this implementation requires explicit opt-in via public header\n if (this._isShared && this._resHeaders['set-cookie'] && !this._rescc.public && !this._rescc.immutable) {\n return 0;\n }\n\n if (this._resHeaders.vary === '*') {\n return 0;\n }\n\n if (this._isShared) {\n if (this._rescc['proxy-revalidate']) {\n return 0;\n }\n // if a response includes the s-maxage directive, a shared cache recipient MUST ignore the Expires field.\n if (this._rescc['s-maxage']) {\n return parseInt(this._rescc['s-maxage'], 10);\n }\n }\n\n // If a response includes a Cache-Control field with the max-age directive, a recipient MUST ignore the Expires field.\n if (this._rescc['max-age']) {\n return parseInt(this._rescc['max-age'], 10);\n }\n\n var defaultMinTtl = this._rescc.immutable ? this._immutableMinTtl : 0;\n\n var dateValue = this.date();\n if (this._resHeaders.expires) {\n var expires = Date.parse(this._resHeaders.expires);\n // A cache recipient MUST interpret invalid date formats, especially the value \"0\", as representing a time in the past (i.e., \"already expired\").\n if (Number.isNaN(expires) || expires < dateValue) {\n return 0;\n }\n return Math.max(defaultMinTtl, (expires - dateValue) / 1000);\n }\n\n if (this._resHeaders['last-modified']) {\n var lastModified = Date.parse(this._resHeaders['last-modified']);\n if (isFinite(lastModified) && dateValue > lastModified) {\n return Math.max(defaultMinTtl, (dateValue - lastModified) / 1000 * this._cacheHeuristic);\n }\n }\n\n return defaultMinTtl;\n };\n\n CachePolicy.prototype.timeToLive = function timeToLive() {\n return Math.max(0, this.maxAge() - this.age()) * 1000;\n };\n\n CachePolicy.prototype.stale = function stale() {\n return this.maxAge() <= this.age();\n };\n\n CachePolicy.fromObject = function fromObject(obj) {\n return new this(undefined, undefined, { _fromObject: obj });\n };\n\n CachePolicy.prototype._fromObject = function _fromObject(obj) {\n if (this._responseTime) throw Error(\"Reinitialized\");\n if (!obj || obj.v !== 1) throw Error(\"Invalid serialization\");\n\n this._responseTime = obj.t;\n this._isShared = obj.sh;\n this._cacheHeuristic = obj.ch;\n this._immutableMinTtl = obj.imm !== undefined ? obj.imm : 24 * 3600 * 1000;\n this._status = obj.st;\n this._resHeaders = obj.resh;\n this._rescc = obj.rescc;\n this._method = obj.m;\n this._url = obj.u;\n this._host = obj.h;\n this._noAuthorization = obj.a;\n this._reqHeaders = obj.reqh;\n this._reqcc = obj.reqcc;\n };\n\n CachePolicy.prototype.toObject = function toObject() {\n return {\n v: 1,\n t: this._responseTime,\n sh: this._isShared,\n ch: this._cacheHeuristic,\n imm: this._immutableMinTtl,\n st: this._status,\n resh: this._resHeaders,\n rescc: this._rescc,\n m: this._method,\n u: this._url,\n h: this._host,\n a: this._noAuthorization,\n reqh: this._reqHeaders,\n reqcc: this._reqcc\n };\n };\n\n /**\n * Headers for sending to the origin server to revalidate stale response.\n * Allows server to return 304 to allow reuse of the previous response.\n *\n * Hop by hop headers are always stripped.\n * Revalidation headers may be added or removed, depending on request.\n */\n\n\n CachePolicy.prototype.revalidationHeaders = function revalidationHeaders(incomingReq) {\n this._assertRequestHasHeaders(incomingReq);\n var headers = this._copyWithoutHopByHopHeaders(incomingReq.headers);\n\n // This implementation does not understand range requests\n delete headers['if-range'];\n\n if (!this._requestMatches(incomingReq, true) || !this.storable()) {\n // revalidation allowed via HEAD\n // not for the same resource, or wasn't allowed to be cached anyway\n delete headers['if-none-match'];\n delete headers['if-modified-since'];\n return headers;\n }\n\n /* MUST send that entity-tag in any cache validation request (using If-Match or If-None-Match) if an entity-tag has been provided by the origin server. */\n if (this._resHeaders.etag) {\n headers['if-none-match'] = headers['if-none-match'] ? `${headers['if-none-match']}, ${this._resHeaders.etag}` : this._resHeaders.etag;\n }\n\n // Clients MAY issue simple (non-subrange) GET requests with either weak validators or strong validators. Clients MUST NOT use weak validators in other forms of request.\n var forbidsWeakValidators = headers['accept-ranges'] || headers['if-match'] || headers['if-unmodified-since'] || this._method && this._method != 'GET';\n\n /* SHOULD send the Last-Modified value in non-subrange cache validation requests (using If-Modified-Since) if only a Last-Modified value has been provided by the origin server.\n Note: This implementation does not understand partial responses (206) */\n if (forbidsWeakValidators) {\n delete headers['if-modified-since'];\n\n if (headers['if-none-match']) {\n var etags = headers['if-none-match'].split(/,/).filter(function (etag) {\n return !/^\\s*W\\//.test(etag);\n });\n if (!etags.length) {\n delete headers['if-none-match'];\n } else {\n headers['if-none-match'] = etags.join(',').trim();\n }\n }\n } else if (this._resHeaders['last-modified'] && !headers['if-modified-since']) {\n headers['if-modified-since'] = this._resHeaders['last-modified'];\n }\n\n return headers;\n };\n\n /**\n * Creates new CachePolicy with information combined from the previews response,\n * and the new revalidation response.\n *\n * Returns {policy, modified} where modified is a boolean indicating\n * whether the response body has been modified, and old cached body can't be used.\n *\n * @return {Object} {policy: CachePolicy, modified: Boolean}\n */\n\n\n CachePolicy.prototype.revalidatedPolicy = function revalidatedPolicy(request, response) {\n this._assertRequestHasHeaders(request);\n if (!response || !response.headers) {\n throw Error(\"Response headers missing\");\n }\n\n // These aren't going to be supported exactly, since one CachePolicy object\n // doesn't know about all the other cached objects.\n var matches = false;\n if (response.status !== undefined && response.status != 304) {\n matches = false;\n } else if (response.headers.etag && !/^\\s*W\\//.test(response.headers.etag)) {\n // \"All of the stored responses with the same strong validator are selected.\n // If none of the stored responses contain the same strong validator,\n // then the cache MUST NOT use the new response to update any stored responses.\"\n matches = this._resHeaders.etag && this._resHeaders.etag.replace(/^\\s*W\\//, '') === response.headers.etag;\n } else if (this._resHeaders.etag && response.headers.etag) {\n // \"If the new response contains a weak validator and that validator corresponds\n // to one of the cache's stored responses,\n // then the most recent of those matching stored responses is selected for update.\"\n matches = this._resHeaders.etag.replace(/^\\s*W\\//, '') === response.headers.etag.replace(/^\\s*W\\//, '');\n } else if (this._resHeaders['last-modified']) {\n matches = this._resHeaders['last-modified'] === response.headers['last-modified'];\n } else {\n // If the new response does not include any form of validator (such as in the case where\n // a client generates an If-Modified-Since request from a source other than the Last-Modified\n // response header field), and there is only one stored response, and that stored response also\n // lacks a validator, then that stored response is selected for update.\n if (!this._resHeaders.etag && !this._resHeaders['last-modified'] && !response.headers.etag && !response.headers['last-modified']) {\n matches = true;\n }\n }\n\n if (!matches) {\n return {\n policy: new this.constructor(request, response),\n modified: true\n };\n }\n\n // use other header fields provided in the 304 (Not Modified) response to replace all instances\n // of the corresponding header fields in the stored response.\n var headers = {};\n for (var k in this._resHeaders) {\n headers[k] = k in response.headers && !excludedFromRevalidationUpdate[k] ? response.headers[k] : this._resHeaders[k];\n }\n\n var newResponse = Object.assign({}, response, {\n status: this._status,\n method: this._method,\n headers\n });\n return {\n policy: new this.constructor(request, newResponse),\n modified: false\n };\n };\n\n return CachePolicy;\n}();","var Readable = require('readable-stream').Readable\nvar inherits = require('inherits')\n\nmodule.exports = from2\n\nfrom2.ctor = ctor\nfrom2.obj = obj\n\nvar Proto = ctor()\n\nfunction toFunction(list) {\n list = list.slice()\n return function (_, cb) {\n var err = null\n var item = list.length ? list.shift() : null\n if (item instanceof Error) {\n err = item\n item = null\n }\n\n cb(err, item)\n }\n}\n\nfunction from2(opts, read) {\n if (typeof opts !== 'object' || Array.isArray(opts)) {\n read = opts\n opts = {}\n }\n\n var rs = new Proto(opts)\n rs._from = Array.isArray(read) ? toFunction(read) : (read || noop)\n return rs\n}\n\nfunction ctor(opts, read) {\n if (typeof opts === 'function') {\n read = opts\n opts = {}\n }\n\n opts = defaults(opts)\n\n inherits(Class, Readable)\n function Class(override) {\n if (!(this instanceof Class)) return new Class(override)\n this._reading = false\n this._callback = check\n this.destroyed = false\n Readable.call(this, override || opts)\n\n var self = this\n var hwm = this._readableState.highWaterMark\n\n function check(err, data) {\n if (self.destroyed) return\n if (err) return self.destroy(err)\n if (data === null) return self.push(null)\n self._reading = false\n if (self.push(data)) self._read(hwm)\n }\n }\n\n Class.prototype._from = read || noop\n Class.prototype._read = function(size) {\n if (this._reading || this.destroyed) return\n this._reading = true\n this._from(size, this._callback)\n }\n\n Class.prototype.destroy = function(err) {\n if (this.destroyed) return\n this.destroyed = true\n\n var self = this\n process.nextTick(function() {\n if (err) self.emit('error', err)\n self.emit('close')\n })\n }\n\n return Class\n}\n\nfunction obj(opts, read) {\n if (typeof opts === 'function' || Array.isArray(opts)) {\n read = opts\n opts = {}\n }\n\n opts = defaults(opts)\n opts.objectMode = true\n opts.highWaterMark = 16\n\n return from2(opts, read)\n}\n\nfunction noop () {}\n\nfunction defaults(opts) {\n opts = opts || {}\n return opts\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst util = require(\"util\");\nconst toString = Object.prototype.toString;\nconst isOfType = (type) => (value) => typeof value === type; // tslint:disable-line:strict-type-predicates\nconst getObjectType = (value) => {\n const objectName = toString.call(value).slice(8, -1);\n if (objectName) {\n return objectName;\n }\n return null;\n};\nconst isObjectOfType = (typeName) => (value) => {\n return getObjectType(value) === typeName;\n};\nfunction is(value) {\n if (value === null) {\n return \"null\" /* null */;\n }\n if (value === true || value === false) {\n return \"boolean\" /* boolean */;\n }\n const type = typeof value;\n if (type === 'undefined') {\n return \"undefined\" /* undefined */;\n }\n if (type === 'string') {\n return \"string\" /* string */;\n }\n if (type === 'number') {\n return \"number\" /* number */;\n }\n if (type === 'symbol') {\n return \"symbol\" /* symbol */;\n }\n if (is.function_(value)) {\n return \"Function\" /* Function */;\n }\n if (Array.isArray(value)) {\n return \"Array\" /* Array */;\n }\n if (Buffer.isBuffer(value)) {\n return \"Buffer\" /* Buffer */;\n }\n const tagType = getObjectType(value);\n if (tagType) {\n return tagType;\n }\n if (value instanceof String || value instanceof Boolean || value instanceof Number) {\n throw new TypeError('Please don\\'t use object wrappers for primitive types');\n }\n return \"Object\" /* Object */;\n}\n(function (is) {\n const isObject = (value) => typeof value === 'object';\n // tslint:disable:variable-name\n is.undefined = isOfType('undefined');\n is.string = isOfType('string');\n is.number = isOfType('number');\n is.function_ = isOfType('function');\n is.null_ = (value) => value === null;\n is.class_ = (value) => is.function_(value) && value.toString().startsWith('class ');\n is.boolean = (value) => value === true || value === false;\n // tslint:enable:variable-name\n is.symbol = isOfType('symbol');\n is.array = Array.isArray;\n is.buffer = Buffer.isBuffer;\n is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value);\n is.object = (value) => !is.nullOrUndefined(value) && (is.function_(value) || isObject(value));\n is.iterable = (value) => !is.nullOrUndefined(value) && is.function_(value[Symbol.iterator]);\n is.generator = (value) => is.iterable(value) && is.function_(value.next) && is.function_(value.throw);\n is.nativePromise = isObjectOfType(\"Promise\" /* Promise */);\n const hasPromiseAPI = (value) => !is.null_(value) &&\n isObject(value) &&\n is.function_(value.then) &&\n is.function_(value.catch);\n is.promise = (value) => is.nativePromise(value) || hasPromiseAPI(value);\n // TODO: Change to use `isObjectOfType` once Node.js 6 or higher is targeted\n const isFunctionOfType = (type) => (value) => is.function_(value) && is.function_(value.constructor) && value.constructor.name === type;\n is.generatorFunction = isFunctionOfType('GeneratorFunction');\n is.asyncFunction = isFunctionOfType('AsyncFunction');\n is.boundFunction = (value) => is.function_(value) && !value.hasOwnProperty('prototype');\n is.regExp = isObjectOfType(\"RegExp\" /* RegExp */);\n is.date = isObjectOfType(\"Date\" /* Date */);\n is.error = isObjectOfType(\"Error\" /* Error */);\n is.map = isObjectOfType(\"Map\" /* Map */);\n is.set = isObjectOfType(\"Set\" /* Set */);\n is.weakMap = isObjectOfType(\"WeakMap\" /* WeakMap */);\n is.weakSet = isObjectOfType(\"WeakSet\" /* WeakSet */);\n is.int8Array = isObjectOfType(\"Int8Array\" /* Int8Array */);\n is.uint8Array = isObjectOfType(\"Uint8Array\" /* Uint8Array */);\n is.uint8ClampedArray = isObjectOfType(\"Uint8ClampedArray\" /* Uint8ClampedArray */);\n is.int16Array = isObjectOfType(\"Int16Array\" /* Int16Array */);\n is.uint16Array = isObjectOfType(\"Uint16Array\" /* Uint16Array */);\n is.int32Array = isObjectOfType(\"Int32Array\" /* Int32Array */);\n is.uint32Array = isObjectOfType(\"Uint32Array\" /* Uint32Array */);\n is.float32Array = isObjectOfType(\"Float32Array\" /* Float32Array */);\n is.float64Array = isObjectOfType(\"Float64Array\" /* Float64Array */);\n is.arrayBuffer = isObjectOfType(\"ArrayBuffer\" /* ArrayBuffer */);\n is.sharedArrayBuffer = isObjectOfType(\"SharedArrayBuffer\" /* SharedArrayBuffer */);\n is.dataView = isObjectOfType(\"DataView\" /* DataView */);\n // TODO: Remove `object` checks when targeting ES2015 or higher\n // See `Notes`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf\n is.directInstanceOf = (instance, klass) => is.object(instance) && is.object(klass) && Object.getPrototypeOf(instance) === klass.prototype;\n is.truthy = (value) => Boolean(value);\n is.falsy = (value) => !value;\n is.nan = (value) => Number.isNaN(value);\n const primitiveTypes = new Set([\n 'undefined',\n 'string',\n 'number',\n 'boolean',\n 'symbol'\n ]);\n is.primitive = (value) => is.null_(value) || primitiveTypes.has(typeof value);\n is.integer = (value) => Number.isInteger(value);\n is.safeInteger = (value) => Number.isSafeInteger(value);\n is.plainObject = (value) => {\n // From: https://github.com/sindresorhus/is-plain-obj/blob/master/index.js\n let prototype;\n return getObjectType(value) === \"Object\" /* Object */ &&\n (prototype = Object.getPrototypeOf(value), prototype === null || // tslint:disable-line:ban-comma-operator\n prototype === Object.getPrototypeOf({}));\n };\n const typedArrayTypes = new Set([\n \"Int8Array\" /* Int8Array */,\n \"Uint8Array\" /* Uint8Array */,\n \"Uint8ClampedArray\" /* Uint8ClampedArray */,\n \"Int16Array\" /* Int16Array */,\n \"Uint16Array\" /* Uint16Array */,\n \"Int32Array\" /* Int32Array */,\n \"Uint32Array\" /* Uint32Array */,\n \"Float32Array\" /* Float32Array */,\n \"Float64Array\" /* Float64Array */\n ]);\n is.typedArray = (value) => {\n const objectType = getObjectType(value);\n if (objectType === null) {\n return false;\n }\n return typedArrayTypes.has(objectType);\n };\n const isValidLength = (value) => is.safeInteger(value) && value > -1;\n is.arrayLike = (value) => !is.nullOrUndefined(value) && !is.function_(value) && isValidLength(value.length);\n is.inRange = (value, range) => {\n if (is.number(range)) {\n return value >= Math.min(0, range) && value <= Math.max(range, 0);\n }\n if (is.array(range) && range.length === 2) {\n // TODO: Use spread operator here when targeting Node.js 6 or higher\n return value >= Math.min.apply(null, range) && value <= Math.max.apply(null, range);\n }\n throw new TypeError(`Invalid range: ${util.inspect(range)}`);\n };\n const NODE_TYPE_ELEMENT = 1;\n const DOM_PROPERTIES_TO_CHECK = [\n 'innerHTML',\n 'ownerDocument',\n 'style',\n 'attributes',\n 'nodeValue'\n ];\n is.domElement = (value) => is.object(value) && value.nodeType === NODE_TYPE_ELEMENT && is.string(value.nodeName) &&\n !is.plainObject(value) && DOM_PROPERTIES_TO_CHECK.every(property => property in value);\n is.nodeStream = (value) => !is.nullOrUndefined(value) && isObject(value) && is.function_(value.pipe);\n is.infinite = (value) => value === Infinity || value === -Infinity;\n const isAbsoluteMod2 = (value) => (rem) => is.integer(rem) && Math.abs(rem % 2) === value;\n is.even = isAbsoluteMod2(0);\n is.odd = isAbsoluteMod2(1);\n const isWhiteSpaceString = (value) => is.string(value) && /\\S/.test(value) === false;\n const isEmptyStringOrArray = (value) => (is.string(value) || is.array(value)) && value.length === 0;\n const isEmptyObject = (value) => !is.map(value) && !is.set(value) && is.object(value) && Object.keys(value).length === 0;\n const isEmptyMapOrSet = (value) => (is.map(value) || is.set(value)) && value.size === 0;\n is.empty = (value) => is.falsy(value) || isEmptyStringOrArray(value) || isEmptyObject(value) || isEmptyMapOrSet(value);\n is.emptyOrWhitespace = (value) => is.empty(value) || isWhiteSpaceString(value);\n const predicateOnArray = (method, predicate, args) => {\n // `args` is the calling function's \"arguments object\".\n // We have to do it this way to keep node v4 support.\n // So here we convert it to an array and slice off the first item.\n const values = Array.prototype.slice.call(args, 1);\n if (is.function_(predicate) === false) {\n throw new TypeError(`Invalid predicate: ${util.inspect(predicate)}`);\n }\n if (values.length === 0) {\n throw new TypeError('Invalid number of values');\n }\n return method.call(values, predicate);\n };\n function any(predicate) {\n return predicateOnArray(Array.prototype.some, predicate, arguments);\n }\n is.any = any;\n function all(predicate) {\n return predicateOnArray(Array.prototype.every, predicate, arguments);\n }\n is.all = all;\n // tslint:enable:only-arrow-functions no-function-expression\n})(is || (is = {}));\n// Some few keywords are reserved, but we'll populate them for Node.js users\n// See https://github.com/Microsoft/TypeScript/issues/2536\nObject.defineProperties(is, {\n class: {\n value: is.class_\n },\n function: {\n value: is.function_\n },\n null: {\n value: is.null_\n }\n});\nexports.default = is;\n// For CommonJS default export support\nmodule.exports = is;\nmodule.exports.default = is;\n","'use strict';\nconst EventEmitter = require('events');\nconst http = require('http');\nconst https = require('https');\nconst PassThrough = require('stream').PassThrough;\nconst Transform = require('stream').Transform;\nconst urlLib = require('url');\nconst fs = require('fs');\nconst querystring = require('querystring');\nconst CacheableRequest = require('cacheable-request');\nconst duplexer3 = require('duplexer3');\nconst intoStream = require('into-stream');\nconst is = require('@sindresorhus/is');\nconst getStream = require('get-stream');\nconst timedOut = require('timed-out');\nconst urlParseLax = require('url-parse-lax');\nconst urlToOptions = require('url-to-options');\nconst lowercaseKeys = require('lowercase-keys');\nconst decompressResponse = require('decompress-response');\nconst mimicResponse = require('mimic-response');\nconst isRetryAllowed = require('is-retry-allowed');\nconst isURL = require('isurl');\nconst PCancelable = require('p-cancelable');\nconst pTimeout = require('p-timeout');\nconst pify = require('pify');\nconst Buffer = require('safe-buffer').Buffer;\nconst pkg = require('./package.json');\nconst errors = require('./errors');\n\nconst getMethodRedirectCodes = new Set([300, 301, 302, 303, 304, 305, 307, 308]);\nconst allMethodRedirectCodes = new Set([300, 303, 307, 308]);\n\nconst isFormData = body => is.nodeStream(body) && is.function(body.getBoundary);\n\nconst getBodySize = opts => {\n\tconst body = opts.body;\n\n\tif (opts.headers['content-length']) {\n\t\treturn Number(opts.headers['content-length']);\n\t}\n\n\tif (!body && !opts.stream) {\n\t\treturn 0;\n\t}\n\n\tif (is.string(body)) {\n\t\treturn Buffer.byteLength(body);\n\t}\n\n\tif (isFormData(body)) {\n\t\treturn pify(body.getLength.bind(body))();\n\t}\n\n\tif (body instanceof fs.ReadStream) {\n\t\treturn pify(fs.stat)(body.path).then(stat => stat.size);\n\t}\n\n\tif (is.nodeStream(body) && is.buffer(body._buffer)) {\n\t\treturn body._buffer.length;\n\t}\n\n\treturn null;\n};\n\nfunction requestAsEventEmitter(opts) {\n\topts = opts || {};\n\n\tconst ee = new EventEmitter();\n\tconst requestUrl = opts.href || urlLib.resolve(urlLib.format(opts), opts.path);\n\tconst redirects = [];\n\tconst agents = is.object(opts.agent) ? opts.agent : null;\n\tlet retryCount = 0;\n\tlet redirectUrl;\n\tlet uploadBodySize;\n\tlet uploaded = 0;\n\n\tconst get = opts => {\n\t\tif (opts.protocol !== 'http:' && opts.protocol !== 'https:') {\n\t\t\tee.emit('error', new got.UnsupportedProtocolError(opts));\n\t\t\treturn;\n\t\t}\n\n\t\tlet fn = opts.protocol === 'https:' ? https : http;\n\n\t\tif (agents) {\n\t\t\tconst protocolName = opts.protocol === 'https:' ? 'https' : 'http';\n\t\t\topts.agent = agents[protocolName] || opts.agent;\n\t\t}\n\n\t\tif (opts.useElectronNet && process.versions.electron) {\n\t\t\tconst electron = require('electron');\n\t\t\tfn = electron.net || electron.remote.net;\n\t\t}\n\n\t\tlet progressInterval;\n\n\t\tconst cacheableRequest = new CacheableRequest(fn.request, opts.cache);\n\t\tconst cacheReq = cacheableRequest(opts, res => {\n\t\t\tclearInterval(progressInterval);\n\n\t\t\tee.emit('uploadProgress', {\n\t\t\t\tpercent: 1,\n\t\t\t\ttransferred: uploaded,\n\t\t\t\ttotal: uploadBodySize\n\t\t\t});\n\n\t\t\tconst statusCode = res.statusCode;\n\n\t\t\tres.url = redirectUrl || requestUrl;\n\t\t\tres.requestUrl = requestUrl;\n\n\t\t\tconst followRedirect = opts.followRedirect && 'location' in res.headers;\n\t\t\tconst redirectGet = followRedirect && getMethodRedirectCodes.has(statusCode);\n\t\t\tconst redirectAll = followRedirect && allMethodRedirectCodes.has(statusCode);\n\n\t\t\tif (redirectAll || (redirectGet && (opts.method === 'GET' || opts.method === 'HEAD'))) {\n\t\t\t\tres.resume();\n\n\t\t\t\tif (statusCode === 303) {\n\t\t\t\t\t// Server responded with \"see other\", indicating that the resource exists at another location,\n\t\t\t\t\t// and the client should request it from that location via GET or HEAD.\n\t\t\t\t\topts.method = 'GET';\n\t\t\t\t}\n\n\t\t\t\tif (redirects.length >= 10) {\n\t\t\t\t\tee.emit('error', new got.MaxRedirectsError(statusCode, redirects, opts), null, res);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst bufferString = Buffer.from(res.headers.location, 'binary').toString();\n\n\t\t\t\tredirectUrl = urlLib.resolve(urlLib.format(opts), bufferString);\n\n\t\t\t\tredirects.push(redirectUrl);\n\n\t\t\t\tconst redirectOpts = Object.assign({}, opts, urlLib.parse(redirectUrl));\n\n\t\t\t\tee.emit('redirect', res, redirectOpts);\n\n\t\t\t\tget(redirectOpts);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetImmediate(() => {\n\t\t\t\ttry {\n\t\t\t\t\tgetResponse(res, opts, ee, redirects);\n\t\t\t\t} catch (e) {\n\t\t\t\t\tee.emit('error', e);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tcacheReq.on('error', err => {\n\t\t\tif (err instanceof CacheableRequest.RequestError) {\n\t\t\t\tee.emit('error', new got.RequestError(err, opts));\n\t\t\t} else {\n\t\t\t\tee.emit('error', new got.CacheError(err, opts));\n\t\t\t}\n\t\t});\n\n\t\tcacheReq.once('request', req => {\n\t\t\tlet aborted = false;\n\t\t\treq.once('abort', _ => {\n\t\t\t\taborted = true;\n\t\t\t});\n\n\t\t\treq.once('error', err => {\n\t\t\t\tclearInterval(progressInterval);\n\n\t\t\t\tif (aborted) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst backoff = opts.retries(++retryCount, err);\n\n\t\t\t\tif (backoff) {\n\t\t\t\t\tsetTimeout(get, backoff, opts);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tee.emit('error', new got.RequestError(err, opts));\n\t\t\t});\n\n\t\t\tee.once('request', req => {\n\t\t\t\tee.emit('uploadProgress', {\n\t\t\t\t\tpercent: 0,\n\t\t\t\t\ttransferred: 0,\n\t\t\t\t\ttotal: uploadBodySize\n\t\t\t\t});\n\n\t\t\t\tconst socket = req.connection;\n\t\t\t\tif (socket) {\n\t\t\t\t\t// `._connecting` was the old property which was made public in node v6.1.0\n\t\t\t\t\tconst isConnecting = socket.connecting === undefined ? socket._connecting : socket.connecting;\n\n\t\t\t\t\tconst onSocketConnect = () => {\n\t\t\t\t\t\tconst uploadEventFrequency = 150;\n\n\t\t\t\t\t\tprogressInterval = setInterval(() => {\n\t\t\t\t\t\t\tif (socket.destroyed) {\n\t\t\t\t\t\t\t\tclearInterval(progressInterval);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tconst lastUploaded = uploaded;\n\t\t\t\t\t\t\tconst headersSize = req._header ? Buffer.byteLength(req._header) : 0;\n\t\t\t\t\t\t\tuploaded = socket.bytesWritten - headersSize;\n\n\t\t\t\t\t\t\t// Prevent the known issue of `bytesWritten` being larger than body size\n\t\t\t\t\t\t\tif (uploadBodySize && uploaded > uploadBodySize) {\n\t\t\t\t\t\t\t\tuploaded = uploadBodySize;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Don't emit events with unchanged progress and\n\t\t\t\t\t\t\t// prevent last event from being emitted, because\n\t\t\t\t\t\t\t// it's emitted when `response` is emitted\n\t\t\t\t\t\t\tif (uploaded === lastUploaded || uploaded === uploadBodySize) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tee.emit('uploadProgress', {\n\t\t\t\t\t\t\t\tpercent: uploadBodySize ? uploaded / uploadBodySize : 0,\n\t\t\t\t\t\t\t\ttransferred: uploaded,\n\t\t\t\t\t\t\t\ttotal: uploadBodySize\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}, uploadEventFrequency);\n\t\t\t\t\t};\n\n\t\t\t\t\t// Only subscribe to 'connect' event if we're actually connecting a new\n\t\t\t\t\t// socket, otherwise if we're already connected (because this is a\n\t\t\t\t\t// keep-alive connection) do not bother. This is important since we won't\n\t\t\t\t\t// get a 'connect' event for an already connected socket.\n\t\t\t\t\tif (isConnecting) {\n\t\t\t\t\t\tsocket.once('connect', onSocketConnect);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tonSocketConnect();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (opts.gotTimeout) {\n\t\t\t\tclearInterval(progressInterval);\n\t\t\t\ttimedOut(req, opts.gotTimeout);\n\t\t\t}\n\n\t\t\tsetImmediate(() => {\n\t\t\t\tee.emit('request', req);\n\t\t\t});\n\t\t});\n\t};\n\n\tsetImmediate(() => {\n\t\tPromise.resolve(getBodySize(opts))\n\t\t\t.then(size => {\n\t\t\t\tuploadBodySize = size;\n\n\t\t\t\tif (\n\t\t\t\t\tis.undefined(opts.headers['content-length']) &&\n\t\t\t\t\tis.undefined(opts.headers['transfer-encoding']) &&\n\t\t\t\t\tisFormData(opts.body)\n\t\t\t\t) {\n\t\t\t\t\topts.headers['content-length'] = size;\n\t\t\t\t}\n\n\t\t\t\tget(opts);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tee.emit('error', err);\n\t\t\t});\n\t});\n\n\treturn ee;\n}\n\nfunction getResponse(res, opts, ee, redirects) {\n\tconst downloadBodySize = Number(res.headers['content-length']) || null;\n\tlet downloaded = 0;\n\n\tconst progressStream = new Transform({\n\t\ttransform(chunk, encoding, callback) {\n\t\t\tdownloaded += chunk.length;\n\n\t\t\tconst percent = downloadBodySize ? downloaded / downloadBodySize : 0;\n\n\t\t\t// Let flush() be responsible for emitting the last event\n\t\t\tif (percent < 1) {\n\t\t\t\tee.emit('downloadProgress', {\n\t\t\t\t\tpercent,\n\t\t\t\t\ttransferred: downloaded,\n\t\t\t\t\ttotal: downloadBodySize\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcallback(null, chunk);\n\t\t},\n\n\t\tflush(callback) {\n\t\t\tee.emit('downloadProgress', {\n\t\t\t\tpercent: 1,\n\t\t\t\ttransferred: downloaded,\n\t\t\t\ttotal: downloadBodySize\n\t\t\t});\n\n\t\t\tcallback();\n\t\t}\n\t});\n\n\tmimicResponse(res, progressStream);\n\tprogressStream.redirectUrls = redirects;\n\n\tconst response = opts.decompress === true &&\n\t\tis.function(decompressResponse) &&\n\t\topts.method !== 'HEAD' ? decompressResponse(progressStream) : progressStream;\n\n\tif (!opts.decompress && ['gzip', 'deflate'].indexOf(res.headers['content-encoding']) !== -1) {\n\t\topts.encoding = null;\n\t}\n\n\tee.emit('response', response);\n\n\tee.emit('downloadProgress', {\n\t\tpercent: 0,\n\t\ttransferred: 0,\n\t\ttotal: downloadBodySize\n\t});\n\n\tres.pipe(progressStream);\n}\n\nfunction asPromise(opts) {\n\tconst timeoutFn = requestPromise => opts.gotTimeout && opts.gotTimeout.request ?\n\t\tpTimeout(requestPromise, opts.gotTimeout.request, new got.RequestError({message: 'Request timed out', code: 'ETIMEDOUT'}, opts)) :\n\t\trequestPromise;\n\n\tconst proxy = new EventEmitter();\n\n\tconst cancelable = new PCancelable((resolve, reject, onCancel) => {\n\t\tconst ee = requestAsEventEmitter(opts);\n\t\tlet cancelOnRequest = false;\n\n\t\tonCancel(() => {\n\t\t\tcancelOnRequest = true;\n\t\t});\n\n\t\tee.on('request', req => {\n\t\t\tif (cancelOnRequest) {\n\t\t\t\treq.abort();\n\t\t\t}\n\n\t\t\tonCancel(() => {\n\t\t\t\treq.abort();\n\t\t\t});\n\n\t\t\tif (is.nodeStream(opts.body)) {\n\t\t\t\topts.body.pipe(req);\n\t\t\t\topts.body = undefined;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\treq.end(opts.body);\n\t\t});\n\n\t\tee.on('response', res => {\n\t\t\tconst stream = is.null(opts.encoding) ? getStream.buffer(res) : getStream(res, opts);\n\n\t\t\tstream\n\t\t\t\t.catch(err => reject(new got.ReadError(err, opts)))\n\t\t\t\t.then(data => {\n\t\t\t\t\tconst statusCode = res.statusCode;\n\t\t\t\t\tconst limitStatusCode = opts.followRedirect ? 299 : 399;\n\n\t\t\t\t\tres.body = data;\n\n\t\t\t\t\tif (opts.json && res.body) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tres.body = JSON.parse(res.body);\n\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\tif (statusCode >= 200 && statusCode < 300) {\n\t\t\t\t\t\t\t\tthrow new got.ParseError(err, statusCode, opts, data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (opts.throwHttpErrors && statusCode !== 304 && (statusCode < 200 || statusCode > limitStatusCode)) {\n\t\t\t\t\t\tthrow new got.HTTPError(statusCode, res.statusMessage, res.headers, opts);\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(res);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tObject.defineProperty(err, 'response', {value: res});\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\n\t\tee.once('error', reject);\n\t\tee.on('redirect', proxy.emit.bind(proxy, 'redirect'));\n\t\tee.on('uploadProgress', proxy.emit.bind(proxy, 'uploadProgress'));\n\t\tee.on('downloadProgress', proxy.emit.bind(proxy, 'downloadProgress'));\n\t});\n\n\t// Preserve backwards-compatibility\n\t// TODO: Remove this in the next major version\n\tObject.defineProperty(cancelable, 'canceled', {\n\t\tget() {\n\t\t\treturn cancelable.isCanceled;\n\t\t}\n\t});\n\n\tconst promise = timeoutFn(cancelable);\n\n\tpromise.cancel = cancelable.cancel.bind(cancelable);\n\n\tpromise.on = (name, fn) => {\n\t\tproxy.on(name, fn);\n\t\treturn promise;\n\t};\n\n\treturn promise;\n}\n\nfunction asStream(opts) {\n\topts.stream = true;\n\n\tconst input = new PassThrough();\n\tconst output = new PassThrough();\n\tconst proxy = duplexer3(input, output);\n\tlet timeout;\n\n\tif (opts.gotTimeout && opts.gotTimeout.request) {\n\t\ttimeout = setTimeout(() => {\n\t\t\tproxy.emit('error', new got.RequestError({message: 'Request timed out', code: 'ETIMEDOUT'}, opts));\n\t\t}, opts.gotTimeout.request);\n\t}\n\n\tif (opts.json) {\n\t\tthrow new Error('Got can not be used as a stream when the `json` option is used');\n\t}\n\n\tif (opts.body) {\n\t\tproxy.write = () => {\n\t\t\tthrow new Error('Got\\'s stream is not writable when the `body` option is used');\n\t\t};\n\t}\n\n\tconst ee = requestAsEventEmitter(opts);\n\n\tee.on('request', req => {\n\t\tproxy.emit('request', req);\n\n\t\tif (is.nodeStream(opts.body)) {\n\t\t\topts.body.pipe(req);\n\t\t\treturn;\n\t\t}\n\n\t\tif (opts.body) {\n\t\t\treq.end(opts.body);\n\t\t\treturn;\n\t\t}\n\n\t\tif (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {\n\t\t\tinput.pipe(req);\n\t\t\treturn;\n\t\t}\n\n\t\treq.end();\n\t});\n\n\tee.on('response', res => {\n\t\tclearTimeout(timeout);\n\n\t\tconst statusCode = res.statusCode;\n\n\t\tres.on('error', err => {\n\t\t\tproxy.emit('error', new got.ReadError(err, opts));\n\t\t});\n\n\t\tres.pipe(output);\n\n\t\tif (opts.throwHttpErrors && statusCode !== 304 && (statusCode < 200 || statusCode > 299)) {\n\t\t\tproxy.emit('error', new got.HTTPError(statusCode, res.statusMessage, res.headers, opts), null, res);\n\t\t\treturn;\n\t\t}\n\n\t\tproxy.emit('response', res);\n\t});\n\n\tee.on('error', proxy.emit.bind(proxy, 'error'));\n\tee.on('redirect', proxy.emit.bind(proxy, 'redirect'));\n\tee.on('uploadProgress', proxy.emit.bind(proxy, 'uploadProgress'));\n\tee.on('downloadProgress', proxy.emit.bind(proxy, 'downloadProgress'));\n\n\treturn proxy;\n}\n\nfunction normalizeArguments(url, opts) {\n\tif (!is.string(url) && !is.object(url)) {\n\t\tthrow new TypeError(`Parameter \\`url\\` must be a string or object, not ${is(url)}`);\n\t} else if (is.string(url)) {\n\t\turl = url.replace(/^unix:/, 'http://$&');\n\n\t\ttry {\n\t\t\tdecodeURI(url);\n\t\t} catch (err) {\n\t\t\tthrow new Error('Parameter `url` must contain valid UTF-8 character sequences');\n\t\t}\n\n\t\turl = urlParseLax(url);\n\t\tif (url.auth) {\n\t\t\tthrow new Error('Basic authentication must be done with the `auth` option');\n\t\t}\n\t} else if (isURL.lenient(url)) {\n\t\turl = urlToOptions(url);\n\t}\n\n\topts = Object.assign(\n\t\t{\n\t\t\tpath: '',\n\t\t\tretries: 2,\n\t\t\tcache: false,\n\t\t\tdecompress: true,\n\t\t\tuseElectronNet: false,\n\t\t\tthrowHttpErrors: true\n\t\t},\n\t\turl,\n\t\t{\n\t\t\tprotocol: url.protocol || 'http:' // Override both null/undefined with default protocol\n\t\t},\n\t\topts\n\t);\n\n\tconst headers = lowercaseKeys(opts.headers);\n\tfor (const key of Object.keys(headers)) {\n\t\tif (is.nullOrUndefined(headers[key])) {\n\t\t\tdelete headers[key];\n\t\t}\n\t}\n\n\topts.headers = Object.assign({\n\t\t'user-agent': `${pkg.name}/${pkg.version} (https://github.com/sindresorhus/got)`\n\t}, headers);\n\n\tif (opts.decompress && is.undefined(opts.headers['accept-encoding'])) {\n\t\topts.headers['accept-encoding'] = 'gzip, deflate';\n\t}\n\n\tconst query = opts.query;\n\n\tif (query) {\n\t\tif (!is.string(query)) {\n\t\t\topts.query = querystring.stringify(query);\n\t\t}\n\n\t\topts.path = `${opts.path.split('?')[0]}?${opts.query}`;\n\t\tdelete opts.query;\n\t}\n\n\tif (opts.json && is.undefined(opts.headers.accept)) {\n\t\topts.headers.accept = 'application/json';\n\t}\n\n\tconst body = opts.body;\n\tif (is.nullOrUndefined(body)) {\n\t\topts.method = (opts.method || 'GET').toUpperCase();\n\t} else {\n\t\tconst headers = opts.headers;\n\t\tif (!is.nodeStream(body) && !is.string(body) && !is.buffer(body) && !(opts.form || opts.json)) {\n\t\t\tthrow new TypeError('The `body` option must be a stream.Readable, string, Buffer or plain Object');\n\t\t}\n\n\t\tconst canBodyBeStringified = is.plainObject(body) || is.array(body);\n\t\tif ((opts.form || opts.json) && !canBodyBeStringified) {\n\t\t\tthrow new TypeError('The `body` option must be a plain Object or Array when the `form` or `json` option is used');\n\t\t}\n\n\t\tif (isFormData(body)) {\n\t\t\t// Special case for https://github.com/form-data/form-data\n\t\t\theaders['content-type'] = headers['content-type'] || `multipart/form-data; boundary=${body.getBoundary()}`;\n\t\t} else if (opts.form && canBodyBeStringified) {\n\t\t\theaders['content-type'] = headers['content-type'] || 'application/x-www-form-urlencoded';\n\t\t\topts.body = querystring.stringify(body);\n\t\t} else if (opts.json && canBodyBeStringified) {\n\t\t\theaders['content-type'] = headers['content-type'] || 'application/json';\n\t\t\topts.body = JSON.stringify(body);\n\t\t}\n\n\t\tif (is.undefined(headers['content-length']) && is.undefined(headers['transfer-encoding']) && !is.nodeStream(body)) {\n\t\t\tconst length = is.string(opts.body) ? Buffer.byteLength(opts.body) : opts.body.length;\n\t\t\theaders['content-length'] = length;\n\t\t}\n\n\t\t// Convert buffer to stream to receive upload progress events\n\t\t// see https://github.com/sindresorhus/got/pull/322\n\t\tif (is.buffer(body)) {\n\t\t\topts.body = intoStream(body);\n\t\t\topts.body._buffer = body;\n\t\t}\n\n\t\topts.method = (opts.method || 'POST').toUpperCase();\n\t}\n\n\tif (opts.hostname === 'unix') {\n\t\tconst matches = /(.+?):(.+)/.exec(opts.path);\n\n\t\tif (matches) {\n\t\t\topts.socketPath = matches[1];\n\t\t\topts.path = matches[2];\n\t\t\topts.host = null;\n\t\t}\n\t}\n\n\tif (!is.function(opts.retries)) {\n\t\tconst retries = opts.retries;\n\n\t\topts.retries = (iter, err) => {\n\t\t\tif (iter > retries || !isRetryAllowed(err)) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\tconst noise = Math.random() * 100;\n\n\t\t\treturn ((1 << iter) * 1000) + noise;\n\t\t};\n\t}\n\n\tif (is.undefined(opts.followRedirect)) {\n\t\topts.followRedirect = true;\n\t}\n\n\tif (opts.timeout) {\n\t\tif (is.number(opts.timeout)) {\n\t\t\topts.gotTimeout = {request: opts.timeout};\n\t\t} else {\n\t\t\topts.gotTimeout = opts.timeout;\n\t\t}\n\t\tdelete opts.timeout;\n\t}\n\n\treturn opts;\n}\n\nfunction got(url, opts) {\n\ttry {\n\t\tconst normalizedArgs = normalizeArguments(url, opts);\n\n\t\tif (normalizedArgs.stream) {\n\t\t\treturn asStream(normalizedArgs);\n\t\t}\n\n\t\treturn asPromise(normalizedArgs);\n\t} catch (err) {\n\t\treturn Promise.reject(err);\n\t}\n}\n\ngot.stream = (url, opts) => asStream(normalizeArguments(url, opts));\n\nconst methods = [\n\t'get',\n\t'post',\n\t'put',\n\t'patch',\n\t'head',\n\t'delete'\n];\n\nfor (const method of methods) {\n\tgot[method] = (url, opts) => got(url, Object.assign({}, opts, {method}));\n\tgot.stream[method] = (url, opts) => got.stream(url, Object.assign({}, opts, {method}));\n}\n\nObject.assign(got, errors);\n\nmodule.exports = got;\n","'use strict';\n\nconst got = require('got');\nconst publicIp = require('public-ip');\nconst pAny = require('p-any');\nconst pTimeout = require('p-timeout');\n\nconst defaults = {\n\ttimeout: 5000,\n\tversion: 'v4'\n};\n\nfunction appleCheck(options) {\n\treturn got('http://captive.apple.com/hotspot-detect.html', {\n\t\tfamily: options.version === 'v4' ? 4 : 6,\n\t\theaders: {'User-Agent': 'CaptiveNetworkSupport/1.0 wispr'}\n\t}).then(res => /Success/.test(res.body || '') || Promise.reject());\n}\n\nmodule.exports = options => {\n\toptions = Object.assign({}, defaults, options);\n\n\tconst p = pAny([\n\t\tpublicIp[options.version]().then(() => true),\n\t\tpublicIp[options.version]({https: true}).then(() => true),\n\t\tappleCheck(options)\n\t]);\n\n\treturn pTimeout(p, options.timeout).catch(() => false);\n};\n","import isLinkWorking from \"is-link-working\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverValid from \"semver/functions/valid\"\nimport { getExecOutput } from \"@actions/exec\"\nimport { info } from \"../io/io\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort()\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isLinkWorking(url))) {\n return [version, url]\n }\n }\n\n if (!versions.has(version)) {\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n }\n\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isLinkWorking(url))) {\n return [specificVersion, url]\n }\n }\n\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return version\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (\n typeof givenVersion === \"string\" &&\n typeof targetVersion === \"string\" &&\n givenVersion !== \"\" &&\n targetVersion !== \"\"\n ) {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","import { Inputs, Opts } from \"./main\"\nimport { isArch } from \"./utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nconst DefaultVersions: Record = {\n llvm: \"13.0.0\", // https://github.com/llvm/llvm-project/releases\n clangtidy: \"13.0.0\",\n clangformat: \"13.0.0\",\n ninja: \"1.11.0\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.23.2\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.1\", // https://pypi.org/project/gcovr/\n conan: \"1.50.0\", // https://github.com/conan-io/conan/releases\n meson: \"0.63.0\", // https://github.com/mesonbuild/meson/releases\n kcov: \"40\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.14.0\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.9.3-1\" : \"1.9.4\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: \"11\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nconst DefaultUbuntuVersion: Record> = {\n llvm: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 20: \"5.1\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"0.63.0\",\n 18: \"0.61.4\",\n },\n doxygen: {\n 20: \"1.9.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"40\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (useDefault(version, name)) {\n // choose the default linux version based on ubuntu version\n if (process.platform === \"linux\" && osVersion !== null && name in DefaultUbuntuVersion) {\n const osVersionMaj = osVersion[0]\n const newest = parseInt(Object.keys(DefaultUbuntuVersion[name])[0], 10) // newest version with the default\n if (osVersionMaj >= newest) {\n return DefaultUbuntuVersion[name][osVersionMaj]\n } else {\n return \"\"\n }\n }\n // anything else\n return DefaultVersions[name]\n } else {\n return version ?? \"\"\n }\n}\n\nfunction useDefault(version: string | undefined, name: string) {\n return version === \"true\" || (version === undefined && name in DefaultVersions)\n}\n\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n for (let i = 0; i < tools.length; i++) {\n // tools excluding i_tool\n const otherTools = tools.slice(0, i).concat(tools.slice(i + 1))\n\n const tool = tools[i]\n\n if (!useDefault(opts[tool], tool)) {\n for (let i_other = 0; i_other < otherTools.length; i_other++) {\n const otherTool = otherTools[i_other]\n const useDefaultOtherTool = useDefault(opts[otherTool], otherTools[i_other])\n if (useDefaultOtherTool) {\n // use the same version if the other tool was requested with the default\n opts[otherTool] = opts[tool]\n } else if (opts[tool] !== opts[otherTools[i_other]]) {\n // error if different from the other given versions\n return false\n }\n }\n }\n }\n return true\n}\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../env/addEnv\"\nimport { setupPython } from \"../../python/python\"\nimport { isBinUptoDate } from \"./version\"\nimport { join } from \"path\"\nimport { getVersion } from \"../../default_versions\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { setupDnfPack } from \"./setupDnfPack\"\n\nlet python: string | undefined\nlet binDir: string | undefined\n\nlet tried = false\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(name: string, version?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pip`)\n\n // setup python and pip if needed\n if (python === undefined) {\n if (which.sync(\"python3\", { nothrow: true }) !== null) {\n python = \"python3\"\n } else if (which.sync(\"python\", { nothrow: true }) !== null && (await isBinUptoDate(\"python\", \"3.0.0\"))) {\n python = \"python\"\n } else {\n info(\"python3 was not found. Installing python\")\n await setupPython(getVersion(\"python\", undefined), \"\", process.arch)\n // try again\n if (tried) {\n throw new Error(\"Failed to install python\")\n }\n tried = true\n return setupPipPack(name, version)\n }\n if (process.platform === \"win32\") {\n // downgrade pip on Windows\n // https://github.com/pypa/pip/issues/10875#issuecomment-1030293005\n execa.sync(python, [\"-m\", \"pip\", \"install\", \"-U\", \"pip==21.3.1\"], { stdio: \"inherit\" })\n } else if (process.platform === \"linux\") {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n if (isArch()) {\n setupPacmanPack(\"python-pip\")\n } else if (hasDnf()) {\n setupDnfPack(\"python3-pip\")\n } else if (isUbuntu()) {\n await setupAptPack(\"python3-pip\")\n }\n }\n\n // install wheel (required for Conan, Meson, etc.)\n execa.sync(python, [\"-m\", \"pip\", \"install\", \"-U\", \"wheel\"], { stdio: \"inherit\" })\n }\n\n execa.sync(python, [\"-m\", \"pip\", \"install\", version !== undefined && version !== \"\" ? `${name}==${version}` : name], {\n stdio: \"inherit\",\n })\n\n if (binDir === undefined) {\n if (process.platform === \"linux\") {\n binDir = \"/home/runner/.local/bin/\"\n } else if (process.platform === \"darwin\") {\n binDir = \"/usr/local/bin/\"\n } else {\n // windows or others\n try {\n binDir = join(\n (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim(),\n \"Scripts\"\n )\n } catch {\n binDir = join(\n (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim(),\n \"Scripts\"\n )\n }\n }\n info(`${binDir} to PATH`)\n await addPath(binDir)\n }\n\n return { binDir }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"graphviz\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"graphviz\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { notice } from \"../utils/io/io\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { getVersion } from \"../default_versions\"\nimport { existsSync } from \"fs\"\nimport { join } from \"path\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"doxygen.install\", version)\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n const installationInfo = setupBrewPack(\"doxygen\", undefined)\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"doxygen\", version)\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack(\"doxygen\", version)\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n await setupAptPack(\"libclang-cpp9\")\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack(\"doxygen\", undefined)\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]) {\n if (existsSync(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { error } from \"../utils/io/io\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import { addPath, addEnv } from \"../utils/env/addEnv\"\nimport { existsSync } from \"fs\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport semverMajor from \"semver/functions/major\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport path from \"path\"\nimport { warning, info } from \"../utils/io/io\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { addBinExtension } from \"extension-tools\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"12\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"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\" },\n \"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\" },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"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\" },\n \"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\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"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\" },\n \"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\" },\n \"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\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = setupDnfPack(\"gcc\", version)\n setupDnfPack(\"gcc-c++\", version)\n setupDnfPack(\"libstdc++-devel\", undefined)\n } else if (isUbuntu()) {\n await setupAptPack(\"gcc\", version, [\"ppa:ubuntu-toolchain-r/test\"])\n installationInfo = await setupAptPack(\"g++\", version, [])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack(\"gcc-multilib\", version, [\"ppa:ubuntu-toolchain-r/test\"])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && existsSync(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && existsSync(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (existsSync(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string) {\n const promises: Promise[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addBinExtension(`${binDir}/gcc`)), addEnv(\"CXX\", addBinExtension(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`)\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`)\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`)\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`)\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`)\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`)\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`)\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`)\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (ciDetect() === \"github-actions\") {\n addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nfunction addGccLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"gcc_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import * as path from \"path\"\nimport semverLte from \"semver/functions/lte\"\nimport semverMajor from \"semver/functions/major\"\nimport isLinkWorking from \"is-link-working\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport {\n getSpecificVersionAndUrl,\n getSpecificVersions,\n getVersions,\n semverCoerceIfInvalid,\n} from \"../utils/setup/version\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addBinExtension } from \"extension-tools\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setOutput } from \"@actions/core\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { info, warning } from \"../utils/io/io\"\nimport { existsSync } from \"fs\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { getVersion } from \"../default_versions\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n//================================================\n// Version\n//================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n])\n\n//================================================\n// URL\n//================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING: Set = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n])\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"14.0.0\"\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let ubuntu: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n ubuntu = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n ubuntu = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n ubuntu = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${ubuntu} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n const suffix = version === \"5.0.0\" ? `-linux-x86_64${ubuntu}.tar.xz` : `-x86_64-linux-gnu${ubuntu}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\"])\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isLinkWorking(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\n//================================================\n// Exports\n//================================================\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nasync function getLLVMPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n setOutput(\"version\", specificVersion)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addBinExtension(\"clang\"),\n extractFunction:\n platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await _setupLLVM(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir, version)\n return installationInfo\n}\n\nlet didInit = false\nasync function _setupLLVM(version: string, setupDir: string, arch: string) {\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n if (!didInit) {\n if (process.platform === \"linux\") {\n // install llvm build dependencies\n await setupGcc(getVersion(\"gcc\", undefined), \"\", arch) // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first\n if (isArch()) {\n // setupPacmanPack(\"ncurses\")\n // TODO: install libtinfo ?\n } else if (isUbuntu()) {\n await setupAptPack(\"libtinfo-dev\")\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n return installationInfo\n}\n\nexport async function activateLLVM(directory: string, versionGiven: string) {\n const version = semverCoerceIfInvalid(versionGiven)\n\n const lib = path.join(directory, \"lib\")\n\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const promises = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${lib}${path.delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${lib}${path.delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addBinExtension(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addBinExtension(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // windows builds fail with llvm's CPATH\n if (process.platform !== \"win32\") {\n const llvmMajor = semverMajor(version)\n if (existsSync(`${directory}/lib/clang/${version}/include`)) {\n promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n } else if (existsSync(`${directory}/lib/clang/${llvmMajor}/include`)) {\n promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n }\n }\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`)\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`)\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`)\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`)\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`)\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`)\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`)\n }\n\n if (ciDetect() === \"github-actions\") {\n addLLVMLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\n/** Setup llvm tools (clang tidy, clang format, etc) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string): Promise {\n if (ciDetect() === \"github-actions\") {\n addLLVMLoggingMatcher()\n }\n return _setupLLVM(version, setupDir, arch)\n}\n\nfunction addLLVMLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"llvm_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n",null,null,"const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/** See https://github.com/ilammy/msvc-dev-cmd#inputs */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n if (uwp == 'true') {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre == 'true') {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, { shell: \"cmd\" }).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd","import { existsSync } from \"fs\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { info } from \"../utils/io/io\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n) {\n if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { vsversion_to_versionnumber, findVcvarsall } from \"msvc-dev-cmd/lib.js\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport path from \"path\"\nimport { existsSync } from \"fs\"\nimport { error, info, warning } from \"../utils/io/io\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (ciDetect() === \"github-actions\") {\n addMSVCLoggingMatcher()\n }\n}\n\nfunction addMSVCLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"msvc_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { addBinExtension } from \"extension-tools\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import execa from \"execa\"\nimport { join } from \"path\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { getVersion } from \"../default_versions\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { info } from \"../utils/io/io\"\nimport { untildifyUser } from \"untildify-user\"\nimport { setupNinja } from \"../ninja/ninja\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addBinExtension(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addBinExtension(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n setupPacmanPack(\"libdwarf\")\n setupPacmanPack(\"libcurl-openssl\")\n } else if (hasDnf()) {\n setupDnfPack(\"libdwarf-devel\")\n setupDnfPack(\"libcurl-devel\")\n } else if (isUbuntu()) {\n await setupAptPack(\"libdw-dev\")\n await setupAptPack(\"libcurl4-openssl-dev\")\n }\n }\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(getVersion(\"cmake\", undefined), join(untildifyUser(\"\"), \"cmake\"), \"\")\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined), join(untildifyUser(\"\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n setupDnfPack(\"binutils\")\n } else if (isUbuntu()) {\n await setupAptPack(\"libbinutils\")\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { getInput, endGroup, startGroup, notice } from \"@actions/core\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupMake } from \"./make/make\"\nimport { setupTask } from \"./task/task\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupLLVM, setupClangTools } from \"./llvm/llvm\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPython } from \"./python/python\"\nimport mri from \"mri\"\nimport { untildifyUser } from \"untildify-user\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport * as timeDelta from \"time-delta\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport * as numerous from \"numerous\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport numerousLocale from \"numerous/locales/en.js\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\n\nimport semverValid from \"semver/functions/valid\"\nimport { getVersion, syncVersions } from \"./default_versions\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { error, info, success, warning } from \"./utils/io/io\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { join } from \"path\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupBazel } from \"./bazel/bazel\"\n\n/** The setup functions */\nconst setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n ccache: setupCcache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangTools,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\n/** The tools that can be installed */\nconst tools: Array = [\n \"nala\",\n \"choco\",\n \"brew\",\n \"python\",\n \"vcpkg\",\n \"bazel\",\n \"cmake\",\n \"ninja\",\n \"conan\",\n \"meson\",\n \"gcovr\",\n \"opencppcoverage\",\n \"ccache\",\n \"doxygen\",\n \"graphviz\",\n \"cppcheck\",\n \"clangtidy\",\n \"clangformat\",\n \"llvm\",\n \"gcc\",\n \"msvc\",\n \"vcvarsall\",\n \"kcov\",\n \"make\",\n \"task\",\n \"sevenzip\",\n]\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\"\n\n// an array of possible inputs\nconst inputs: Array = [\"compiler\", \"architecture\", ...tools]\n\n/** The main entry function */\nexport async function main(args: string[]): Promise {\n if (ciDetect() !== \"github-actions\") {\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n let osVersion: number[] | null = null\n try {\n // get the version if not already done\n osVersion = await ubuntuVersion()\n } catch (err) {\n warning((err as Error).toString())\n }\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n // loop over the tools and run their setup function\n for (const tool of tools) {\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n startGroup(`Installing ${tool} ${version}`)\n try {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(\n getVersion(tool, version, osVersion),\n undefined,\n arch,\n undefined,\n undefined,\n false,\n false\n )\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool) ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n time1 = Date.now()\n try {\n if (maybeCompiler !== undefined) {\n const { compiler, version } = getCompilerInfo(maybeCompiler)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch\n )\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const installationInfo = await setupGcc(getVersion(\"gcc\", version, osVersion), join(setupCppDir, \"gcc\"), arch)\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch\n )\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n } catch (e) {\n error(e as string | Error)\n errorMessages.push(`Failed to install the ${maybeCompiler}`)\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup_cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup_cpp finished\")\n\n if (ciDetect() !== \"github-actions\") {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n }\n>\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: inputs,\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(maybeCompiler: string) {\n const compilerAndMaybeVersion = maybeCompiler.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\nfunction printHelp() {\n 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 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 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--bazel\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--nala\n--sevenzip\n--graphviz\n `)\n}\n\n/** Get an object from github actions */\nfunction maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\n\nfunction getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","import { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nexport async function ubuntuVersion(): Promise {\n if (isUbuntu()) {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack(\"lsb-release\")\n }\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n throw new Error(\"Failed to get the ubuntu major version.\")\n }\n\n return versionSplitted\n } else {\n return null\n }\n}\n",null,null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,"module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","module.exports = () =>\n process.env.GERRIT_PROJECT ? 'gerrit'\n : process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI ? 'azure-pipelines'\n : process.env.BITRISE_IO ? 'bitrise'\n : process.env.BUDDY_WORKSPACE_ID ? 'buddy'\n : process.env.BUILDKITE ? 'buildkite'\n : process.env.CIRRUS_CI ? 'cirrus'\n : process.env.GITLAB_CI ? 'gitlab'\n : process.env.APPVEYOR ? 'appveyor'\n : process.env.CIRCLECI ? 'circle-ci'\n : process.env.SEMAPHORE ? 'semaphore'\n : process.env.DRONE ? 'drone'\n : process.env.DSARI ? 'dsari'\n : process.env.GITHUB_ACTION ? 'github-actions'\n : process.env.TDDIUM ? 'tddium'\n : process.env.SCREWDRIVER ? 'screwdriver'\n : process.env.STRIDER ? 'strider'\n : process.env.TASKCLUSTER_ROOT_URL ? 'taskcluster'\n : process.env.JENKINS_URL ? 'jenkins'\n : process.env['bamboo.buildKey'] ? 'bamboo'\n : process.env.GO_PIPELINE_NAME ? 'gocd'\n : process.env.HUDSON_URL ? 'hudson'\n : process.env.WERCKER ? 'wercker'\n : process.env.NETLIFY ? 'netlify'\n : process.env.NOW_GITHUB_DEPLOYMENT ? 'now-github'\n : process.env.GITLAB_DEPLOYMENT ? 'now-gitlab'\n : process.env.BITBUCKET_DEPLOYMENT ? 'now-bitbucket'\n : process.env.BITBUCKET_BUILD_NUMBER ? 'bitbucket-pipelines'\n : process.env.NOW_BUILDER ? 'now'\n : process.env.VERCEL_GITHUB_DEPLOYMENT ? 'vercel-github'\n : process.env.VERCEL_GITLAB_DEPLOYMENT ? 'vercel-gitlab'\n : process.env.VERCEL_BITBUCKET_DEPLOYMENT ? 'vercel-bitbucket'\n : process.env.VERCEL_URL ? 'vercel'\n : process.env.MAGNUM ? 'magnum'\n : process.env.NEVERCODE ? 'nevercode'\n : process.env.RENDER ? 'render'\n : process.env.SAIL_CI ? 'sail'\n : process.env.SHIPPABLE ? 'shippable'\n : process.env.TEAMCITY_VERSION ? 'teamcity'\n // codeship and a few others\n : process.env.CI_NAME ? process.env.CI_NAME\n // heroku doesn't set envs other than node in a heroku-specific location\n : /\\/\\.heroku\\/node\\/bin\\/node$/.test(process.env.NODE || '') ? 'heroku'\n // test travis after the others, since several CI systems mimic it\n : process.env.TRAVIS ? 'travis-ci'\n // aws CodeBuild/CodePipeline\n : process.env.CODEBUILD_SRC_DIR ? 'aws-codebuild'\n : process.env.CI === 'true' || process.env.CI === '1' ? 'custom'\n // Google Cloud Build - it sets almost nothing\n : process.env.BUILDER_OUTPUT ? 'builder'\n : false\n","import * as core from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\n\nexport function error(err: string | Error) {\n return ciDetect() === \"github-actions\" ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return ciDetect() === \"github-actions\" ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return ciDetect() === \"github-actions\" ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return ciDetect() === \"github-actions\" ? core.info(msg) : console.log(msg)\n}\n",null,null,null,"// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nmodule.exports = {\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: require('./internal/constants').SEMVER_SPEC_VERSION,\n SemVer: require('./classes/semver'),\n compareIdentifiers: require('./internal/identifiers').compareIdentifiers,\n rcompareIdentifiers: require('./internal/identifiers').rcompareIdentifiers,\n parse: require('./functions/parse'),\n valid: require('./functions/valid'),\n clean: require('./functions/clean'),\n inc: require('./functions/inc'),\n diff: require('./functions/diff'),\n major: require('./functions/major'),\n minor: require('./functions/minor'),\n patch: require('./functions/patch'),\n prerelease: require('./functions/prerelease'),\n compare: require('./functions/compare'),\n rcompare: require('./functions/rcompare'),\n compareLoose: require('./functions/compare-loose'),\n compareBuild: require('./functions/compare-build'),\n sort: require('./functions/sort'),\n rsort: require('./functions/rsort'),\n gt: require('./functions/gt'),\n lt: require('./functions/lt'),\n eq: require('./functions/eq'),\n neq: require('./functions/neq'),\n gte: require('./functions/gte'),\n lte: require('./functions/lte'),\n cmp: require('./functions/cmp'),\n coerce: require('./functions/coerce'),\n Comparator: require('./classes/comparator'),\n Range: require('./classes/range'),\n satisfies: require('./functions/satisfies'),\n toComparators: require('./ranges/to-comparators'),\n maxSatisfying: require('./ranges/max-satisfying'),\n minSatisfying: require('./ranges/min-satisfying'),\n minVersion: require('./ranges/min-version'),\n validRange: require('./ranges/valid'),\n outside: require('./ranges/outside'),\n gtr: require('./ranges/gtr'),\n ltr: require('./ranges/ltr'),\n intersects: require('./ranges/intersects'),\n simplifyRange: require('./ranges/simplify'),\n subset: require('./ranges/subset'),\n}\n","const { MAX_SAFE_COMPONENT_LENGTH } = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst createToken = (name, value, isGlobal) => {\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', '\\\\d*[a-zA-Z-][a-zA-Z0-9-]*')\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\nmodule.exports = {\n SEMVER_SPEC_VERSION,\n MAX_LENGTH,\n MAX_SAFE_INTEGER,\n MAX_SAFE_COMPONENT_LENGTH,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about so we always get a consistent\n// obj with keys in a consistent order.\nconst opts = ['includePrerelease', 'loose', 'rtl']\nconst parseOptions = options =>\n !options ? {}\n : typeof options !== 'object' ? { loose: true }\n : opts.filter(k => options[k]).reduce((o, k) => {\n o[k] = true\n return o\n }, {})\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const { MAX_LENGTH } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\nconst SemVer = require('../classes/semver')\n\nconst parseOptions = require('../internal/parse-options')\nconst parse = (version, options) => {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n const r = options.loose ? re[t.LOOSE] : re[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier) => {\n if (typeof (options) === 'string') {\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse')\nconst eq = require('./eq')\n\nconst diff = (version1, version2) => {\n if (eq(version1, version2)) {\n return null\n } else {\n const v1 = parse(version1)\n const v2 = parse(version2)\n const hasPre = v1.prerelease.length || v2.prerelease.length\n const prefix = hasPre ? 'pre' : ''\n const defaultResult = hasPre ? 'prerelease' : ''\n for (const key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\nmodule.exports = diff\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false,\n }\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n const sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n const sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n const sameSemVer = this.semver.version === comp.semver.version\n const differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n const oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<')\n const oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>')\n\n return (\n sameDirectionIncreasing ||\n sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan ||\n oppositeDirectionsGreaterThan\n )\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First, split based on boolean or ||\n this.raw = range\n this.set = range\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${range}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => {\n return comps.join(' ').trim()\n })\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n range = range.trim()\n\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = Object.keys(this.options).join(',')\n const memoKey = `parseRange:${memoOpts}:${range}`\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\nconst replaceTildes = (comp, options) =>\n comp.trim().split(/\\s+/).map((c) => {\n return replaceTilde(c, options)\n }).join(' ')\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\nconst replaceCarets = (comp, options) =>\n comp.trim().split(/\\s+/).map((c) => {\n return replaceCaret(c, options)\n }).join(' ')\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map((c) => {\n return replaceXRange(c, options)\n }).join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp.trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return (`${from} ${to}`).trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","const perf = typeof performance === 'object' && performance &&\n typeof performance.now === 'function' ? performance : Date\n\nconst hasAbortController = typeof AbortController !== 'undefined'\n\n// minimal backwards-compatibility polyfill\nconst AC = hasAbortController ? AbortController : Object.assign(\n class AbortController {\n constructor () { this.signal = new AC.AbortSignal }\n abort () { this.signal.aborted = true }\n },\n { AbortSignal: class AbortSignal { constructor () { this.aborted = false }}}\n)\n\nconst warned = new Set()\nconst deprecatedOption = (opt, instead) => {\n const code = `LRU_CACHE_OPTION_${opt}`\n if (shouldWarn(code)) {\n warn(code, `${opt} option`, `options.${instead}`, LRUCache)\n }\n}\nconst deprecatedMethod = (method, instead) => {\n const code = `LRU_CACHE_METHOD_${method}`\n if (shouldWarn(code)) {\n const { prototype } = LRUCache\n const { get } = Object.getOwnPropertyDescriptor(prototype, method)\n warn(code, `${method} method`, `cache.${instead}()`, get)\n }\n}\nconst deprecatedProperty = (field, instead) => {\n const code = `LRU_CACHE_PROPERTY_${field}`\n if (shouldWarn(code)) {\n const { prototype } = LRUCache\n const { get } = Object.getOwnPropertyDescriptor(prototype, field)\n warn(code, `${field} property`, `cache.${instead}`, get)\n }\n}\n\nconst emitWarning = (...a) => {\n typeof process === 'object' &&\n process &&\n typeof process.emitWarning === 'function'\n ? process.emitWarning(...a)\n : console.error(...a)\n}\n\nconst shouldWarn = code => !warned.has(code)\n\nconst warn = (code, what, instead, fn) => {\n warned.add(code)\n const msg = `The ${what} is deprecated. Please use ${instead} instead.`\n emitWarning(msg, 'DeprecationWarning', code, fn)\n}\n\nconst isPosInt = n => n && n === Math.floor(n) && n > 0 && isFinite(n)\n\n/* istanbul ignore next - This is a little bit ridiculous, tbh.\n * The maximum array length is 2^32-1 or thereabouts on most JS impls.\n * And well before that point, you're caching the entire world, I mean,\n * that's ~32GB of just integers for the next/prev links, plus whatever\n * else to hold that many keys and values. Just filling the memory with\n * zeroes at init time is brutal when you get that big.\n * But why not be complete?\n * Maybe in the future, these limits will have expanded. */\nconst getUintArray = max => !isPosInt(max) ? null\n: max <= Math.pow(2, 8) ? Uint8Array\n: max <= Math.pow(2, 16) ? Uint16Array\n: max <= Math.pow(2, 32) ? Uint32Array\n: max <= Number.MAX_SAFE_INTEGER ? ZeroArray\n: null\n\nclass ZeroArray extends Array {\n constructor (size) {\n super(size)\n this.fill(0)\n }\n}\n\nclass Stack {\n constructor (max) {\n if (max === 0) {\n return []\n }\n const UintArray = getUintArray(max)\n this.heap = new UintArray(max)\n this.length = 0\n }\n push (n) {\n this.heap[this.length++] = n\n }\n pop () {\n return this.heap[--this.length]\n }\n}\n\nclass LRUCache {\n constructor (options = {}) {\n const {\n max = 0,\n ttl,\n ttlResolution = 1,\n ttlAutopurge,\n updateAgeOnGet,\n updateAgeOnHas,\n allowStale,\n dispose,\n disposeAfter,\n noDisposeOnSet,\n noUpdateTTL,\n maxSize = 0,\n sizeCalculation,\n fetchMethod,\n } = options\n\n // deprecated options, don't trigger a warning for getting them if\n // the thing being passed in is another LRUCache we're copying.\n const {\n length,\n maxAge,\n stale,\n } = options instanceof LRUCache ? {} : options\n\n if (max !== 0 && !isPosInt(max)) {\n throw new TypeError('max option must be a nonnegative integer')\n }\n\n const UintArray = max ? getUintArray(max) : Array\n if (!UintArray) {\n throw new Error('invalid max value: ' + max)\n }\n\n this.max = max\n this.maxSize = maxSize\n this.sizeCalculation = sizeCalculation || length\n if (this.sizeCalculation) {\n if (!this.maxSize) {\n throw new TypeError('cannot set sizeCalculation without setting maxSize')\n }\n if (typeof this.sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation set to non-function')\n }\n }\n\n this.fetchMethod = fetchMethod || null\n if (this.fetchMethod && typeof this.fetchMethod !== 'function') {\n throw new TypeError('fetchMethod must be a function if specified')\n }\n\n this.keyMap = new Map()\n this.keyList = new Array(max).fill(null)\n this.valList = new Array(max).fill(null)\n this.next = new UintArray(max)\n this.prev = new UintArray(max)\n this.head = 0\n this.tail = 0\n this.free = new Stack(max)\n this.initialFill = 1\n this.size = 0\n\n if (typeof dispose === 'function') {\n this.dispose = dispose\n }\n if (typeof disposeAfter === 'function') {\n this.disposeAfter = disposeAfter\n this.disposed = []\n } else {\n this.disposeAfter = null\n this.disposed = null\n }\n this.noDisposeOnSet = !!noDisposeOnSet\n this.noUpdateTTL = !!noUpdateTTL\n\n if (this.maxSize !== 0) {\n if (!isPosInt(this.maxSize)) {\n throw new TypeError('maxSize must be a positive integer if specified')\n }\n this.initializeSizeTracking()\n }\n\n this.allowStale = !!allowStale || !!stale\n this.updateAgeOnGet = !!updateAgeOnGet\n this.updateAgeOnHas = !!updateAgeOnHas\n this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0\n ? ttlResolution : 1\n this.ttlAutopurge = !!ttlAutopurge\n this.ttl = ttl || maxAge || 0\n if (this.ttl) {\n if (!isPosInt(this.ttl)) {\n throw new TypeError('ttl must be a positive integer if specified')\n }\n this.initializeTTLTracking()\n }\n\n // do not allow completely unbounded caches\n if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {\n throw new TypeError('At least one of max, maxSize, or ttl is required')\n }\n if (!this.ttlAutopurge && !this.max && !this.maxSize) {\n const code = 'LRU_CACHE_UNBOUNDED'\n if (shouldWarn(code)) {\n warned.add(code)\n const msg = 'TTL caching without ttlAutopurge, max, or maxSize can ' +\n 'result in unbounded memory consumption.'\n emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache)\n }\n }\n\n if (stale) {\n deprecatedOption('stale', 'allowStale')\n }\n if (maxAge) {\n deprecatedOption('maxAge', 'ttl')\n }\n if (length) {\n deprecatedOption('length', 'sizeCalculation')\n }\n }\n\n getRemainingTTL (key) {\n return this.has(key, { updateAgeOnHas: false }) ? Infinity : 0\n }\n\n initializeTTLTracking () {\n this.ttls = new ZeroArray(this.max)\n this.starts = new ZeroArray(this.max)\n\n this.setItemTTL = (index, ttl) => {\n this.starts[index] = ttl !== 0 ? perf.now() : 0\n this.ttls[index] = ttl\n if (ttl !== 0 && this.ttlAutopurge) {\n const t = setTimeout(() => {\n if (this.isStale(index)) {\n this.delete(this.keyList[index])\n }\n }, ttl + 1)\n /* istanbul ignore else - unref() not supported on all platforms */\n if (t.unref) {\n t.unref()\n }\n }\n }\n\n this.updateItemAge = (index) => {\n this.starts[index] = this.ttls[index] !== 0 ? perf.now() : 0\n }\n\n // debounce calls to perf.now() to 1s so we're not hitting\n // that costly call repeatedly.\n let cachedNow = 0\n const getNow = () => {\n const n = perf.now()\n if (this.ttlResolution > 0) {\n cachedNow = n\n const t = setTimeout(() => cachedNow = 0, this.ttlResolution)\n /* istanbul ignore else - not available on all platforms */\n if (t.unref) {\n t.unref()\n }\n }\n return n\n }\n\n this.getRemainingTTL = (key) => {\n const index = this.keyMap.get(key)\n if (index === undefined) {\n return 0\n }\n return this.ttls[index] === 0 || this.starts[index] === 0 ? Infinity\n : ((this.starts[index] + this.ttls[index]) - (cachedNow || getNow()))\n }\n\n this.isStale = (index) => {\n return this.ttls[index] !== 0 && this.starts[index] !== 0 &&\n ((cachedNow || getNow()) - this.starts[index] > this.ttls[index])\n }\n }\n updateItemAge (index) {}\n setItemTTL (index, ttl) {}\n isStale (index) { return false }\n\n initializeSizeTracking () {\n this.calculatedSize = 0\n this.sizes = new ZeroArray(this.max)\n this.removeItemSize = index => this.calculatedSize -= this.sizes[index]\n this.requireSize = (k, v, size, sizeCalculation) => {\n if (!isPosInt(size)) {\n if (sizeCalculation) {\n if (typeof sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation must be a function')\n }\n size = sizeCalculation(v, k)\n if (!isPosInt(size)) {\n throw new TypeError('sizeCalculation return invalid (expect positive integer)')\n }\n } else {\n throw new TypeError('invalid size value (must be positive integer)')\n }\n }\n return size\n }\n this.addItemSize = (index, v, k, size) => {\n this.sizes[index] = size\n const maxSize = this.maxSize - this.sizes[index]\n while (this.calculatedSize > maxSize) {\n this.evict(true)\n }\n this.calculatedSize += this.sizes[index]\n }\n this.delete = k => {\n if (this.size !== 0) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n this.calculatedSize -= this.sizes[index]\n }\n }\n return LRUCache.prototype.delete.call(this, k)\n }\n }\n removeItemSize (index) {}\n addItemSize (index, v, k, size) {}\n requireSize (k, v, size, sizeCalculation) {\n if (size || sizeCalculation) {\n throw new TypeError('cannot set size without setting maxSize on cache')\n }\n }\n\n *indexes ({ allowStale = this.allowStale } = {}) {\n if (this.size) {\n for (let i = this.tail; true; ) {\n if (!this.isValidIndex(i)) {\n break\n }\n if (allowStale || !this.isStale(i)) {\n yield i\n }\n if (i === this.head) {\n break\n } else {\n i = this.prev[i]\n }\n }\n }\n }\n\n *rindexes ({ allowStale = this.allowStale } = {}) {\n if (this.size) {\n for (let i = this.head; true; ) {\n if (!this.isValidIndex(i)) {\n break\n }\n if (allowStale || !this.isStale(i)) {\n yield i\n }\n if (i === this.tail) {\n break\n } else {\n i = this.next[i]\n }\n }\n }\n }\n\n isValidIndex (index) {\n return this.keyMap.get(this.keyList[index]) === index\n }\n\n *entries () {\n for (const i of this.indexes()) {\n yield [this.keyList[i], this.valList[i]]\n }\n }\n *rentries () {\n for (const i of this.rindexes()) {\n yield [this.keyList[i], this.valList[i]]\n }\n }\n\n *keys () {\n for (const i of this.indexes()) {\n yield this.keyList[i]\n }\n }\n *rkeys () {\n for (const i of this.rindexes()) {\n yield this.keyList[i]\n }\n }\n\n *values () {\n for (const i of this.indexes()) {\n yield this.valList[i]\n }\n }\n *rvalues () {\n for (const i of this.rindexes()) {\n yield this.valList[i]\n }\n }\n\n [Symbol.iterator] () {\n return this.entries()\n }\n\n find (fn, getOptions = {}) {\n for (const i of this.indexes()) {\n if (fn(this.valList[i], this.keyList[i], this)) {\n return this.get(this.keyList[i], getOptions)\n }\n }\n }\n\n forEach (fn, thisp = this) {\n for (const i of this.indexes()) {\n fn.call(thisp, this.valList[i], this.keyList[i], this)\n }\n }\n\n rforEach (fn, thisp = this) {\n for (const i of this.rindexes()) {\n fn.call(thisp, this.valList[i], this.keyList[i], this)\n }\n }\n\n get prune () {\n deprecatedMethod('prune', 'purgeStale')\n return this.purgeStale\n }\n\n purgeStale () {\n let deleted = false\n for (const i of this.rindexes({ allowStale: true })) {\n if (this.isStale(i)) {\n this.delete(this.keyList[i])\n deleted = true\n }\n }\n return deleted\n }\n\n dump () {\n const arr = []\n for (const i of this.indexes()) {\n const key = this.keyList[i]\n const value = this.valList[i]\n const entry = { value }\n if (this.ttls) {\n entry.ttl = this.ttls[i]\n }\n if (this.sizes) {\n entry.size = this.sizes[i]\n }\n arr.unshift([key, entry])\n }\n return arr\n }\n\n load (arr) {\n this.clear()\n for (const [key, entry] of arr) {\n this.set(key, entry.value, entry)\n }\n }\n\n dispose (v, k, reason) {}\n\n set (k, v, {\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n } = {}) {\n size = this.requireSize(k, v, size, sizeCalculation)\n let index = this.size === 0 ? undefined : this.keyMap.get(k)\n if (index === undefined) {\n // addition\n index = this.newIndex()\n this.keyList[index] = k\n this.valList[index] = v\n this.keyMap.set(k, index)\n this.next[this.tail] = index\n this.prev[index] = this.tail\n this.tail = index\n this.size ++\n this.addItemSize(index, v, k, size)\n noUpdateTTL = false\n } else {\n // update\n const oldVal = this.valList[index]\n if (v !== oldVal) {\n if (this.isBackgroundFetch(oldVal)) {\n oldVal.__abortController.abort()\n } else {\n if (!noDisposeOnSet) {\n this.dispose(oldVal, k, 'set')\n if (this.disposeAfter) {\n this.disposed.push([oldVal, k, 'set'])\n }\n }\n }\n this.removeItemSize(index)\n this.valList[index] = v\n this.addItemSize(index, v, k, size)\n }\n this.moveToTail(index)\n }\n if (ttl !== 0 && this.ttl === 0 && !this.ttls) {\n this.initializeTTLTracking()\n }\n if (!noUpdateTTL) {\n this.setItemTTL(index, ttl)\n }\n if (this.disposeAfter) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n return this\n }\n\n newIndex () {\n if (this.size === 0) {\n return this.tail\n }\n if (this.size === this.max && this.max !== 0) {\n return this.evict(false)\n }\n if (this.free.length !== 0) {\n return this.free.pop()\n }\n // initial fill, just keep writing down the list\n return this.initialFill++\n }\n\n pop () {\n if (this.size) {\n const val = this.valList[this.head]\n this.evict(true)\n return val\n }\n }\n\n evict (free) {\n const head = this.head\n const k = this.keyList[head]\n const v = this.valList[head]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n this.dispose(v, k, 'evict')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'evict'])\n }\n }\n this.removeItemSize(head)\n // if we aren't about to use the index, then null these out\n if (free) {\n this.keyList[head] = null\n this.valList[head] = null\n this.free.push(head)\n }\n this.head = this.next[head]\n this.keyMap.delete(k)\n this.size --\n return head\n }\n\n has (k, { updateAgeOnHas = this.updateAgeOnHas } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n if (!this.isStale(index)) {\n if (updateAgeOnHas) {\n this.updateItemAge(index)\n }\n return true\n }\n }\n return false\n }\n\n // like get(), but without any LRU updating or TTL expiration\n peek (k, { allowStale = this.allowStale } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined && (allowStale || !this.isStale(index))) {\n return this.valList[index]\n }\n }\n\n backgroundFetch (k, index, options) {\n const v = index === undefined ? undefined : this.valList[index]\n if (this.isBackgroundFetch(v)) {\n return v\n }\n const ac = new AC()\n const fetchOpts = {\n signal: ac.signal,\n options,\n }\n const p = Promise.resolve(this.fetchMethod(k, v, fetchOpts)).then(v => {\n if (!ac.signal.aborted) {\n this.set(k, v, fetchOpts.options)\n }\n return v\n })\n p.__abortController = ac\n p.__staleWhileFetching = v\n if (index === undefined) {\n this.set(k, p, fetchOpts.options)\n index = this.keyMap.get(k)\n } else {\n this.valList[index] = p\n }\n return p\n }\n\n isBackgroundFetch (p) {\n return p && typeof p === 'object' && typeof p.then === 'function' &&\n Object.prototype.hasOwnProperty.call(p, '__staleWhileFetching')\n }\n\n // this takes the union of get() and set() opts, because it does both\n async fetch (k, {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n } = {}) {\n if (!this.fetchMethod) {\n return this.get(k, {allowStale, updateAgeOnGet})\n }\n\n const options = {\n allowStale,\n updateAgeOnGet,\n ttl,\n noDisposeOnSet,\n size,\n sizeCalculation,\n noUpdateTTL,\n }\n\n let index = this.keyMap.get(k)\n if (index === undefined) {\n return this.backgroundFetch(k, index, options)\n } else {\n // in cache, maybe already fetching\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n return allowStale && v.__staleWhileFetching !== undefined\n ? v.__staleWhileFetching : v\n }\n\n if (!this.isStale(index)) {\n this.moveToTail(index)\n if (updateAgeOnGet) {\n this.updateItemAge(index)\n }\n return v\n }\n\n // ok, it is stale, and not already fetching\n // refresh the cache.\n const p = this.backgroundFetch(k, index, options)\n return allowStale && p.__staleWhileFetching !== undefined\n ? p.__staleWhileFetching : p\n }\n }\n\n get (k, {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n const value = this.valList[index]\n const fetching = this.isBackgroundFetch(value)\n if (this.isStale(index)) {\n // delete only if not an in-flight background fetch\n if (!fetching) {\n this.delete(k)\n return allowStale ? value : undefined\n } else {\n return allowStale ? value.__staleWhileFetching : undefined\n }\n } else {\n // if we're currently fetching it, we don't actually have it yet\n // it's not stale, which means this isn't a staleWhileRefetching,\n // so we just return undefined\n if (fetching) {\n return undefined\n }\n this.moveToTail(index)\n if (updateAgeOnGet) {\n this.updateItemAge(index)\n }\n return value\n }\n }\n }\n\n connect (p, n) {\n this.prev[n] = p\n this.next[p] = n\n }\n\n moveToTail (index) {\n // if tail already, nothing to do\n // if head, move head to next[index]\n // else\n // move next[prev[index]] to next[index] (head has no prev)\n // move prev[next[index]] to prev[index]\n // prev[index] = tail\n // next[tail] = index\n // tail = index\n if (index !== this.tail) {\n if (index === this.head) {\n this.head = this.next[index]\n } else {\n this.connect(this.prev[index], this.next[index])\n }\n this.connect(this.tail, index)\n this.tail = index\n }\n }\n\n get del () {\n deprecatedMethod('del', 'delete')\n return this.delete\n }\n delete (k) {\n let deleted = false\n if (this.size !== 0) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n deleted = true\n if (this.size === 1) {\n this.clear()\n } else {\n this.removeItemSize(index)\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n this.dispose(v, k, 'delete')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'delete'])\n }\n }\n this.keyMap.delete(k)\n this.keyList[index] = null\n this.valList[index] = null\n if (index === this.tail) {\n this.tail = this.prev[index]\n } else if (index === this.head) {\n this.head = this.next[index]\n } else {\n this.next[this.prev[index]] = this.next[index]\n this.prev[this.next[index]] = this.prev[index]\n }\n this.size --\n this.free.push(index)\n }\n }\n }\n if (this.disposed) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n return deleted\n }\n\n clear () {\n for (const index of this.rindexes({ allowStale: true })) {\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n const k = this.keyList[index]\n this.dispose(v, k, 'delete')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'delete'])\n }\n }\n }\n\n this.keyMap.clear()\n this.valList.fill(null)\n this.keyList.fill(null)\n if (this.ttls) {\n this.ttls.fill(0)\n this.starts.fill(0)\n }\n if (this.sizes) {\n this.sizes.fill(0)\n }\n this.head = 0\n this.tail = 0\n this.initialFill = 1\n this.free.length = 0\n this.calculatedSize = 0\n this.size = 0\n if (this.disposed) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n }\n get reset () {\n deprecatedMethod('reset', 'clear')\n return this.clear\n }\n\n get length () {\n deprecatedProperty('length', 'size')\n return this.size\n }\n}\n\nmodule.exports = LRUCache\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = [new Comparator('>=0.0.0-0')]\n } else {\n sub = [new Comparator('>=0.0.0')]\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = [new Comparator('>=0.0.0')]\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,"module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"actions_python.feac98a0.js\"))).then(() => parcelRequire('apy8x'));","var Stream = require('stream');\nif (process.env.READABLE_STREAM === 'disable' && Stream) {\n module.exports = Stream;\n exports = module.exports = Stream.Readable;\n exports.Readable = Stream.Readable;\n exports.Writable = Stream.Writable;\n exports.Duplex = Stream.Duplex;\n exports.Transform = Stream.Transform;\n exports.PassThrough = Stream.PassThrough;\n exports.Stream = Stream;\n} else {\n exports = module.exports = require('./lib/_stream_readable.js');\n exports.Stream = Stream || exports;\n exports.Readable = exports;\n exports.Writable = require('./lib/_stream_writable.js');\n exports.Duplex = require('./lib/_stream_duplex.js');\n exports.Transform = require('./lib/_stream_transform.js');\n exports.PassThrough = require('./lib/_stream_passthrough.js');\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = require('isarray');\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n\n/**/\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar debugUtil = require('util');\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar BufferList = require('./internal/streams/BufferList');\nvar destroyImpl = require('./internal/streams/destroy');\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, unpipeInfo);\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark;\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}","'use strict';\n\nif (typeof process === 'undefined' ||\n !process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = { nextTick: nextTick };\n} else {\n module.exports = process\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","module.exports = require('stream');\n","/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('buffer').Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n","try {\n var util = require('util');\n /* istanbul ignore next */\n if (typeof util.inherits !== 'function') throw '';\n module.exports = util.inherits;\n} catch (e) {\n /* istanbul ignore next */\n module.exports = require('./inherits_browser.js');\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Buffer = require('safe-buffer').Buffer;\nvar util = require('util');\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n if (this.length === 1) return this.head.data;\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({ length: this.length });\n return this.constructor.name + ' ' + obj;\n };\n}","'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\n pna.nextTick(emitErrorNT, this, err);\n }\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n pna.nextTick(emitErrorNT, _this, err);\n if (_this._writableState) {\n _this._writableState.errorEmitted = true;\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/**/\n\nmodule.exports = Duplex;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nvar Readable = require('./_stream_readable');\nvar Writable = require('./_stream_writable');\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Writable;\n\n/* */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var writableHwm = options.writableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function (object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function (object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n pna.nextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n pna.nextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n pna.nextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n pna.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /**/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /**/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n stream.emit('error', err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n pna.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = corkReq;\n } else {\n state.corkedRequestsFree = corkReq;\n }\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function () {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\n\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};","\n/**\n * For Node.js, simply re-export the core `util.deprecate` function.\n */\n\nmodule.exports = require('util').deprecate;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = require('./_stream_duplex');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return this.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n\n cb(er);\n\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function') {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this2 = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this2.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","/**\n * @file Tests if ES6 Symbol is supported.\n * @version 1.4.2\n * @author Xotic750 \n * @copyright Xotic750\n * @license {@link MIT}\n * @module has-symbol-support-x\n */\n\n'use strict';\n\n/**\n * Indicates if `Symbol`exists and creates the correct type.\n * `true`, if it exists and creates the correct type, otherwise `false`.\n *\n * @type boolean\n */\nmodule.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';\n","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nmodule.exports = input => {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\treturn input;\n};\n","'use strict';\nconst path = require('path');\nconst pathKey = require('path-key');\n\nconst npmRunPath = options => {\n\toptions = {\n\t\tcwd: process.cwd(),\n\t\tpath: process.env[pathKey()],\n\t\texecPath: process.execPath,\n\t\t...options\n\t};\n\n\tlet previous;\n\tlet cwdPath = path.resolve(options.cwd);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used\n\tconst execPathDir = path.resolve(options.cwd, options.execPath, '..');\n\tresult.push(execPathDir);\n\n\treturn result.concat(options.path).join(path.delimiter);\n};\n\nmodule.exports = npmRunPath;\n// TODO: Remove this for the next major release\nmodule.exports.default = npmRunPath;\n\nmodule.exports.env = options => {\n\toptions = {\n\t\tenv: process.env,\n\t\t...options\n\t};\n\n\tconst env = {...options.env};\n\tconst path = pathKey({env});\n\n\toptions.path = env[path];\n\tenv[path] = module.exports(options);\n\n\treturn env;\n};\n","'use strict';\n\nconst mimicFn = (to, from) => {\n\tfor (const prop of Reflect.ownKeys(from)) {\n\t\tObject.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));\n\t}\n\n\treturn to;\n};\n\nmodule.exports = mimicFn;\n// TODO: Remove this for the next major release\nmodule.exports.default = mimicFn;\n","'use strict';\nconst mimicFn = require('mimic-fn');\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFn(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nmodule.exports = onetime;\n// TODO: Remove this for the next major release\nmodule.exports.default = onetime;\n\nmodule.exports.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n","import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n const signals = getSignals()\n return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n signalByNameMemo,\n { name, number, description, supported, action, forced, standard },\n) {\n return {\n ...signalByNameMemo,\n [name]: { name, number, description, supported, action, forced, standard },\n }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n const signals = getSignals()\n const length = SIGRTMAX + 1\n const signalsA = Array.from({ length }, (value, number) =>\n getSignalByNumber(number, signals),\n )\n return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n const signal = findSignalByNumber(number, signals)\n\n if (signal === undefined) {\n return {}\n }\n\n const { name, description, supported, action, forced, standard } = signal\n return {\n [number]: {\n name,\n number,\n description,\n supported,\n action,\n forced,\n standard,\n },\n }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n if (signal !== undefined) {\n return signal\n }\n\n return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n","import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n const realtimeSignals = getRealtimeSignals()\n const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n return signals\n}\n\n// Normalize signal:\n// - `number`: signal numbers are OS-specific. This is taken into account by\n// `os.constants.signals`. However we provide a default `number` since some\n// signals are not defined for some OS.\n// - `forced`: set default to `false`\n// - `supported`: set value\nconst normalizeSignal = function({\n name,\n number: defaultNumber,\n description,\n action,\n forced = false,\n standard,\n}) {\n const {\n signals: { [name]: constantSignal },\n } = constants\n const supported = constantSignal !== undefined\n const number = supported ? constantSignal : defaultNumber\n return { name, number, description, supported, action, forced, standard }\n}\n","/* eslint-disable max-lines */\n// List of known process signals with information about them\nexport const SIGNALS = [\n {\n name: 'SIGHUP',\n number: 1,\n action: 'terminate',\n description: 'Terminal closed',\n standard: 'posix',\n },\n {\n name: 'SIGINT',\n number: 2,\n action: 'terminate',\n description: 'User interruption with CTRL-C',\n standard: 'ansi',\n },\n {\n name: 'SIGQUIT',\n number: 3,\n action: 'core',\n description: 'User interruption with CTRL-\\\\',\n standard: 'posix',\n },\n {\n name: 'SIGILL',\n number: 4,\n action: 'core',\n description: 'Invalid machine instruction',\n standard: 'ansi',\n },\n {\n name: 'SIGTRAP',\n number: 5,\n action: 'core',\n description: 'Debugger breakpoint',\n standard: 'posix',\n },\n {\n name: 'SIGABRT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'ansi',\n },\n {\n name: 'SIGIOT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'bsd',\n },\n {\n name: 'SIGBUS',\n number: 7,\n action: 'core',\n description:\n 'Bus error due to misaligned, non-existing address or paging error',\n standard: 'bsd',\n },\n {\n name: 'SIGEMT',\n number: 7,\n action: 'terminate',\n description: 'Command should be emulated but is not implemented',\n standard: 'other',\n },\n {\n name: 'SIGFPE',\n number: 8,\n action: 'core',\n description: 'Floating point arithmetic error',\n standard: 'ansi',\n },\n {\n name: 'SIGKILL',\n number: 9,\n action: 'terminate',\n description: 'Forced termination',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGUSR1',\n number: 10,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGSEGV',\n number: 11,\n action: 'core',\n description: 'Segmentation fault',\n standard: 'ansi',\n },\n {\n name: 'SIGUSR2',\n number: 12,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGPIPE',\n number: 13,\n action: 'terminate',\n description: 'Broken pipe or socket',\n standard: 'posix',\n },\n {\n name: 'SIGALRM',\n number: 14,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'posix',\n },\n {\n name: 'SIGTERM',\n number: 15,\n action: 'terminate',\n description: 'Termination',\n standard: 'ansi',\n },\n {\n name: 'SIGSTKFLT',\n number: 16,\n action: 'terminate',\n description: 'Stack is empty or overflowed',\n standard: 'other',\n },\n {\n name: 'SIGCHLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'posix',\n },\n {\n name: 'SIGCLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'other',\n },\n {\n name: 'SIGCONT',\n number: 18,\n action: 'unpause',\n description: 'Unpaused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGSTOP',\n number: 19,\n action: 'pause',\n description: 'Paused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGTSTP',\n number: 20,\n action: 'pause',\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: 'posix',\n },\n {\n name: 'SIGTTIN',\n number: 21,\n action: 'pause',\n description: 'Background process cannot read terminal input',\n standard: 'posix',\n },\n {\n name: 'SIGBREAK',\n number: 21,\n action: 'terminate',\n description: 'User interruption with CTRL-BREAK',\n standard: 'other',\n },\n {\n name: 'SIGTTOU',\n number: 22,\n action: 'pause',\n description: 'Background process cannot write to terminal output',\n standard: 'posix',\n },\n {\n name: 'SIGURG',\n number: 23,\n action: 'ignore',\n description: 'Socket received out-of-band data',\n standard: 'bsd',\n },\n {\n name: 'SIGXCPU',\n number: 24,\n action: 'core',\n description: 'Process timed out',\n standard: 'bsd',\n },\n {\n name: 'SIGXFSZ',\n number: 25,\n action: 'core',\n description: 'File too big',\n standard: 'bsd',\n },\n {\n name: 'SIGVTALRM',\n number: 26,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGPROF',\n number: 27,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGWINCH',\n number: 28,\n action: 'ignore',\n description: 'Terminal window size changed',\n standard: 'bsd',\n },\n {\n name: 'SIGIO',\n number: 29,\n action: 'terminate',\n description: 'I/O is available',\n standard: 'other',\n },\n {\n name: 'SIGPOLL',\n number: 29,\n action: 'terminate',\n description: 'Watched event',\n standard: 'other',\n },\n {\n name: 'SIGINFO',\n number: 29,\n action: 'ignore',\n description: 'Request for process information',\n standard: 'other',\n },\n {\n name: 'SIGPWR',\n number: 30,\n action: 'terminate',\n description: 'Device running out of power',\n standard: 'systemv',\n },\n {\n name: 'SIGSYS',\n number: 31,\n action: 'core',\n description: 'Invalid system call',\n standard: 'other',\n },\n {\n name: 'SIGUNUSED',\n number: 31,\n action: 'terminate',\n description: 'Invalid system call',\n standard: 'other',\n },\n]\n/* eslint-enable max-lines */\n","// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n const length = SIGRTMAX - SIGRTMIN + 1\n return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n return {\n name: `SIGRT${index + 1}`,\n number: SIGRTMIN + index,\n action: 'terminate',\n description: 'Application-specific signal (realtime)',\n standard: 'posix',\n }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n","'use strict';\nconst {signalsByName} = require('human-signals');\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nconst makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}}\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n\nmodule.exports = makeError;\n","'use strict';\nconst aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nconst normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\nmodule.exports = normalizeStdio;\n\n// `ipc` is pushed unless it is already present\nmodule.exports.node = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","'use strict';\nconst os = require('os');\nconst onExit = require('signal-exit');\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nconst spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => {\n\treturn isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n};\n\nconst isSigterm = signal => {\n\treturn signal === os.constants.signals.SIGTERM ||\n\t\t(typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n};\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nconst spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nconst setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nconst validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nconst setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n\nmodule.exports = {\n\tspawnedKill,\n\tspawnedCancel,\n\tsetupTimeout,\n\tvalidateTimeout,\n\tsetExitHandler\n};\n","'use strict';\nconst path = require('path');\nconst childProcess = require('child_process');\nconst crossSpawn = require('cross-spawn');\nconst stripFinalNewline = require('strip-final-newline');\nconst npmRunPath = require('npm-run-path');\nconst onetime = require('onetime');\nconst makeError = require('./lib/error');\nconst normalizeStdio = require('./lib/stdio');\nconst {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} = require('./lib/kill');\nconst {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = require('./lib/stream');\nconst {mergePromise, getSpawnedPromise} = require('./lib/promise');\nconst {joinCommand, parseCommand, getEscapedCommand} = require('./lib/command');\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPath.env({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\t...options\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execa.sync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nconst execa = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t}));\n\t\treturn mergePromise(dummySpawned, errorPromise);\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled,\n\t\t\t\tkilled: spawned.killed\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options.input);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\treturn mergePromise(spawned, handlePromiseOnce);\n};\n\nmodule.exports = execa;\n\nmodule.exports.sync = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false\n\t};\n};\n\nmodule.exports.command = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n};\n\nmodule.exports.commandSync = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa.sync(file, args, options);\n};\n\nmodule.exports.node = (scriptPath, args, options = {}) => {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdio.node(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : [])\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false\n\t\t}\n\t);\n};\n","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","'use strict';\nconst isStream = require('is-stream');\nconst getStream = require('get-stream');\nconst mergeStream = require('merge-stream');\n\n// `input` option\nconst handleInput = (spawned, input) => {\n\t// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852\n\t// @todo remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0\n\tif (input === undefined || spawned.stdin === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nconst makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\tif (!stream) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nconst getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise)\n\t\t]);\n\t}\n};\n\nconst validateInputSync = ({input}) => {\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n};\n\nmodule.exports = {\n\thandleInput,\n\tmakeAllStream,\n\tgetSpawnedResult,\n\tvalidateInputSync\n};\n\n","'use strict';\n\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property)\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nconst mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function' ?\n\t\t\t(...args) => Reflect.apply(descriptor.value, promise(), args) :\n\t\t\tdescriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n\n\treturn spawned;\n};\n\n// Use promises instead of `child_process` events\nconst getSpawnedPromise = spawned => {\n\treturn new Promise((resolve, reject) => {\n\t\tspawned.on('exit', (exitCode, signal) => {\n\t\t\tresolve({exitCode, signal});\n\t\t});\n\n\t\tspawned.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\n\t\tif (spawned.stdin) {\n\t\t\tspawned.stdin.on('error', error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t}\n\t});\n};\n\nmodule.exports = {\n\tmergePromise,\n\tgetSpawnedPromise\n};\n\n","'use strict';\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nconst joinCommand = (file, args) => {\n\treturn normalizeArgs(file, args).join(' ');\n};\n\nconst getEscapedCommand = (file, args) => {\n\treturn normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n};\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execa.command()`\nconst parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nmodule.exports = {\n\tjoinCommand,\n\tgetEscapedCommand,\n\tparseCommand\n};\n","'use strict';\nconst os = require('os');\n\nconst homeDirectory = os.homedir();\n\nmodule.exports = pathWithTilde => {\n\tif (typeof pathWithTilde !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof pathWithTilde}`);\n\t}\n\n\treturn homeDirectory ? pathWithTilde.replace(/^~(?=$|\\/|\\\\)/, homeDirectory) : pathWithTilde;\n};\n","const os = require(\"os\");\n\n// to detect on with os user had used path.resolve(...)\nconst is_posix_os = (os.platform() !== \"win32\");\nconst version = os.release();\n\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n\nmodule.exports = function (given_path) {\n return (is_posix_os)\n // for posix path, escape is simple\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\n // for windows, it depend of the build\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\n // on major version, no need to escape anymore\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\n ? given_path\n // on older version, replace space with symbol %20\n : given_path.replace(/(\\s+)/g, '%20');\n};",null,"'use strict';\n\nconst WritableStream = require('stream').Writable;\nconst got = require('got');\nconst isOnline = require('is-online');\nconst pkg = require('./package.json');\n\nlet isOnlineCache;\n\nfunction isOnlineAsPromise() {\n // Cache the isOnline() result up to `exports.connectivityCacheDuration` ms\n if (isOnlineCache && isOnlineCache.cachedAt > Date.now() - module.exports.connectivityCacheDuration) {\n return isOnlineCache;\n }\n\n isOnlineCache = new Promise((resolve, reject) => {\n isOnline((err, online) => {\n if (err) {\n delete isOnlineCache.promise; // Do not cache errors\n /* istanbul ignore next */\n reject(err);\n } else {\n resolve(online);\n }\n });\n });\n\n isOnlineCache.cachedAt = Date.now();\n\n return isOnlineCache;\n}\n\nfunction checkConnectivity(requestErr) {\n return isOnlineAsPromise()\n .catch(() => { throw requestErr; })\n .then((online) => {\n if (!online) {\n throw requestErr;\n }\n\n return false;\n });\n}\n\nclass DevNull extends WritableStream {\n _write(chunk, encoding, callback) {\n callback();\n }\n}\n\nfunction tryHead(link, gotOptions) {\n return got.head(link, gotOptions)\n .then(() => true);\n}\n\nfunction tryGet(link, options, gotOptions) {\n return new Promise((resolve, reject) => {\n let stream;\n let req;\n\n try {\n stream = got.stream(link, gotOptions);\n } catch (err) {\n return resolve(false);\n }\n\n stream\n .on('request', (req_) => { req = req_; })\n .on('response', (res) => {\n res.on('error', () => {}); // Swallow any response errors, because we are going to abort the request\n setImmediate(() => req.abort());\n resolve(true);\n })\n .on('error', (err, body, res) => {\n res && res.on('error', () => {}); // Swallow any response errors, because we are going to abort the request\n setImmediate(() => req.abort());\n\n if (err instanceof got.MaxRedirectsError || err instanceof got.HTTPError) {\n return resolve(false);\n }\n\n /* istanbul ignore else */\n if (err instanceof got.RequestError) {\n return resolve(options.checkConnectivity ? checkConnectivity(err) : false);\n }\n\n /* istanbul ignore next */\n reject(err);\n })\n .pipe(new DevNull());\n });\n}\n\n// -------------------------------------------------------------------------\n\nfunction isLinkWorking(link, options) {\n options = Object.assign({\n checkConnectivity: false,\n followRedirect: true,\n timeout: 15000,\n retries: 3,\n agent: null,\n }, options);\n\n const gotOptions = {\n timeout: options.timeout,\n followRedirect: options.followRedirect,\n retries: options.retries,\n agent: options.agent,\n headers: {\n 'user-agent': `is-link-working/${pkg.version} (https://github.com/IndigoUnited/is-link-working)`,\n },\n };\n\n return tryHead(link, gotOptions)\n .catch(() => tryGet(link, options, gotOptions));\n}\n\nmodule.exports = isLinkWorking;\nmodule.exports.connectivityCacheDuration = 5000;\n","'use strict';\n\nvar isStream = module.exports = function (stream) {\n\treturn stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';\n};\n\nisStream.writable = function (stream) {\n\treturn isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';\n};\n\nisStream.readable = function (stream) {\n\treturn isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';\n};\n\nisStream.duplex = function (stream) {\n\treturn isStream.writable(stream) && isStream.readable(stream);\n};\n\nisStream.transform = function (stream) {\n\treturn isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';\n};\n","'use strict';\nconst PassThrough = require('stream').PassThrough;\n\nmodule.exports = opts => {\n\topts = Object.assign({}, opts);\n\n\tconst array = opts.array;\n\tlet encoding = opts.encoding;\n\tconst buffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || buffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (buffer) {\n\t\tencoding = null;\n\t}\n\n\tlet len = 0;\n\tconst ret = [];\n\tconst stream = new PassThrough({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tstream.on('data', chunk => {\n\t\tret.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlen = ret.length;\n\t\t} else {\n\t\t\tlen += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn ret;\n\t\t}\n\n\t\treturn buffer ? Buffer.concat(ret, len) : ret.join('');\n\t};\n\n\tstream.getBufferedLength = () => len;\n\n\treturn stream;\n};\n","'use strict';\n\nmodule.exports = function (req, time) {\n\tif (req.timeoutTimer) {\n\t\treturn req;\n\t}\n\n\tvar delays = isNaN(time) ? time : {socket: time, connect: time};\n\tvar host = req._headers ? (' to ' + req._headers.host) : '';\n\n\tif (delays.connect !== undefined) {\n\t\treq.timeoutTimer = setTimeout(function timeoutHandler() {\n\t\t\treq.abort();\n\t\t\tvar e = new Error('Connection timed out on request' + host);\n\t\t\te.code = 'ETIMEDOUT';\n\t\t\treq.emit('error', e);\n\t\t}, delays.connect);\n\t}\n\n\t// Clear the connection timeout timer once a socket is assigned to the\n\t// request and is connected.\n\treq.on('socket', function assign(socket) {\n\t\t// Socket may come from Agent pool and may be already connected.\n\t\tif (!(socket.connecting || socket._connecting)) {\n\t\t\tconnect();\n\t\t\treturn;\n\t\t}\n\n\t\tsocket.once('connect', connect);\n\t});\n\n\tfunction clear() {\n\t\tif (req.timeoutTimer) {\n\t\t\tclearTimeout(req.timeoutTimer);\n\t\t\treq.timeoutTimer = null;\n\t\t}\n\t}\n\n\tfunction connect() {\n\t\tclear();\n\n\t\tif (delays.socket !== undefined) {\n\t\t\t// Abort the request if there is no activity on the socket for more\n\t\t\t// than `delays.socket` milliseconds.\n\t\t\treq.setTimeout(delays.socket, function socketTimeoutHandler() {\n\t\t\t\treq.abort();\n\t\t\t\tvar e = new Error('Socket timed out on request' + host);\n\t\t\t\te.code = 'ESOCKETTIMEDOUT';\n\t\t\t\treq.emit('error', e);\n\t\t\t});\n\t\t}\n\t}\n\n\treturn req.on('error', clear);\n};\n","'use strict';\nmodule.exports = function (url) {\n\tif (typeof url !== 'string') {\n\t\tthrow new TypeError('Expected a string, got ' + typeof url);\n\t}\n\n\turl = url.trim();\n\n\tif (/^\\.*\\/|^(?!localhost)\\w+:/.test(url)) {\n\t\treturn url;\n\t}\n\n\treturn url.replace(/^(?!(?:\\w+:)?\\/\\/)/, 'http://');\n};\n","'use strict';\nvar url = require('url');\nvar prependHttp = require('prepend-http');\n\nmodule.exports = function (x) {\n\tvar withProtocol = prependHttp(x);\n\tvar parsed = url.parse(withProtocol);\n\n\tif (withProtocol !== x) {\n\t\tparsed.protocol = null;\n\t}\n\n\treturn parsed;\n};\n","'use strict';\nmodule.exports = function (obj) {\n\tvar ret = {};\n\tvar keys = Object.keys(Object(obj));\n\n\tfor (var i = 0; i < keys.length; i++) {\n\t\tret[keys[i].toLowerCase()] = obj[keys[i]];\n\t}\n\n\treturn ret;\n};\n","'use strict';\nmodule.exports = function (x) {\n\tif (typeof x !== 'number') {\n\t\tthrow new TypeError('Expected a number');\n\t}\n\n\treturn x === 300 ||\n\t\tx === 301 ||\n\t\tx === 302 ||\n\t\tx === 303 ||\n\t\tx === 305 ||\n\t\tx === 307 ||\n\t\tx === 308;\n};\n","'use strict';\nconst PassThrough = require('stream').PassThrough;\nconst zlib = require('zlib');\n\nmodule.exports = res => {\n\t// TODO: use Array#includes when targeting Node.js 6\n\tif (['gzip', 'deflate'].indexOf(res.headers['content-encoding']) === -1) {\n\t\treturn res;\n\t}\n\n\tconst unzip = zlib.createUnzip();\n\tconst stream = new PassThrough();\n\n\tstream.httpVersion = res.httpVersion;\n\tstream.headers = res.headers;\n\tstream.rawHeaders = res.rawHeaders;\n\tstream.trailers = res.trailers;\n\tstream.rawTrailers = res.rawTrailers;\n\tstream.setTimeout = res.setTimeout.bind(res);\n\tstream.statusCode = res.statusCode;\n\tstream.statusMessage = res.statusMessage;\n\tstream.socket = res.socket;\n\n\tunzip.on('error', err => {\n\t\tif (err.code === 'Z_BUF_ERROR') {\n\t\t\tstream.end();\n\t\t\treturn;\n\t\t}\n\n\t\tstream.emit('error', err);\n\t});\n\n\tres.pipe(unzip).pipe(stream);\n\n\treturn stream;\n};\n","'use strict';\n\nmodule.exports = Error.captureStackTrace || function (error) {\n\tvar container = new Error();\n\n\tObject.defineProperty(error, 'stack', {\n\t\tconfigurable: true,\n\t\tget: function getStack() {\n\t\t\tvar stack = container.stack;\n\n\t\t\tObject.defineProperty(this, 'stack', {\n\t\t\t\tvalue: stack\n\t\t\t});\n\n\t\t\treturn stack;\n\t\t}\n\t});\n};\n","'use strict';\nvar captureStackTrace = require('capture-stack-trace');\n\nfunction inherits(ctor, superCtor) {\n\tctor.super_ = superCtor;\n\tctor.prototype = Object.create(superCtor.prototype, {\n\t\tconstructor: {\n\t\t\tvalue: ctor,\n\t\t\tenumerable: false,\n\t\t\twritable: true,\n\t\t\tconfigurable: true\n\t\t}\n\t});\n}\n\nmodule.exports = function createErrorClass(className, setup) {\n\tif (typeof className !== 'string') {\n\t\tthrow new TypeError('Expected className to be a string');\n\t}\n\n\tif (/[^0-9a-zA-Z_$]/.test(className)) {\n\t\tthrow new Error('className contains invalid characters');\n\t}\n\n\tsetup = setup || function (message) {\n\t\tthis.message = message;\n\t};\n\n\tvar ErrorClass = function () {\n\t\tObject.defineProperty(this, 'name', {\n\t\t\tconfigurable: true,\n\t\t\tvalue: className,\n\t\t\twritable: true\n\t\t});\n\n\t\tcaptureStackTrace(this, this.constructor);\n\n\t\tsetup.apply(this, arguments);\n\t};\n\n\tinherits(ErrorClass, Error);\n\n\treturn ErrorClass;\n};\n","'use strict';\n\nvar WHITELIST = [\n\t'ETIMEDOUT',\n\t'ECONNRESET',\n\t'EADDRINUSE',\n\t'ESOCKETTIMEDOUT',\n\t'ECONNREFUSED',\n\t'EPIPE',\n\t'EHOSTUNREACH',\n\t'EAI_AGAIN'\n];\n\nvar BLACKLIST = [\n\t'ENOTFOUND',\n\t'ENETUNREACH',\n\n\t// SSL errors from https://github.com/nodejs/node/blob/ed3d8b13ee9a705d89f9e0397d9e96519e7e47ac/src/node_crypto.cc#L1950\n\t'UNABLE_TO_GET_ISSUER_CERT',\n\t'UNABLE_TO_GET_CRL',\n\t'UNABLE_TO_DECRYPT_CERT_SIGNATURE',\n\t'UNABLE_TO_DECRYPT_CRL_SIGNATURE',\n\t'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',\n\t'CERT_SIGNATURE_FAILURE',\n\t'CRL_SIGNATURE_FAILURE',\n\t'CERT_NOT_YET_VALID',\n\t'CERT_HAS_EXPIRED',\n\t'CRL_NOT_YET_VALID',\n\t'CRL_HAS_EXPIRED',\n\t'ERROR_IN_CERT_NOT_BEFORE_FIELD',\n\t'ERROR_IN_CERT_NOT_AFTER_FIELD',\n\t'ERROR_IN_CRL_LAST_UPDATE_FIELD',\n\t'ERROR_IN_CRL_NEXT_UPDATE_FIELD',\n\t'OUT_OF_MEM',\n\t'DEPTH_ZERO_SELF_SIGNED_CERT',\n\t'SELF_SIGNED_CERT_IN_CHAIN',\n\t'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',\n\t'UNABLE_TO_VERIFY_LEAF_SIGNATURE',\n\t'CERT_CHAIN_TOO_LONG',\n\t'CERT_REVOKED',\n\t'INVALID_CA',\n\t'PATH_LENGTH_EXCEEDED',\n\t'INVALID_PURPOSE',\n\t'CERT_UNTRUSTED',\n\t'CERT_REJECTED'\n];\n\nmodule.exports = function (err) {\n\tif (!err || !err.code) {\n\t\treturn true;\n\t}\n\n\tif (WHITELIST.indexOf(err.code) !== -1) {\n\t\treturn true;\n\t}\n\n\tif (BLACKLIST.indexOf(err.code) !== -1) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n","{\n \"name\": \"got\",\n \"version\": \"6.7.1\",\n \"description\": \"Simplified HTTP requests\",\n \"license\": \"MIT\",\n \"repository\": \"sindresorhus/got\",\n \"maintainers\": [\n {\n \"name\": \"Sindre Sorhus\",\n \"email\": \"sindresorhus@gmail.com\",\n \"url\": \"sindresorhus.com\"\n },\n {\n \"name\": \"Vsevolod Strukchinsky\",\n \"email\": \"floatdrop@gmail.com\",\n \"url\": \"github.com/floatdrop\"\n }\n ],\n \"engines\": {\n \"node\": \">=4\"\n },\n \"browser\": {\n \"unzip-response\": false\n },\n \"scripts\": {\n \"test\": \"xo && nyc ava\",\n \"coveralls\": \"nyc report --reporter=text-lcov | coveralls\"\n },\n \"files\": [\n \"index.js\"\n ],\n \"keywords\": [\n \"http\",\n \"https\",\n \"get\",\n \"got\",\n \"url\",\n \"uri\",\n \"request\",\n \"util\",\n \"utility\",\n \"simple\",\n \"curl\",\n \"wget\",\n \"fetch\"\n ],\n \"dependencies\": {\n \"create-error-class\": \"^3.0.0\",\n \"duplexer3\": \"^0.1.4\",\n \"get-stream\": \"^3.0.0\",\n \"is-redirect\": \"^1.0.0\",\n \"is-retry-allowed\": \"^1.0.0\",\n \"is-stream\": \"^1.0.0\",\n \"lowercase-keys\": \"^1.0.0\",\n \"safe-buffer\": \"^5.0.1\",\n \"timed-out\": \"^4.0.0\",\n \"unzip-response\": \"^2.0.1\",\n \"url-parse-lax\": \"^1.0.0\"\n },\n \"devDependencies\": {\n \"ava\": \"^0.17.0\",\n \"coveralls\": \"^2.11.4\",\n \"form-data\": \"^2.1.1\",\n \"get-port\": \"^2.0.0\",\n \"into-stream\": \"^3.0.0\",\n \"nyc\": \"^10.0.0\",\n \"pem\": \"^1.4.4\",\n \"pify\": \"^2.3.0\",\n \"tempfile\": \"^1.1.1\",\n \"xo\": \"*\"\n },\n \"xo\": {\n \"esnext\": true\n },\n \"ava\": {\n \"concurrency\": 4\n }\n}\n","'use strict';\nconst dgram = require('dgram');\nconst dns = require('dns-socket');\nconst got = require('got');\nconst isIp = require('is-ip');\nconst pify = require('pify');\n\nconst defaults = {\n\ttimeout: 5000,\n\thttps: false\n};\n\nconst type = {\n\tv4: {\n\t\tdnsServer: '208.67.222.222',\n\t\tdnsQuestion: {\n\t\t\tname: 'myip.opendns.com',\n\t\t\ttype: 'A'\n\t\t},\n\t\thttpsUrl: 'https://ipv4.icanhazip.com/'\n\t},\n\tv6: {\n\t\tdnsServer: '2620:0:ccc::2',\n\t\tdnsQuestion: {\n\t\t\tname: 'myip.opendns.com',\n\t\t\ttype: 'AAAA'\n\t\t},\n\t\thttpsUrl: 'https://ipv6.icanhazip.com/'\n\t}\n};\n\nconst queryDns = (version, opts) => {\n\tconst data = type[version];\n\n\tconst socket = dns({\n\t\tretries: 0,\n\t\tsocket: dgram.createSocket(version === 'v6' ? 'udp6' : 'udp4'),\n\t\ttimeout: opts.timeout\n\t});\n\n\tconst promise = pify(socket.query.bind(socket))({\n\t\tquestions: [data.dnsQuestion]\n\t}, 53, data.dnsServer).then(res => {\n\t\tsocket.destroy();\n\t\tconst ip = ((res.answers[0] && res.answers[0].data) || '').trim();\n\n\t\tif (!ip || !isIp[version](ip)) {\n\t\t\tthrow new Error('Couldn\\'t find your IP');\n\t\t}\n\n\t\treturn ip;\n\t}).catch(err => {\n\t\tsocket.destroy();\n\t\tthrow err;\n\t});\n\n\tpromise.cancel = () => {\n\t\tsocket.cancel();\n\t};\n\n\treturn promise;\n};\n\nconst queryHttps = (version, opts) => {\n\tconst gotOpts = {\n\t\tfamily: version === 'v6' ? 6 : 4,\n\t\tretries: 0,\n\t\ttimeout: opts.timeout\n\t};\n\n\tconst gotPromise = got(type[version].httpsUrl, gotOpts);\n\n\tconst promise = gotPromise.then(res => {\n\t\tconst ip = (res.body || '').trim();\n\n\t\tif (!ip) {\n\t\t\tthrow new Error('Couldn\\'t find your IP');\n\t\t}\n\n\t\treturn ip;\n\t}).catch(err => {\n\t\t// Don't throw a cancellation error for consistency with DNS\n\t\tif (!(err instanceof got.CancelError)) {\n\t\t\tthrow err;\n\t\t}\n\t});\n\n\tpromise.cancel = gotPromise.cancel;\n\n\treturn promise;\n};\n\nmodule.exports.v4 = opts => {\n\topts = Object.assign({}, defaults, opts);\n\n\tif (opts.https) {\n\t\treturn queryHttps('v4', opts);\n\t}\n\n\treturn queryDns('v4', opts);\n};\n\nmodule.exports.v6 = opts => {\n\topts = Object.assign({}, defaults, opts);\n\n\tif (opts.https) {\n\t\treturn queryHttps('v6', opts);\n\t}\n\n\treturn queryDns('v6', opts);\n};\n","exports.toString = function (type) {\n switch (type) {\n case 1: return 'A'\n case 10: return 'NULL'\n case 28: return 'AAAA'\n case 18: return 'AFSDB'\n case 42: return 'APL'\n case 257: return 'CAA'\n case 60: return 'CDNSKEY'\n case 59: return 'CDS'\n case 37: return 'CERT'\n case 5: return 'CNAME'\n case 49: return 'DHCID'\n case 32769: return 'DLV'\n case 39: return 'DNAME'\n case 48: return 'DNSKEY'\n case 43: return 'DS'\n case 55: return 'HIP'\n case 13: return 'HINFO'\n case 45: return 'IPSECKEY'\n case 25: return 'KEY'\n case 36: return 'KX'\n case 29: return 'LOC'\n case 15: return 'MX'\n case 35: return 'NAPTR'\n case 2: return 'NS'\n case 47: return 'NSEC'\n case 50: return 'NSEC3'\n case 51: return 'NSEC3PARAM'\n case 12: return 'PTR'\n case 46: return 'RRSIG'\n case 17: return 'RP'\n case 24: return 'SIG'\n case 6: return 'SOA'\n case 99: return 'SPF'\n case 33: return 'SRV'\n case 44: return 'SSHFP'\n case 32768: return 'TA'\n case 249: return 'TKEY'\n case 52: return 'TLSA'\n case 250: return 'TSIG'\n case 16: return 'TXT'\n case 252: return 'AXFR'\n case 251: return 'IXFR'\n case 41: return 'OPT'\n case 255: return 'ANY'\n }\n return 'UNKNOWN_' + type\n}\n\nexports.toType = function (name) {\n switch (name.toUpperCase()) {\n case 'A': return 1\n case 'NULL': return 10\n case 'AAAA': return 28\n case 'AFSDB': return 18\n case 'APL': return 42\n case 'CAA': return 257\n case 'CDNSKEY': return 60\n case 'CDS': return 59\n case 'CERT': return 37\n case 'CNAME': return 5\n case 'DHCID': return 49\n case 'DLV': return 32769\n case 'DNAME': return 39\n case 'DNSKEY': return 48\n case 'DS': return 43\n case 'HIP': return 55\n case 'HINFO': return 13\n case 'IPSECKEY': return 45\n case 'KEY': return 25\n case 'KX': return 36\n case 'LOC': return 29\n case 'MX': return 15\n case 'NAPTR': return 35\n case 'NS': return 2\n case 'NSEC': return 47\n case 'NSEC3': return 50\n case 'NSEC3PARAM': return 51\n case 'PTR': return 12\n case 'RRSIG': return 46\n case 'RP': return 17\n case 'SIG': return 24\n case 'SOA': return 6\n case 'SPF': return 99\n case 'SRV': return 33\n case 'SSHFP': return 44\n case 'TA': return 32768\n case 'TKEY': return 249\n case 'TLSA': return 52\n case 'TSIG': return 250\n case 'TXT': return 16\n case 'AXFR': return 252\n case 'IXFR': return 251\n case 'OPT': return 41\n case 'ANY': return 255\n case '*': return 255\n }\n return 0\n}\n","/*\n * Traditional DNS header RCODEs (4-bits) defined by IANA in\n * https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml\n */\n\nexports.toString = function (rcode) {\n switch (rcode) {\n case 0: return 'NOERROR'\n case 1: return 'FORMERR'\n case 2: return 'SERVFAIL'\n case 3: return 'NXDOMAIN'\n case 4: return 'NOTIMP'\n case 5: return 'REFUSED'\n case 6: return 'YXDOMAIN'\n case 7: return 'YXRRSET'\n case 8: return 'NXRRSET'\n case 9: return 'NOTAUTH'\n case 10: return 'NOTZONE'\n case 11: return 'RCODE_11'\n case 12: return 'RCODE_12'\n case 13: return 'RCODE_13'\n case 14: return 'RCODE_14'\n case 15: return 'RCODE_15'\n }\n return 'RCODE_' + rcode\n}\n\nexports.toRcode = function (code) {\n switch (code.toUpperCase()) {\n case 'NOERROR': return 0\n case 'FORMERR': return 1\n case 'SERVFAIL': return 2\n case 'NXDOMAIN': return 3\n case 'NOTIMP': return 4\n case 'REFUSED': return 5\n case 'YXDOMAIN': return 6\n case 'YXRRSET': return 7\n case 'NXRRSET': return 8\n case 'NOTAUTH': return 9\n case 'NOTZONE': return 10\n case 'RCODE_11': return 11\n case 'RCODE_12': return 12\n case 'RCODE_13': return 13\n case 'RCODE_14': return 14\n case 'RCODE_15': return 15\n }\n return 0\n}\n","/*\n * Traditional DNS header OPCODEs (4-bits) defined by IANA in\n * https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-5\n */\n\nexports.toString = function (opcode) {\n switch (opcode) {\n case 0: return 'QUERY'\n case 1: return 'IQUERY'\n case 2: return 'STATUS'\n case 3: return 'OPCODE_3'\n case 4: return 'NOTIFY'\n case 5: return 'UPDATE'\n case 6: return 'OPCODE_6'\n case 7: return 'OPCODE_7'\n case 8: return 'OPCODE_8'\n case 9: return 'OPCODE_9'\n case 10: return 'OPCODE_10'\n case 11: return 'OPCODE_11'\n case 12: return 'OPCODE_12'\n case 13: return 'OPCODE_13'\n case 14: return 'OPCODE_14'\n case 15: return 'OPCODE_15'\n }\n return 'OPCODE_' + opcode\n}\n\nexports.toOpcode = function (code) {\n switch (code.toUpperCase()) {\n case 'QUERY': return 0\n case 'IQUERY': return 1\n case 'STATUS': return 2\n case 'OPCODE_3': return 3\n case 'NOTIFY': return 4\n case 'UPDATE': return 5\n case 'OPCODE_6': return 6\n case 'OPCODE_7': return 7\n case 'OPCODE_8': return 8\n case 'OPCODE_9': return 9\n case 'OPCODE_10': return 10\n case 'OPCODE_11': return 11\n case 'OPCODE_12': return 12\n case 'OPCODE_13': return 13\n case 'OPCODE_14': return 14\n case 'OPCODE_15': return 15\n }\n return 0\n}\n","'use strict';\nmodule.exports = function (str) {\n\treturn encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n\t\treturn '%' + c.charCodeAt(0).toString(16).toUpperCase();\n\t});\n};\n","'use strict';\nmodule.exports = (url, opts) => {\n\tif (typeof url !== 'string') {\n\t\tthrow new TypeError(`Expected \\`url\\` to be of type \\`string\\`, got \\`${typeof url}\\``);\n\t}\n\n\turl = url.trim();\n\topts = Object.assign({https: false}, opts);\n\n\tif (/^\\.*\\/|^(?!localhost)\\w+:/.test(url)) {\n\t\treturn url;\n\t}\n\n\treturn url.replace(/^(?!(?:\\w+:)?\\/\\/)/, opts.https ? 'https://' : 'http://');\n};\n","'use strict';\nvar toString = Object.prototype.toString;\n\nmodule.exports = function (x) {\n\tvar prototype;\n\treturn toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));\n};\n","'use strict';\nconst isPlainObj = require('is-plain-obj');\n\nmodule.exports = (obj, opts) => {\n\tif (!isPlainObj(obj)) {\n\t\tthrow new TypeError('Expected a plain object');\n\t}\n\n\topts = opts || {};\n\n\t// DEPRECATED\n\tif (typeof opts === 'function') {\n\t\tthrow new TypeError('Specify the compare function as an option instead');\n\t}\n\n\tconst deep = opts.deep;\n\tconst seenInput = [];\n\tconst seenOutput = [];\n\n\tconst sortKeys = x => {\n\t\tconst seenIndex = seenInput.indexOf(x);\n\n\t\tif (seenIndex !== -1) {\n\t\t\treturn seenOutput[seenIndex];\n\t\t}\n\n\t\tconst ret = {};\n\t\tconst keys = Object.keys(x).sort(opts.compare);\n\n\t\tseenInput.push(x);\n\t\tseenOutput.push(ret);\n\n\t\tfor (let i = 0; i < keys.length; i++) {\n\t\t\tconst key = keys[i];\n\t\t\tconst val = x[key];\n\n\t\t\tif (deep && Array.isArray(val)) {\n\t\t\t\tconst retArr = [];\n\n\t\t\t\tfor (let j = 0; j < val.length; j++) {\n\t\t\t\t\tretArr[j] = isPlainObj(val[j]) ? sortKeys(val[j]) : val[j];\n\t\t\t\t}\n\n\t\t\t\tret[key] = retArr;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tret[key] = deep && isPlainObj(val) ? sortKeys(val) : val;\n\t\t}\n\n\t\treturn ret;\n\t};\n\n\treturn sortKeys(obj);\n};\n","'use strict';\n\nconst Readable = require('stream').Readable;\nconst lowercaseKeys = require('lowercase-keys');\n\nclass Response extends Readable {\n\tconstructor(statusCode, headers, body, url) {\n\t\tif (typeof statusCode !== 'number') {\n\t\t\tthrow new TypeError('Argument `statusCode` should be a number');\n\t\t}\n\t\tif (typeof headers !== 'object') {\n\t\t\tthrow new TypeError('Argument `headers` should be an object');\n\t\t}\n\t\tif (!(body instanceof Buffer)) {\n\t\t\tthrow new TypeError('Argument `body` should be a buffer');\n\t\t}\n\t\tif (typeof url !== 'string') {\n\t\t\tthrow new TypeError('Argument `url` should be a string');\n\t\t}\n\n\t\tsuper();\n\t\tthis.statusCode = statusCode;\n\t\tthis.headers = lowercaseKeys(headers);\n\t\tthis.body = body;\n\t\tthis.url = url;\n\t}\n\n\t_read() {\n\t\tthis.push(this.body);\n\t\tthis.push(null);\n\t}\n}\n\nmodule.exports = Response;\n","'use strict';\nmodule.exports = function (obj) {\n\tvar ret = {};\n\tvar keys = Object.keys(Object(obj));\n\n\tfor (var i = 0; i < keys.length; i++) {\n\t\tret[keys[i].toLowerCase()] = obj[keys[i]];\n\t}\n\n\treturn ret;\n};\n","'use strict';\n\nconst PassThrough = require('stream').PassThrough;\nconst mimicResponse = require('mimic-response');\n\nconst cloneResponse = response => {\n\tif (!(response && response.pipe)) {\n\t\tthrow new TypeError('Parameter `response` must be a response stream.');\n\t}\n\n\tconst clone = new PassThrough();\n\tmimicResponse(response, clone);\n\n\treturn response.pipe(clone);\n};\n\nmodule.exports = cloneResponse;\n","'use strict';\n\n// We define these manually to ensure they're always copied\n// even if they would move up the prototype chain\n// https://nodejs.org/api/http.html#http_class_http_incomingmessage\nconst knownProps = [\n\t'destroy',\n\t'setTimeout',\n\t'socket',\n\t'headers',\n\t'trailers',\n\t'rawHeaders',\n\t'statusCode',\n\t'httpVersion',\n\t'httpVersionMinor',\n\t'httpVersionMajor',\n\t'rawTrailers',\n\t'statusMessage'\n];\n\nmodule.exports = (fromStream, toStream) => {\n\tconst fromProps = new Set(Object.keys(fromStream).concat(knownProps));\n\n\tfor (const prop of fromProps) {\n\t\t// Don't overwrite existing properties\n\t\tif (prop in toStream) {\n\t\t\tcontinue;\n\t\t}\n\n\t\ttoStream[prop] = typeof fromStream[prop] === 'function' ? fromStream[prop].bind(fromStream) : fromStream[prop];\n\t}\n};\n","//TODO: handle reviver/dehydrate function like normal\n//and handle indentation, like normal.\n//if anyone needs this... please send pull request.\n\nexports.stringify = function stringify (o) {\n if('undefined' == typeof o) return o\n\n if(o && Buffer.isBuffer(o))\n return JSON.stringify(':base64:' + o.toString('base64'))\n\n if(o && o.toJSON)\n o = o.toJSON()\n\n if(o && 'object' === typeof o) {\n var s = ''\n var array = Array.isArray(o)\n s = array ? '[' : '{'\n var first = true\n\n for(var k in o) {\n var ignore = 'function' == typeof o[k] || (!array && 'undefined' === typeof o[k])\n if(Object.hasOwnProperty.call(o, k) && !ignore) {\n if(!first)\n s += ','\n first = false\n if (array) {\n if(o[k] == undefined)\n s += 'null'\n else\n s += stringify(o[k])\n } else if (o[k] !== void(0)) {\n s += stringify(k) + ':' + stringify(o[k])\n }\n }\n }\n\n s += array ? ']' : '}'\n\n return s\n } else if ('string' === typeof o) {\n return JSON.stringify(/^:/.test(o) ? ':' + o : o)\n } else if ('undefined' === typeof o) {\n return 'null';\n } else\n return JSON.stringify(o)\n}\n\nexports.parse = function (s) {\n return JSON.parse(s, function (key, value) {\n if('string' === typeof value) {\n if(/^:base64:/.test(value))\n return new Buffer(value.substring(8), 'base64')\n else\n return /^:/.test(value) ? value.substring(1) : value \n }\n return value\n })\n}\n","'use strict';\n\nconst EventEmitter = require('events');\nconst JSONB = require('json-buffer');\n\nconst loadStore = opts => {\n\tconst adapters = {\n\t\tredis: '@keyv/redis',\n\t\tmongodb: '@keyv/mongo',\n\t\tmongo: '@keyv/mongo',\n\t\tsqlite: '@keyv/sqlite',\n\t\tpostgresql: '@keyv/postgres',\n\t\tpostgres: '@keyv/postgres',\n\t\tmysql: '@keyv/mysql'\n\t};\n\tif (opts.adapter || opts.uri) {\n\t\tconst adapter = opts.adapter || /^[^:]*/.exec(opts.uri)[0];\n\t\treturn new (require(adapters[adapter]))(opts);\n\t}\n\treturn new Map();\n};\n\nclass Keyv extends EventEmitter {\n\tconstructor(uri, opts) {\n\t\tsuper();\n\t\tthis.opts = Object.assign(\n\t\t\t{ namespace: 'keyv' },\n\t\t\t(typeof uri === 'string') ? { uri } : uri,\n\t\t\topts\n\t\t);\n\n\t\tif (!this.opts.store) {\n\t\t\tconst adapterOpts = Object.assign({}, this.opts);\n\t\t\tthis.opts.store = loadStore(adapterOpts);\n\t\t}\n\n\t\tif (typeof this.opts.store.on === 'function') {\n\t\t\tthis.opts.store.on('error', err => this.emit('error', err));\n\t\t}\n\n\t\tthis.opts.store.namespace = this.opts.namespace;\n\t}\n\n\t_getKeyPrefix(key) {\n\t\treturn `${this.opts.namespace}:${key}`;\n\t}\n\n\tget(key) {\n\t\tkey = this._getKeyPrefix(key);\n\t\tconst store = this.opts.store;\n\t\treturn Promise.resolve()\n\t\t\t.then(() => store.get(key))\n\t\t\t.then(data => {\n\t\t\t\tdata = (typeof data === 'string') ? JSONB.parse(data) : data;\n\t\t\t\tif (data === undefined) {\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tif (typeof data.expires === 'number' && Date.now() > data.expires) {\n\t\t\t\t\tthis.delete(key);\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\treturn data.value;\n\t\t\t});\n\t}\n\n\tset(key, value, ttl) {\n\t\tkey = this._getKeyPrefix(key);\n\t\tif (typeof ttl === 'undefined') {\n\t\t\tttl = this.opts.ttl;\n\t\t}\n\t\tif (ttl === 0) {\n\t\t\tttl = undefined;\n\t\t}\n\t\tconst store = this.opts.store;\n\n\t\treturn Promise.resolve()\n\t\t\t.then(() => {\n\t\t\t\tconst expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null;\n\t\t\t\tvalue = { value, expires };\n\t\t\t\treturn store.set(key, JSONB.stringify(value), ttl);\n\t\t\t})\n\t\t\t.then(() => true);\n\t}\n\n\tdelete(key) {\n\t\tkey = this._getKeyPrefix(key);\n\t\tconst store = this.opts.store;\n\t\treturn Promise.resolve()\n\t\t\t.then(() => store.delete(key));\n\t}\n\n\tclear() {\n\t\tconst store = this.opts.store;\n\t\treturn Promise.resolve()\n\t\t\t.then(() => store.clear());\n\t}\n}\n\nmodule.exports = Keyv;\n","'use strict';\n\nconst EventEmitter = require('events');\nconst urlLib = require('url');\nconst normalizeUrl = require('normalize-url');\nconst getStream = require('get-stream');\nconst CachePolicy = require('http-cache-semantics');\nconst Response = require('responselike');\nconst lowercaseKeys = require('lowercase-keys');\nconst cloneResponse = require('clone-response');\nconst Keyv = require('keyv');\n\nclass CacheableRequest {\n\tconstructor(request, cacheAdapter) {\n\t\tif (typeof request !== 'function') {\n\t\t\tthrow new TypeError('Parameter `request` must be a function');\n\t\t}\n\n\t\tthis.cache = new Keyv({\n\t\t\turi: typeof cacheAdapter === 'string' && cacheAdapter,\n\t\t\tstore: typeof cacheAdapter !== 'string' && cacheAdapter,\n\t\t\tnamespace: 'cacheable-request'\n\t\t});\n\n\t\treturn this.createCacheableRequest(request);\n\t}\n\n\tcreateCacheableRequest(request) {\n\t\treturn (opts, cb) => {\n\t\t\tif (typeof opts === 'string') {\n\t\t\t\topts = urlLib.parse(opts);\n\t\t\t}\n\t\t\topts = Object.assign({\n\t\t\t\theaders: {},\n\t\t\t\tmethod: 'GET',\n\t\t\t\tcache: true,\n\t\t\t\tstrictTtl: false,\n\t\t\t\tautomaticFailover: false\n\t\t\t}, opts);\n\t\t\topts.headers = lowercaseKeys(opts.headers);\n\n\t\t\tconst ee = new EventEmitter();\n\t\t\tconst url = normalizeUrl(urlLib.format(opts));\n\t\t\tconst key = `${opts.method}:${url}`;\n\t\t\tlet revalidate = false;\n\t\t\tlet madeRequest = false;\n\n\t\t\tconst makeRequest = opts => {\n\t\t\t\tmadeRequest = true;\n\t\t\t\tconst handler = response => {\n\t\t\t\t\tif (revalidate) {\n\t\t\t\t\t\tconst revalidatedPolicy = CachePolicy.fromObject(revalidate.cachePolicy).revalidatedPolicy(opts, response);\n\t\t\t\t\t\tif (!revalidatedPolicy.modified) {\n\t\t\t\t\t\t\tconst headers = revalidatedPolicy.policy.responseHeaders();\n\t\t\t\t\t\t\tresponse = new Response(response.statusCode, headers, revalidate.body, revalidate.url);\n\t\t\t\t\t\t\tresponse.cachePolicy = revalidatedPolicy.policy;\n\t\t\t\t\t\t\tresponse.fromCache = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!response.fromCache) {\n\t\t\t\t\t\tresponse.cachePolicy = new CachePolicy(opts, response);\n\t\t\t\t\t\tresponse.fromCache = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tlet clonedResponse;\n\t\t\t\t\tif (opts.cache && response.cachePolicy.storable()) {\n\t\t\t\t\t\tclonedResponse = cloneResponse(response);\n\t\t\t\t\t\tgetStream.buffer(response)\n\t\t\t\t\t\t\t.then(body => {\n\t\t\t\t\t\t\t\tconst value = {\n\t\t\t\t\t\t\t\t\tcachePolicy: response.cachePolicy.toObject(),\n\t\t\t\t\t\t\t\t\turl: response.url,\n\t\t\t\t\t\t\t\t\tstatusCode: response.fromCache ? revalidate.statusCode : response.statusCode,\n\t\t\t\t\t\t\t\t\tbody\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tconst ttl = opts.strictTtl ? response.cachePolicy.timeToLive() : undefined;\n\t\t\t\t\t\t\t\treturn this.cache.set(key, value, ttl);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.catch(err => ee.emit('error', new CacheableRequest.CacheError(err)));\n\t\t\t\t\t} else if (opts.cache && revalidate) {\n\t\t\t\t\t\tthis.cache.delete(key)\n\t\t\t\t\t\t\t.catch(err => ee.emit('error', new CacheableRequest.CacheError(err)));\n\t\t\t\t\t}\n\n\t\t\t\t\tee.emit('response', clonedResponse || response);\n\t\t\t\t\tif (typeof cb === 'function') {\n\t\t\t\t\t\tcb(clonedResponse || response);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\ttry {\n\t\t\t\t\tconst req = request(opts, handler);\n\t\t\t\t\tee.emit('request', req);\n\t\t\t\t} catch (err) {\n\t\t\t\t\tee.emit('error', new CacheableRequest.RequestError(err));\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tconst get = opts => Promise.resolve()\n\t\t\t\t.then(() => opts.cache ? this.cache.get(key) : undefined)\n\t\t\t\t.then(cacheEntry => {\n\t\t\t\t\tif (typeof cacheEntry === 'undefined') {\n\t\t\t\t\t\treturn makeRequest(opts);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst policy = CachePolicy.fromObject(cacheEntry.cachePolicy);\n\t\t\t\t\tif (policy.satisfiesWithoutRevalidation(opts)) {\n\t\t\t\t\t\tconst headers = policy.responseHeaders();\n\t\t\t\t\t\tconst response = new Response(cacheEntry.statusCode, headers, cacheEntry.body, cacheEntry.url);\n\t\t\t\t\t\tresponse.cachePolicy = policy;\n\t\t\t\t\t\tresponse.fromCache = true;\n\n\t\t\t\t\t\tee.emit('response', response);\n\t\t\t\t\t\tif (typeof cb === 'function') {\n\t\t\t\t\t\t\tcb(response);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\trevalidate = cacheEntry;\n\t\t\t\t\t\topts.headers = policy.revalidationHeaders(opts);\n\t\t\t\t\t\tmakeRequest(opts);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\tthis.cache.on('error', err => ee.emit('error', new CacheableRequest.CacheError(err)));\n\n\t\t\tget(opts).catch(err => {\n\t\t\t\tif (opts.automaticFailover && !madeRequest) {\n\t\t\t\t\tmakeRequest(opts);\n\t\t\t\t}\n\t\t\t\tee.emit('error', new CacheableRequest.CacheError(err));\n\t\t\t});\n\n\t\t\treturn ee;\n\t\t};\n\t}\n}\n\nCacheableRequest.RequestError = class extends Error {\n\tconstructor(err) {\n\t\tsuper(err.message);\n\t\tthis.name = 'RequestError';\n\t\tObject.assign(this, err);\n\t}\n};\n\nCacheableRequest.CacheError = class extends Error {\n\tconstructor(err) {\n\t\tsuper(err.message);\n\t\tthis.name = 'CacheError';\n\t\tObject.assign(this, err);\n\t}\n};\n\nmodule.exports = CacheableRequest;\n","'use strict';\nmodule.exports = x => (\n\tx instanceof Promise ||\n\t(\n\t\tx !== null &&\n\t\ttypeof x === 'object' &&\n\t\ttypeof x.then === 'function' &&\n\t\ttypeof x.catch === 'function'\n\t)\n);\n","'use strict';\nconst from = require('from2');\nconst pIsPromise = require('p-is-promise');\n\nmodule.exports = x => {\n\tif (Array.isArray(x)) {\n\t\tx = x.slice();\n\t}\n\n\tlet promise;\n\tlet iterator;\n\n\tprepare(x);\n\n\tfunction prepare(value) {\n\t\tx = value;\n\t\tpromise = pIsPromise(x) ? x : null;\n\t\t// we don't iterate on strings and buffers since slicing them is ~7x faster\n\t\tconst shouldIterate = !promise && x[Symbol.iterator] && typeof x !== 'string' && !Buffer.isBuffer(x);\n\t\titerator = shouldIterate ? x[Symbol.iterator]() : null;\n\t}\n\n\treturn from(function reader(size, cb) {\n\t\tif (promise) {\n\t\t\tpromise.then(prepare).then(() => reader.call(this, size, cb), cb);\n\t\t\treturn;\n\t\t}\n\n\t\tif (iterator) {\n\t\t\tconst obj = iterator.next();\n\t\t\tsetImmediate(cb, null, obj.done ? null : obj.value);\n\t\t\treturn;\n\t\t}\n\n\t\tif (x.length === 0) {\n\t\t\tsetImmediate(cb, null, null);\n\t\t\treturn;\n\t\t}\n\n\t\tconst chunk = x.slice(0, size);\n\t\tx = x.slice(size);\n\n\t\tsetImmediate(cb, null, chunk);\n\t});\n};\n\nmodule.exports.obj = x => {\n\tif (Array.isArray(x)) {\n\t\tx = x.slice();\n\t}\n\n\tlet promise;\n\tlet iterator;\n\n\tprepare(x);\n\n\tfunction prepare(value) {\n\t\tx = value;\n\t\tpromise = pIsPromise(x) ? x : null;\n\t\titerator = !promise && x[Symbol.iterator] ? x[Symbol.iterator]() : null;\n\t}\n\n\treturn from.obj(function reader(size, cb) {\n\t\tif (promise) {\n\t\t\tpromise.then(prepare).then(() => reader.call(this, size, cb), cb);\n\t\t\treturn;\n\t\t}\n\n\t\tif (iterator) {\n\t\t\tconst obj = iterator.next();\n\t\t\tsetImmediate(cb, null, obj.done ? null : obj.value);\n\t\t\treturn;\n\t\t}\n\n\t\tthis.push(x);\n\n\t\tsetImmediate(cb, null, null);\n\t});\n};\n","'use strict';\nconst url = require('url');\nconst prependHttp = require('prepend-http');\n\nmodule.exports = (input, options) => {\n\tif (typeof input !== 'string') {\n\t\tthrow new TypeError(`Expected \\`url\\` to be of type \\`string\\`, got \\`${typeof input}\\` instead.`);\n\t}\n\n\tconst finalUrl = prependHttp(input, Object.assign({https: true}, options));\n\treturn url.parse(finalUrl);\n};\n","'use strict';\n\n\n\n// Copied from https://github.com/nodejs/node/blob/master/lib/internal/url.js\n\nfunction urlToOptions(url) {\n var options = {\n protocol: url.protocol,\n hostname: url.hostname,\n hash: url.hash,\n search: url.search,\n pathname: url.pathname,\n path: `${url.pathname}${url.search}`,\n href: url.href\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = `${url.username}:${url.password}`;\n }\n return options;\n}\n\n\n\nmodule.exports = urlToOptions;\n","'use strict';\nconst PassThrough = require('stream').PassThrough;\nconst zlib = require('zlib');\nconst mimicResponse = require('mimic-response');\n\nmodule.exports = response => {\n\t// TODO: Use Array#includes when targeting Node.js 6\n\tif (['gzip', 'deflate'].indexOf(response.headers['content-encoding']) === -1) {\n\t\treturn response;\n\t}\n\n\tconst unzip = zlib.createUnzip();\n\tconst stream = new PassThrough();\n\n\tmimicResponse(response, stream);\n\n\tunzip.on('error', err => {\n\t\tif (err.code === 'Z_BUF_ERROR') {\n\t\t\tstream.end();\n\t\t\treturn;\n\t\t}\n\n\t\tstream.emit('error', err);\n\t});\n\n\tresponse.pipe(unzip).pipe(stream);\n\n\treturn stream;\n};\n","/**\n * @file Tests if ES6 @@toStringTag is supported.\n * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag|26.3.1 @@toStringTag}\n * @version 1.4.1\n * @author Xotic750 \n * @copyright Xotic750\n * @license {@link MIT}\n * @module has-to-string-tag-x\n */\n\n'use strict';\n\n/**\n * Indicates if `Symbol.toStringTag`exists and is the correct type.\n * `true`, if it exists and is the correct type, otherwise `false`.\n *\n * @type boolean\n */\nmodule.exports = require('has-symbol-support-x') && typeof Symbol.toStringTag === 'symbol';\n","'use strict';\n\nmodule.exports = function isObject(x) {\n\treturn typeof x === 'object' && x !== null;\n};\n","\"use strict\";\nconst hasToStringTag = require(\"has-to-string-tag-x\");\nconst isObject = require(\"is-object\");\n\nconst toString = Object.prototype.toString;\nconst urlClass = \"[object URL]\";\n\nconst hash = \"hash\";\nconst host = \"host\";\nconst hostname = \"hostname\";\nconst href = \"href\";\nconst password = \"password\";\nconst pathname = \"pathname\";\nconst port = \"port\";\nconst protocol = \"protocol\";\nconst search = \"search\";\nconst username = \"username\";\n\n\n\nconst isURL = (url, supportIncomplete/*=false*/) =>\n{\n\tif (!isObject(url)) return false;\n\n\t// Native implementation in older browsers\n\tif (!hasToStringTag && toString.call(url) === urlClass) return true;\n\n\tif (!(href in url)) return false;\n\tif (!(protocol in url)) return false;\n\tif (!(username in url)) return false;\n\tif (!(password in url)) return false;\n\tif (!(hostname in url)) return false;\n\tif (!(port in url)) return false;\n\tif (!(host in url)) return false;\n\tif (!(pathname in url)) return false;\n\tif (!(search in url)) return false;\n\tif (!(hash in url)) return false;\n\n\tif (supportIncomplete !== true)\n\t{\n\t\tif (!isObject(url.searchParams)) return false;\n\n\t\t// TODO :: write a separate isURLSearchParams ?\n\t}\n\n\treturn true;\n}\n\n\n\nisURL.lenient = url =>\n{\n\treturn isURL(url, true);\n};\n\n\n\nmodule.exports = isURL;\n","'use strict';\n\nclass CancelError extends Error {\n\tconstructor() {\n\t\tsuper('Promise was canceled');\n\t\tthis.name = 'CancelError';\n\t}\n\n\tget isCanceled() {\n\t\treturn true;\n\t}\n}\n\nclass PCancelable {\n\tstatic fn(userFn) {\n\t\treturn function () {\n\t\t\tconst args = [].slice.apply(arguments);\n\t\t\treturn new PCancelable((resolve, reject, onCancel) => {\n\t\t\t\targs.push(onCancel);\n\t\t\t\tuserFn.apply(null, args).then(resolve, reject);\n\t\t\t});\n\t\t};\n\t}\n\n\tconstructor(executor) {\n\t\tthis._cancelHandlers = [];\n\t\tthis._isPending = true;\n\t\tthis._isCanceled = false;\n\n\t\tthis._promise = new Promise((resolve, reject) => {\n\t\t\tthis._reject = reject;\n\n\t\t\treturn executor(\n\t\t\t\tvalue => {\n\t\t\t\t\tthis._isPending = false;\n\t\t\t\t\tresolve(value);\n\t\t\t\t},\n\t\t\t\terror => {\n\t\t\t\t\tthis._isPending = false;\n\t\t\t\t\treject(error);\n\t\t\t\t},\n\t\t\t\thandler => {\n\t\t\t\t\tthis._cancelHandlers.push(handler);\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\tthen(onFulfilled, onRejected) {\n\t\treturn this._promise.then(onFulfilled, onRejected);\n\t}\n\n\tcatch(onRejected) {\n\t\treturn this._promise.catch(onRejected);\n\t}\n\n\tfinally(onFinally) {\n\t\treturn this._promise.finally(onFinally);\n\t}\n\n\tcancel() {\n\t\tif (!this._isPending || this._isCanceled) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cancelHandlers.length > 0) {\n\t\t\ttry {\n\t\t\t\tfor (const handler of this._cancelHandlers) {\n\t\t\t\t\thandler();\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\tthis._reject(err);\n\t\t\t}\n\t\t}\n\n\t\tthis._isCanceled = true;\n\t\tthis._reject(new CancelError());\n\t}\n\n\tget isCanceled() {\n\t\treturn this._isCanceled;\n\t}\n}\n\nObject.setPrototypeOf(PCancelable.prototype, Promise.prototype);\n\nmodule.exports = PCancelable;\nmodule.exports.CancelError = CancelError;\n","'use strict';\nmodule.exports = (promise, onFinally) => {\n\tonFinally = onFinally || (() => {});\n\n\treturn promise.then(\n\t\tval => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => val),\n\t\terr => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => {\n\t\t\tthrow err;\n\t\t})\n\t);\n};\n","'use strict';\nconst pFinally = require('p-finally');\n\nclass TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\nmodule.exports = (promise, ms, fallback) => new Promise((resolve, reject) => {\n\tif (typeof ms !== 'number' || ms < 0) {\n\t\tthrow new TypeError('Expected `ms` to be a positive number');\n\t}\n\n\tconst timer = setTimeout(() => {\n\t\tif (typeof fallback === 'function') {\n\t\t\ttry {\n\t\t\t\tresolve(fallback());\n\t\t\t} catch (err) {\n\t\t\t\treject(err);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst message = typeof fallback === 'string' ? fallback : `Promise timed out after ${ms} milliseconds`;\n\t\tconst err = fallback instanceof Error ? fallback : new TimeoutError(message);\n\n\t\tif (typeof promise.cancel === 'function') {\n\t\t\tpromise.cancel();\n\t\t}\n\n\t\treject(err);\n\t}, ms);\n\n\tpFinally(\n\t\tpromise.then(resolve, reject),\n\t\t() => {\n\t\t\tclearTimeout(timer);\n\t\t}\n\t);\n});\n\nmodule.exports.TimeoutError = TimeoutError;\n","'use strict';\n\nconst processFn = (fn, opts) => function () {\n\tconst P = opts.promiseModule;\n\tconst args = new Array(arguments.length);\n\n\tfor (let i = 0; i < arguments.length; i++) {\n\t\targs[i] = arguments[i];\n\t}\n\n\treturn new P((resolve, reject) => {\n\t\tif (opts.errorFirst) {\n\t\t\targs.push(function (err, result) {\n\t\t\t\tif (opts.multiArgs) {\n\t\t\t\t\tconst results = new Array(arguments.length - 1);\n\n\t\t\t\t\tfor (let i = 1; i < arguments.length; i++) {\n\t\t\t\t\t\tresults[i - 1] = arguments[i];\n\t\t\t\t\t}\n\n\t\t\t\t\tif (err) {\n\t\t\t\t\t\tresults.unshift(err);\n\t\t\t\t\t\treject(results);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresolve(results);\n\t\t\t\t\t}\n\t\t\t\t} else if (err) {\n\t\t\t\t\treject(err);\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\targs.push(function (result) {\n\t\t\t\tif (opts.multiArgs) {\n\t\t\t\t\tconst results = new Array(arguments.length - 1);\n\n\t\t\t\t\tfor (let i = 0; i < arguments.length; i++) {\n\t\t\t\t\t\tresults[i] = arguments[i];\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(results);\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tfn.apply(this, args);\n\t});\n};\n\nmodule.exports = (obj, opts) => {\n\topts = Object.assign({\n\t\texclude: [/.+(Sync|Stream)$/],\n\t\terrorFirst: true,\n\t\tpromiseModule: Promise\n\t}, opts);\n\n\tconst filter = key => {\n\t\tconst match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key);\n\t\treturn opts.include ? opts.include.some(match) : !opts.exclude.some(match);\n\t};\n\n\tlet ret;\n\tif (typeof obj === 'function') {\n\t\tret = function () {\n\t\t\tif (opts.excludeMain) {\n\t\t\t\treturn obj.apply(this, arguments);\n\t\t\t}\n\n\t\t\treturn processFn(obj, opts).apply(this, arguments);\n\t\t};\n\t} else {\n\t\tret = Object.create(Object.getPrototypeOf(obj));\n\t}\n\n\tfor (const key in obj) { // eslint-disable-line guard-for-in\n\t\tconst x = obj[key];\n\t\tret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x;\n\t}\n\n\treturn ret;\n};\n","{\n\t\"name\": \"got\",\n\t\"version\": \"8.3.2\",\n\t\"description\": \"Simplified HTTP requests\",\n\t\"license\": \"MIT\",\n\t\"repository\": \"sindresorhus/got\",\n\t\"maintainers\": [\n\t\t{\n\t\t\t\"name\": \"Sindre Sorhus\",\n\t\t\t\"email\": \"sindresorhus@gmail.com\",\n\t\t\t\"url\": \"sindresorhus.com\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Vsevolod Strukchinsky\",\n\t\t\t\"email\": \"floatdrop@gmail.com\",\n\t\t\t\"url\": \"github.com/floatdrop\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Alexander Tesfamichael\",\n\t\t\t\"email\": \"alex.tesfamichael@gmail.com\",\n\t\t\t\"url\": \"alextes.me\"\n\t\t}\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=4\"\n\t},\n\t\"scripts\": {\n\t\t\"test\": \"xo && nyc ava\",\n\t\t\"coveralls\": \"nyc report --reporter=text-lcov | coveralls\"\n\t},\n\t\"files\": [\n\t\t\"index.js\",\n\t\t\"errors.js\"\n\t],\n\t\"keywords\": [\n\t\t\"http\",\n\t\t\"https\",\n\t\t\"get\",\n\t\t\"got\",\n\t\t\"url\",\n\t\t\"uri\",\n\t\t\"request\",\n\t\t\"util\",\n\t\t\"utility\",\n\t\t\"simple\",\n\t\t\"curl\",\n\t\t\"wget\",\n\t\t\"fetch\",\n\t\t\"net\",\n\t\t\"network\",\n\t\t\"electron\"\n\t],\n\t\"dependencies\": {\n\t\t\"@sindresorhus/is\": \"^0.7.0\",\n\t\t\"cacheable-request\": \"^2.1.1\",\n\t\t\"decompress-response\": \"^3.3.0\",\n\t\t\"duplexer3\": \"^0.1.4\",\n\t\t\"get-stream\": \"^3.0.0\",\n\t\t\"into-stream\": \"^3.1.0\",\n\t\t\"is-retry-allowed\": \"^1.1.0\",\n\t\t\"isurl\": \"^1.0.0-alpha5\",\n\t\t\"lowercase-keys\": \"^1.0.0\",\n\t\t\"mimic-response\": \"^1.0.0\",\n\t\t\"p-cancelable\": \"^0.4.0\",\n\t\t\"p-timeout\": \"^2.0.1\",\n\t\t\"pify\": \"^3.0.0\",\n\t\t\"safe-buffer\": \"^5.1.1\",\n\t\t\"timed-out\": \"^4.0.1\",\n\t\t\"url-parse-lax\": \"^3.0.0\",\n\t\t\"url-to-options\": \"^1.0.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"ava\": \"^0.25.0\",\n\t\t\"coveralls\": \"^3.0.0\",\n\t\t\"form-data\": \"^2.1.1\",\n\t\t\"get-port\": \"^3.0.0\",\n\t\t\"nyc\": \"^11.0.2\",\n\t\t\"p-event\": \"^1.3.0\",\n\t\t\"pem\": \"^1.4.4\",\n\t\t\"proxyquire\": \"^1.8.0\",\n\t\t\"sinon\": \"^4.0.0\",\n\t\t\"slow-stream\": \"0.0.4\",\n\t\t\"tempfile\": \"^2.0.0\",\n\t\t\"tempy\": \"^0.2.1\",\n\t\t\"universal-url\": \"1.0.0-alpha\",\n\t\t\"xo\": \"^0.20.0\"\n\t},\n\t\"ava\": {\n\t\t\"concurrency\": 4\n\t},\n\t\"browser\": {\n\t\t\"decompress-response\": false,\n\t\t\"electron\": false\n\t}\n}\n","'use strict';\nconst urlLib = require('url');\nconst http = require('http');\nconst PCancelable = require('p-cancelable');\nconst is = require('@sindresorhus/is');\n\nclass GotError extends Error {\n\tconstructor(message, error, opts) {\n\t\tsuper(message);\n\t\tError.captureStackTrace(this, this.constructor);\n\t\tthis.name = 'GotError';\n\n\t\tif (!is.undefined(error.code)) {\n\t\t\tthis.code = error.code;\n\t\t}\n\n\t\tObject.assign(this, {\n\t\t\thost: opts.host,\n\t\t\thostname: opts.hostname,\n\t\t\tmethod: opts.method,\n\t\t\tpath: opts.path,\n\t\t\tprotocol: opts.protocol,\n\t\t\turl: opts.href\n\t\t});\n\t}\n}\n\nmodule.exports.GotError = GotError;\n\nmodule.exports.CacheError = class extends GotError {\n\tconstructor(error, opts) {\n\t\tsuper(error.message, error, opts);\n\t\tthis.name = 'CacheError';\n\t}\n};\n\nmodule.exports.RequestError = class extends GotError {\n\tconstructor(error, opts) {\n\t\tsuper(error.message, error, opts);\n\t\tthis.name = 'RequestError';\n\t}\n};\n\nmodule.exports.ReadError = class extends GotError {\n\tconstructor(error, opts) {\n\t\tsuper(error.message, error, opts);\n\t\tthis.name = 'ReadError';\n\t}\n};\n\nmodule.exports.ParseError = class extends GotError {\n\tconstructor(error, statusCode, opts, data) {\n\t\tsuper(`${error.message} in \"${urlLib.format(opts)}\": \\n${data.slice(0, 77)}...`, error, opts);\n\t\tthis.name = 'ParseError';\n\t\tthis.statusCode = statusCode;\n\t\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\t}\n};\n\nmodule.exports.HTTPError = class extends GotError {\n\tconstructor(statusCode, statusMessage, headers, opts) {\n\t\tif (statusMessage) {\n\t\t\tstatusMessage = statusMessage.replace(/\\r?\\n/g, ' ').trim();\n\t\t} else {\n\t\t\tstatusMessage = http.STATUS_CODES[statusCode];\n\t\t}\n\t\tsuper(`Response code ${statusCode} (${statusMessage})`, {}, opts);\n\t\tthis.name = 'HTTPError';\n\t\tthis.statusCode = statusCode;\n\t\tthis.statusMessage = statusMessage;\n\t\tthis.headers = headers;\n\t}\n};\n\nmodule.exports.MaxRedirectsError = class extends GotError {\n\tconstructor(statusCode, redirectUrls, opts) {\n\t\tsuper('Redirected 10 times. Aborting.', {}, opts);\n\t\tthis.name = 'MaxRedirectsError';\n\t\tthis.statusCode = statusCode;\n\t\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\t\tthis.redirectUrls = redirectUrls;\n\t}\n};\n\nmodule.exports.UnsupportedProtocolError = class extends GotError {\n\tconstructor(opts) {\n\t\tsuper(`Unsupported protocol \"${opts.protocol}\"`, {}, opts);\n\t\tthis.name = 'UnsupportedProtocolError';\n\t}\n};\n\nmodule.exports.CancelError = PCancelable.CancelError;\n","'use strict';\n\nconst v4 = '(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}';\n\nconst v6seg = '[0-9a-fA-F]{1,4}';\nconst v6 = `\n(\n(?:${v6seg}:){7}(?:${v6seg}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${v6seg}:){6}(?:${v4}|:${v6seg}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${v6seg}:){5}(?::${v4}|(:${v6seg}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${v6seg}:){4}(?:(:${v6seg}){0,1}:${v4}|(:${v6seg}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${v6seg}:){3}(?:(:${v6seg}){0,2}:${v4}|(:${v6seg}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${v6seg}:){2}(?:(:${v6seg}){0,3}:${v4}|(:${v6seg}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${v6seg}:){1}(?:(:${v6seg}){0,4}:${v4}|(:${v6seg}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${v6seg}){0,5}:${v4}|(?::${v6seg}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\\s*\\/\\/.*$/gm, '').replace(/\\n/g, '').trim();\n\nconst ip = module.exports = opts => opts && opts.exact ?\n\tnew RegExp(`(?:^${v4}$)|(?:^${v6}$)`) :\n\tnew RegExp(`(?:${v4})|(?:${v6})`, 'g');\n\nip.v4 = opts => opts && opts.exact ? new RegExp(`^${v4}$`) : new RegExp(v4, 'g');\nip.v6 = opts => opts && opts.exact ? new RegExp(`^${v6}$`) : new RegExp(v6, 'g');\n","'use strict';\nconst ipRegex = require('ip-regex');\n\nconst isIp = module.exports = x => ipRegex({exact: true}).test(x);\nisIp.v4 = x => ipRegex.v4({exact: true}).test(x);\nisIp.v6 = x => ipRegex.v6({exact: true}).test(x);\n","'use strict';\nmodule.exports = (str, count, opts) => {\n\t// Support older versions: use the third parameter as options.indent\n\t// TODO: Remove the workaround in the next major version\n\tconst options = typeof opts === 'object' ? Object.assign({indent: ' '}, opts) : {indent: opts || ' '};\n\tcount = count === undefined ? 1 : count;\n\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError(`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof str}\\``);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``);\n\t}\n\n\tif (typeof options.indent !== 'string') {\n\t\tthrow new TypeError(`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof options.indent}\\``);\n\t}\n\n\tif (count === 0) {\n\t\treturn str;\n\t}\n\n\tconst regex = options.includeEmptyLines ? /^/mg : /^(?!\\s*$)/mg;\n\treturn str.replace(regex, options.indent.repeat(count));\n}\n;\n","'use strict';\nconst os = require('os');\n\nconst extractPathRegex = /\\s+at.*(?:\\(|\\s)(.*)\\)?/;\nconst pathRegex = /^(?:(?:(?:node|(?:internal\\/[\\w/]*|.*node_modules\\/babel-polyfill\\/.*)?\\w+)\\.js:\\d+:\\d+)|native)/;\nconst homeDir = os.homedir();\n\nmodule.exports = (stack, options) => {\n\toptions = Object.assign({pretty: false}, options);\n\n\treturn stack.replace(/\\\\/g, '/')\n\t\t.split('\\n')\n\t\t.filter(x => {\n\t\t\tconst pathMatches = x.match(extractPathRegex);\n\t\t\tif (pathMatches === null || !pathMatches[1]) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tconst match = pathMatches[1];\n\n\t\t\t// Electron\n\t\t\tif (match.includes('.app/Contents/Resources/electron.asar') ||\n\t\t\t\tmatch.includes('.app/Contents/Resources/default_app.asar')) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn !pathRegex.test(match);\n\t\t})\n\t\t.filter(x => x.trim() !== '')\n\t\t.map(x => {\n\t\t\tif (options.pretty) {\n\t\t\t\treturn x.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, '~')));\n\t\t\t}\n\n\t\t\treturn x;\n\t\t})\n\t\t.join('\\n');\n};\n","'use strict';\nconst indentString = require('indent-string');\nconst cleanStack = require('clean-stack');\n\nconst cleanInternalStack = stack => stack.replace(/\\s+at .*aggregate-error\\/index.js:\\d+:\\d+\\)?/g, '');\n\nclass AggregateError extends Error {\n\tconstructor(errors) {\n\t\t// Even though strings are iterable, we don't allow them to prevent subtle user mistakes\n\t\tif (!errors[Symbol.iterator] || typeof errors === 'string') {\n\t\t\tthrow new TypeError(`Expected input to be iterable, got ${typeof errors}`);\n\t\t}\n\n\t\terrors = Array.from(errors).map(err => err instanceof Error ? err : new Error(err));\n\n\t\tlet message = errors.map(err => cleanInternalStack(cleanStack(err.stack))).join('\\n');\n\t\tmessage = '\\n' + indentString(message, 4);\n\n\t\tsuper(message);\n\t\tthis.name = this.constructor.name;\n\t\tObject.defineProperty(this, '_errors', {value: errors});\n\t}\n\t* [Symbol.iterator]() {\n\t\tfor (const error of this._errors) {\n\t\t\tyield error;\n\t\t}\n\t}\n}\n\nmodule.exports = AggregateError;\n","'use strict';\nconst pSome = require('p-some');\n\nmodule.exports = (iterable, opts) => pSome(iterable, Object.assign({}, opts, {count: 1})).then(values => values[0]);\n\nmodule.exports.AggregateError = pSome.AggregateError;\n","'use strict';\nconst AggregateError = require('aggregate-error');\n\nmodule.exports = (iterable, opts) => new Promise((resolve, reject) => {\n\topts = Object.assign({}, opts);\n\n\tif (!Number.isFinite(opts.count)) {\n\t\tthrow new TypeError(`Expected a finite number, got ${typeof opts.count}`);\n\t}\n\n\tconst values = [];\n\tconst errors = [];\n\tlet elCount = 0;\n\tlet maxErrors = -opts.count + 1;\n\tlet maxFiltered = -opts.count + 1;\n\tlet done = false;\n\n\tconst fulfilled = value => {\n\t\tif (done) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof opts.filter === 'function' && !opts.filter(value)) {\n\t\t\tif (--maxFiltered === 0) {\n\t\t\t\tdone = true;\n\t\t\t\treject(new RangeError(`Not enough values pass the \\`filter\\` option`));\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalues.push(value);\n\n\t\tif (--opts.count === 0) {\n\t\t\tdone = true;\n\t\t\tresolve(values);\n\t\t}\n\t};\n\n\tconst rejected = error => {\n\t\tif (done) {\n\t\t\treturn;\n\t\t}\n\n\t\terrors.push(error);\n\n\t\tif (--maxErrors === 0) {\n\t\t\tdone = true;\n\t\t\treject(new AggregateError(errors));\n\t\t}\n\t};\n\n\tfor (const el of iterable) {\n\t\tmaxErrors++;\n\t\tmaxFiltered++;\n\t\telCount++;\n\t\tPromise.resolve(el).then(fulfilled, rejected);\n\t}\n\n\tif (opts.count > elCount) {\n\t\tthrow new RangeError(`Expected input to contain at least ${opts.count} items, but contains ${elCount} items`);\n\t}\n});\n\nmodule.exports.AggregateError = AggregateError;\n","'use strict';\nconst pFinally = require('p-finally');\n\nclass TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\nmodule.exports = (promise, ms, fallback) => new Promise((resolve, reject) => {\n\tif (typeof ms !== 'number' || ms < 0) {\n\t\tthrow new TypeError('Expected `ms` to be a positive number');\n\t}\n\n\tconst timer = setTimeout(() => {\n\t\tif (typeof fallback === 'function') {\n\t\t\tresolve(fallback());\n\t\t\treturn;\n\t\t}\n\n\t\tconst message = typeof fallback === 'string' ? fallback : `Promise timed out after ${ms} milliseconds`;\n\t\tconst err = fallback instanceof Error ? fallback : new TimeoutError(message);\n\n\t\treject(err);\n\t}, ms);\n\n\tpFinally(\n\t\tpromise.then(resolve, reject),\n\t\t() => {\n\t\t\tclearTimeout(timer);\n\t\t}\n\t);\n});\n\nmodule.exports.TimeoutError = TimeoutError;\n","{\n \"name\": \"is-link-working\",\n \"version\": \"2.2.0\",\n \"description\": \"Checks if a given link is working or broken\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"lint\": \"eslint '{*.js,test/**/*.js}' --ignore-pattern=test/coverage\",\n \"test\": \"mocha --bail\",\n \"test-cov\": \"istanbul cover --dir test/coverage _mocha -- --bail && echo Coverage lies in test/coverage/lcov-report/index.html\",\n \"test-travis\": \"istanbul cover _mocha --report lcovonly -- --bail && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/IndigoUnited/node-is-link-working/issues/\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git://github.com/IndigoUnited/node-is-link-working.git\"\n },\n \"keywords\": [\n \"url\",\n \"link\",\n \"uri\",\n \"working\",\n \"check\",\n \"alive\",\n \"ok\",\n \"broken\"\n ],\n \"author\": \"IndigoUnited (http://indigounited.com)\",\n \"license\": \"MIT\",\n \"dependencies\": {\n \"got\": \"^6.3.0\",\n \"is-online\": \"^7.0.0\"\n },\n \"devDependencies\": {\n \"@satazor/eslint-config\": \"^3.0.0\",\n \"chai\": \"^3.4.1\",\n \"coveralls\": \"^2.11.6\",\n \"eslint\": \"^3.0.0\",\n \"istanbul\": \"^0.4.1\",\n \"mocha\": \"^3.0.2\",\n \"mock-require\": \"^2.0.0\",\n \"nock\": \"^9.0.0\",\n \"promise-delay\": \"^2.1.0\"\n },\n \"engines\": {\n \"node\": \">=4.0.0\"\n }\n}\n",null,null,"\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname, join } from \"path\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { addShellExtension, addShellHere } from \"extension-tools\"\nimport { notice } from \"../utils/io/io\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { giveUserAccess } from \"user-access\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n setupPacmanPack(\"curl\")\n setupPacmanPack(\"zip\")\n setupPacmanPack(\"unzip\")\n setupPacmanPack(\"tar\")\n setupPacmanPack(\"git\")\n setupPacmanPack(\"pkg-config\")\n } else if (hasDnf()) {\n setupDnfPack(\"curl\")\n setupDnfPack(\"zip\")\n setupDnfPack(\"unzip\")\n setupDnfPack(\"tar\")\n setupDnfPack(\"git\")\n setupDnfPack(\"pkg-config\")\n } else if (isUbuntu()) {\n await setupAptPack(\"curl\")\n await setupAptPack(\"zip\")\n await setupAptPack(\"unzip\")\n await setupAptPack(\"tar\")\n await setupAptPack(\"git\")\n await setupAptPack(\"pkg-config\")\n }\n }\n\n if (!existsSync(join(setupDir, addShellExtension(\"bootstrap-vcpkg\")))) {\n execa.sync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execa.sync(addShellExtension(addShellHere(\"bootstrap-vcpkg\")), { cwd: setupDir, shell: true, stdio: \"inherit\" })\n\n giveUserAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { dirname } from \"path\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { execRootSync } from \"root-tools\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\"\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack(\"nala\", undefined, [], true)\n } else {\n await setupAptPack(\"nala-legacy\", undefined, [], true)\n }\n } catch (err) {\n await setupAptPack(\"nala-legacy\", undefined, [], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n","import { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { execRootSync } from \"root-tools\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n setupDnfPack(\"dnf-plugins-core\", undefined)\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack(\"bazel4\", undefined)\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\"\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack(\"bazel\", version, [], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n await setupPipPack(\"setuptools\", \"\")\n return setupPipPack(\"conan\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"ccache\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"ccache\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"ccache\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"cppcheck\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"make\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"make\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n"],"names":["$1d8d028d9c47b73d$var$isexe","path","options","cb","Promise","TypeError","resolve","reject","er","is","$1d8d028d9c47b73d$var$core","code","ignoreErrors","$b50fe22cd1c82159$export$c5eeb9c87a610a0e","_version","_setupDir","_arch","includes","process","platform","$b50fe22cd1c82159$var$binDir","maybeBinDir","$parcel$interopDefault","$4ca03dc05bbe4be0$exports","sync","nothrow","$dLzlS$path","dirname","$dLzlS$child_process","execFileSync","stdio","$51d58653c6048ffd$var$resolveCommandAttempt","parsed","withoutPathExt","env","cwd","hasCustomCwd","shouldSwitchCwd","undefined","chdir","disabled","err","resolved","command","$e9929770d50e0ca3$exports","pathExt","delimiter","e","$cee8c79eb01cd876$var$notFoundError","original","syscall","Object","assign","Error","errno","spawnargs","args","$cee8c79eb01cd876$var$verifyENOENT","status","$cee8c79eb01cd876$var$isWin","file","$338cd3297632d74f$var$spawn","$9cf15e4f01e764e1$exports","spawned","spawn","$cee8c79eb01cd876$exports","hookChildProcess","async","$3f8980e86d9447d4$var$getStream","inputStream","maxBuffer","Infinity","stream1","$2791e057b208c733$exports","rejectPromise","error","getBufferedLength","$3f8980e86d9447d4$require$BufferConstants","MAX_LENGTH","bufferedData","getBufferedValue","$3f8980e86d9447d4$var$streamPipelinePromisified","on","$3f8980e86d9447d4$var$MaxBufferError","$373ec10beb4d7153$export$316200228f28b8ce","CI","ref","getuid","call","$373ec10beb4d7153$export$58f152936f209932","program","execOptions","shell","$c3e9e2f843627429$exports","commandSync","map","arg","join","$3f4c9366e55e0917$export$8312d9eeba321950","SUDO_USER","$a7308743a0157ada$exports","$6e1462338680af59$export$43324456a02f71b0","startupFlags","$6e1462338680af59$var$powershell","maybePwsh","maybePowerShell","$6e1462338680af59$export$4dfdd3964d242d20","$7bb732a40a25bec4$export$f63d3080ce25e0fd","name","valGiven","shouldEscapeSpace","val","$892cf68de9d02605$exports","$gmbrv","$04fde","exportVariable","$ditiY","$7bb732a40a25bec4$var$addEnvSystem","setFailed","$7bb732a40a25bec4$export$4c25481b843feb0b","PATH","addPath","$7bb732a40a25bec4$var$addPathSystem","info","$7bb732a40a25bec4$export$bd1dffd792f43c41","$dLzlS$fs","appendFileSync","$7bb732a40a25bec4$export$1bbbc3a810c5799d","$7bb732a40a25bec4$var$setupCppInProfile_called","source_cpprc_str","existsSync","readFileSync","source_cpprc_string","profile_path","bashrc_path","warning","$b264a6d5b746ae82$export$d73dc343f5abf26","version","repositories","update","apt","$b264a6d5b746ae82$var$getApt","DEBIAN_FRONTEND","$b264a6d5b746ae82$var$didUpdate","$b264a6d5b746ae82$var$updateRepos","$b264a6d5b746ae82$var$didInit","$b264a6d5b746ae82$export$11aa10c05ada0934","$b264a6d5b746ae82$var$initApt","Array","isArray","length","repo","binDir","$b264a6d5b746ae82$var$initGpg","keys","server","fileName","key","$b264a6d5b746ae82$export$7fb1a688af1305f0","url","$b264a6d5b746ae82$export$6fe6436bd9f53d02","$debaf44f90dd37c4$export$cfa75578ee2d6e6c","aur","pacman","$debaf44f90dd37c4$var$didUpdate","$debaf44f90dd37c4$var$didInit","$57c286cd21b83a3a$export$ce5d13d8a85cb784","$57c286cd21b83a3a$var$hasBrew","$8937fb0e5906a8f2$export$b804d731cdad7ef9","$8937fb0e5906a8f2$var$binDir","powershell","SystemRoot","chocoPath","ALLUSERSPROFILE","maybeChoco","_ChocolateyInstall","ChocolateyInstall","$a1d9f9e35ead513b$export$9f6912bc890040b2","$a1d9f9e35ead513b$var$hasChoco","TMP","TEMP","Path","extendEnv","message","notice","$c4b56061e0dbde5f$export$d415ddb6702ec3a2","$c4b56061e0dbde5f$var$isArchCache","$cbc3e193f1217bd7$export$8ce8b4b22331a8c7","$cbc3e193f1217bd7$var$hasDnfCache","$d6741ec1214892d9$export$49d4f9ba8e0dd34f","dnf","$0f4e7dc450142f89$export$da8baf1d6c6802b6","$0f4e7dc450142f89$var$isUbuntuCache","$110a38e684aa0e04$export$e88210974180936f","win_ext","unix_ext","$110a38e684aa0e04$export$eae120f0e5838f32","$fb82248e8974c296$export$5fc39629e14c8173","$aa67f233b2c242f1$export$f9a3d10eb7c735af","$2032c186687979ea$var$findAllVersions","toolName","arch","versions","$2032c186687979ea$var$os","toolPath","$2032c186687979ea$var$path","$2032c186687979ea$var$_getCacheDirectory","$2032c186687979ea$var$fs","children","readdirSync","child","$2032c186687979ea$var$isExplicitVersion","fullPath","push","$2032c186687979ea$var$_createExtractFolder","dest","$2032c186687979ea$var$_getTempDirectory","$2032c186687979ea$var$v4_1","default","$2032c186687979ea$var$io","mkdirP","$2032c186687979ea$var$_createToolPath","tool","folderPath","$2032c186687979ea$var$semver","clean","$2032c186687979ea$var$core","debug","markerPath","rmRF","$2032c186687979ea$var$_completeToolPath","writeFileSync","versionSpec","c","valid","$2032c186687979ea$var$evaluateVersions","i","sort","a","b","gt","potential","satisfies","cacheDirectory","$dLzlS$assert","ok","tempDirectory","$2032c186687979ea$var$_getGlobal","defaultValue","value","$parcel$global","$d07bf20a0d39a78b$export$eecfe186811d4a20","$d07bf20a0d39a78b$var$sevenZip","$d07bf20a0d39a78b$var$getSevenZip","$d07bf20a0d39a78b$export$7949938b2681a4f0","$d07bf20a0d39a78b$export$6411c5cbab21135b","$d07bf20a0d39a78b$export$2ab07ac150064014","flags","$fvrnx","$5378b225b5c95af5$export$334f77c9844c21f6","getPackageInfo","setupDir","_RUNNER_TEMP","_RUNNER_TOOL_CACHE","RUNNER_TEMP","$dLzlS$os","tmpdir","RUNNER_TOOL_CACHE","binRelativeDir","binFileName","extractedFolderName","extractFunction","dir","$2032c186687979ea$exports","find","installDir","binFile","$5378b225b5c95af5$var$didInit","downloaded","downloadTool","cacheDir","$fee36361a2bad308$var$getTaskPackageInfo","taskPlatform","$fee36361a2bad308$var$getTaskPlatform","taskArch","$fee36361a2bad308$var$getTaskArch","isZip","extension","$775e54fd09f86a26$var$getCmakePackageInfo","semVersion","$1YYsi","isOld","$fwsB7","osArchStr","folderName","extractTar","$775e54fd09f86a26$export$c28663a621f418ce","$644ae3dba93653dd$export$2b0b68e9df3d4a02","$644ae3dba93653dd$export$33cd96f062979ce0","setupActionsPython","parcelRequire","ref1","pythonBinPath","pythonSetupDir","$644ae3dba93653dd$var$activateWinPython","installInfo","$a7994e77672d4c66$var$DuplexWrapper","writable","readable","$dLzlS$stream","Duplex","this","read","Readable","wrap","_writable","_readable","_waiting","self","once","end","_read","bubbleErrors","emit","$64a1558dccf5953a$var$getStream","opts","stream","p","$1e5e7710ee48ab23$exports","pipe","unpipe","then","$80ff947a644b05a5$var$copyProps","src","dst","$80ff947a644b05a5$var$SafeBuffer","encodingOrOffset","$80ff947a644b05a5$var$Buffer","$c543488da3ff24fd$var$requestAsEventEmitter","opts1","ee","$dLzlS$events","requestUrl","href","$dLzlS$url","format","redirectUrl","redirectCount","retryCount","get","req","protocol","$dLzlS$https","$dLzlS$http","request","res","statusCode","$69b7cfb562dbe487$exports","followRedirect","headers","method","resume","$c543488da3ff24fd$var$got","MaxRedirectsError","bufferString","$c543488da3ff24fd$require$Buffer","from","location","redirectOpts","parse","setImmediate","response","$67751bb05f8979b4$exports","backoff","retries","setTimeout","RequestError","gotTimeout","$268a78896485eb0b$exports","$c543488da3ff24fd$var$normalizeArguments","replace","$a6b4ca308aaff8a9$exports","auth","$78ef47b95d577c3b$exports","$a8a2e6fa11ce346d$exports","query","$dLzlS$querystring","stringify","split","json","accept","body","$c92856b2bf4cfca0$exports","getBoundary","isBuffer","byteLength","toUpperCase","hostname","matches","exec","socketPath","host","iter","$cca60495523a7943$exports","Math","random","timeout","encoding","$64a1558dccf5953a$exports","buffer","catch","ReadError","data","limitStatusCode","JSON","ParseError","HTTPError","defineProperty","$c543488da3ff24fd$var$asPromise","$c543488da3ff24fd$var$stdError","$c1b445009fccf89f$var$_normalizeFamily","family","toLowerCase","$6c0021f5b697b171$var$encodingLengthList","list","enc","len","encodingLength","$6c0021f5b697b171$var$encodeList","buf","offset","encode","bytes","$6c0021f5b697b171$var$decodeList","decode","$0baf82350017e34a$var$DNS","onlistening","timeSlices","_triesArray","reduce","$0baf82350017e34a$var$add","_interval","setInterval","ontimeout","round","_ontimeout","EventEmitter","destroyed","inflight","socket","$dLzlS$dgram","createSocket","_id","ceil","_ids","_queries","ret","pow","$0baf82350017e34a$var$getTriesArray","rinfo","_onmessage","address","port","$0baf82350017e34a$var$isListening","$0baf82350017e34a$var$noop","$be0fe6c78afdc181$var$toObject","$ef3a4a463d00e4d4$var$decodeComponents","components","decodeURIComponent","left","slice","right","concat","$ef3a4a463d00e4d4$var$decode","input","tokens","match","$ef3a4a463d00e4d4$var$singleMatcher","$b580ae17e6253e1c$var$encode","strict","$26859de2a5e22521$exports","encodeURIComponent","$b580ae17e6253e1c$var$keysSorter","$8f9aca16b870619b$var$testParameter","filters","some","filter","RegExp","test","$5893236ea6778b9f$var$_classCallCheck","instance","Constructor","$5893236ea6778b9f$var$parseCacheControl","header","cc","parts","trim","_isArray","_iterator","_i","Symbol","iterator","_ref","next","done","_part$split","v","$5893236ea6778b9f$var$formatCacheControl","k","$399074e520397878$var$from2","rs","$399074e520397878$var$Proto","_from","_","item","shift","$399074e520397878$var$noop","$399074e520397878$var$ctor","Class","override","_reading","_callback","destroy","hwm","$399074e520397878$require$Readable","_readableState","highWaterMark","$399074e520397878$var$defaults","$8MQIj","prototype","size","nextTick","$875931337acf52b5$var$is","type","function_","Buffer","tagType","$875931337acf52b5$var$getObjectType","String","Boolean","Number","$5be8542e7212e408$var$requestAsEventEmitter","redirects","agents","$875931337acf52b5$exports","object","agent","uploadBodySize","uploaded","$5be8542e7212e408$var$got","UnsupportedProtocolError","progressInterval","fn","useElectronNet","electron","net","remote","cacheReq","$389c9d7824994208$exports","cache","cacheableRequest","clearInterval","percent","transferred","total","redirectGet","$5be8542e7212e408$var$getMethodRedirectCodes","has","$5be8542e7212e408$var$allMethodRedirectCodes","$5be8542e7212e408$require$Buffer","downloadBodySize","progressStream","$5be8542e7212e408$require$Transform","transform","chunk","callback","flush","$a95940edaa44426b$exports","redirectUrls","decompress","function","$707331c0574e0746$exports","indexOf","$5be8542e7212e408$var$getResponse","CacheError","req1","aborted","connection","onSocketConnect","lastUploaded","headersSize","_header","bytesWritten","connecting","_connecting","string","$5be8542e7212e408$var$isFormData","$850cb98992268454$exports","getLength","bind","ReadStream","stat","nodeStream","_buffer","$5be8542e7212e408$var$getBodySize","$5be8542e7212e408$var$asStream","$5be8542e7212e408$require$PassThrough","output","proxy","$a7994e77672d4c66$exports","write","clearTimeout","throwHttpErrors","statusMessage","$5be8542e7212e408$var$normalizeArguments","$542518218e342748$exports","$9b77adce5e954884$exports","lenient","$5c51af7ed5649f8c$exports","nullOrUndefined","$a6feec72864dd910$exports","form","canBodyBeStringified","plainObject","array","$9dcab1269850acec$exports","number","normalizedArgs","cancelable","$79c8cac2dbb1dbb9$exports","onCancel","cancelOnRequest","abort","null","isCanceled","promise","requestPromise","$93a28d652821070b$exports","cancel","$5be8542e7212e408$var$asPromise","$d5510db41f91a242$var$appleCheck","$c543488da3ff24fd$exports","$788ba5c4da878b74$export$deb1064c8260c54c","semversion","startsWith","reverse","$68635a7be6556a7e$export$c506eb22e615ba4a","osVersion","$68635a7be6556a7e$var$useDefault","$68635a7be6556a7e$var$DefaultUbuntuVersion","osVersionMaj","parseInt","$68635a7be6556a7e$var$DefaultVersions","$725285b1d6baf678$export$4020cb77ffa3ffac","$725285b1d6baf678$var$python","givenFile","targetVersion","versionRegex","$788ba5c4da878b74$export$d7ab5e2d33b06cd5","givenVersion","execout","$ca0ts","getExecOutput","stdout","stderr","console","$788ba5c4da878b74$export$5b54ecc7386538f","$howpO","$725285b1d6baf678$var$tried","$725285b1d6baf678$var$binDir","$b19dce7371463457$export$b885bd977caaafb9","$b19dce7371463457$var$activateGraphviz","$9f276bb1312a9d71$var$getDoxygenPackageInfo","$89d2131bb8f4aa1b$export$28f5fd35e3005b7a","xcrun","sdkroot","$9c01b612305c09a3$var$getGccPackageInfo","mingwInfo","$9c01b612305c09a3$var$GccToMingwInfo","mingwArch","exceptionModel","releaseName","fileSuffix","$9c01b612305c09a3$export$405fab3de79b77b","installationInfo","_ChocolateyInstall1","$9c01b612305c09a3$var$setupChocoMingw","promises","majorVersion","$fB2B7","matcherPath","$9c01b612305c09a3$var$__dirname1","$9c01b612305c09a3$var$addGccLoggingMatcher","all","$9c01b612305c09a3$var$activateGcc","$2cacaea738b8f1ae$var$getGitHubUrl","prefix","suffix","$2cacaea738b8f1ae$var$getReleaseUrl","$2cacaea738b8f1ae$export$94df0e59ebebf4a7","$2cacaea738b8f1ae$var$DARWIN_MISSING","$2cacaea738b8f1ae$var$getDarwinUrl","versionGiven","rc","$2cacaea738b8f1ae$var$UBUNTU_RC","ubuntu","givenUbuntuVersion","$2cacaea738b8f1ae$export$aa5307f1aca77413","$2cacaea738b8f1ae$var$UBUNTU_SUFFIX_MAP","$2cacaea738b8f1ae$export$ae24f9682a44836b","$2cacaea738b8f1ae$var$WIN32_MISSING","olderThan9_1","fallback","$a54d8aa298c0b11d$exports","$2cacaea738b8f1ae$var$getWin32Url","$2cacaea738b8f1ae$var$getLLVMPackageInfo","specificVersion","getUrl","setOutput","$2cacaea738b8f1ae$export$3016de7ae9d14988","$2cacaea738b8f1ae$var$_setupLLVM","_installDir","directory","$fVzwP","coercedVersion","lib","_LD_LIBRARY_PATH","ld","LD_LIBRARY_PATH","_DYLD_LIBRARY_PATH","dyld","DYLD_LIBRARY_PATH","llvmMajor","$2cacaea738b8f1ae$var$addLLVMLoggingMatcher","$2cacaea738b8f1ae$export$6238b5ebfd6640e7","$2cacaea738b8f1ae$var$didInit","$2cacaea738b8f1ae$export$814ccfc953503728","$2cacaea738b8f1ae$var$__dirname1","$dcc4a5600f9a2a29$var$issueCommand","properties","cmd","$dcc4a5600f9a2a29$var$Command","$dcc4a5600f9a2a29$var$os","EOL","$d2814cb4b08c0425$var$error","$dcc4a5600f9a2a29$exports","issue","$d2814cb4b08c0425$var$startGroup","$d2814cb4b08c0425$var$endGroup","$44e2ea7eee739a17$var$vsversion_to_versionnumber","vsversion","values","$44e2ea7eee739a17$var$VsYearVersion","$44e2ea7eee739a17$var$vsversion_to_year","year","ver","entries","$44e2ea7eee739a17$var$findVcvarsall","vsversion_number","version_pattern","upper_bound","path1","pattern","execSync","installationPath","$d2814cb4b08c0425$exports","$44e2ea7eee739a17$var$findWithVswhere","years","$44e2ea7eee739a17$var$YEARS","prog_files","$44e2ea7eee739a17$var$PROGRAM_FILES","ed","$44e2ea7eee739a17$var$EDITIONS","$44e2ea7eee739a17$var$PROGRAM_FILES_X86","$44e2ea7eee739a17$var$isPathVariable","$28a0179cccdfc4cc$export$5dcf571c91fc8369","VCTargetsPath","toolset","sdk","uwp","spectre","$44e2ea7eee739a17$export$443b8bb890f5027e","$28a0179cccdfc4cc$var$getArch","$da99583472da45a4$export$a91ef0362c1a7298","$44e2ea7eee739a17$export$3c7cae5a162b1458","installed","vcvarsall_path","$44e2ea7eee739a17$export$a6a3bfb882356813","$da99583472da45a4$var$__dirname1","$da99583472da45a4$var$addMSVCLoggingMatcher","$9bc35ceb5b751351$var$getNinjaPackageInfo","ninjaPlatform","$9bc35ceb5b751351$var$getNinjaPlatform","$9bc35ceb5b751351$export$e6190f4bfe2ef71","$4012ecb407fc2f3d$var$toArr","any","$4012ecb407fc2f3d$var$toVal","out","x","old","nxt","boolean","$227396c887da582e$var$getDownloadKcovPackageInfo","$227396c887da582e$var$getBuildKcovPackageInfo","$227396c887da582e$var$buildKcov","cmake","$227396c887da582e$var$getCmake","buildDir","$ff26fdfb9b4deeb1$export$f22da7240b7add18","ACTIONS_ALLOW_UNSECURE_COMMANDS","$ff26fdfb9b4deeb1$export$7300a92932ee17a3","_architecture","help","architecture","_SETUP_CPP_DIR","setupCppDir","SETUP_CPP_DIR","successMessages","errorMessages","timeFormatter","$a6c8cb5c76e7e4f4$exports","create","autoloadLocales","time1","time2","addLocale","$21a9c7af84658271$exports","$5FRs7","$6dfec0551895c67b$exports","versionSplitted","$f095436a84b3b121$exports","getUbuntuVersion","tools","otherTools","i_other","otherTool","tool1","$ff26fdfb9b4deeb1$var$tools","Date","now","startGroup","setupFunction","$ff26fdfb9b4deeb1$var$setups","$ff26fdfb9b4deeb1$var$getSuccessMessage","endGroup","maybeCompiler","compiler","$ff26fdfb9b4deeb1$export$588248dee5258836","forEach","success","arr","j","idx","alibi","alias","unknown","defaults","splice","charCodeAt","substring","repeat","$ff26fdfb9b4deeb1$var$inputs","fromEntries","inp","$ff26fdfb9b4deeb1$var$maybeGetInput","h","compilerAndMaybeVersion","maybeVersion","getInput","msg","$00cc2cb44b74fa5a$var$getInput","required","trimWhitespace","$00cc2cb44b74fa5a$var$error","$2iva8","issueCommand","$hGWy4","toCommandProperties","$00cc2cb44b74fa5a$var$startGroup","$00cc2cb44b74fa5a$var$endGroup","$00cc2cb44b74fa5a$var$os","$00cc2cb44b74fa5a$var$__importStar","$00cc2cb44b74fa5a$var$path","$00cc2cb44b74fa5a$var$ExitCode","ExitCode1","module","exports","ExitCode","convertedVal","toCommandValue","$kCOkT","setSecret","secret","inputPath","getMultilineInput","getBooleanInput","setCommandEcho","enabled","exitCode","Failure","isDebug","group","result","saveState","getState","getIDToken","aud","$1hWAC","OidcClient","enumerable","$hILBc","summary","markdownSummary","$39f1T","toPosixPath","toWin32Path","toPlatformPath","$1ac56f735470f2bc$var$issueCommand","$1ac56f735470f2bc$var$Command","$1ac56f735470f2bc$var$os","$1ac56f735470f2bc$var$__importStar","constructor","toString","cmdStr","first","hasOwnProperty","s","$1ac56f735470f2bc$var$escapeData","annotationProperties","title","line","startLine","endLine","col","startColumn","endColumn","$f03e66e97447a0d4$var$fs","$f03e66e97447a0d4$var$__importStar","$f03e66e97447a0d4$var$os","filePath","$0f04d3adb67492b4$var$OidcClient","static","allowRetry","maxRetry","requestOptions","allowRetries","maxRetries","$4z9RF","HttpClient","$7v249","BearerCredentialHandler","getRequestToken","token","runtimeUrl","id_token_url","httpclient","createHttpClient","getJson","id_token","_a","audience","getIDTokenUrl","getCall","$3532153250d0a8c3$var$http","$3532153250d0a8c3$var$__importStar","$3532153250d0a8c3$var$https","$3532153250d0a8c3$var$pm","$3532153250d0a8c3$var$tunnel","$3532153250d0a8c3$var$HttpCodes","HttpCodes1","$3532153250d0a8c3$var$Headers","Headers1","$3532153250d0a8c3$var$MediaTypes","HttpCodes","Headers","MediaTypes","getProxyUrl","serverUrl","proxyUrl","URL","$3532153250d0a8c3$var$HttpRedirectCodes","MovedPermanently","ResourceMoved","SeeOther","TemporaryRedirect","PermanentRedirect","$3532153250d0a8c3$var$HttpResponseRetryCodes","BadGateway","ServiceUnavailable","GatewayTimeout","$3532153250d0a8c3$var$RetryableHttpVerbs","$3532153250d0a8c3$var$HttpClientError","super","setPrototypeOf","HttpClientError","$3532153250d0a8c3$var$HttpClientResponse","readBody","$3532153250d0a8c3$var$__awaiter","alloc","HttpClientResponse","isHttps","userAgent","handlers","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","max","keepAlive","additionalHeaders","del","post","patch","put","head","sendStream","verb","Accept","_getExistingOrDefaultHeader","ApplicationJson","_processResponse","postJson","obj","ContentType","putJson","patchJson","parsedUrl","_prepareRequest","maxTries","numTries","requestRaw","Unauthorized","authenticationHandler","handler","canHandleAuthentication","handleAuthentication","redirectsRemaining","parsedRedirectUrl","_performExponentialBackoff","dispose","_agent","requestRawWithCallback","onResult","handleResult","callbackCalled","httpModule","sock","getAgent","_getAgent","usingSsl","defaultPort","pathname","search","_mergeHeaders","prepareRequest","$3532153250d0a8c3$var$lowercaseKeys","_default","clientHeader","useProxy","_proxyAgent","maxSockets","globalAgent","agentOptions","username","password","proxyAuth","tunnelAgent","overHttps","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","retryNumber","ms","min","contents","NotFound","deserializeDates","isNaN","valueOf","$1f9807f2878b82ba$var$checkBypass","reqUrl","noProxy","reqPort","upperReqHosts","upperNoProxyItem","proxyVar","checkBypass","$b80e68d5f6e6478f$var$TunnelingAgent","options1","proxyOptions","defaultMaxSockets","requests","sockets","localAddress","$b80e68d5f6e6478f$var$toOptions","pending","onSocket","removeSocket","$b80e68d5f6e6478f$var$createSecureSocket","hostHeader","getHeader","tlsOptions","$b80e68d5f6e6478f$var$mergeOptions","servername","secureSocket","$dLzlS$tls","connect","target","arguments","overrides","keyLen","$b80e68d5f6e6478f$export$25cbd437c61a3835","$b80e68d5f6e6478f$export$c06e3df7111bae43","$b80e68d5f6e6478f$export$5d50e36ef656139f","$b80e68d5f6e6478f$export$212d6605025321cc","$b80e68d5f6e6478f$export$1c9f709888824e05","$b80e68d5f6e6478f$var$debug","$dLzlS$util","inherits","addRequest","onFree","onCloseOrRemove","removeListener","onConnect","connectReq","removeAllListeners","placeholder","connectOptions","useChunkedEncodingByDefault","upgrade","cause","stack","socket1","pos","BasicCredentialHandler","PersonalAccessTokenCredentialHandler","access","$ce6b77df7bbb7675$var$access","appendFile","$ce6b77df7bbb7675$var$appendFile","writeFile","$ce6b77df7bbb7675$var$writeFile","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","$ce6b77df7bbb7675$var$_summary","_filePath","pathFromEnv","constants","R_OK","W_OK","tag","content","attrs","htmlAttrs","overwrite","writeFunc","emptyBuffer","clear","isEmptyBuffer","addRaw","text","addEOL","addCodeBlock","lang","element","addList","items","ordered","listItems","addTable","rows","tableBody","row","cells","cell","colspan","rowspan","addDetails","label","addImage","alt","width","height","addHeading","level","allowedTag","addSeparator","addBreak","addQuote","cite","addLink","$24addeec9ef57a1a$var$path","$24addeec9ef57a1a$var$__importStar","pth","sep","$b43ef73900290537$var$checkStat","isSymbolicLink","isFile","pathext","PATHEXT","substr","$b43ef73900290537$var$checkPathExt","$b43ef73900290537$var$isexe","statSync","$6f57237f32b1c8cb$var$isexe","$6f57237f32b1c8cb$var$checkStat","mod","mode","uid","gid","myUid","myGid","getgid","u","g","ug","$6f57237f32b1c8cb$var$checkMode","GERRIT_PROJECT","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","BITRISE_IO","BUDDY_WORKSPACE_ID","BUILDKITE","CIRRUS_CI","GITLAB_CI","APPVEYOR","CIRCLECI","SEMAPHORE","DRONE","DSARI","GITHUB_ACTION","TDDIUM","SCREWDRIVER","STRIDER","TASKCLUSTER_ROOT_URL","JENKINS_URL","GO_PIPELINE_NAME","HUDSON_URL","WERCKER","NETLIFY","NOW_GITHUB_DEPLOYMENT","GITLAB_DEPLOYMENT","BITBUCKET_DEPLOYMENT","BITBUCKET_BUILD_NUMBER","NOW_BUILDER","VERCEL_GITHUB_DEPLOYMENT","VERCEL_GITLAB_DEPLOYMENT","VERCEL_BITBUCKET_DEPLOYMENT","VERCEL_URL","MAGNUM","NEVERCODE","RENDER","SAIL_CI","SHIPPABLE","TEAMCITY_VERSION","CI_NAME","NODE","TRAVIS","CODEBUILD_SRC_DIR","BUILDER_OUTPUT","$1b0116afdfeaeacc$export$a3bc9b8ed74fc","log","$1b0116afdfeaeacc$export$fe7c49d056ea1d88","$1b0116afdfeaeacc$export$491112666e282270","$1b0116afdfeaeacc$export$b31f6ae88848cf15","$1b0116afdfeaeacc$export$a80b3bd66acc52ff","$b49efd1a00c432ed$var$rmRF","$b49efd1a00c432ed$var$ioUtil","IS_WINDOWS","cmdPath","getCmdPath","isDirectory","$b49efd1a00c432ed$var$exec","unlink","err1","isDir","$b49efd1a00c432ed$var$execFile","$b49efd1a00c432ed$var$mkdirP","fsPath","mkdir","recursive","$b49efd1a00c432ed$var$findInPath","extensions","$b49efd1a00c432ed$var$path","isRooted","tryGetExecutablePath","directories","$b49efd1a00c432ed$var$cpDirRecursive","sourceDir","destDir","currentDepth","force","files","readdir","srcFile","destFile","lstat","$b49efd1a00c432ed$var$copyFile","chmod","symlinkFull","readlink","symlink","exists","copyFile","$b49efd1a00c432ed$var$childProcess","$b49efd1a00c432ed$var$__importStar","promisify","execFile","cp","source","copySourceDirectory","$b49efd1a00c432ed$var$readCopyOptions","destStat","newDest","basename","relative","mv","destExists","rename","which","$b49efd1a00c432ed$var$which","check","findInPath","$1f568b1c4242dba7$var$isUnixExecutable","stats","$1f568b1c4242dba7$var$fs","$1f568b1c4242dba7$var$__importStar","$1f568b1c4242dba7$var$path","$1f568b1c4242dba7$var$_a","rmdir","useStat","$1f568b1c4242dba7$var$normalizeSeparators","upperExt","extname","validExt","originalFilePath","upperName","actualName","_a1","$49c6639221a3e217$var$semver","$49c6639221a3e217$var$__importStar","_findMatch","stable","candidates","archFilter","platFilter","candidate","chk","platform_version","_getOsVersion","plat","lsbContents","_readLinuxVersionFile","lines","lsbReleaseFile","osReleaseFile","$bikcG","re","t","SEMVER_SPEC_VERSION","SemVer","compareIdentifiers","rcompareIdentifiers","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","eq","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","MAX_SAFE_COMPONENT_LENGTH","R","createToken","isGlobal","index","$jkMsx","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","$83910c29f6734fbd$require$MAX_SAFE_COMPONENT_LENGTH","COERCE","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","$e1357995fd1631a2$var$debug","$bgOMw","$5696f94a63c27d85$var$SemVer","$eUvvN","loose","includePrerelease","$5696f94a63c27d85$require$MAX_LENGTH","m","$5696f94a63c27d85$require$re","$5696f94a63c27d85$require$t","LOOSE","FULL","raw","$5696f94a63c27d85$require$MAX_SAFE_INTEGER","id","num","build","other","compareMain","comparePre","$5696f94a63c27d85$require$compareIdentifiers","release","identifier","$adaebd3d9a17271f$var$opts","o","$0c2cbbcfac21c924$var$numeric","$0c2cbbcfac21c924$var$compareIdentifiers","anum","bnum","$7qUJS","$bce3317ae792f650$require$MAX_LENGTH","$bce3317ae792f650$require$re","$bce3317ae792f650$require$t","$gdrva","version1","version2","$jXghC","v1","v2","hasPre","defaultResult","versionA","versionB","$80ezM","op","$fqqGA","$6KPS4","$5cRW4","$lr5pz","rtl","$171a4a37978eb9a3$require$re","$171a4a37978eb9a3$require$t","COERCERTL","lastIndex","$ad0b6a9469831548$var$ANY","$ad0b6a9469831548$var$Comparator","ANY","comp","semver","operator","$ad0b6a9469831548$require$re","$ad0b6a9469831548$require$t","COMPARATORLOOSE","COMPARATOR","$823yM","$hvUff","sameDirectionIncreasing","sameDirectionDecreasing","sameSemVer","differentDirectionsInclusive","oppositeDirectionsLessThan","oppositeDirectionsGreaterThan","$cc00f5fd17503a13$var$Range","range","$eR6XK","set","r","parseRange","$cc00f5fd17503a13$var$isNullSet","$cc00f5fd17503a13$var$isAny","comps","memoKey","cached","$cc00f5fd17503a13$var$cache","$cc00f5fd17503a13$require$re","$cc00f5fd17503a13$require$t","HYPHENRANGELOOSE","HYPHENRANGE","$cc00f5fd17503a13$var$hyphenReplace","COMPARATORTRIM","$cc00f5fd17503a13$require$comparatorTrimReplace","rangeList","TILDETRIM","$cc00f5fd17503a13$require$tildeTrimReplace","CARETTRIM","$cc00f5fd17503a13$require$caretTrimReplace","$cc00f5fd17503a13$var$parseComparator","$cc00f5fd17503a13$var$replaceGTE0","rangeMap","Map","comparators","comp1","delete","thisComparators","$cc00f5fd17503a13$var$isSatisfiable","rangeComparators","every","thisComparator","rangeComparator","$cc00f5fd17503a13$var$testSet","remainingComparators","testComparator","pop","otherComparator","$cc00f5fd17503a13$var$replaceCarets","$cc00f5fd17503a13$var$replaceTildes","$cc00f5fd17503a13$var$replaceXRanges","$cc00f5fd17503a13$var$replaceStars","$cc00f5fd17503a13$var$isX","$cc00f5fd17503a13$var$replaceTilde","TILDELOOSE","TILDE","M","pr","$cc00f5fd17503a13$var$replaceCaret","z","CARETLOOSE","CARET","$cc00f5fd17503a13$var$replaceXRange","XRANGELOOSE","XRANGE","gtlt","xM","xm","xp","STAR","GTE0PRE","GTE0","incPr","$0","fM","fm","fp","fpr","fb","to","tM","tm","tp","tpr","tb","allowed","$4f0bf18d6c99da3c$var$perf","performance","$4f0bf18d6c99da3c$var$AC","AbortController","signal","AbortSignal","$4f0bf18d6c99da3c$var$warned","Set","$4f0bf18d6c99da3c$var$deprecatedOption","opt","instead","$4f0bf18d6c99da3c$var$shouldWarn","$4f0bf18d6c99da3c$var$warn","$4f0bf18d6c99da3c$var$LRUCache","$4f0bf18d6c99da3c$var$deprecatedMethod","getOwnPropertyDescriptor","$4f0bf18d6c99da3c$var$emitWarning","emitWarning","what","add","$4f0bf18d6c99da3c$var$isPosInt","n","floor","isFinite","$4f0bf18d6c99da3c$var$getUintArray","$4f0bf18d6c99da3c$var$ZeroArray","Uint32Array","Uint16Array","Uint8Array","fill","$4f0bf18d6c99da3c$var$Stack","UintArray","heap","ttl","ttlResolution","ttlAutopurge","updateAgeOnGet","updateAgeOnHas","allowStale","disposeAfter","noDisposeOnSet","noUpdateTTL","maxSize","sizeCalculation","fetchMethod","maxAge","stale","keyMap","keyList","valList","prev","tail","free","initialFill","disposed","initializeSizeTracking","initializeTTLTracking","getRemainingTTL","ttls","starts","setItemTTL","isStale","unref","updateItemAge","cachedNow","getNow","calculatedSize","sizes","removeItemSize","requireSize","addItemSize","evict","indexes","isValidIndex","rindexes","rentries","rkeys","rvalues","getOptions","thisp","rforEach","prune","purgeStale","deleted","dump","entry","unshift","load","reason","newIndex","oldVal","isBackgroundFetch","__abortController","moveToTail","peek","backgroundFetch","ac","fetchOpts","__staleWhileFetching","fetching","reset","field","$4f0bf18d6c99da3c$var$deprecatedProperty","maxSV","rangeObj","minSV","minver","setMin","comparator","compver","$52e25de88536d4d3$var$ANY","hilo","gtfn","ltefn","ltfn","ecomp","$c8FZS","high","low","$77bPN","r1","r2","ranges","simplified","$2478f50f5acc8298$var$ANY","$2478f50f5acc8298$var$simpleSubset","sub","dom","eqSet","gtltComp","higher","lower","hasDomLT","hasDomGT","$2478f50f5acc8298$var$higherGT","$2478f50f5acc8298$var$lowerLT","needDomLTPre","needDomGTPre","c1","sawNonNull","OUTER","simpleSub","simpleDom","isSub","$joDHm","rnds","rng","ii","$inTPA","$dLzlS$crypto","randomBytes","$d625aee022f0dd91$var$byteToHex","$d625aee022f0dd91$var$i","i1","$8da6c9556ccdcf3f$var$exec","commandLine","commandArgs","$8da6c9556ccdcf3f$var$tr","argStringToArray","ToolRunner","$8da6c9556ccdcf3f$var$__importStar","stdoutDecoder","$dLzlS$string_decoder","StringDecoder","stderrDecoder","originalStdoutListener","listeners","originalStdErrListener","_b","$a31d583cb10858c8$var$os","$a31d583cb10858c8$var$__importStar","$a31d583cb10858c8$var$events","$a31d583cb10858c8$var$child","$a31d583cb10858c8$var$path","$a31d583cb10858c8$var$io","$a31d583cb10858c8$var$ioUtil","$a31d583cb10858c8$var$IS_WINDOWS","_debug","_getCommandString","noPrefix","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","strBuffer","onLine","argline","_endsWith","str","endsWith","upperToolPath","_uvQuoteCmdArg","cmdSpecialChars","needsQuotes","char","quoteHit","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","$a31d583cb10858c8$var$__awaiter","optionsNonNull","state","$a31d583cb10858c8$var$ExecState","stdbuffer","stdline","errbuffer","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","argString","append","escaped","inQuotes","charAt","_setResult","$dLzlS$timers","HandleTimeout","require","READABLE_STREAM","Writable","Transform","PassThrough","Stream","$bb4e314dbd448229$var$ReadableState","isDuplex","$bb4e314dbd448229$var$Duplex","objectMode","readableObjectMode","readableHwm","readableHighWaterMark","$dvrCl","pipes","pipesCount","flowing","ended","endEmitted","reading","needReadable","emittedReadable","readableListening","resumeScheduled","defaultEncoding","awaitDrain","readingMore","decoder","$bb4e314dbd448229$var$StringDecoder","$bb4e314dbd448229$var$Readable","_destroy","$5BjC0","$bb4e314dbd448229$var$readableAddChunk","addToFront","skipChunkCheck","$bb4e314dbd448229$var$emitReadable","$bb4e314dbd448229$var$onEofChunk","$bb4e314dbd448229$require$Buffer","$bb4e314dbd448229$var$OurUint8Array","$bb4e314dbd448229$var$chunkInvalid","getPrototypeOf","$bb4e314dbd448229$var$_uint8ArrayToBuffer","$bb4e314dbd448229$var$addChunk","$bb4e314dbd448229$var$maybeReadMore","$bb4e314dbd448229$var$needMoreData","$bb4e314dbd448229$var$howMuchToRead","$bb4e314dbd448229$var$MAX_HWM","$bb4e314dbd448229$var$computeNewHighWaterMark","$bb4e314dbd448229$var$debug","$dyWGi","$bb4e314dbd448229$var$emitReadable_","$bb4e314dbd448229$var$flow","$bb4e314dbd448229$var$maybeReadMore_","$bb4e314dbd448229$var$nReadingNextTick","$bb4e314dbd448229$var$resume_","$bb4e314dbd448229$var$fromList","hasStrings","nb","$bb4e314dbd448229$var$copyFromBufferString","allocUnsafe","copy","$bb4e314dbd448229$var$copyFromBuffer","$bb4e314dbd448229$var$fromListPartial","$bb4e314dbd448229$var$endReadable","$bb4e314dbd448229$var$endReadableNT","$bb4e314dbd448229$var$indexOf","xs","l","ReadableState","$bb4e314dbd448229$var$EElistenerCount","emitter","$bb4e314dbd448229$var$util","debuglog","$bb4e314dbd448229$var$kProxyEvents","$ktlsh","_undestroy","undestroy","isPaused","setEncoding","nOrig","doRead","pipeOpts","onend","ondata","increasedAwaitDrain","cleanedUp","pause","onerror","onclose","onfinish","endFn","onunpipe","unpipeInfo","hasUnpiped","ondrain","_writableState","needDrain","$bb4e314dbd448229$var$pipeOnDrain","event","prependListener","_events","$3fzzD","$bb4e314dbd448229$var$prependListener","dests","addListener","ev","$bb4e314dbd448229$var$resume","_this","paused","apply","n1","_fromList","arg1","arg2","arg3","$25de5e00dd99c616$var$toString","$2f653f1390c06e78$var$copyProps","$2f653f1390c06e78$var$SafeBuffer","$2f653f1390c06e78$var$Buffer","$dLzlS$buffer","allocUnsafeSlow","SlowBuffer","$1aa0433414cd7bd4$var$objectToString","$1aa0433414cd7bd4$export$43bee75e5e14138e","$1aa0433414cd7bd4$export$f9ce7b637dfbe238","$1aa0433414cd7bd4$export$630801d484da15df","$1aa0433414cd7bd4$export$bedb7023a7733221","$1aa0433414cd7bd4$export$7e4aa119212bc614","$1aa0433414cd7bd4$export$844ec244b1367d54","$1aa0433414cd7bd4$export$a244864fd9645c7f","$1aa0433414cd7bd4$export$fce6876652108ab","$1aa0433414cd7bd4$export$49841c62b9eff15","$1aa0433414cd7bd4$export$a6cdc56e425d0d0a","$1aa0433414cd7bd4$export$871608497c498473","$1aa0433414cd7bd4$export$e6127cc7fe7395c3","$1aa0433414cd7bd4$export$f6e2535fb5126e54","$1aa0433414cd7bd4$export$c3825b437cbdea5c","$1aa0433414cd7bd4$export$a7884ebc965f8f54","d","$665bb24ae9025433$var$util","$665bb24ae9025433$import$7debb50ef11d5e0b","ctor","superCtor","super_","configurable","TempCtor","BufferList","$9d5397df429b881e$var$_classCallCheck","$9d5397df429b881e$require$Buffer","inspect","custom","$ee77289dea6748fb$var$emitErrorNT","errorEmitted","ending","finished","$6e32ca325eaa823f$var$Duplex","$g51ol","$kUGl4","allowHalfOpen","$6e32ca325eaa823f$var$onend","$6e32ca325eaa823f$var$onEndNT","$6e32ca325eaa823f$var$objectKeys","keys1","$6e32ca325eaa823f$var$util","$6e32ca325eaa823f$var$keys","$6e32ca325eaa823f$var$v","$6e32ca325eaa823f$var$method","$f399e136b5c26020$var$CorkedRequest","finish","corkReq","pendingcb","$f399e136b5c26020$var$onCorkedFinish","corkedRequestsFree","$f399e136b5c26020$var$nop","$f399e136b5c26020$var$WritableState","$f399e136b5c26020$var$Duplex","writableObjectMode","writableHwm","writableHighWaterMark","finalCalled","decodeStrings","writing","corked","bufferProcessing","onwrite","writecb","writelen","$f399e136b5c26020$var$onwriteStateUpdate","$f399e136b5c26020$var$finishMaybe","$f399e136b5c26020$var$onwriteError","$f399e136b5c26020$var$needFinish","bufferedRequest","$f399e136b5c26020$var$clearBuffer","$f399e136b5c26020$var$asyncWrite","$f399e136b5c26020$var$afterWrite","$f399e136b5c26020$var$onwrite","lastBufferedRequest","prefinished","bufferedRequestCount","$f399e136b5c26020$var$Writable","$f399e136b5c26020$var$realHasInstance","_write","writev","_writev","final","_final","$f399e136b5c26020$var$doWrite","$f399e136b5c26020$var$onwriteDrain","holder","count","allBuffers","isBuf","$f399e136b5c26020$var$callFinal","need","$f399e136b5c26020$var$prefinish","browser","WritableState","$f399e136b5c26020$var$util","$f399e136b5c26020$var$internalUtil","deprecate","$f399e136b5c26020$var$OurUint8Array","getBuffer","current","hasInstance","Function","$f399e136b5c26020$require$Buffer","$f399e136b5c26020$var$_uint8ArrayToBuffer","$f399e136b5c26020$var$writeAfterEnd","$f399e136b5c26020$var$validChunk","newChunk","$f399e136b5c26020$var$decodeChunk","last","$f399e136b5c26020$var$writeOrBuffer","cork","uncork","setDefaultEncoding","$f399e136b5c26020$var$endWritable","$c1b0ecbf70d8496d$var$StringDecoder","nenc","retried","$c1b0ecbf70d8496d$var$_normalizeEncoding","$c1b0ecbf70d8496d$require$Buffer","isEncoding","$c1b0ecbf70d8496d$var$isEncoding","$c1b0ecbf70d8496d$var$normalizeEncoding","$c1b0ecbf70d8496d$var$utf16Text","$c1b0ecbf70d8496d$var$utf16End","fillLast","$c1b0ecbf70d8496d$var$utf8FillLast","$c1b0ecbf70d8496d$var$base64Text","$c1b0ecbf70d8496d$var$base64End","$c1b0ecbf70d8496d$var$simpleWrite","$c1b0ecbf70d8496d$var$simpleEnd","lastNeed","lastTotal","lastChar","$c1b0ecbf70d8496d$var$utf8CheckByte","byte","$c1b0ecbf70d8496d$var$utf8CheckExtraBytes","$c1b0ecbf70d8496d$export$63a7aa211a91ed69","$c1b0ecbf70d8496d$var$utf8CheckIncomplete","$ea4304ba92d83a34$var$afterTransform","ts","_transformState","transforming","writechunk","$ea4304ba92d83a34$var$Transform","$9sAaU","afterTransform","needTransform","writeencoding","_transform","_flush","$ea4304ba92d83a34$var$prefinish","$ea4304ba92d83a34$var$done","$ea4304ba92d83a34$var$util","_this2","err2","$26fe49a8c92c96fa$var$PassThrough","$k6Y8J","$26fe49a8c92c96fa$var$util","$95c5fc1c1b6165c5$var$addLocale","localeData","$95c5fc1c1b6165c5$var$locales","$95c5fc1c1b6165c5$var$pluralize","unit","config","unitTypeData","locale","lookupOrder","unitTypeLookupOrder","unitType","$95c5fc1c1b6165c5$var$getLocaleDataForUnitType","pluralize","$95c5fc1c1b6165c5$var$timeUnits","$95c5fc1c1b6165c5$var$defaultConfig","span","firstDate","secondDate","autoload","$3Zbea","localeId","$95c5fc1c1b6165c5$var$requireLocale","$95c5fc1c1b6165c5$var$ensureLocaleLoadedOrThrow","difference","results","divider","$95c5fc1c1b6165c5$var$getDifference","$95c5fc1c1b6165c5$var$format","variants","checkLocale","locales","hasLocale","$de644365a4a5582b$var$__dirname1","requireLocale","moduleDefinition","callable","numerous","node","$4ca03dc05bbe4be0$var$isWindows","OSTYPE","$4ca03dc05bbe4be0$var$COLON","TESTING_WINDOWS","$1d8d028d9c47b73d$exports","$4ca03dc05bbe4be0$var$getNotFoundError","$4ca03dc05bbe4be0$var$getPathInfo","colon","pathEnv","pathExtExe","$4ca03dc05bbe4be0$var$which","found","step","ppRaw","pathPart","pCmd","subStep","ext","cur","ex","$e9929770d50e0ca3$var$pathKey","environment","$14642610717c66e2$export$ae50443ffc990749","$14642610717c66e2$export$6ea29ee575e3f5ff","$51d58653c6048ffd$exports","$14642610717c66e2$var$metaCharsRegExp","doubleEscapeMetaChars","$70842f99e7c30891$exports","$58ccbcc4db2ecd48$exports","argument","binary","$572e9b86f5fc3342$exports","fd","openSync","readSync","closeSync","$9cf15e4f01e764e1$var$isWin","$9cf15e4f01e764e1$var$isExecutableRegExp","$9cf15e4f01e764e1$var$isCmdShimRegExp","commandFile","shebang","$9cf15e4f01e764e1$var$detectShebang","needsShell","forceShell","needsDoubleEscapeMetaChars","normalize","shellCommand","comspec","$9cf15e4f01e764e1$var$parseNonShell","originalEmit","$338cd3297632d74f$exports","spawnSync","verifyENOENTSync","_parse","_enoent","$98427f994073a8a3$exports","CR","$e076d46b8261c78a$var$npmRunPath","previous","execPath","cwdPath","execPathDir","$e076d46b8261c78a$exports","$2826e4518080138e$var$mimicFn","prop","Reflect","ownKeys","$2826e4518080138e$exports","$2a4addac1ccdeac1$var$calledFunctions","WeakMap","$2a4addac1ccdeac1$var$onetime","returnValue","callCount","functionName","displayName","onetime1","arguments_","throw","$2a4addac1ccdeac1$exports","$d078421bb3e3863b$exports","signalsByNumber","signalsByName","$7183a0a1bd319d48$exports","getSignals","standard","action","description","forced","getRealtimeSignals","SIGRTMAX","SIGRTMIN","getRealtimeSignal","$1d5ee7ec3cf727ea$var$SIGRTMAX","realtimeSignals","$1d5ee7ec3cf727ea$exports","SIGNALS","normalizeSignal","defaultNumber","signals","constantSignal","supported","signalByNameMemo","$d078421bb3e3863b$var$signalsByName","signalsA","signalA","findSignalByNumber","getSignalByNumber","getSignalsByNumber","$d078421bb3e3863b$var$signalsByNumber","$dd1b4f5e55037c97$exports","escapedCommand","timedOut","killed","signalDescription","$dd1b4f5e55037c97$require$signalsByName","errorCode","$dd1b4f5e55037c97$var$getErrorPrefix","execaMessage","isError","shortMessage","originalMessage","failed","$9a6ccfc90813398a$var$aliases","$9a6ccfc90813398a$var$normalizeStdio","$9a6ccfc90813398a$var$hasAlias","$9a6ccfc90813398a$exports","$6a176bc6f7b604f3$var$process","$6a176bc6f7b604f3$var$processOk","process1","reallyExit","kill","pid","$6a176bc6f7b604f3$var$emitter","$6a176bc6f7b604f3$var$assert","$6a176bc6f7b604f3$var$signals","$6a176bc6f7b604f3$var$isWin","$6a176bc6f7b604f3$var$EE","__signal_exit_emitter__","emitted","infinite","setMaxListeners","$6a176bc6f7b604f3$exports","equal","$6a176bc6f7b604f3$var$loaded","$6a176bc6f7b604f3$var$load","alwaysLast","$6a176bc6f7b604f3$var$unload","sig","$6a176bc6f7b604f3$var$sigListeners","$6a176bc6f7b604f3$var$originalProcessEmit","$6a176bc6f7b604f3$var$originalProcessReallyExit","unload","$6a176bc6f7b604f3$var$emit","$6a176bc6f7b604f3$var$processEmit","$6a176bc6f7b604f3$var$processReallyExit","$2808df33d6c30b25$var$isSigterm","SIGTERM","$2808df33d6c30b25$exports","killResult","forceKillAfterTimeout","$2808df33d6c30b25$var$shouldForceKill","$2808df33d6c30b25$var$getForceKillAfterTimeout","$2808df33d6c30b25$var$setKillTimeout","context","killSignal","spawnedPromise","timeoutId","timeoutPromise","$2808df33d6c30b25$var$timeoutKill","safeSpawnedPromise","finally","race","cleanup","detached","timedPromise","removeExitHandler","spawnedKill","spawnedCancel","setupTimeout","validateTimeout","setExitHandler","$70a93fcbba5dfccf$var$isStream","duplex","$70a93fcbba5dfccf$exports","$2791e057b208c733$require$PassThroughStream","chunks","$3f8980e86d9447d4$require$promisify","pipeline","$3f8980e86d9447d4$exports","stream2","stream3","MaxBufferError","$093c506afc3bd46a$exports","sources","remove","isEmpty","it","$093c506afc3bd46a$require$PassThrough","$695f2f6df63802a7$var$getBufferedData","streamPromise","$695f2f6df63802a7$var$getStreamPromise","$695f2f6df63802a7$exports","mixed","processDone","stdoutPromise","stderrPromise","allPromise","handleInput","getSpawnedResult","makeAllStream","validateInputSync","$183dab226baf544c$var$nativePromisePrototype","$183dab226baf544c$var$descriptors","property","$183dab226baf544c$exports","descriptor","mergePromise","getSpawnedPromise","$b6e06bcb542f40f3$var$normalizeArgs","$b6e06bcb542f40f3$var$NO_ESCAPE_REGEXP","$b6e06bcb542f40f3$var$DOUBLE_QUOTES_REGEXP","$b6e06bcb542f40f3$var$SPACES_REGEXP","$b6e06bcb542f40f3$exports","$b6e06bcb542f40f3$var$escapeArg","previousToken","joinCommand","parseCommand","getEscapedCommand","$c3e9e2f843627429$var$handleArguments","stripFinalNewline","preferLocal","localDir","windowsHide","envOption","$c3e9e2f843627429$var$getEnv","$c3e9e2f843627429$var$handleOutput","$c3e9e2f843627429$var$execa","$c3e9e2f843627429$require$joinCommand","$c3e9e2f843627429$require$getEscapedCommand","$c3e9e2f843627429$require$validateTimeout","error1","dummySpawned","ChildProcess","errorPromise","$c3e9e2f843627429$require$mergePromise","$c3e9e2f843627429$require$getSpawnedPromise","$c3e9e2f843627429$require$setupTimeout","$c3e9e2f843627429$require$setExitHandler","$c3e9e2f843627429$require$spawnedKill","$c3e9e2f843627429$require$spawnedCancel","handlePromiseOnce","stdoutResult","stderrResult","allResult","$c3e9e2f843627429$require$getSpawnedResult","returnedError","$c3e9e2f843627429$require$handleInput","$c3e9e2f843627429$require$makeAllStream","$c3e9e2f843627429$require$validateInputSync","$c3e9e2f843627429$require$parseCommand","scriptPath","defaultExecArgv","execArgv","nodePath","nodeOptions","$a7308743a0157ada$var$homeDirectory","homedir","pathWithTilde","$892cf68de9d02605$var$is_posix_os","$892cf68de9d02605$var$version","$892cf68de9d02605$var$windows_version_regex","given_path","major_release","os_build","$892cf68de9d02605$var$should_not_escape","$2032c186687979ea$var$__importStar","$2032c186687979ea$var$mm","$2032c186687979ea$var$httpm","$2032c186687979ea$var$stream","$2032c186687979ea$var$util","$2032c186687979ea$var$__importDefault","$a3103f5469ee5040$var$core","$a3103f5469ee5040$var$__importStar","$a3103f5469ee5040$exports","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","isRetryable","attempt","seconds","getSleepAmount","sleep","$2032c186687979ea$var$HTTPError","httpStatusCode","$2032c186687979ea$var$IS_WINDOWS","$2032c186687979ea$var$IS_MAC","retryHelper","$2032c186687979ea$var$__awaiter","http","authorization","readStream","responseMessageFactory","succeeded","createWriteStream","$2032c186687979ea$var$downloadToolAttempt","extract7z","_7zPath","originalCwd","$2032c186687979ea$var$__dirname1","powershellPath","versionOutput","isGnuTar","destArg","fileArg","extractXar","xarPath","extractZip","escapedFile","escapedDest","pwshPath","$2032c186687979ea$var$extractZipWin","unzipPath","$2032c186687979ea$var$extractZipNix","destPath","itemName","cacheFile","sourceFile","targetFile","destFolder","cachePath","findAllVersions","getManifestFromRepo","owner","branch","releases","treeUrl","manifestUrl","tree","versionsRaw","findFromManifest","manifest","isExplicitVersion","evaluateVersions","reads","DuplexWrapper","$c92856b2bf4cfca0$var$isStream","$1e5e7710ee48ab23$require$PassThrough","time","timeoutTimer","delays","_headers","$58aa8f496d37c712$exports","withProtocol","unzip","$dLzlS$zlib","createUnzip","$67751bb05f8979b4$require$PassThrough","httpVersion","rawHeaders","trailers","rawTrailers","$b8bf7657924a30a3$exports","captureStackTrace","container","$8626f4154daac105$exports","className","setup","ErrorClass","$cca60495523a7943$var$WHITELIST","$cca60495523a7943$var$BLACKLIST","$80ff947a644b05a5$exports","$c543488da3ff24fd$var$helpers","el1","$c543488da3ff24fd$require$PassThrough","$c543488da3ff24fd$var$asStream","el","STATUS_CODES","$2a8c794890ff6d64$export$afaf85bc510dd0d6","$2a8c794890ff6d64$export$81ac2a82f65cb090","$6c0021f5b697b171$export$c564cdbbe6da493","$6c0021f5b697b171$export$2f872c0f2117be69","$6c0021f5b697b171$export$cbee51f25f0626d7","$2caa6e9ccff4596c$export$f84e8e69fd4488a5","$2caa6e9ccff4596c$export$2fe53163c7bc4eaf","$c3ce398216f063cf$export$f84e8e69fd4488a5","$b823ffddf6d9016f$export$f84e8e69fd4488a5","rcode","opcode","$c1b445009fccf89f$var$ip","$c1b445009fccf89f$exports","toBuffer","ip1","buff","isV4Format","$c1b445009fccf89f$require$Buffer","isV6Format","sections","v4Buffer","argv","word","readUInt16BE","$c1b445009fccf89f$var$ipv4Regex","$c1b445009fccf89f$var$ipv6Regex","ip2","ip3","fromPrefixLen","prefixlen","bits","mask","addr","cidr","cidrString","cidrParts","subnet","networkAddress","toLong","maskBuffer","maskLength","octet","numberOfAddresses","fromLong","firstAddress","lastAddress","broadcastAddress","subnetMask","subnetMaskLength","numHosts","contains","cidrSubnet","not","or","isEqual","isPrivate","isPublic","isLoopback","loopback","interfaces","networkInterfaces","details","nic","addresses","ip4","ipl","$6c0021f5b697b171$var$name","$6c0021f5b697b171$require$Buffer","oldOffset","$6c0021f5b697b171$var$string","$6c0021f5b697b171$var$header","writeUInt16BE","questions","answers","authorities","additionals","flag_qr","flag_auth","flag_trunc","flag_rd","flag_ra","flag_z","flag_ad","flag_cd","$6c0021f5b697b171$var$runknown","$6c0021f5b697b171$var$rns","dd","$6c0021f5b697b171$var$rsoa","mname","rname","writeUInt32BE","serial","refresh","retry","expire","minimum","readUInt32BE","$6c0021f5b697b171$var$rtxt","$6c0021f5b697b171$var$rnull","$6c0021f5b697b171$var$rhinfo","cpu","os","$6c0021f5b697b171$var$rptr","$6c0021f5b697b171$var$rcname","$6c0021f5b697b171$var$rdname","$6c0021f5b697b171$var$rsrv","priority","weight","$6c0021f5b697b171$var$rcaa","issuerCritical","ISSUER_CRITICAL","writeUInt8","readUInt8","$6c0021f5b697b171$var$ra","$6c0021f5b697b171$var$raaaa","$6c0021f5b697b171$var$renc","$6c0021f5b697b171$var$answer","klass","class","$6c0021f5b697b171$var$question","q","allocing","$0baf82350017e34a$exports","RECURSION_DESIRED","RECURSION_AVAILABLE","TRUNCATED_RESPONSE","AUTHORITATIVE_ANSWER","AUTHENTIC_DATA","CHECKING_DISABLED","close","tries","send","_trim","setRetries","$0baf82350017e34a$var$nextTick","$b580ae17e6253e1c$export$98e6a39c04603d36","$b580ae17e6253e1c$export$fac44ee5b035f737","$be0fe6c78afdc181$var$getOwnPropertySymbols","getOwnPropertySymbols","$be0fe6c78afdc181$var$hasOwnProperty","$be0fe6c78afdc181$var$propIsEnumerable","propertyIsEnumerable","$be0fe6c78afdc181$exports","test1","getOwnPropertyNames","test2","fromCharCode","test3","letter","$be0fe6c78afdc181$var$shouldUseNative","symbols","$ef3a4a463d00e4d4$var$multiMatcher","$ef3a4a463d00e4d4$exports","encodedURI","replaceMap","$ef3a4a463d00e4d4$var$customDecodeURIComponent","formatter","arrayFormat","accumulator","$b580ae17e6253e1c$var$parserForArrayFormat","param","$b580ae17e6253e1c$var$encoderForArrayFormat","val2","$53bfcea6a5b169d9$exports","https","$564da45f9ba19bd6$var$toString","$564da45f9ba19bd6$exports","$928f3eb877a3b89b$exports","deep","seenInput","seenOutput","sortKeys","seenIndex","retArr","$8f9aca16b870619b$var$DEFAULT_PORTS","$8f9aca16b870619b$var$slashedProtocol","ftp","gopher","$8f9aca16b870619b$exports","normalizeProtocol","normalizeHttps","stripFragment","stripWWW","removeQueryParameters","removeTrailingSlash","removeDirectoryIndex","sortQueryParameters","hasRelativeProtocol","urlObj","hash","decodeURI","pathComponents","domain","$dLzlS$punycode","toUnicode","queryParameters","$5893236ea6778b9f$var$statusCodeCacheableByDefault","$5893236ea6778b9f$var$understoodStatuses","$5893236ea6778b9f$var$hopByHopHeaders","te","trailer","$5893236ea6778b9f$var$excludedFromRevalidationUpdate","$5893236ea6778b9f$exports","CachePolicy","_ref2","shared","cacheHeuristic","immutableMinTimeToLive","ignoreCargoCult","_fromObject","_assertRequestHasHeaders","_responseTime","_isShared","_cacheHeuristic","_immutableMinTtl","_status","_resHeaders","_rescc","_method","_url","_host","_noAuthorization","_reqHeaders","vary","_reqcc","expires","pragma","storable","_hasExplicitExpiration","private","_allowsStoringAuthenticated","public","satisfiesWithoutRevalidation","requestCC","age","timeToLive","_requestMatches","allowHeadMethod","_varyMatches","fields","_isArray2","_iterator2","_i2","_ref3","_copyWithoutHopByHopHeaders","inHeaders","_isArray3","_iterator3","_i3","_ref4","warnings","responseHeaders","date","dateValue","maxClockDrift","ageValue","_ageValue","immutable","defaultMinTtl","lastModified","fromObject","sh","ch","imm","st","resh","rescc","reqh","reqcc","toObject","revalidationHeaders","incomingReq","etag","etags","revalidatedPolicy","policy","modified","newResponse","$72da971869857a75$exports","$72da971869857a75$require$Readable","$ea7ce052ca2832b9$exports","$a95940edaa44426b$var$knownProps","$fa58b963e1d2718f$export$fac44ee5b035f737","$fa58b963e1d2718f$export$98e6a39c04603d36","fromStream","toStream","fromProps","$0c2144f923d5e299$exports","clone","$0c2144f923d5e299$require$PassThrough","toJSON","ignore","$16ae64f82c60dcfb$exports","uri","namespace","store","adapterOpts","adapters","redis","mongodb","mongo","sqlite","postgresql","postgres","mysql","adapter","$16ae64f82c60dcfb$var$loadStore","_getKeyPrefix","$389c9d7824994208$var$CacheableRequest","cacheAdapter","createCacheableRequest","strictTtl","automaticFailover","revalidate","madeRequest","makeRequest","cachePolicy","fromCache","clonedResponse","cacheEntry","$399074e520397878$exports","$ca4e5d12adba344f$exports","prepare","shouldIterate","reader","$875931337acf52b5$var$toString","$875931337acf52b5$var$isOfType","$875931337acf52b5$var$isObjectOfType","typeName","is1","isObject","null_","class_","symbol","iterable","generator","nativePromise","hasPromiseAPI","isFunctionOfType","generatorFunction","asyncFunction","boundFunction","regExp","weakMap","weakSet","int8Array","uint8Array","uint8ClampedArray","int16Array","uint16Array","int32Array","uint32Array","float32Array","float64Array","arrayBuffer","sharedArrayBuffer","dataView","directInstanceOf","truthy","falsy","nan","primitiveTypes","primitive","integer","isInteger","safeInteger","isSafeInteger","typedArrayTypes","typedArray","objectType","arrayLike","isValidLength","inRange","DOM_PROPERTIES_TO_CHECK","domElement","nodeType","nodeName","isAbsoluteMod2","rem","abs","even","odd","empty","isEmptyStringOrArray","isEmptyObject","isEmptyMapOrSet","emptyOrWhitespace","isWhiteSpaceString","predicateOnArray","predicate","defineProperties","finalUrl","$707331c0574e0746$require$PassThrough","$40d5dd72467916fa$exports","toStringTag","$cf7fd615be9a4b07$exports","$9b77adce5e954884$var$toString","$9b77adce5e954884$var$isURL","supportIncomplete","searchParams","$79c8cac2dbb1dbb9$var$CancelError","$79c8cac2dbb1dbb9$var$PCancelable","userFn","executor","_cancelHandlers","_isPending","_isCanceled","_promise","_reject","onFulfilled","onRejected","onFinally","CancelError","$bcdb1f577cb41330$exports","$93a28d652821070b$var$TimeoutError","timer","TimeoutError","$850cb98992268454$var$processFn","P","promiseModule","errorFirst","multiArgs","exclude","include","excludeMain","key1","$a1393d98787bf290$export$ccda0b5875e8fcd9","$a1393d98787bf290$export$78ff06e91c3de382","$a1393d98787bf290$export$43ee7d0e4f429743","$a1393d98787bf290$export$e5f2fbba71434b55","$a1393d98787bf290$export$f9c837a54db411d","$a1393d98787bf290$export$aa9d629c530f62a7","$a1393d98787bf290$export$a34d7acee3cbcf76","$a1393d98787bf290$export$a4b007ef97cf13ba","$a1393d98787bf290$export$d7f5e52d091a66db","$a1393d98787bf290$var$GotError","$5be8542e7212e408$var$methods","$a1393d98787bf290$exports","$5be8542e7212e408$exports","$b84ba13122e8fc0f$var$v4","$b84ba13122e8fc0f$var$v6","$b84ba13122e8fc0f$var$ip","$b84ba13122e8fc0f$exports","exact","v4","v6","$2cdb363a519b6d87$var$isIp","$2cdb363a519b6d87$exports","$2a8c794890ff6d64$var$defaults","$2a8c794890ff6d64$var$type","dnsServer","dnsQuestion","httpsUrl","$2a8c794890ff6d64$var$queryDns","ip","$2a8c794890ff6d64$var$queryHttps","gotPromise","$9d68565f6c53186f$exports","indent","includeEmptyLines","$029be8831c00915a$var$extractPathRegex","$029be8831c00915a$var$pathRegex","$029be8831c00915a$var$homeDir","$029be8831c00915a$exports","pretty","pathMatches","p1","$54cfaa208ceb9b41$var$AggregateError","errors","_errors","$c01178c09830e856$exports","$a0e8b0394e41ad39$exports","AggregateError","elCount","maxErrors","maxFiltered","fulfilled","RangeError","rejected","$54cfaa208ceb9b41$exports","$0bcc4c10712c6b8a$var$TimeoutError","$0bcc4c10712c6b8a$exports","$d5510db41f91a242$var$defaults","$a54d8aa298c0b11d$var$isOnlineCache","$d5510db41f91a242$exports","$2a8c794890ff6d64$exports","$2306c476d4c003a8$exports","$a54d8aa298c0b11d$var$DevNull","$a54d8aa298c0b11d$require$WritableStream","link","gotOptions","checkConnectivity","$a54d8aa298c0b11d$var$tryHead","req_","requestErr","cachedAt","connectivityCacheDuration","online","$a54d8aa298c0b11d$var$tryGet","llvm","clangtidy","clangformat","ninja","gcovr","conan","meson","kcov","task","doxygen","gcc","nala","specific","$dcc4a5600f9a2a29$var$__importStar","$c10add6f7657d058$exports","$dcc4a5600f9a2a29$var$escapeData","$ffb53a3661600710$var$fs","$ffb53a3661600710$var$__importStar","$ffb53a3661600710$var$os","$ffb53a3661600710$exports","$d2814cb4b08c0425$var$os","$d2814cb4b08c0425$var$__importStar","$d2814cb4b08c0425$var$path","$d2814cb4b08c0425$var$ExitCode","$dLzlS$process","$44e2ea7eee739a17$var$VSWHERE_PATH","arch_aliases","win32","win64","x86_64","vcvars","cmd_output_parts","old_environment","vcvars_output","new_environment","error_messages","old_env_vars","string1","new_value","long","one","months","weeks","days","hours","minutes","narrow","short","exe","reDistributor","reDescription","reRelease","distributorFound","desc","rel","ss","$af664557d133c197$var$binDir","$2c1dbb6d966096c4$var$hasVCPKG","python","vcpkg","bazel","opencppcoverage","$e72e2baab3c48b0e$var$activateOpencppcoverage","choco","brew","ccache","$9f276bb1312a9d71$var$activateWinDoxygen","graphviz","cppcheck","$3b5b7f21aafe5be9$var$activateWinCppcheck","msvc","vcvarsall","versionSplit","installMethod","version_number","make","sevenzip"],"version":3,"file":"setup_cpp.js.map","sourceRoot":"../"} \ No newline at end of file diff --git a/dist/setup_cpp.mjs b/dist/setup_cpp.mjs index 3877d8af..f07838f4 100644 --- a/dist/setup_cpp.mjs +++ b/dist/setup_cpp.mjs @@ -1,2 +1,2 @@ -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,n)=>{r(e,t||{},((e,t)=>{e?n(e):i(t)}))}))}ht(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 yt)return{binDir:yt};const n=t(ut).sync("brew",{nothrow:!0});return null!==n?(yt=$gCrli$dirname(n),{binDir:yt}):($gCrli$execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),yt="/usr/local/bin/",{binDir:yt})}function n(e,t){const r=e.options.env||process.env,i=process.cwd(),n=null!=e.options.cwd,o=n&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=ut.sync(e.command,{path:r[$t({env:r})],pathExt:t?$gCrli$delimiter:void 0})}catch(e){}finally{o&&process.chdir(i)}return s&&(s=$gCrli$resolve(n?e.options.cwd:"",s)),s}function o(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 Lt&&1===e&&!t.file?o(t.original,"spawn"):null}function a(e,t,r){const i=Et(e,t,r),n=$gCrli$spawn(i.command,i.args,i.options);return Nt.hookChildProcess(n,i),n}async function l(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,i=Pr(t);return await new Promise(((t,n)=>{const o=e=>{e&&i.getBufferedLength()<=Nr.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),n(e)};(async()=>{try{await jr(e,i),t()}catch(e){o(e)}})(),i.on("data",(()=>{i.getBufferedLength()>r&&o(new Mr)}))})),i.getBufferedValue()}function c(){return(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(ut).sync("sudo",{nothrow:!0});var e}function u(e,r=[],i={stdio:"inherit",shell:!0}){return c()?t(xt).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),i):t(xt).sync(e,r,i)}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(ci)("~/"+e)}function p(e,r=["-NoProfile","-NoLogo","-NonInteractive"],i={stdio:"inherit"}){return t(xt)((()=>{if(void 0===hi){const e=t(ut).sync("pwsh",{nothrow:!0});null!==e&&(hi=e);const r=t(ut).sync("powershell",{nothrow:!0});null!==r&&(hi=r)}if(void 0===hi)throw Error("Could not find powershell");return hi})(),[...r,"-c",e],i)}async function h(e,r,i=!1){const n=i?t(fi)(null!=r?r:""):r;try{if("github-actions"===t(ui)())try{(0,ct.exportVariable)(e,n)}catch(t){(0,pi.error)(t),await m(e,n)}else await m(e,n)}catch(t){(0,pi.error)(t),(0,ct.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${$gCrli$delimiter}${process.env.PATH}`;try{if("github-actions"===t(ui)())try{(0,ct.addPath)(e)}catch(t){(0,pi.error)(t),await g(e)}else await g(e)}catch(t){(0,pi.error)(t),(0,ct.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,ct.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return v(),$gCrli$appendFileSync(yi,`\nexport ${e}="${r}"\n`),void(0,ct.info)(`${e}="${r}" was added to "${yi}`)}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,ct.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return v(),$gCrli$appendFileSync(yi,`\nexport PATH="${e}:$PATH"\n`),void(0,ct.info)(`"${e}" was added to "${yi}"`);default:return}}function v(){if(wi)return;const e="export SOURCE_CPPRC=0";if($gCrli$existsSync(yi)&&$gCrli$readFileSync(yi,"utf8").includes(e))return;$gCrli$appendFileSync(yi,`\n${e}\n`),(0,ct.info)(`Added ${e} to ${yi}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${yi}" ]]; then source "${yi}"; fi\n`;try{const e=d(".profile");$gCrli$appendFileSync(e,t),(0,ct.info)(`${t} was added to ${e}`);const r=d(".bashrc");$gCrli$appendFileSync(r,t),(0,ct.info)(`${t} was added to ${r}`)}catch(e){(0,pi.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}wi=!0}async function y(e,r,i=[],n=!1){const o=(()=>{let e;return e=null!==t(ut).sync("nala",{nothrow:!0})?"nala":"apt-get",e})();if((0,ct.info)(`Installing ${e} ${null!=r?r:""} via ${o}`),process.env.DEBIAN_FRONTEND="noninteractive",xi&&!n||(w(o),xi=!0),bi||(await(async e=>{u(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]),b(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),b(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg"),"nala"===e&&(await h("LANG","C.UTF-8"),await h("LC_ALL","C.UTF-8"))})(o),bi=!0),Array.isArray(i)&&0!==i.length){for(const e of i)u("add-apt-repository",["--update","-y",e]);w(o)}if(void 0!==r&&""!==r)try{u(o,["install","--fix-broken","-y",`${e}=${r}`])}catch{u(o,["install","--fix-broken","-y",`${e}-${r}`])}else u(o,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function w(e){u(e,"nala"!==e?["update","-y"]:["update"])}function x(){u("gpg",["-k"])}function b(e,t,r="keyserver.ubuntu.com"){const i="/etc/apt/trusted.gpg.d/"+t;if(!$gCrli$existsSync(i)){x();for(const t of e)u("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+i,"--keyserver",r,"--recv-keys",t]),u("chmod",["644",i])}return i}async function E(e,t){const r="/etc/apt/trusted.gpg.d/"+e;return $gCrli$existsSync(r)||(x(),await y("curl",void 0),u("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),u("chmod",["644",r])),r}function $(e,r){return"github-actions"===t(ui)()?u("update-alternatives",["--install","/usr/bin/"+e,e,r,"40"]):(v(),$gCrli$appendFileSync(yi,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${r} 40; fi\n`))}function C(e,t,r){(0,pi.info)(`Installing ${e} ${null!=t?t:""} via pacman`);const i="pacman";if(Ei||(u(i,["-Syuu","--noconfirm"]),Ei=!0),$i||(u(i,["-Sy","--noconfirm","base-devel"]),$i=!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 S(e,r){return(0,ct.info)(`Installing ${e} ${null!=r?r:""} via brew`),Si&&null!==t(ut).sync("brew",{nothrow:!0})||(i(0,0,process),Si=!0),t(xt).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function _(e,r,i){if("win32"!==process.platform)return;if("string"==typeof Ci)return{binDir:Ci};const n=t(ut).sync("choco",{nothrow:!0});if(null!==n)return Ci=$gCrli$dirname(n),{binDir:Ci};let o="powershell.exe";const s=t(ut).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(o=s),t(xt).sync(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await f(a);const l=t(ut).sync("choco",{nothrow:!0});var c;return Ci=null!==l?$gCrli$dirname(l):(null!==(c=process.env.ChocolateyInstall)&&void 0!==c?c:"C:/ProgramData/chocolatey")+"/bin",$gCrli$existsSync(Ci)?{binDir:Ci}:void 0}async function O(e,r,i=[]){(0,ct.info)(`Installing ${e} ${null!=r?r:""} via chocolatey`),Ri&&null!==t(ut).sync("choco",{nothrow:!0})||(await _(0,0,process),Ri=!0);const n=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=n,void 0!==r&&""!==r)t(xt).sync("choco",["install","-y",e,"--version="+r,...i],{env:o,extendEnv:!1,stdio:"inherit"});else try{t(xt).sync("choco",["install","-y",e,...i],{env:o,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,pi.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 T(){return"linux"===process.platform&&(void 0===_i&&(_i=null!==t(ut).sync("pacman",{nothrow:!0})),_i)}function R(){return"linux"===process.platform&&(void 0===Oi&&(Oi=null!==t(ut).sync("dnf",{nothrow:!0})),Oi)}function I(e,t){(0,pi.info)(`Installing ${e} ${null!=t?t:""} via dnf`);const r="dnf";if(void 0!==t&&""!==t)try{u(r,["-y","install",`${e}-${t}`])}catch(t){(0,pi.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 A(){if("linux"!==process.platform)return!1;if(void 0===Ti){const e="apt-get";Ti=null!==t(ut).sync(e,{nothrow:!0})}return Ti}function P(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function k(e,t=".bat",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function N(e,t,r){switch(process.platform){case"win32":return O("7zip",e);case"darwin":return S("p7zip",e);case"linux":if(T())return C("p7zip",e);if(R())return I("p7zip",e),I("p7zip-plugins",e);if(A())return y("p7zip-full",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function L(e){"linux"!==process.platform&&"darwin"!==process.platform||!c()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0})}function D(e,t){const r=[];t=t||zi.arch();const i=Bi.join(z(),e);if(Fi.existsSync(i)){const e=Fi.readdirSync(i);for(const n of e)if(F(n)){const e=Bi.join(i,n,t||"");Fi.existsSync(e)&&Fi.existsSync(e+".complete")&&r.push(n)}}return r}function j(e){return Di(this,void 0,void 0,(function*(){return e||(e=Bi.join(B(),Xi.default())),yield Ui.mkdirP(e),e}))}function M(e,t,r){return Di(this,void 0,void 0,(function*(){const i=Bi.join(z(),e,qi.clean(t)||t,r||"");Mi.debug("destination "+i);const n=i+".complete";return yield Ui.rmRF(i),yield Ui.rmRF(n),yield Ui.mkdirP(i),i}))}function U(e,t,r){const i=Bi.join(z(),e,qi.clean(t)||t,r||"");Fi.writeFileSync(i+".complete",""),Mi.debug("finished caching tool")}function F(e){const t=qi.clean(e)||"";Mi.debug("isExplicit: "+t);const r=null!=qi.valid(t);return Mi.debug("explicit? "+r),r}function G(e,t){let r="";Mi.debug(`evaluating ${e.length} versions`);for(let i=(e=e.sort(((e,t)=>qi.gt(e,t)?1:-1))).length-1;i>=0;i--){const n=e[i];if(qi.satisfies(n,t)){r=n;break}}return Mi.debug(r?"matched: "+r:"match not found"),r}function z(){const e=process.env.RUNNER_TOOL_CACHE||"";return $gCrli$ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function B(){const e=process.env.RUNNER_TEMP||"";return $gCrli$ok(e,"Expected RUNNER_TEMP to be defined"),e}function H(e,t){const r=ot[e];return void 0!==r?r:t}async function q(e,r){return await t(xt)(await(async()=>(void 0===sn&&(null===t(ut).sync("7z",{nothrow:!0})&&await N("",0,process),sn="7z"),sn))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),L(r),r}function V(e,t){return q(e,t)}function W(e,t){return q(e,t)}async function X(e,r,i=["--strip-components=0"]){try{await(0,Ii.mkdirP)(r)}catch{}try{await t(xt)("tar",["xf",e,"-C",r,...i],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,pi.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return L(r),r}async function Y(e,r,i,n,o){var s,a;(0,ct.info)(`Installing ${e} ${r} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!==(s=process.env.RUNNER_TEMP)&&void 0!==s?s:$gCrli$tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:$gCrli$join($gCrli$tmpdir(),"setup-cpp","hostedtoolcache");const{url:l,binRelativeDir:c,binFileName:u,extractedFolderName:d,extractFunction:p}=await i(r,process.platform,o);if("github-actions"===t(ui)())try{const t=(0,Ai.find)(e,r);if(t){const i=$gCrli$join(t,d),n=$gCrli$join(i,c);if($gCrli$existsSync(n)&&$gCrli$existsSync($gCrli$join(n,u)))return(0,ct.info)(`${e} ${r} was found in the cache at ${n}.`),await f(n),{installDir:i,binDir:n}}}catch{}const h=$gCrli$join(n,d),m=$gCrli$join(h,c),g=$gCrli$join(m,u);if(!$gCrli$existsSync(m)||!$gCrli$existsSync(g)){(0,ct.info)(`Download and extract ${e} ${r}`),an||("linux"===process.platform&&(T()?(C("unzip"),C("tar"),C("xz")):R()?(I("unzip"),I("tar"),I("xz")):A()&&(await y("unzip"),await y("tar"),await y("xz-utils"))),an=!0);try{const e=await(0,Ai.downloadTool)(l);await(null==p?void 0:p(e,n))}catch(t){throw Error(`Failed to download ${e} ${r} ${o} from ${l}: ${t}`)}}return(0,ct.info)(`Add ${m} to PATH`),await f(m),"github-actions"===t(ui)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,Ai.cacheDir)(n,e,r),{installDir:h,binDir:m}}function K(e,t,r){const i=(e=>"win32"===e?"windows":e)(t),n=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),o="win32"===t,s=o?"zip":"tar.gz";return{binRelativeDir:"",binFileName:P("task"),extractedFolderName:"",extractFunction:o?W:X,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${n}.${s}`}}function J(e,r,i){var n;const o=null!==(n=t(cn)(e))&&void 0!==n?n:e;switch(r){case"win32":{const r=t(ln)(o,"v3.19.6");let n;n=["ia32","x86","i386","x32"].includes(i)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${e}-${n}`;return{binRelativeDir:"bin/",binFileName:P("cmake"),extractedFolderName:s,extractFunction:W,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.zip`}}case"darwin":{const r=`cmake-${e}-${t(ln)(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:P("cmake"),extractedFolderName:r,extractFunction:Ai.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(ln)(o,"v3.19.8");let n;n=["aarch64"].includes(i)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${e}-${n}`;return{binRelativeDir:"bin/",binFileName:P("cmake"),extractedFolderName:s,extractFunction:Ai.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function Z(e,t,r){return Y("cmake",e,J,t,r)}async function Q(e,r,i){if("github-actions"!==t(ui)())return ee(e,r);try{(0,pi.info)("Installing python in GitHub Actions");const{setupActionsPython:t}=await lt("ddrZ4");return t(e,r,i)}catch(t){return(0,pi.warning)(""+t),ee(e,r)}}async function ee(e,r,i){switch(process.platform){case"win32":{var n,o;r?await O("python3",e,["--params=/InstallDir:"+r]):await O("python3",e);const i=null!==(o=null!==(n=t(ut).sync("python3.exe",{nothrow:!0}))&&void 0!==n?n:t(ut).sync("python.exe",{nothrow:!0}))&&void 0!==o?o:$gCrli$join(r,"python.exe"),s=$gCrli$dirname(i);return await(async e=>{(0,pi.info)(`Add ${e} to PATH`),await f(e)})(s),{installDir:s,binDir:s}}case"darwin":return S("python3",e);case"linux":{let t;if(T())t=C("python",e),C("python-pip");else if(R())t=I("python3",e),I("python3-pip");else{if(!A())throw Error("Unsupported linux distributions");t=await y("python3",e),await y("python3-pip")}return t}default:throw Error("Unsupported platform")}}function te(e){return new Promise((t=>{$gCrli$get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}function re(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function ie(e,t,r=null){if(ne(t,e)){if("linux"===process.platform&&null!==r&&e in fn){const t=r[0];return parseInt(Object.keys(fn[e])[0],10)>t?"":fn[e][t]}return hn[e]}return null!=t?t:""}function ne(e,t){return"true"===e||void 0===e&&t in hn}async function oe(e,r){if((0,ct.info)(`Installing ${e} ${null!=r?r:""} via pip`),void 0===mn){if(null!==t(ut).sync("python3",{nothrow:!0}))mn="python3";else{if(null===t(ut).sync("python",{nothrow:!0})||!await(async(e,r,i=pn)=>{const n=await(async(e,t=pn)=>{try{var r;const i=await(0,Yi.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 n&&"string"==typeof r&&""!==n&&""!==r&&-1!==t(un)(n,r)})("python","3.0.0")){if((0,ct.info)("python3 was not found. Installing python"),await Q(ie("python",void 0),"",process.arch),vn)throw Error("Failed to install python");return vn=!0,oe(e,r)}mn="python"}"win32"===process.platform?t(xt).sync(mn,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(T()?C("python-pip"):R()?I("python3-pip"):A()&&await y("python3-pip")),t(xt).sync(mn,["-m","pip","install","-U","wheel"],{stdio:"inherit"})}if(t(xt).sync(mn,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===gn){if("linux"===process.platform)gn="/home/runner/.local/bin/";else if("darwin"===process.platform)gn="/usr/local/bin/";else try{gn=$gCrli$join((await(0,Yi.getExecOutput)(mn+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{gn=$gCrli$join((await(0,Yi.getExecOutput)(mn+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}(0,ct.info)(gn+" to PATH"),await f(gn)}return{binDir:gn}}async function se(e,t,r){switch(process.platform){case"win32":return await O("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 S("graphviz",e);case"linux":if(T())return C("graphviz",e);if(R())return I("graphviz",e);if(A())return y("graphviz",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function ae(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:P("doxygen"),extractedFolderName:t,extractFunction:Ai.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:P("doxygen"),extractedFolderName:t,extractFunction:W,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function le(){if("darwin"===process.platform)try{const e=await(0,Yi.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await h("SDKROOT",t.trim()):(0,pi.error)("SDKROOT not set")}catch(e){(0,pi.error)(e)}}function ce(e,t,r){if("win32"===t){const t=xn[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const i="ia32"===r?"i686":"x86_64",n="seh";return{binRelativeDir:"bin/",binFileName:P("g++"),extractedFolderName:"mingw64",extractFunction:q,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${i}-posix-${n}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function ue(e,r,i){let n;switch(process.platform){case"win32":"arm"!==i&&"arm64"!==i||await O("gcc-arm-embedded",e);try{n=await Y("g++",e,ce,r,i)}catch(t){(0,pi.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),n=await(async(e,t)=>{let r;var i,n;return await O("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!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,i)}break;case"darwin":n=S("gcc",e);break;case"linux":"x64"===i?T()?n=C("gcc",e):R()?(n=I("gcc",e),I("gcc-c++",e),I("libstdc++-devel",void 0)):A()&&(await y("gcc",e,["ppa:ubuntu-toolchain-r/test"]),n=await y("g++",e,[])):((0,pi.info)(`Install g++-multilib because gcc for ${i} was requested`),T()?C("gcc-multilib",e):A()&&await y("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]));break;default:throw Error("Unsupported platform for "+i)}if(void 0!==n)return await(async(e,r)=>{const i=[];if("win32"===process.platform)i.push(h("CC",P(r+"/gcc")),h("CXX",P(r+"/g++")));else{var n;const o=t(yn)(null!==(n=t(cn)(e))&&void 0!==n?n:e);5>o?(i.push(h("CC",`${r}/gcc-${e}`),h("CXX",`${r}/g++-${e}`)),A()&&($("cc",`${r}/gcc-${e}`),$("cxx",`${r}/g++-${e}`),$("gcc",`${r}/gcc-${e}`),$("g++",`${r}/g++-${e}`))):(i.push(h("CC",`${r}/gcc-${o}`),h("CXX",`${r}/g++-${o}`)),A()&&($("cc",`${r}/gcc-${o}`),$("cxx",`${r}/g++-${o}`),$("gcc",`${r}/gcc-${o}`),$("g++",`${r}/g++-${o}`)))}i.push(le()),"github-actions"===t(ui)()&&(()=>{const e=ze.join(wn,"gcc_matcher.json");if(!$gCrli$existsSync(e))return(0,pi.warning)("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,pi.info)("::add-matcher::"+e)})(),await Promise.all(i)})(e,n.binDir),n}function de(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function pe(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function he(e,r){switch(e){case"darwin":return(e=>{if($n.has(e))return null;const r="clang+llvm-",i=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(ln)(e,"9.0.1")?pe(e,r,i):de(e,r,i)})(r);case"linux":return(e=>{let r=e;const i=Cn.get(r);let n;if(void 0!==i&&(r=i),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!En.has(e))throw Error("Unsupported Ubuntu version: "+e);n=r.replace(e,""),r=re(En,e)[0]}else""!==r&&r in Sn?n=Sn[r]:(n=Sn["14.0.0"],(0,pi.warning)(`Falling back to LLVM version 14.0.0 ${n} for the Ubuntu.`));const o="clang+llvm-",s="5.0.0"===r?`-linux-x86_64${n}.tar.xz`:`-x86_64-linux-gnu${n}.tar.xz`;return t(ln)(r,"9.0.1")?pe(r,o,s):de(r,o,s)})(r);case"win32":return(async e=>{if(_n.has(e))return null;const r="LLVM-",i=t(ln)(e,"3.7.0")?"-win32.exe":"-win64.exe",n=t(ln)(e,"9.0.1");let o,s=!1;return n&&(o=pe(e,r,i),await te(o)||(s=!0)),!s&&n||(o=de(e,r,i)),o})(r);default:return null}}async function fe(e,t,r){const[i,n]=await(async(e,t,r,i)=>{if("linux"===t&&r.includes("ubuntu")){const e=await i(t,r);if(null!==e&&await te(e))return[r,e]}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);for(const n of re(e,r)){const e=await i(t,n);if(null!==e&&await te(e))return[n,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(En,t,e,he);return(0,ct.setOutput)("version",i),{url:n,extractedFolderName:"",binRelativeDir:"bin",binFileName:P("clang"),extractFunction:"win32"===t?V:(e,t)=>X(e,t,["--strip-components=1"])}}async function me(e,r,i){const n=await ge(e,r,i);var o;return await(async(e,r)=>{const i=(e=>{if(null===t(dn)(e))try{const r=t(cn)(e);if(null!==r)return(0,pi.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),n=$gCrli$join(e,"lib");var o;const s=null!==(o=process.env.LD_LIBRARY_PATH)&&void 0!==o?o:"";var a;const l=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",c=[h("LLVM_PATH",e),h("LD_LIBRARY_PATH",`${n}${$gCrli$delimiter}${s}`),h("DYLD_LIBRARY_PATH",`${n}${$gCrli$delimiter}${l}`),h("LDFLAGS",`-L"${e}/lib"`),h("CPPFLAGS",`-I"${e}/include"`),h("CC",P(e+"/bin/clang")),h("CXX",P(e+"/bin/clang++")),h("LIBRARY_PATH",e+"/lib"),le()];if("win32"!==process.platform){const r=t(yn)(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`))}A()&&($("cc",e+"/bin/clang"),$("cxx",e+"/bin/clang++"),$("clang",e+"/bin/clang"),$("clang++",e+"/bin/clang++"),$("lld",e+"/bin/lld"),$("ld.lld",e+"/bin/ld.lld"),$("llvm-ar",e+"/bin/llvm-ar")),"github-actions"===t(ui)()&&ye(),await Promise.all(c)})(null!==(o=n.installDir)&&void 0!==o?o:r,e),n}async function ge(e,t,r){const i=await Y("llvm",e,fe,t,r);return On||("linux"===process.platform&&(await ue(ie("gcc",void 0),"",r),T()||A()&&await y("libtinfo-dev")),On=!0),i}function ve(e,r,i){return"github-actions"===t(ui)()&&ye(),ge(e,r,i)}function ye(){const e=$gCrli$join(bn,"llvm_matcher.json");if(!$gCrli$existsSync(e))return(0,pi.warning)("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");(0,pi.info)("::add-matcher::"+e)}function we(e,t,r){const i=new Mn(e,t,r);process.stdout.write(""+i+Dn.EOL)}function xe(e){Nn.issue("error",e instanceof Error?""+e:e)}function be(e){Nn.issue("group",e)}function Ee(){Nn.issue("endgroup")}function $e(e){return Object.values(Jn).includes(e)?e:e in Jn?Jn[e]:e}function Ce(e){if(Object.keys(Jn).includes(e))return e;for(const[t,r]of Object.entries(Jn))if(r===e)return t;return e}function Se(e){const t=$e(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){An.warning("vswhere failed: "+e)}return null})(0,r);if(i&&$gCrli$existsSync(i))return An.info("Found with vswhere: "+i),i;An.info("Not found with vswhere");const n=e?[Ce(e)]:Kn;for(const e of Xn)for(const t of n)for(const r of Yn)if(i=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,An.info("Trying standard location: "+i),$gCrli$existsSync(i))return An.info("Found standard location: "+i),i;if(An.info("Not found in standard locations"),i=Wn+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",$gCrli$existsSync(i))return An.info("Found VS 2015: "+i),i;throw An.info("Not found in VS 2015 location: "+i),Error("Microsoft Visual Studio not found")}function _e(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function Oe(e,t,r,i,n,o,s){void 0!==t&&$gCrli$existsSync(t)&&((0,pi.info)(`Adding ${t} to PATH`),await h("VCTargetsPath",t)),In((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),n,i,o,s,e)}async function Te(e,r,i,n,o,s){if("win32"!==process.platform)return;const a=Tn(e);(0,pi.info)(`Checking if MSVC ${a} is already installed`);let l,c,u=!1;try{const e=Rn(a);u=!0,(0,pi.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(l="14.0",await O("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),c="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(l="14.16",await O("visualstudio2017buildtools","15.9.41.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(l="14.29",await O("visualstudio2019buildtools","16.11.7.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(l=void 0,await O("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):(0,pi.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,pi.error)(e)}await Oe(a,c,i,l,n,o,s),"github-actions"===t(ui)()&&(()=>{const e=ze.join(eo,"msvc_matcher.json");if(!$gCrli$existsSync(e))return(0,pi.warning)("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,pi.info)("::add-matcher::"+e)})()}function Re(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:P("ninja"),extractedFolderName:"",extractFunction:W,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${i}.zip`}}function Ie(e,t,r){return Y("ninja",e,Re,t,r)}function Ae(e){return null==e?[]:Array.isArray(e)?e:[e]}function Pe(e,t,r,i){var n,o=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*(n=+r)==0?n:r),!!r)):0*(n=+r)==0?n:r;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s]}function ke(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:P("kcov"),extractFunction:X}}function Ne(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:P("kcov"),extractFunction:Le}}async function Le(e,r){const i=await X(e,r,["--strip-components=1"]),n=await(async()=>{let e=t(ut).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Z(ie("cmake",void 0),$gCrli$join(d(""),"cmake"),"");e=$gCrli$join(t,"cmake")}return null===t(ut).sync("ninja",{nothrow:!0})&&await Ie(ie("ninja",void 0),$gCrli$join(d(""),"ninja"),""),e})();"linux"===process.platform&&(T()?(C("libdwarf"),C("libcurl-openssl")):R()?(I("libdwarf-devel"),I("libcurl-devel")):A()&&(await y("libdw-dev"),await y("libcurl4-openssl-dev")));const o=$gCrli$join(i,"build");return await t(xt)(n,["-S",i,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:i,stdio:"inherit"}),await t(xt)(n,["--build",o,"--config","Release"],{cwd:i,stdio:"inherit"}),i}async function De(e){"github-actions"!==t(ui)()&&(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=je(e);var i;r.help&&(0,pi.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 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 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--bazel\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--nala\n--sevenzip\n--graphviz\n ');const n=null!==(i=r.architecture)&&void 0!==i?i:process.arch;var o;const s=null!==(o=process.env.SETUP_CPP_DIR)&&void 0!==o?o:d(""),a=[],l=[],c=to.create({autoloadLocales:!0});let u,p;to.addLocale(t(Qn)),ro.addLocale(t(io));let f=null;try{f=await(async()=>{if(A()){null===t(ut).sync("lsb_release",{nothrow:!0})&&await y("lsb-release");const e=await(0,no.getUbuntuVersion)();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){(0,pi.warning)(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const i=t.slice(0,r).concat(t.slice(r+1)),n=t[r];if(!ne(e[n],n))for(let t=0;i.length>t;t++){const r=i[t];if(ne(e[r],i[t]))e[r]=e[n];else if(e[n]!==e[i[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return(0,pi.error)("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of lo){const t=r[e];if(void 0!==t){u=Date.now(),(0,ct.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await Oe(ie(e,t,f),void 0,n,void 0,void 0,!1,!1);else{const i=ao[e],o=$gCrli$join(s,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await i(ie(e,t,f),o,n)}a.push(Fe(e,r))}catch(t){(0,pi.error)(t),l.push(e+" failed to install")}(0,ct.endGroup)(),p=Date.now(),(0,pi.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}=Me(m);switch((0,ct.startGroup)(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await me(ie("llvm",t,f),$gCrli$join(s,"llvm"),n);a.push(Fe("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await ue(ie("gcc",t,f),$gCrli$join(s,"gcc"),n);a.push(Fe("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await Te(ie("msvc",t,f),$gCrli$join(s,"msvc"),n);a.push(Fe("msvc",e));break}case"appleclang":case"applellvm":(0,ct.notice)("Assuming apple-clang is already installed"),await Promise.all([h("CC","clang"),h("CXX","clang++")]),a.push(Fe("apple-clang",void 0));break;default:l.push("Unsupported compiler "+e)}(0,ct.endGroup)(),p=Date.now(),(0,pi.info)("took "+(c.format(u,p)||"0 seconds"))}}catch(e){(0,pi.error)(e),l.push("Failed to install the "+m),(0,ct.endGroup)(),p=Date.now(),(0,pi.info)("took "+(c.format(u,p)||"0 seconds"))}if(0===a.length&&0===l.length)return(0,pi.warning)("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>(0,pi.success)(e))),l.forEach((e=>(0,pi.error)(e))),(0,pi.info)("setup_cpp finished"),"github-actions"!==t(ui)())switch(process.platform){case"win32":(0,pi.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,pi.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===l.length?0:1}function je(e){return((e,t)=>{var r,i,n,o,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=Ae(t.string),t.boolean=Ae(t.boolean),p)for(r in t.alias)for(i=t.alias[r]=Ae(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(o=typeof t.default[r],i=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;i.length>l;l++)t[o].push(i[l]);const m=h?Object.keys(t.alias):[];for(l=0;d>l;l++){if("--"===(n=e[l])){a._=a._.concat(e.slice(++l));break}for(c=0;n.length>c&&45===n.charCodeAt(c);c++);if(0===c)a._.push(n);else if("no-"===n.substring(c,c+3)){if(o=n.substring(c+3),h&&!~m.indexOf(o))return t.unknown(n);a[o]=!1}else{for(u=c+1;n.length>u&&61!==n.charCodeAt(u);u++);for(o=n.substring(c,u),s=n.substring(++u)||l+1===d||45===(""+e[l+1]).charCodeAt(0)||e[++l],i=2===c?[o]:o,u=0;i.length>u;u++){if(o=i[u],h&&!~m.indexOf(o))return t.unknown("-".repeat(c)+o);Pe(a,o,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:co,default:Object.fromEntries(co.map((e=>[e,Ue(e)]))),alias:{h:"help"},boolean:"help"})}function Me(e){const r=e.split("-"),i=r[0];if(1 in r){const e=r[1];return null!==t(dn)(e)||(0,pi.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:i,version:e}}return{compiler:i,version:void 0}}function Ue(e){const t=(0,ct.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function Fe(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 Ge from"os";import ze,*as Be from"path";import*as He from"fs";import*as qe from"http";import*as Ve from"https";import"net";import{connect as We}from"tls";import*as Xe from"events";import*as Ye from"assert";import*as Ke from"util";import*as Je from"child_process";import{randomBytes as Ze}from"crypto";import{StringDecoder as Qe}from"string_decoder";import{setTimeout as et}from"timers";import{constants as tt}from"buffer";import*as rt from"stream";import{env as it,platform as nt}from"process";var ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},st={},at={},lt=ot.parcelRequire810d;null==lt&&((lt=e=>{if(e in st)return st[e].exports;if(e in at){var t=at[e];delete at[e];var r={id:e,exports:{}};return st[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)=>{at[e]=t},ot.parcelRequire810d=lt),lt.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 n(e){u.issue("group",e)}function o(){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))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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=lt("CzUPq"),d=lt("a92Us"),p=lt("7u2Mm");const h=l(Ge),f=l(Be);var m,g,v=lt("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=n,e.exports.endGroup=o,e.exports.group=function(e,t){return c(this,void 0,void 0,(function*(){let r;n(e);try{r=yield t()}finally{o()}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=lt("f0qw2");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return y.summary}}),y=lt("f0qw2"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return y.markdownSummary}});var w=lt("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}})})),lt.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]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const s=o(Ge);var a=lt("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 n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${t=n,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}}})),lt.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}:{}})),lt.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const o=n(He),s=n(Ge);var a=lt("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(!o.existsSync(r))throw Error("Missing file at path: "+r);o.appendFileSync(r,`${a.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}})),lt.register("aKUUy",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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=lt("9kh6d"),n=lt("bynPH"),o=lt("gF2Jd");class s{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new n.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}`)})),n=null===(t=i.result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=s.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),o.debug("ID token url is "+t);const r=yield s.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=s})),lt.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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=n(qe),a=n(Ve),l=n(lt("hYqzk")),c=n(lt("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 o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))))}))}}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 o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,i){return o(this,void 0,void 0,(function*(){return this.request(e,t,r,i)}))}getJson(e,t={}){return o(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 o(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 n=yield this.post(e,i,r);return this._processResponse(n,this.requestOptions)}))}putJson(e,t,r={}){return o(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 n=yield this.put(e,i,r);return this._processResponse(n,this.requestOptions)}))}patchJson(e,t,r={}){return o(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 n=yield this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}))}request(e,t,r,i){return o(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const n=new URL(t);let o=this._prepareRequest(e,n,i);const s=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let a,l=0;do{if(a=yield this.requestRaw(o,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,o,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:"===n.protocol&&n.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!==n.hostname)for(const e in i)"authorization"===e.toLowerCase()&&delete i[e];o=this._prepareRequest(e,l,i),a=yield this.requestRaw(o,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 o(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){n||(n=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let n=!1;const o=e.httpModule.request(e.options,(e=>{i(void 0,new w(e))}));let s;o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),i(Error("Request timeout: "+e.options.path))})),o.on("error",(e=>{i(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const n="https:"===i.parsedUrl.protocol;i.httpModule=n?a:s;const o=n?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):o,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 n="https:"===e.protocol;let o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||s.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let i;const s="https:"===r.protocol;i=n?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:o};t=n?new a.Agent(e):new s.Agent(e),this._agent=t}return t||(t=n?a.globalAgent:s.globalAgent),n&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return o(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 o(this,void 0,void 0,(function*(){return new Promise(((r,i)=>o(this,void 0,void 0,(function*(){const n=e.message.statusCode||0,o={statusCode:n,result:null,headers:{}};let s,a;n===u.NotFound&&r(o);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),o.result=s),o.headers=e.message.headers}catch(e){}if(n>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${n})`;const t=new y(e,n);t.result=o.result,i(t)}else r(o)}))))}))}};const x=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),lt.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})),lt.register("ky4Yx",((e,t)=>{e.exports=lt("48VNE")})),lt.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,n)=>{for(var s=o(r,i,n),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 n(e,t){var r=this;i.prototype.createSocket.call(r,e,(i=>{var n=e.request.getHeader("host"),o=s({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):e.host}),a=We(0,o);r.sockets[r.sockets.indexOf(i)]=a,t(a)}))}function o(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 n=Object.keys(i),o=0,s=n.length;s>o;++o){var a=n[o];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=n,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=n,t.defaultPort=443,t},$gCrli$inherits(i,$gCrli$EventEmitter),i.prototype.addRequest=function(e,t,r,i){var n=this,a=s({request:e},n.options,o(t,r,i));this.maxSockets>n.sockets.length?n.createSocket(a,(t=>{function r(){n.emit("free",t,a)}function i(e){n.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)})):n.requests.push(a)},i.prototype.createSocket=function(e,t){function r(r,o,s){var l;return a.removeAllListeners(),o.removeAllListeners(),200!==r.statusCode?(p("tunneling socket could not be established, statusCode=%d",r.statusCode),o.destroy(),(l=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",l),void i.removeSocket(n)):s.length>0?(p("got illegal response body from proxy"),o.destroy(),(l=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",l),void i.removeSocket(n)):(p("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=o,t(o))}var i=this,n={};i.sockets.push(n);var o=s({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),p("making CONNECT request");var a=i.request(o);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(n)})),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=()=>{}})),lt.register("bynPH",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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")}))}}})),lt.register("f0qw2",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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:n,writeFile:o}=$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}${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?o:n;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(""),n=this.wrap(r,i);return this.addRaw(n).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:n}=e,o=t?"th":"td",s=Object.assign(Object.assign({},i&&{colspan:i}),n&&{rowspan:n});return this.wrap(o,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:n}=r||{},o=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const r="h"+t,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).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})),lt.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const o=n(Be);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,o.sep)})),lt.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 n=r[i].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1})(t,r)}function i(e,t,i){$gCrli$stat(e,((n,o)=>{i(n,!n&&r(o,e,t))}))}e.exports=i,i.sync=(e,t)=>r($gCrli$statSync(e),e,t)})),lt.register("lNi8N",((e,t)=>{function r(e,t,r){$gCrli$stat(e,((e,n)=>{r(e,!e&&i(n,t))}))}function i(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,i=e.uid,n=e.gid,o=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&&n===s||r&a&&i===o||r&c&&0===o})(e,t)}e.exports=r,r.sync=(e,t)=>i($gCrli$statSync(e),t)})),lt.register("81ovw",((r,i)=>{function n(e){return"github-actions"===t(u)()?c.error(e):console.log(`${e}`)}function o(e){return console.log(`${e}`)}function s(e){return"github-actions"===t(u)()?c.warning(e):console.log(`${e}`)}function a(e){return"github-actions"===t(u)()?c.notice(e):console.log(`${e}`)}function l(e){return"github-actions"===t(u)()?c.info(e):console.log(e)}e(r.exports,"error",(()=>n)),e(r.exports,"success",(()=>o)),e(r.exports,"warning",(()=>s)),e(r.exports,"notice",(()=>a)),e(r.exports,"info",(()=>l));var c=lt("gF2Jd"),u=lt("ywN2f")})),lt.register("ywN2f",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTION?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),lt.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")})),lt.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 n(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 n of r){const r=yield h.tryGetExecutablePath(p.join(n,e),t);r&&i.push(r)}return i}))}function o(e,t,r,n){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 o(a,l,r,n):yield s(a,l,n)}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))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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(Je),p=c(Be),h=c(lt("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:n,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(!n)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield o(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,n={}){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!=n.force&&!n.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 n(t);return i&&i.length>0?i[0]:""}))},e.exports.findInPath=n})),lt.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,n=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}),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)&&n(t,e,r);return o(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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(He),c=s(Be);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 n;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile())if(e.exports.IS_WINDOWS){const e=c.extname(t).toUpperCase();if(i.some((t=>t.toUpperCase()===e)))return t}else if(r(n))return t;const o=t;for(const s of i){t=o+s,n=void 0;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{const r=c.dirname(t),i=c.basename(t).toUpperCase();for(const n of yield e.exports.readdir(r))if(i===n.toUpperCase()){t=c.join(r,n);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(n))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),lt.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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=n(lt("dsEdn"));var a=lt("gF2Jd");e.exports._findMatch=function(t,r,i,n){return o(this,void 0,void 0,(function*(){const o=$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}===${n} && ${t.platform}===${o}`);let r=t.arch===n&&t.platform===o;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}})),lt.register("dsEdn",((e,t)=>{var r=lt("e9hBm");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:lt("4Y6QE").SEMVER_SPEC_VERSION,SemVer:lt("ewE0y"),compareIdentifiers:lt("5niLa").compareIdentifiers,rcompareIdentifiers:lt("5niLa").rcompareIdentifiers,parse:lt("9pDo3"),valid:lt("kULaE"),clean:lt("kVpax"),inc:lt("h6Vge"),diff:lt("3u0pC"),major:lt("ehbTi"),minor:lt("gKZZ5"),patch:lt("aLUuB"),prerelease:lt("janoF"),compare:lt("odmNz"),rcompare:lt("jBQST"),compareLoose:lt("jTcyr"),compareBuild:lt("34MvR"),sort:lt("fGLgH"),rsort:lt("c3rWp"),gt:lt("fMkbf"),lt:lt("KbgdS"),eq:lt("13Au1"),neq:lt("lMg40"),gte:lt("kdktp"),lte:lt("kNWZ7"),cmp:lt("hYtJM"),coerce:lt("3wKw1"),Comparator:lt("9Bceq"),Range:lt("kEeqW"),satisfies:lt("fThUd"),toComparators:lt("kBAIU"),maxSatisfying:lt("9ybja"),minSatisfying:lt("lw7B8"),minVersion:lt("aGCCN"),validRange:lt("asxHW"),outside:lt("5T7ZF"),gtr:lt("8pZ7x"),ltr:lt("jkRb0"),intersects:lt("5obom"),simplifyRange:lt("rDQLp"),subset:lt("3vJJ8")}})),lt.register("e9hBm",((e,t)=>{var r=lt("4Y6QE").MAX_SAFE_COMPONENT_LENGTH,i=lt("36nrx");const n=(t=e.exports={}).re=[],o=t.src=[],s=t.t={};let a=0;const l=(e,t,r)=>{const l=a++;i(e,l,t),s[e]=l,o[l]=t,n[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",`(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${o[s.NUMERICIDENTIFIER]}|${o[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${o[s.NUMERICIDENTIFIERLOOSE]}|${o[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${o[s.PRERELEASEIDENTIFIER]}(?:\\.${o[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${o[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${o[s.BUILDIDENTIFIER]}(?:\\.${o[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${o[s.MAINVERSION]}${o[s.PRERELEASE]}?${o[s.BUILD]}?`),l("FULL",`^${o[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${o[s.MAINVERSIONLOOSE]}${o[s.PRERELEASELOOSE]}?${o[s.BUILD]}?`),l("LOOSE",`^${o[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",o[s.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:${o[s.PRERELEASE]})?${o[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:${o[s.PRERELEASELOOSE]})?${o[s.BUILD]}?)?)?`),l("XRANGE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),l("COERCERTL",o[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${o[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${o[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${o[s.LONECARET]}${o[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${o[s.LONECARET]}${o[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${o[s.GTLT]}\\s*(${o[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]}|${o[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${o[s.XRANGEPLAIN]})\\s+-\\s+(${o[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${o[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),lt.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}})),lt.register("36nrx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),lt.register("ewE0y",(function(e,t){var r=lt("36nrx"),i=lt("4Y6QE"),n=i.MAX_LENGTH,o=i.MAX_SAFE_INTEGER,s=lt("e9hBm"),a=s.re,l=s.t,c=lt("kQXIc"),u=lt("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>n)throw new TypeError(`version is longer than ${n} 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>o||0>this.major)throw new TypeError("Invalid major version");if(this.minor>o||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>o||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&&o>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],n=e.prerelease[t];if(r("prerelease compare",t,i,n),void 0===i&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(i!==n)return u(i,n)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const i=this.build[t],n=e.build[t];if(r("prerelease compare",t,i,n),void 0===i&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(i!==n)return u(i,n)}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})),lt.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)),{}):{}})),lt.register("5niLa",((e,t)=>{const r=/^[0-9]+$/,i=(e,t)=>{const i=r.test(e),n=r.test(t);return i&&n&&(e=+e,t=+t),e===t?0:i&&!n?-1:n&&!i?1:t>e?-1:1};e.exports={compareIdentifiers:i,rcompareIdentifiers(e,t){return i(t,e)}}})),lt.register("9pDo3",((e,t)=>{var r=lt("4Y6QE").MAX_LENGTH,i=lt("e9hBm"),n=i.re,o=i.t,s=lt("ewE0y"),a=lt("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?n[o.LOOSE]:n[o.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}})),lt.register("kULaE",((e,t)=>{var r=lt("9pDo3");e.exports=(e,t)=>{const i=r(e,t);return i?i.version:null}})),lt.register("kVpax",((e,t)=>{var r=lt("9pDo3");e.exports=(e,t)=>{const i=r(e.trim().replace(/^[=v]+/,""),t);return i?i.version:null}})),lt.register("h6Vge",((e,t)=>{var r=lt("ewE0y");e.exports=(e,t,i,n)=>{"string"==typeof i&&(n=i,i=void 0);try{return new r(e instanceof r?e.version:e,i).inc(t,n).version}catch(e){return null}}})),lt.register("3u0pC",((e,t)=>{var r=lt("9pDo3"),i=lt("13Au1");e.exports=(e,t)=>{if(i(e,t))return null;{const i=r(e),n=r(t),o=i.prerelease.length||n.prerelease.length,s=o?"pre":"",a=o?"prerelease":"";for(const e in i)if(("major"===e||"minor"===e||"patch"===e)&&i[e]!==n[e])return s+e;return a}}})),lt.register("13Au1",((e,t)=>{var r=lt("odmNz");e.exports=(e,t,i)=>0===r(e,t,i)})),lt.register("odmNz",((e,t)=>{var r=lt("ewE0y");e.exports=(e,t,i)=>new r(e,i).compare(new r(t,i))})),lt.register("ehbTi",((e,t)=>{var r=lt("ewE0y");e.exports=(e,t)=>new r(e,t).major})),lt.register("gKZZ5",((e,t)=>{var r=lt("ewE0y");e.exports=(e,t)=>new r(e,t).minor})),lt.register("aLUuB",((e,t)=>{var r=lt("ewE0y");e.exports=(e,t)=>new r(e,t).patch})),lt.register("janoF",((e,t)=>{var r=lt("9pDo3");e.exports=(e,t)=>{const i=r(e,t);return i&&i.prerelease.length?i.prerelease:null}})),lt.register("jBQST",((e,t)=>{var r=lt("odmNz");e.exports=(e,t,i)=>r(t,e,i)})),lt.register("jTcyr",((e,t)=>{var r=lt("odmNz");e.exports=(e,t)=>r(e,t,!0)})),lt.register("34MvR",((e,t)=>{var r=lt("ewE0y");e.exports=(e,t,i)=>{const n=new r(e,i),o=new r(t,i);return n.compare(o)||n.compareBuild(o)}})),lt.register("fGLgH",((e,t)=>{var r=lt("34MvR");e.exports=(e,t)=>e.sort(((e,i)=>r(e,i,t)))})),lt.register("c3rWp",((e,t)=>{var r=lt("34MvR");e.exports=(e,t)=>e.sort(((e,i)=>r(i,e,t)))})),lt.register("fMkbf",((e,t)=>{var r=lt("odmNz");e.exports=(e,t,i)=>r(e,t,i)>0})),lt.register("KbgdS",((e,t)=>{var r=lt("odmNz");e.exports=(e,t,i)=>0>r(e,t,i)})),lt.register("lMg40",((e,t)=>{var r=lt("odmNz");e.exports=(e,t,i)=>0!==r(e,t,i)})),lt.register("kdktp",((e,t)=>{var r=lt("odmNz");e.exports=(e,t,i)=>r(e,t,i)>=0})),lt.register("kNWZ7",((e,t)=>{var r=lt("odmNz");e.exports=(e,t,i)=>0>=r(e,t,i)})),lt.register("hYtJM",((e,t)=>{var r=lt("13Au1"),i=lt("lMg40"),n=lt("fMkbf"),o=lt("kdktp"),s=lt("KbgdS"),a=lt("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 n(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw new TypeError("Invalid operator: "+t)}}})),lt.register("3wKw1",((e,t)=>{var r=lt("ewE0y"),i=lt("9pDo3"),n=lt("e9hBm"),o=n.re,s=n.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1}else n=e.match(o[s.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}})),lt.register("9Bceq",(function(e,t){const r=Symbol();class i{static get ANY(){return r}constructor(e,t){if(t=n(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),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=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||n||o&&s||a||c}}e.exports=i;var n=lt("kQXIc"),o=lt("e9hBm"),s=o.re,a=o.t,l=lt("hYtJM"),c=lt("36nrx"),u=lt("ewE0y"),d=lt("kEeqW")})),lt.register("kEeqW",(function(e,t){class r{constructor(e,t){if(t=n(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)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 n=this.options.loose;e=e.replace(n?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)));n&&(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 o(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(lt("baiI1"))({max:1e3});var n=lt("kQXIc"),o=lt("9Bceq"),s=lt("36nrx"),a=lt("ewE0y"),l=lt("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 n=i.pop();for(;r&&i.length;)r=i.every((e=>n.intersects(e,t))),n=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=S(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,n,o)=>{let a;return s("tilde",e,t,r,i,n,o),y(r)?a="":y(i)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(n)?a=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${i}.${n}-${o} <${r}.${+i+1}.0-0`):a=`>=${r}.${i}.${n} <${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,n,o,a)=>{let l;return s("caret",e,t,i,n,o,a),y(i)?l="":y(n)?l=`>=${i}.0.0${r} <${+i+1}.0.0-0`:y(o)?l="0"===i?`>=${i}.${n}.0${r} <${i}.${+n+1}.0-0`:`>=${i}.${n}.0${r} <${+i+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===i?"0"===n?`>=${i}.${n}.${o}-${a} <${i}.${n}.${+o+1}-0`:`>=${i}.${n}.${o}-${a} <${i}.${+n+1}.0-0`:`>=${i}.${n}.${o}-${a} <${+i+1}.0.0-0`):(s("no pr"),l="0"===i?"0"===n?`>=${i}.${n}.${o}${r} <${i}.${n}.${+o+1}-0`:`>=${i}.${n}.${o}${r} <${i}.${+n+1}.0-0`:`>=${i}.${n}.${o} <${+i+1}.0.0-0`),s("caret return",l),l}))},$=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>(e=e.trim()).replace(t.loose?c[u.XRANGELOOSE]:c[u.XRANGE],((r,i,n,o,a,l)=>{s("xRange",e,r,i,n,o,a,l);const c=y(n),u=c||y(o),d=u||y(a);return"="===i&&d&&(i=""),l=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(u&&(o=0),a=0,">"===i?(i=">=",u?(n=+n+1,o=0,a=0):(o=+o+1,a=0)):"<="===i&&(i="<",u?n=+n+1:o=+o+1),"<"===i&&(l="-0"),r=`${i+n}.${o}.${a}${l}`):u?r=`>=${n}.0.0${l} <${+n+1}.0.0-0`:d&&(r=`>=${n}.${o}.0${l} <${n}.${+o+1}.0-0`),s("xRange return",r),r})),S=(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,n,o,s,a,l,c,u,d,p,h)=>`${r=y(i)?"":y(n)?`>=${i}.0.0${e?"-0":""}`:y(o)?`>=${i}.${n}.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!==o.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}})),lt.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}}}),n=new Set,o=(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:n}=Object.getOwnPropertyDescriptor(i,e);c(r,e+" method",`cache.${t}()`,n)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},l=e=>!n.has(e),c=(e,t,r,i)=>{n.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:C,stale:S}=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||!!S,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!p,this.ttlResolution=u(i)||0===i?i:1,this.ttlAutopurge=!!s,this.ttl=r||C||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)&&(n.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}S&&o("stale","allowStale"),C&&o("maxAge","ttl"),$&&o("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 n=this.maxSize-this.sizes[e];for(;this.calculatedSize>n;)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:n=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){n=this.requireSize(e,t,n,o);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,n),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,n)),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 n=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(n))return n;const o=new i,s={signal:o.signal,options:r},a=Promise.resolve(this.fetchMethod(e,n,s)).then((t=>(o.signal.aborted||this.set(e,t,s.options),t)));return a.__abortController=o,a.__staleWhileFetching=n,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:n=this.noDisposeOnSet,size:o=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:n,size:o,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 n=this.backgroundFetch(e,c,l);return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const n=this.valList[i],o=this.isBackgroundFetch(n);if(this.isStale(i))return o?t?n.__staleWhileFetching:void 0:(this.delete(e),t?n:void 0);if(o)return;return this.moveToTail(i),r&&this.updateItemAge(i),n}}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})),lt.register("fThUd",((e,t)=>{var r=lt("kEeqW");e.exports=(e,t,i)=>{try{t=new r(t,i)}catch(e){return!1}return t.test(e)}})),lt.register("kBAIU",((e,t)=>{var r=lt("kEeqW");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),lt.register("9ybja",((e,t)=>{var r=lt("ewE0y"),i=lt("kEeqW");e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new r(o,n)))})),o}})),lt.register("lw7B8",((e,t)=>{var r=lt("ewE0y"),i=lt("kEeqW");e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new r(o,n)))})),o}})),lt.register("aGCCN",((e,t)=>{var r=lt("ewE0y"),i=lt("kEeqW"),n=lt("fMkbf");e.exports=(e,t)=>{e=new i(e,t);let o=new r("0.0.0");if(e.test(o))return o;if(o=new r("0.0.0-0"),e.test(o))return o;o=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&&!n(t,i)||(i=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!i||o&&!n(o,i)||(o=i)}return o&&e.test(o)?o:null}})),lt.register("asxHW",((e,t)=>{var r=lt("kEeqW");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),lt.register("5T7ZF",((e,t)=>{var r=lt("ewE0y"),i=lt("9Bceq");const{ANY:n}=i;var o=lt("kEeqW"),s=lt("fThUd"),a=lt("fMkbf"),l=lt("KbgdS"),c=lt("kNWZ7"),u=lt("kdktp");e.exports=(e,t,d,p)=>{let h,f,m,g,v;switch(e=new r(e,p),t=new o(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 o=null,s=null;if(t.set[r].forEach((e=>{e.semver===n&&(e=new i(">=0.0.0")),o=o||e,s=s||e,h(e.semver,o.semver,p)?o=e:m(e.semver,s.semver,p)&&(s=e)})),o.operator===g||o.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}})),lt.register("8pZ7x",((e,t)=>{var r=lt("5T7ZF");e.exports=(e,t,i)=>r(e,t,">",i)})),lt.register("jkRb0",((e,t)=>{var r=lt("5T7ZF");e.exports=(e,t,i)=>r(e,t,"<",i)})),lt.register("5obom",((e,t)=>{var r=lt("kEeqW");e.exports=(e,t,i)=>(e=new r(e,i),t=new r(t,i),e.intersects(t))})),lt.register("rDQLp",((e,t)=>{var r=lt("fThUd"),i=lt("odmNz");e.exports=(e,t,n)=>{const o=[];let s=null,a=null;const l=e.sort(((e,t)=>i(e,t,n)));for(const e of l)r(e,t,n)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const c=[];for(const[e,t]of o)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}})),lt.register("3vJJ8",((e,t)=>{var r=lt("kEeqW"),i=lt("9Bceq");const{ANY:n}=i;var o=lt("fThUd"),s=lt("odmNz");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===n){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&&!o(e,u+"",r))return null;if(d&&!o(e,d+"",r))return null;for(const i of t)if(!o(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&&!o(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&&!o(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 n=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,i);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}})),lt.register("8XxoC",((e,t)=>{var r=lt("7tyCH"),i=lt("cyw4a");e.exports=(e,t,n)=>{var o=t&&n||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[o+a]=s[a];return t||i(s)}})),lt.register("7tyCH",((e,t)=>{e.exports=()=>Ze(16)})),lt.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++]]}})),lt.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 n=i[0];return t=i.slice(1).concat(t||[]),new a.ToolRunner(n,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]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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=o(lt("fGrvc"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,i){var n,o;return s(this,void 0,void 0,(function*(){let s="",a="";const l=new Qe("utf8"),c=new Qe("utf8"),u=null===(n=null==i?void 0:i.listeners)||void 0===n?void 0:n.stdout,d=null===(o=null==i?void 0:i.listeners)||void 0===o?void 0:o.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}}))}})),lt.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}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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=n(Ge),a=n(Xe),l=n(Je),c=n(Be),u=n(lt("2fNe7")),d=n(lt("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 n=t?"":"[command]";if(p)if(this._isCmdFile()){n+=r;for(const e of i)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of i)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of i)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let i=t+""+e,n=i.indexOf(s.EOL);for(;n>-1;)r(i.substring(0,n)),i=i.substring(n+s.EOL.length),n=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='"',n=!0;for(let t=e.length;t>0;t--)i+=e[t-1],n&&"\\"===e[t-1]?i+="\\":'"'===e[t-1]?(n=!0,i+='"'):n=!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 o(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)=>o(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 n=this._getSpawnFileName(),o=l.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));let a="";o.stdout&&o.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let c="";if(o.stderr&&o.stderr.on("data",(e=>{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)}))})),o.on("error",(e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),o.on("exit",(e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()})),o.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),o.removeAllListeners(),r?t(r):e(i)})),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){n&&'"'!==e&&(o+="\\"),o+=e,n=!1}const r=[];let i=!1,n=!1,o="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&n?t(a):"\\"===a&&i?n=!0:" "!==a||i?t(a):o.length>0&&(r.push(o),o=""):n?t(a):i=!i}return o.length>0&&r.push(o.trim()),r};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=et(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())}}})),lt.register("ddrZ4",((e,t)=>{e.exports=import("./actions_python.dfab21e0.js").then((()=>lt("doiKQ")))})),lt.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 n.pluralize(r.locale,t,i[e]).replace("{0}",t)}var n=lt("xu1bL"),o=lt("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,n,a){return((e,t,n)=>{if(((e,t)=>{const{autoload:i}=t;if(!l[e]){if(!o||!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)}})(n.locale,{autoload:n.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],n=e[1],o=Math.floor(r/n);if(r-=o*n,i.push([t,o]),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,n)),c.length>=n.span)break}return c.join(n.delimiter)})(t,n,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),lt.register("xu1bL",((e,t)=>{e.exports=lt("lhBDm")})),lt.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 o=n[e](t);return void 0!==r[o]?r[o]:null}function i(e){(e=>void 0!==n[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var n={},o={create(e){return i(e),{pluralize(r,i){return t(e,r,i)}}},addLocale(e,t){n[e]=t},pluralize:t};void 0!==e.exports?e.exports=o:this.numerous=o}).call(e.exports)})),lt.register("7IZzv",((e,t)=>{e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)}));var ct=lt("gF2Jd"),ut={};const dt="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,pt=dt?";":":";var ht,ft={};ht="win32"===process.platform||ot.TESTING_WINDOWS?lt("jUvGx"):lt("lNi8N"),ft=r,r.sync=(e,t)=>{try{return ht.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const mt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),gt=(e,t)=>{const r=t.colon||pt,i=e.match(/\//)||dt&&e.match(/\\/)?[""]:[...dt?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=dt?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=dt?n.split(r):[""];return dt&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:n}},vt=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:i,pathExt:n,pathExtExe:o}=gt(e,t),s=[],a=r=>new Promise(((n,o)=>{if(r===i.length)return t.all&&s.length?n(s):o(mt(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;n(l(d,r,0))})),l=(e,r,i)=>new Promise(((c,u)=>{if(i===n.length)return c(a(r+1));const d=n[i];ft(e+d,{pathExt:o},((n,o)=>{if(!n&&o){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 yt;ut=vt,vt.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:i,pathExtExe:n}=gt(e,t),o=[];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(ft.sync(r,{pathExt:n})){if(!t.all)return r;o.push(r)}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw mt(e)};var wt,xt={},bt={},Et={},$t={};const Ct=(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 St,_t;($t=Ct).default=Ct,wt=e=>n(e)||n(e,!0);const Ot=/([()\][%!^"`<>&|;, *?])/g;St=e=>e.replace(Ot,"^$1"),_t=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(Ot,"^$1"),t&&(e=e.replace(Ot,"^$1")),e);var Tt,Rt,It;Rt=/^#!(.*)/,Tt=(e="")=>{const t=e.match(Rt);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return"env"===n?i:i?`${n} ${i}`:n},It=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 Tt(""+t)};const At="win32"===process.platform,Pt=/\.(?:com|exe)$/i,kt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Et=(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(!At)return e;const t=(e=>{e.file=wt(e);const t=e.file&&It(e.file);return t?(e.args.unshift(e.file),e.command=t,wt(e)):e.file})(e),r=!Pt.test(t);if(e.options.forceShell||r){const r=kt.test(t);e.command=$gCrli$normalize(e.command),e.command=St(e.command),e.args=e.args.map((e=>_t(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 Nt={};const Lt="win32"===process.platform;var Dt;Nt={hookChildProcess(e,t){if(!Lt)return;const r=e.emit;e.emit=function(i,n){if("exit"===i){const i=s(n,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}},verifyENOENT:s,verifyENOENTSync(e,t){return Lt&&1===e&&!t.file?o(t.original,"spawnSync"):null},notFoundError:o},(bt=a).spawn=a,bt.sync=(e,t,r)=>{const i=Et(e,t,r),n=$gCrli$spawnSync(i.command,i.args,i.options);return n.error=n.error||Nt.verifyENOENTSync(n.status,i),n},bt._parse=Et,bt._enoent=Nt,Dt=e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e};var jt={};const Mt=e=>{let t;e={cwd:process.cwd(),path:process.env[$t()],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 n=$gCrli$resolve(e.cwd,e.execPath,"..");return i.push(n),i.concat(e.path).join($gCrli$delimiter)};(jt=Mt).default=Mt,jt.env=e=>{const t={...(e={env:process.env,...e}).env},r=$t({env:t});return e.path=t[r],t[r]=jt(e),t};var Ut={},Ft={};const Gt=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(Ft=Gt).default=Gt;const zt=new WeakMap,Bt=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,i=0;const n=e.displayName||e.name||"",o=function(...s){if(zt.set(o,++i),1===i)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${n}\` can only be called once`);return r};return Ft(o,e),zt.set(o,i),o};(Ut=Bt).default=Bt,Ut.callCount=e=>{if(!zt.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return zt.get(e)};var Ht,qt={};Object.defineProperty(qt,"__esModule",{value:!0}),qt.signalsByNumber=qt.signalsByName=void 0;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getSignals=void 0;var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.SIGNALS=void 0,Wt.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 Xt={};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.SIGRTMAX=Xt.getRealtimeSignals=void 0,Xt.getRealtimeSignals=()=>Array.from({length:Jt-Kt+1},Yt);const Yt=(e,t)=>({name:"SIGRT"+(t+1),number:Kt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Kt=34,Jt=64;Xt.SIGRTMAX=Jt,Vt.getSignals=()=>{const e=(0,Xt.getRealtimeSignals)();return[...Wt.SIGNALS,...e].map(Zt)};const Zt=({name:e,number:t,description:r,action:i,forced:n=!1,standard:o})=>{const{signals:{[e]:s}}=$gCrli$constants1,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:i,forced:n,standard:o}},Qt=(0,Vt.getSignals)().reduce(((e,{name:t,number:r,description:i,supported:n,action:o,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:i,supported:n,action:o,forced:s,standard:a}})),{});qt.signalsByName=Qt;const er=(()=>{const e=(0,Vt.getSignals)(),t=Array.from({length:Xt.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:n,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:i,number:e,description:n,supported:o,action:s,forced:a,standard:l}}})(r,e)));return Object.assign({},...t)})();qt.signalsByNumber=er;var tr=qt.signalsByName;Ht=({stdout:e,stderr:t,all:r,error:i,signal:n,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(n=null===n?void 0:n)?void 0:tr[n].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:i,signalDescription:n,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==i?`was killed with ${i} (${n})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:l,timeout:d,errorCode:i&&i.code,signal:n,signalDescription:p,exitCode:o=null===o?void 0:o,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=o,i.signal=n,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 rr={};const ir=["stdin","stdout","stderr"],nr=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return ir.map((t=>e[t]));if((e=>ir.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+ir.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,ir.length)},((e,r)=>t[r]))};(rr=nr).node=e=>{const t=nr(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var or,sr={},ar=ot.process;const lr=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(lr(ar)){var cr,ur=Ye,dr=lt("3FPvT"),pr=/^win/i.test(ar.platform),hr=Xe;"function"!=typeof hr&&(hr=hr.EventEmitter),ar.__signal_exit_emitter__?cr=ar.__signal_exit_emitter__:((cr=ar.__signal_exit_emitter__=new hr).count=0,cr.emitted={}),cr.infinite||(cr.setMaxListeners(1/0),cr.infinite=!0),sr=(e,t)=>{if(!lr(ot.process))return()=>{};ur.equal(typeof e,"function","a callback must be provided for exit handler"),!1===vr&&yr();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),cr.on(r,e),()=>{cr.removeListener(r,e),0===cr.listeners("exit").length&&0===cr.listeners("afterexit").length&&fr()}};var fr=()=>{vr&&lr(ot.process)&&(vr=!1,dr.forEach((e=>{try{ar.removeListener(e,gr[e])}catch(e){}})),ar.emit=br,ar.reallyExit=wr,cr.count-=1)};sr.unload=fr;var mr=(e,t,r)=>{cr.emitted[e]||(cr.emitted[e]=!0,cr.emit(e,t,r))},gr={};dr.forEach((e=>{gr[e]=()=>{lr(ot.process)&&ar.listeners(e).length===cr.count&&(fr(),mr("exit",null,e),mr("afterexit",null,e),pr&&"SIGHUP"===e&&(e="SIGINT"),ar.kill(ar.pid,e))}})),sr.signals=()=>dr;var vr=!1,yr=()=>{!vr&&lr(ot.process)&&(vr=!0,cr.count+=1,dr=dr.filter((e=>{try{return ar.on(e,gr[e]),!0}catch(e){return!1}})),ar.emit=Er,ar.reallyExit=xr)};sr.load=yr;var wr=ar.reallyExit,xr=e=>{lr(ot.process)&&(ar.exitCode=e||0,mr("exit",ar.exitCode,null),mr("afterexit",ar.exitCode,null),wr.call(ar,ar.exitCode))},br=ar.emit,Er=function(e,t){if("exit"===e&&lr(ot.process)){void 0!==t&&(ar.exitCode=t);var r=br.apply(this,arguments);return mr("exit",ar.exitCode,null),mr("afterexit",ar.exitCode,null),r}return br.apply(this,arguments)}}else sr=()=>()=>{};const $r=e=>e===$gCrli$constants1.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var Cr,Sr=(or={spawnedKill(e,t="SIGTERM",r={}){const i=e(t);return((e,t,r,i)=>{if(!((e,{forceKillAfterTimeout:t},r)=>$r(e)&&!1!==t&&r)(t,r,i))return;const n=(({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),o=setTimeout((()=>{e("SIGKILL")}),n);o.unref&&o.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 n;const o=new Promise(((i,o)=>{n=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,o)}),t)})),s=i.finally((()=>{clearTimeout(n)}));return Promise.race([o,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 n=sr((()=>{e.kill()}));return i.finally((()=>{n()}))}}).spawnedKill,_r=or.spawnedCancel,Or=or.setupTimeout,Tr=or.validateTimeout,Rr=or.setExitHandler,Ir={};const Ar=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Ar.writable=e=>Ar(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Ar.readable=e=>Ar(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Ar.duplex=e=>Ar.writable(e)&&Ar.readable(e),Ar.transform=e=>Ar.duplex(e)&&"function"==typeof e._transform,Ir=Ar;var Pr,kr={},Nr=tt,Lr=$gCrli$promisify,Dr=$gCrli$PassThrough;Pr=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i="buffer"===r;let n=!1;t?n=!(r||i):r=r||"utf8",i&&(r=null);const o=new Dr({objectMode:n});r&&o.setEncoding(r);let s=0;const a=[];return o.on("data",(e=>{a.push(e),n?s=a.length:s+=e.length})),o.getBufferedValue=()=>t?a:i?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o};const jr=Lr($gCrli$pipeline);class Mr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(kr=l).buffer=(e,t)=>l(e,{...t,encoding:"buffer"}),kr.array=(e,t)=>l(e,{...t,array:!0}),kr.MaxBufferError=Mr;var Ur,Fr=$gCrli$PassThrough;Ur=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",n.emit.bind(n,"error")),t.pipe(n,{end:!1}),this)}function t(){return 0==i.length}function r(e){!(i=i.filter((t=>t!==e))).length&&n.readable&&n.end()}var i=[],n=new Fr({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=t,n.on("unpipe",r),[].slice.call(arguments).forEach(e),n};const Gr=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},zr=(e,{encoding:t,buffer:r,maxBuffer:i})=>{if(e&&r)return t?kr(e,{encoding:t,maxBuffer:i}):kr.buffer(e,{maxBuffer:i})};var Br,Hr=(Cr={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(Ir(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Ur();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:n,maxBuffer:o},s){const a=zr(e,{encoding:i,buffer:n,maxBuffer:o}),l=zr(t,{encoding:i,buffer:n,maxBuffer:o}),c=zr(r,{encoding:i,buffer:n,maxBuffer:2*o});try{return await Promise.all([s,a,l,c])}catch(i){return Promise.all([{error:i,signal:i.signal,timedOut:i.timedOut},Gr(e,a),Gr(t,l),Gr(r,c)])}},validateInputSync({input:e}){if(Ir(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,qr=Cr.getSpawnedResult,Vr=Cr.makeAllStream,Wr=Cr.validateInputSync;const Xr=(async()=>{})().constructor.prototype,Yr=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Xr,e)]));var Kr,Jr=(Br={mergePromise(e,t){for(const[r,i]of Yr){const n="function"==typeof t?(...e)=>Reflect.apply(i.value,t(),e):i.value.bind(t);Reflect.defineProperty(e,r,{...i,value:n})}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=Br.getSpawnedPromise;const Qr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ei=/^[\w.-]+$/,ti=/"/g,ri=/ +/g;var ii=(Kr={joinCommand(e,t){return Qr(e,t).join(" ")},getEscapedCommand(e,t){return Qr(e,t).map((e=>(e=>"string"!=typeof e||ei.test(e)?e:`"${e.replace(ti,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(ri)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,ni=Kr.parseCommand,oi=Kr.getEscapedCommand;const si=(e,t,r={})=>{const i=bt._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:n})=>{const o=t?{...process.env,...e}:e;return r?jt.env({env:o,cwd:i,execPath:n}):o})(r),r.stdio=rr(r),"win32"===process.platform&&"cmd"===$gCrli$basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:i}},ai=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Dt(t):t:void 0===r?void 0:"",li=(e,t,r)=>{const i=si(e,t,r),n=ii(e,t),o=oi(e,t);let s;Tr(i.options);try{s=$gCrli$spawn(i.file,i.args,i.options)}catch(e){const t=new $gCrli$ChildProcess,r=Promise.reject(Ht({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:o,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Jr(t,r)}const a=Zr(s),l=Or(s,i.options,a),c=Rr(s,i.options,l),u={isCanceled:!1};s.kill=Sr.bind(null,s.kill.bind(s)),s.cancel=_r.bind(null,s,u);const d=Ut((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},l,d,p]=await qr(s,i.options,c),h=ai(i.options,l),f=ai(i.options,d),m=ai(i.options,p);if(e||0!==t||null!==r){const l=Ht({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:n,escapedCommand:o,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:s.killed});if(!i.options.reject)return l;throw l}return{command:n,escapedCommand:o,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Hr(s,i.options.input),s.all=Vr(s,i.options),Jr(s,d)};(xt=li).sync=(e,t,r)=>{const i=si(e,t,r),n=ii(e,t),o=oi(e,t);let s;Wr(i.options);try{s=$gCrli$spawnSync(i.file,i.args,i.options)}catch(e){throw Ht({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:o,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}const a=ai(i.options,s.stdout,s.error),l=ai(i.options,s.stderr,s.error);if(s.error||0!==s.status||null!==s.signal){const e=Ht({stdout:a,stderr:l,error:s.error,signal:s.signal,exitCode:s.status,command:n,escapedCommand:o,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:n,escapedCommand:o,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},xt.command=(e,t)=>{const[r,...i]=ni(e);return li(r,i,t)},xt.commandSync=(e,t)=>{const[r,...i]=ni(e);return li.sync(r,i,t)},xt.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const i=rr.node(r),n=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:o=process.execPath,nodeOptions:s=n}=r;return li(o,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})},ct=lt("gF2Jd");var ci,ui=lt("ywN2f");ct=lt("gF2Jd"),ui=lt("ywN2f");const di=$gCrli$homedir();ci=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return di?e.replace(/^~(?=$|\/|\\)/,di):e};var pi=lt("81ovw");let hi;var fi;const mi="win32"!==$gCrli$platform(),gi=$gCrli$release(),vi=/(\d+\.\d+)\.(\d+)/;fi=e=>mi?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...vi.exec(gi).splice(1))?e:e.replace(/(\s+)/g,"%20");const yi=d(".cpprc");let wi=!1,xi=!1,bi=!1;pi=lt("81ovw");let Ei=!1,$i=!1;ct=lt("gF2Jd");let Ci,Si=!1;ct=lt("gF2Jd"),pi=lt("81ovw");let _i,Oi,Ti,Ri=!1;pi=lt("81ovw");var Ii=lt("2fNe7"),Ai=(pi=lt("81ovw"),{}),Pi=$gCrli$resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),ki=Ai&&Ai.__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]}),Ni=Ai&&Ai.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Li=Ai&&Ai.__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)&&ki(t,e,r);return Ni(t,e),t}),Di=Ai&&Ai.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))),ji=Ai&&Ai.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.evaluateVersions=Ai.isExplicitVersion=Ai.findFromManifest=Ai.getManifestFromRepo=Ai.findAllVersions=Ai.find=Ai.cacheFile=Ai.cacheDir=Ai.extractZip=Ai.extractXar=Ai.extractTar=Ai.extract7z=Ai.downloadTool=Ai.HTTPError=void 0;const Mi=Li(lt("gF2Jd")),Ui=Li(lt("2fNe7")),Fi=Li(He),Gi=Li(lt("biqIc")),zi=Li(Ge),Bi=Li(Be),Hi=Li(lt("9kh6d")),qi=Li(lt("dsEdn")),Vi=Li(rt),Wi=Li(Ke),Xi=ji(lt("8XxoC"));var Yi=lt("eGKv1"),Ki={},Ji=Ki&&Ki.__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]}),Zi=Ki&&Ki.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Qi=Ki&&Ki.__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)&&Ji(t,e,r);return Zi(t,e),t}),en=Ki&&Ki.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(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(Ki,"__esModule",{value:!0}),Ki.RetryHelper=void 0;const tn=Qi(lt("gF2Jd"));Ki.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 en(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;tn.info(e.message)}const i=this.getSleepAmount();tn.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 en(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class rn extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}Ai.HTTPError=rn;const nn="win32"===process.platform,on="darwin"===process.platform;let sn;Ai.downloadTool=function(e,t,r,i){return Di(this,void 0,void 0,(function*(){t=t||Bi.join(B(),Xi.default()),yield Ui.mkdirP(Bi.dirname(t)),Mi.debug("Downloading "+e),Mi.debug("Destination "+t);const n=H("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=H("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new Ki.RetryHelper(3,n,o);return yield s.execute((()=>Di(this,void 0,void 0,(function*(){return yield function(e,t,r,i){return Di(this,void 0,void 0,(function*(){if(Fi.existsSync(t))throw Error(`Destination file path ${t} already exists`);const n=new Hi.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Mi.debug("set auth"),void 0===i&&(i={}),i.authorization=r);const o=yield n.get(e,i);if(200!==o.message.statusCode){const t=new rn(o.message.statusCode);throw Mi.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}const s=Wi.promisify(Vi.pipeline),a=H("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message))();let l=!1;try{return yield s(a,Fi.createWriteStream(t)),Mi.debug("download complete"),l=!0,t}finally{if(!l){Mi.debug("download failed");try{yield Ui.rmRF(t)}catch(e){Mi.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,i)}))),(e=>!(e instanceof rn&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},Ai.extract7z=function(e,t,r){return Di(this,void 0,void 0,(function*(){$gCrli$ok(nn,"extract7z() not supported on current OS"),$gCrli$ok(e,'parameter "file" is required'),t=yield j(t);const i=process.cwd();if(process.chdir(t),r)try{const t=["x",Mi.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield Yi.exec(`"${r}"`,t,n)}finally{process.chdir(i)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Bi.join(Pi,"..","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,"")}'`],n={silent:!0};try{const e=yield Ui.which("powershell",!0);yield Yi.exec(`"${e}"`,r,n)}finally{process.chdir(i)}}return t}))},Ai.extractTar=function(e,t,r="xz"){return Di(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield j(t),Mi.debug("Checking tar --version");let i="";yield Yi.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return i+=""+e},stderr(e){return i+=""+e}}}),Mi.debug(i.trim());const n=i.toUpperCase().includes("GNU TAR");let o;o=r instanceof Array?r:[r],Mi.isDebug()&&!r.includes("v")&&o.push("-v");let s=t,a=e;return nn&&n&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),n&&(o.push("--warning=no-unknown-keyword"),o.push("--overwrite")),o.push("-C",s,"-f",a),yield Yi.exec("tar",o),t}))},Ai.extractXar=function(e,t,r=[]){return Di(this,void 0,void 0,(function*(){let i;$gCrli$ok(on,"extractXar() not supported on current OS"),$gCrli$ok(e,'parameter "file" is required'),t=yield j(t),i=r instanceof Array?r:[r],i.push("-x","-C",t,"-f",e),Mi.isDebug()&&i.push("-v");const n=yield Ui.which("xar",!0);var o;return yield Yi.exec(`"${n}"`,(o=i,Array.from(new Set(o)))),t}))},Ai.extractZip=function(e,t){return Di(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield j(t),nn?yield function(e,t){return Di(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield Ui.which("pwsh",!1);if(n){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(" ")];Mi.debug("Using pwsh at path: "+n),yield Yi.exec(`"${n}"`,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 Ui.which("powershell",!0);Mi.debug("Using powershell at path: "+t),yield Yi.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return Di(this,void 0,void 0,(function*(){const r=yield Ui.which("unzip",!0),i=[e];Mi.isDebug()||i.unshift("-q"),i.unshift("-o"),yield Yi.exec(`"${r}"`,i,{cwd:t})}))}(e,t),t}))},Ai.cacheDir=function(e,t,r,i){return Di(this,void 0,void 0,(function*(){if(r=qi.clean(r)||r,i=i||zi.arch(),Mi.debug(`Caching tool ${t} ${r} ${i}`),Mi.debug("source dir: "+e),!Fi.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const n=yield M(t,r,i);for(const t of Fi.readdirSync(e)){const r=Bi.join(e,t);yield Ui.cp(r,n,{recursive:!0})}return U(t,r,i),n}))},Ai.cacheFile=function(e,t,r,i,n){return Di(this,void 0,void 0,(function*(){if(i=qi.clean(i)||i,n=n||zi.arch(),Mi.debug(`Caching tool ${r} ${i} ${n}`),Mi.debug("source file: "+e),!Fi.statSync(e).isFile())throw Error("sourceFile is not a file");const o=yield M(r,i,n),s=Bi.join(o,t);return Mi.debug("destination file "+s),yield Ui.cp(e,s),U(r,i,n),o}))},Ai.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||zi.arch(),F(t)||(t=G(D(e,r),t));let i="";if(t){t=qi.clean(t)||"";const n=Bi.join(z(),e,t,r);Mi.debug("checking cache: "+n),Fi.existsSync(n)&&Fi.existsSync(n+".complete")?(Mi.debug(`Found tool in cache ${e} ${t} ${r}`),i=n):Mi.debug("not found")}return i},Ai.findAllVersions=D,Ai.getManifestFromRepo=function(e,t,r,i="master"){return Di(this,void 0,void 0,(function*(){let n=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`,s=new Hi.HttpClient("tool-cache"),a={};r&&(Mi.debug("set auth"),a.authorization=r);const l=yield s.getJson(o,a);if(!l.result)return n;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{n=JSON.parse(u)}catch(e){Mi.debug("Invalid json")}}return n}))},Ai.findFromManifest=function(e,t,r,i=zi.arch()){return Di(this,void 0,void 0,(function*(){return yield Gi._findMatch(e,t,r,i)}))},Ai.isExplicitVersion=F,Ai.evaluateVersions=G,ct=lt("gF2Jd"),ui=lt("ywN2f");let an=!1;var ln=lt("kNWZ7"),cn=lt("3wKw1"),un=(Yi=lt("eGKv1"),ct=lt("gF2Jd"),ui=lt("ywN2f"),pi=lt("81ovw"),lt("odmNz")),dn=(cn=lt("3wKw1"),lt("kULaE"));Yi=lt("eGKv1"),pi=lt("81ovw");const pn=/v?(\d\S*)/,hn={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.50.0",meson:"0.63.0",kcov:"40",task:"3.14.0",doxygen:T()?"1.9.3-1":"1.9.4",gcc:"11"},fn={llvm:{22:"13.0.0-ubuntu-20.04",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:{22:"13.0.0-ubuntu-20.04",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:{22:"13.0.0-ubuntu-20.04",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.63.0",18:"0.61.4"},doxygen:{20:"1.9.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};let mn,gn,vn=!1;pi=lt("81ovw"),ln=lt("kNWZ7");var yn=lt("ehbTi"),wn=(Yi=lt("eGKv1"),pi=lt("81ovw"),ct=lt("gF2Jd"),pi=lt("81ovw"),ui=lt("ywN2f"),yn=lt("ehbTi"),cn=lt("3wKw1"),pi=lt("81ovw"),ui=lt("ywN2f"),$gCrli$resolve(__dirname,"../src/gcc"));const xn={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 bn=$gCrli$resolve(__dirname,"../src/llvm");const En=(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","14.0.4","14.0.5","14.0.6"]),$n=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"]),Cn=new Map,Sn={"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"},_n=new Set(["10.0.1"]);let On=!1;var Tn,Rn,In,An={},Pn=An&&An.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,o)=>{function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))),kn=An&&An.__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(An,"__esModule",{value:!0});var Nn={},Ln=Nn&&Nn.__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(Nn,"__esModule",{value:!0});const Dn=Ln(Ge);var jn={};Object.defineProperty(jn,"__esModule",{value:!0}),jn.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Nn.issueCommand=we,Nn.issue=(e,t="")=>{we(e,{},t)};class Mn{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 n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${t=n,jn.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>jn.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Un={},Fn=Un&&Un.__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(Un,"__esModule",{value:!0});const Gn=Fn(He),zn=Fn(Ge);Un.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Gn.existsSync(r))throw Error("Missing file at path: "+r);Gn.appendFileSync(r,`${jn.toCommandValue(t)}${zn.EOL}`,{encoding:"utf8"})};const Bn=kn(Ge),Hn=kn(Be);var qn,Vn;(Vn=qn=An.ExitCode||(An.ExitCode={}))[Vn.Success=0]="Success",Vn[Vn.Failure=1]="Failure",An.exportVariable=(e,t)=>{const r=jn.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Un.issueCommand("ENV",`${e}<<${t}${Bn.EOL}${r}${Bn.EOL}${t}`)}else Nn.issueCommand("set-env",{name:e},r)},An.setSecret=e=>{Nn.issueCommand("add-mask",{},e)},An.addPath=e=>{process.env.GITHUB_PATH?Un.issueCommand("PATH",e):Nn.issueCommand("add-path",{},e),process.env.PATH=`${e}${Hn.delimiter}${process.env.PATH}`},An.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()},An.setOutput=(e,t)=>{Nn.issueCommand("set-output",{name:e},t)},An.setCommandEcho=e=>{Nn.issue("echo",e?"on":"off")},An.setFailed=e=>{process.exitCode=qn.Failure,xe(e)},An.isDebug=()=>"1"===process.env.RUNNER_DEBUG,An.debug=e=>{Nn.issueCommand("debug",{},e)},An.error=xe,An.warning=e=>{Nn.issue("warning",e instanceof Error?""+e:e)},An.info=e=>{process.stdout.write(e+Bn.EOL)},An.startGroup=be,An.endGroup=Ee,An.group=function(e,t){return Pn(this,void 0,void 0,(function*(){let r;be(e);try{r=yield t()}finally{Ee()}return r}))},An.saveState=(e,t)=>{Nn.issueCommand("save-state",{name:e},t)},An.getState=e=>process.env["STATE_"+e]||"";const Wn=it["ProgramFiles(x86)"],Xn=[it["ProgramFiles(x86)"],it.ProgramFiles],Yn=["Enterprise","Professional","Community"],Kn=["2022","2019","2017"],Jn={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};Tn=$e;const Zn=Wn+"\\Microsoft Visual Studio\\Installer";Rn=Se,In=(e,t,r,i,n,o)=>{if("win32"!=nt)return void An.info("This is not a Windows virtual environment, bye!");it.PATH+=$gCrli$delimiter+Zn;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"==n&&a.push("-vcvars_spectre_libs=spectre");const l=`"${Se(o)}" ${a.join(" ")}`;An.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}An.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(An.info("Setting "+t),_e(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),An.exportVariable(t,r))}An.endGroup(),An.info("Configured Developer Command Prompt")},pi=lt("81ovw"),ui=lt("ywN2f"),pi=lt("81ovw");var Qn,eo=$gCrli$resolve(__dirname,"../src/msvc"),to=(ui=lt("ywN2f"),{});to=lt("gGvz1"),Qn={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 ro=lt("xu1bL"),io={};lt("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 no={};Object.defineProperty(no,"__esModule",{value:!0}),no.getUbuntuVersion=void 0,no.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},((n,o,s)=>{if(n)return"errno"in n&&"ENOENT"===n.code?void e(null):void i(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${n} (stderr=${s})`));e(o)}))})));var t,r;if(null===e)return[];const i=/^Distributor ID:\s*(.+)$/,n=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,o=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let s=null,a=null,l=!1;for(const t of e.split("\n")){const e=t.match(i);if(null!==e){if("Ubuntu"!==e[1])return[];l=!0}const r=t.match(n);r&&(s=r);const c=t.match(o);if(c&&(a=c),l&&s&&a)break}if(!l)return[];for(const e of[s,a])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},dn=lt("kULaE"),pi=lt("81ovw"),pi=lt("81ovw");let oo,so=!1;pi=lt("81ovw");const ao={async nala(e,r,i){if(!A())return;if("string"==typeof oo)return{binDir:oo};const n=t(ut).sync("nala",{nothrow:!0});if(null!==n)return oo=$gCrli$dirname(n),{binDir:oo};u("/bin/bash",["-c",`echo "deb [signed-by=${await E("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key")}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await y("nala",void 0,[],!0):await y("nala-legacy",void 0,[],!0)}catch(e){await y("nala-legacy",void 0,[],!0)}return oo="/usr/bin",{binDir:oo}},cmake:Z,ninja:Ie,python:Q,async vcpkg(e,r,i){return so&&null!==t(ut).sync("vcpkg",{nothrow:!0})?{binDir:$gCrli$dirname(t(ut).sync("vcpkg"))}:("linux"===process.platform&&(T()?(C("curl"),C("zip"),C("unzip"),C("tar"),C("git"),C("pkg-config")):R()?(I("curl"),I("zip"),I("unzip"),I("tar"),I("git"),I("pkg-config")):A()&&(await y("curl"),await y("zip"),await y("unzip"),await y("tar"),await y("git"),await y("pkg-config"))),$gCrli$existsSync($gCrli$join(r,k("bootstrap-vcpkg")))?(0,pi.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(xt).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:$gCrli$dirname(r),stdio:"inherit"}),t(xt).sync(k((n="bootstrap-vcpkg","win32"===process.platform?n:"./"+n)),{cwd:r,shell:!0,stdio:"inherit"}),L(r),await f(r),so=!0,{binDir:r});var n},async bazel(e,t,r){switch(process.platform){case"win32":return O("bazelisk",e);case"darwin":return S("bazelisk",e);case"linux":if(T())throw Error("installing bazel on Arch linux is not supported yet");if(R())return I("dnf-plugins-core",void 0),u("dnf",["copr","enable","vbatts/bazel"]),I("bazel4",void 0);if(A())return u("bash",["-c",`echo "deb [arch=amd64 signed-by=${await E("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg")}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),y("bazel",e,[],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async conan(e,t,r){return await oe("setuptools",""),oe("conan",e)},meson(e,t,r){return oe("meson",e)},gcovr(e,t,r){return oe("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await O("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:me,gcc:ue,choco:_,brew:i,ccache(e,t,r){switch(process.platform){case"win32":return O("ccache",e);case"darwin":return S("ccache",e);case"linux":if(T())return C("ccache",e);if(R())return I("ccache",e);if(A())return y("ccache",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await O("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 se(ie("graphviz",void 0)),t}case"darwin":{const e=S("doxygen",void 0);return await se(ie("graphviz",void 0)),e}case"linux":{let i;if(""===e||T()||R())if(T())i=C("doxygen",e);else{if(R())return I("doxygen",e);if(!A())throw Error("Unsupported linux distributions");i=await y("doxygen",e)}else{if(!A())throw Error("Unsupported linux distributions");try{i=await Y("doxygen",e,ae,t,r),await y("libclang-cpp9")}catch(e){(0,pi.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),i=await y("doxygen",void 0)}}return await se(ie("graphviz",void 0)),i}default:throw Error("Unsupported platform")}},graphviz:se,async cppcheck(e,t,r){switch(process.platform){case"win32":return await O("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return S("cppcheck",e);case"linux":if(T())return C("cppcheck",e);if(R())return I("ccache",e);if(A())return y("cppcheck",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},clangtidy:ve,clangformat:ve,msvc:Te,vcvarsall:Oe,async kcov(e,t,r){if("linux"!==process.platform)return void(0,pi.info)("Kcov is not supported on non-linux");const i=e.split("-");let n=(e=>e.match(/^v/)?e:"v"+e)(i[0]);const o=i[1],s=(e=>parseInt(e.replace(/^v/,""),10))(n);let a;return 38===s&&(n="v38"),"binary"!==o||39>s?(a=await Y("kcov",n,Ne,t,r),a):(a=await Y("kcov",n,ke,t,r),T()?C("binutils"):R()?I("binutils"):A()&&await y("libbinutils"),a)},async make(e,t,r){switch(process.platform){case"win32":return O("make",e);case"darwin":return S("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(T())return C("make",e);if(R())return I("make",e);if(A())return y("make",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task(e,t,r){return Y("task",e,K,t,r)},sevenzip:N},lo=["nala","choco","brew","python","vcpkg","bazel","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],co=["compiler","architecture",...lo];De(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,pi.error)("main() panicked!"),(0,pi.error)(e),process.exitCode=1}));export{De as main,je as parseArgs,Me as getCompilerInfo}; +function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((n,i)=>{r(e,t||{},((e,t)=>{e?i(e):n(t)}))}))}Zt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}function n(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof ir)return{binDir:ir};const i=t(Kt).sync("brew",{nothrow:!0});return null!==i?(ir=$gCrli$dirname(i),{binDir:ir}):($gCrli$execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),ir="/usr/local/bin/",{binDir:ir})}function i(e,t){const r=e.options.env||process.env,n=process.cwd(),i=null!=e.options.cwd,o=i&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=Kt.sync(e.command,{path:r[lr({env:r})],pathExt:t?$gCrli$delimiter:void 0})}catch(e){}finally{o&&process.chdir(n)}return s&&(s=$gCrli$resolve(i?e.options.cwd:"",s)),s}function o(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 Er&&1===e&&!t.file?o(t.original,"spawn"):null}function a(e,t,r){const n=cr(e,t,r),i=$gCrli$spawn(n.command,n.args,n.options);return wr.hookChildProcess(i,n),i}async function c(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=bn(t);return await new Promise(((t,i)=>{const o=e=>{e&&n.getBufferedLength()<=En.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e)};(async()=>{try{await Sn(e,n),t()}catch(e){o(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&o(new $n)}))})),n.getBufferedValue()}function l(){return(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(Kt).sync("sudo",{nothrow:!0});var e}function u(e,r=[],n={stdio:"inherit",shell:!0}){return l()?t(sr).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(sr).sync(e,r,n)}function d(e){return l()&&"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(Kn)("~/"+e)}function p(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return t(sr)((()=>{if(void 0===ei){const e=t(Kt).sync("pwsh",{nothrow:!0});null!==e&&(ei=e);const r=t(Kt).sync("powershell",{nothrow:!0});null!==r&&(ei=r)}if(void 0===ei)throw Error("Could not find powershell");return ei})(),[...r,"-c",e],n)}async function h(e,r,n=!1){const i=n?t(ti)(null!=r?r:""):r;try{if("github-actions"===t(Jn)())try{(0,Yt.exportVariable)(e,i)}catch(t){(0,Zn.error)(t),await m(e,i)}else await m(e,i)}catch(t){(0,Zn.error)(t),(0,Yt.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${$gCrli$delimiter}${process.env.PATH}`;try{if("github-actions"===t(Jn)())try{(0,Yt.addPath)(e)}catch(t){(0,Zn.error)(t),await g(e)}else await g(e)}catch(t){(0,Zn.error)(t),(0,Yt.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,Yt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return y(),$gCrli$appendFileSync(oi,`\nexport ${e}="${r}"\n`),void(0,Yt.info)(`${e}="${r}" was added to "${oi}`)}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,Yt.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return y(),$gCrli$appendFileSync(oi,`\nexport PATH="${e}:$PATH"\n`),void(0,Yt.info)(`"${e}" was added to "${oi}"`);default:return}}function y(){if(si)return;const e="export SOURCE_CPPRC=0";if($gCrli$existsSync(oi)&&$gCrli$readFileSync(oi,"utf8").includes(e))return;$gCrli$appendFileSync(oi,`\n${e}\n`),(0,Yt.info)(`Added ${e} to ${oi}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${oi}" ]]; then source "${oi}"; fi\n`;try{const e=d(".profile");$gCrli$appendFileSync(e,t),(0,Yt.info)(`${t} was added to ${e}`);const r=d(".bashrc");$gCrli$appendFileSync(r,t),(0,Yt.info)(`${t} was added to ${r}`)}catch(e){(0,Zn.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}si=!0}async function v(e,r,n=[],i=!1){const o=(()=>{let e;return e=null!==t(Kt).sync("nala",{nothrow:!0})?"nala":"apt-get",e})();if((0,Yt.info)(`Installing ${e} ${null!=r?r:""} via ${o}`),process.env.DEBIAN_FRONTEND="noninteractive",ai&&!i||(b(o),ai=!0),ci||(await(async e=>{u(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]),E(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),E(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg"),"nala"===e&&(await h("LANG","C.UTF-8"),await h("LC_ALL","C.UTF-8"))})(o),ci=!0),Array.isArray(n)&&0!==n.length){for(const e of n)u("add-apt-repository",["--update","-y",e]);b(o)}if(void 0!==r&&""!==r)try{u(o,["install","--fix-broken","-y",`${e}=${r}`])}catch{u(o,["install","--fix-broken","-y",`${e}-${r}`])}else u(o,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function b(e){u(e,"nala"!==e?["update","-y"]:["update"])}function w(){u("gpg",["-k"])}function E(e,t,r="keyserver.ubuntu.com"){const n="/etc/apt/trusted.gpg.d/"+t;if(!$gCrli$existsSync(n)){w();for(const t of e)u("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",t]),u("chmod",["644",n])}return n}async function x(e,t){const r="/etc/apt/trusted.gpg.d/"+e;return $gCrli$existsSync(r)||(w(),await v("curl",void 0),u("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),u("chmod",["644",r])),r}function _(e,r){return"github-actions"===t(Jn)()?u("update-alternatives",["--install","/usr/bin/"+e,e,r,"40"]):(y(),$gCrli$appendFileSync(oi,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${r} 40; fi\n`))}function S(e,t,r){(0,Zn.info)(`Installing ${e} ${null!=t?t:""} via pacman`);const n="pacman";if(li||(u(n,["-Syuu","--noconfirm"]),li=!0),ui||(u(n,["-Sy","--noconfirm","base-devel"]),ui=!0),void 0!==t&&""!==t)try{u(null!=r?r:n,["-S","--noconfirm",`${e}=${t}`])}catch{u(null!=r?r:n,["-S","--noconfirm",`${e}${t}`])}else u(null!=r?r:n,["-S","--noconfirm",e]);return{binDir:"/usr/bin/"}}function $(e,r){return(0,Yt.info)(`Installing ${e} ${null!=r?r:""} via brew`),pi&&null!==t(Kt).sync("brew",{nothrow:!0})||(n(0,0,process),pi=!0),t(sr).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function C(e,r,n){if("win32"!==process.platform)return;if("string"==typeof di)return{binDir:di};const i=t(Kt).sync("choco",{nothrow:!0});if(null!==i)return di=$gCrli$dirname(i),{binDir:di};let o="powershell.exe";const s=t(Kt).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(o=s),t(sr).sync(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await f(a);const c=t(Kt).sync("choco",{nothrow:!0});var l;return di=null!==c?$gCrli$dirname(c):(null!==(l=process.env.ChocolateyInstall)&&void 0!==l?l:"C:/ProgramData/chocolatey")+"/bin",$gCrli$existsSync(di)?{binDir:di}:void 0}async function T(e,r,n=[]){(0,Yt.info)(`Installing ${e} ${null!=r?r:""} via chocolatey`),gi&&null!==t(Kt).sync("choco",{nothrow:!0})||(await C(0,0,process),gi=!0);const i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==r&&""!==r)t(sr).sync("choco",["install","-y",e,"--version="+r,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{t(sr).sync("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,Zn.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 O(){return"linux"===process.platform&&(void 0===hi&&(hi=null!==t(Kt).sync("pacman",{nothrow:!0})),hi)}function R(){return"linux"===process.platform&&(void 0===fi&&(fi=null!==t(Kt).sync("dnf",{nothrow:!0})),fi)}function A(e,t){(0,Zn.info)(`Installing ${e} ${null!=t?t:""} via dnf`);const r="dnf";if(void 0!==t&&""!==t)try{u(r,["-y","install",`${e}-${t}`])}catch(t){(0,Zn.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 I(){if("linux"!==process.platform)return!1;if(void 0===mi){const e="apt-get";mi=null!==t(Kt).sync(e,{nothrow:!0})}return mi}function P(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function k(e,t=".bat",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function N(e,t,r){switch(process.platform){case"win32":return T("7zip",e);case"darwin":return $("p7zip",e);case"linux":if(O())return S("p7zip",e);if(R())return A("p7zip",e),A("p7zip-plugins",e);if(I())return v("p7zip-full",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function L(e){"linux"!==process.platform&&"darwin"!==process.platform||!l()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0})}function j(e,t){const r=[];t=t||Ri.arch();const n=Ai.join(H(),e);if(Ti.existsSync(n)){const e=Ti.readdirSync(n);for(const i of e)if(F(i)){const e=Ai.join(n,i,t||"");Ti.existsSync(e)&&Ti.existsSync(e+".complete")&&r.push(i)}}return r}function D(e){return _i(this,void 0,void 0,(function*(){return e||(e=Ai.join(q(),Li.default())),yield Ci.mkdirP(e),e}))}function U(e,t,r){return _i(this,void 0,void 0,(function*(){const n=Ai.join(H(),e,Pi.clean(t)||t,r||"");$i.debug("destination "+n);const i=n+".complete";return yield Ci.rmRF(n),yield Ci.rmRF(i),yield Ci.mkdirP(n),n}))}function M(e,t,r){const n=Ai.join(H(),e,Pi.clean(t)||t,r||"");Ti.writeFileSync(n+".complete",""),$i.debug("finished caching tool")}function F(e){const t=Pi.clean(e)||"";$i.debug("isExplicit: "+t);const r=null!=Pi.valid(t);return $i.debug("explicit? "+r),r}function B(e,t){let r="";$i.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort(((e,t)=>Pi.gt(e,t)?1:-1))).length-1;n>=0;n--){const i=e[n];if(Pi.satisfies(i,t)){r=i;break}}return $i.debug(r?"matched: "+r:"match not found"),r}function H(){const e=process.env.RUNNER_TOOL_CACHE||"";return $gCrli$ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function q(){const e=process.env.RUNNER_TEMP||"";return $gCrli$ok(e,"Expected RUNNER_TEMP to be defined"),e}function G(e,t){const r=zt[e];return void 0!==r?r:t}async function z(e,r){return await t(sr)(await(async()=>(void 0===Vi&&(null===t(Kt).sync("7z",{nothrow:!0})&&await N("",0,process),Vi="7z"),Vi))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),L(r),r}function V(e,t){return z(e,t)}function W(e,t){return z(e,t)}async function X(e,r,n=["--strip-components=0"]){try{await(0,yi.mkdirP)(r)}catch{}try{await t(sr)("tar",["xf",e,"-C",r,...n],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,Zn.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return L(r),r}async function Y(e,r,n,i,o){var s,a;(0,Yt.info)(`Installing ${e} ${r} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!==(s=process.env.RUNNER_TEMP)&&void 0!==s?s:$gCrli$tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:$gCrli$join($gCrli$tmpdir(),"setup-cpp","hostedtoolcache");const{url:c,binRelativeDir:l,binFileName:u,extractedFolderName:d,extractFunction:p}=await n(r,process.platform,o);if("github-actions"===t(Jn)())try{const t=(0,vi.find)(e,r);if(t){const n=$gCrli$join(t,d),i=$gCrli$join(n,l);if($gCrli$existsSync(i)&&$gCrli$existsSync($gCrli$join(i,u)))return(0,Yt.info)(`${e} ${r} was found in the cache at ${i}.`),await f(i),{installDir:n,binDir:i}}}catch{}const h=$gCrli$join(i,d),m=$gCrli$join(h,l),g=$gCrli$join(m,u);if(!$gCrli$existsSync(m)||!$gCrli$existsSync(g)){(0,Yt.info)(`Download and extract ${e} ${r}`),Wi||("linux"===process.platform&&(O()?(S("unzip"),S("tar"),S("xz")):R()?(A("unzip"),A("tar"),A("xz")):I()&&(await v("unzip"),await v("tar"),await v("xz-utils"))),Wi=!0);try{const e=await(0,vi.downloadTool)(c);await(null==p?void 0:p(e,i))}catch(t){throw Error(`Failed to download ${e} ${r} ${o} from ${c}: ${t}`)}}return(0,Yt.info)(`Add ${m} to PATH`),await f(m),"github-actions"===t(Jn)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,vi.cacheDir)(i,e,r),{installDir:h,binDir:m}}function K(e,t,r){const n=(e=>"win32"===e?"windows":e)(t),i=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),o="win32"===t,s=o?"zip":"tar.gz";return{binRelativeDir:"",binFileName:P("task"),extractedFolderName:"",extractFunction:o?W:X,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${i}.${s}`}}function J(e,r,n){var i;const o=null!==(i=t(Ki)(e))&&void 0!==i?i:e;switch(r){case"win32":{const r=t(Yi)(o,"v3.19.6");let i;i=["ia32","x86","i386","x32"].includes(n)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:P("cmake"),extractedFolderName:s,extractFunction:W,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.zip`}}case"darwin":{const r=`cmake-${e}-${t(Yi)(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:P("cmake"),extractedFolderName:r,extractFunction:vi.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(Yi)(o,"v3.19.8");let i;i=["aarch64"].includes(n)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:P("cmake"),extractedFolderName:s,extractFunction:vi.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function Q(e,t,r){return Y("cmake",e,J,t,r)}async function Z(e,r,n){if("github-actions"!==t(Jn)())return ee(e,r);try{(0,Zn.info)("Installing python in GitHub Actions");const{setupActionsPython:t}=await Xt("ddrZ4");return t(e,r,n)}catch(t){return(0,Zn.warning)(""+t),ee(e,r)}}async function ee(e,r,n){switch(process.platform){case"win32":{var i,o;r?await T("python3",e,["--params=/InstallDir:"+r]):await T("python3",e);const n=null!==(o=null!==(i=t(Kt).sync("python3.exe",{nothrow:!0}))&&void 0!==i?i:t(Kt).sync("python.exe",{nothrow:!0}))&&void 0!==o?o:$gCrli$join(r,"python.exe"),s=$gCrli$dirname(n);return await(async e=>{(0,Zn.info)(`Add ${e} to PATH`),await f(e)})(s),{installDir:s,binDir:s}}case"darwin":return $("python3",e);case"linux":{let t;if(O())t=S("python",e),S("python-pip");else if(R())t=A("python3",e),A("python3-pip");else{if(!I())throw Error("Unsupported linux distributions");t=await v("python3",e),await v("python3-pip")}return t}default:throw Error("Unsupported platform")}}function te(e,t,r){void 0===r&&(r=t,t=e,e=null),$gCrli$Duplex.call(this,e),"function"!=typeof r.read&&(r=new $gCrli$Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var n=this;t.once("finish",(()=>{n.end()})),this.once("finish",(()=>{t.end()})),r.on("readable",(()=>{n._waiting&&(n._waiting=!1,n._read())})),r.once("end",(()=>{n.push(null)})),e&&void 0!==e.bubbleErrors&&!e.bubbleErrors||(t.on("error",(e=>{n.emit("error",e)})),r.on("error",(e=>{n.emit("error",e)})))}function re(e,t){if(!e)return Promise.reject(Error("Expected a stream"));const r=(t=Object.assign({maxBuffer:1/0},t)).maxBuffer;let n,i;const o=new Promise(((o,s)=>{const a=e=>{e&&(e.bufferedData=n.getBufferedValue()),s(e)};n=no(t),e.once("error",a),e.pipe(n),n.on("data",(()=>{n.getBufferedLength()>r&&s(Error("maxBuffer exceeded"))})),n.once("error",a),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}}));return o.then(i,i),o.then((()=>n.getBufferedValue()))}function ne(e,t){for(var r in e)t[r]=e[r]}function ie(e,t,r){return wo(e,t,r)}function oe(e){e=e||{};const t=new Tt,r=e.href||jt(Dt(e),e.path);let n,i=0,o=0;const s=e=>{const a=("https:"===e.protocol?$t:St).request(e,(o=>{const c=o.statusCode;if(co(c)&&e.followRedirect&&"location"in o.headers&&("GET"===e.method||"HEAD"===e.method)){if(o.resume(),++i>10)return void t.emit("error",new ae.MaxRedirectsError(c,e),null,o);const r=""+xo.from(o.headers.location,"binary");n=jt(Dt(e),r);const a=Object.assign({},e,Ut(n));return t.emit("redirect",o,a),void s(a)}setImmediate((()=>{const e="HEAD"!==a.method?po(o):o;e.url=n||r,e.requestUrl=r,t.emit("response",e)}))}));a.once("error",(r=>{const n=e.retries(++o,r);n?setTimeout(s,n,e):t.emit("error",new ae.RequestError(r,e))})),e.gotTimeout&&io(a,e.gotTimeout),setImmediate((()=>{t.emit("request",a)}))};return s(e),t}function se(e,t){if("string"!=typeof e&&"object"!=typeof e)throw Error("Parameter `url` must be a string or object, not "+typeof e);if("string"==typeof e&&(e=e.replace(/^unix:/,"http://$&"),(e=oo(e)).auth))throw Error("Basic authentication must be done with auth option");(t=Object.assign({protocol:"http:",path:"",retries:5},e,t)).headers=Object.assign({"user-agent":`${Eo.name}/${Eo.version} (https://github.com/sindresorhus/got)`,"accept-encoding":"gzip,deflate"},ao(t.headers));const r=t.query;r&&("string"!=typeof r&&(t.query=Mt(r)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),t.json&&void 0===t.headers.accept&&(t.headers.accept="application/json");let n=t.body;if(n){if("string"!=typeof n&&(null===n||"object"!=typeof n))throw Error("options.body must be a ReadableStream, string, Buffer or plain Object");if(t.method=t.method||"POST",to(n)&&"function"==typeof n.getBoundary?t.headers["content-type"]=t.headers["content-type"]||"multipart/form-data; boundary="+n.getBoundary():null===n||"object"!=typeof n||xo.isBuffer(n)||to(n)||(t.headers["content-type"]=t.headers["content-type"]||"application/x-www-form-urlencoded",n=t.body=Mt(n)),void 0===t.headers["content-length"]&&void 0===t.headers["transfer-encoding"]&&!to(n)){const e="string"==typeof n?xo.byteLength(n):n.length;t.headers["content-length"]=e}}if(t.method=(t.method||"GET").toUpperCase(),"unix"===t.hostname){const e=/(.+):(.+)/.exec(t.path);e&&(t.socketPath=e[1],t.path=e[2],t.host=null)}if("function"!=typeof t.retries){const e=t.retries;t.retries=(t,r)=>t>e||!go(r)?0:1e3*(1<new Promise(((t,r)=>{const n=oe(e);n.on("request",(t=>{if(to(e.body))return e.body.pipe(t),void(e.body=void 0);t.end(e.body)})),n.on("response",(n=>{(null===e.encoding?lo.buffer(n):lo(n,e)).catch((t=>r(new ae.ReadError(t,e)))).then((r=>{const i=n.statusCode,o=e.followRedirect?299:399;if(n.body=r,e.json&&n.body)try{n.body=JSON.parse(n.body)}catch(t){throw new ae.ParseError(t,i,e,r)}if(200>i||i>o)throw new ae.HTTPError(i,e);t(n)})).catch((e=>{Object.defineProperty(e,"response",{value:n}),r(e)}))})),n.on("error",r)})))(se(e,t))}catch(e){return Promise.reject(e)}}function ce(e,t){void 0!==e.code&&(this.code=e.code),Object.assign(this,{message:e.message,host:t.host,hostname:t.hostname,method:t.method,path:t.path})}function le(e){return 4===e?"ipv4":6===e?"ipv6":e?e.toLowerCase():"ipv4"}function ue(e,t){for(var r=0,n=0;e.length>n;n++)r+=t.encodingLength(e[n]);return r}function de(e,t,r,n){for(var i=0;e.length>i;i++)t.encode(e[i],r,n),n+=t.encode.bytes;return n}function pe(e,t,r,n){for(var i=0;e.length>i;i++)e[i]=t.decode(r,n),n+=t.decode.bytes;return n}function he(e){function t(){var e=n._triesArray.reduce(me,0);n._interval=setInterval(r,Math.round(n.timeout/e)),n.emit("listening")}function r(){n._ontimeout()}if(!(this instanceof he))return new he(e);e||(e={}),$gCrli$EventEmitter.call(this);var n=this;this.retries=e.retries||5,this.timeout=e.timeout||7500,this.destroyed=!1,this.inflight=0,this.socket=e.socket||Bt("udp4"),this._id=Math.ceil(65535*Math.random()),this._ids=[],this._queries=[],this._interval=null,this._triesArray=(e=>{var t=[];if(1>=e)return t;for(var r=1;e-1>=r;r++)t.push(Math.pow(2,r));return t})(this.retries),this.socket.on("error",(e=>{n.emit("EACCES"===e.code||"EADDRINUSE"===e.code?"error":"warning",e)})),this.socket.on("message",((e,t)=>{n._onmessage(e,t)})),(e=>{try{return 0!==e.address().port}catch(e){return!1}})(this.socket)?t():this.socket.on("listening",t),this.socket.on("close",(()=>{n.emit("close")}))}function fe(){}function me(e,t){return e+t}function ge(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ye(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;var r=e.slice(0,t=t||1),n=e.slice(t);return[].concat.call([],ye(r),ye(n))}function ve(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(Es),r=1;t.length>r;r++)t=(e=ye(t,r).join("")).match(Es);return e}}function be(e,t){return t.encode?t.strict?us(e):encodeURIComponent(e):e}function we(e){return Array.isArray(e)?e.sort():"object"==typeof e?we(Object.keys(e)).sort(((e,t)=>+e-+t)).map((t=>e[t])):e}function Ee(e,t){return t.some((t=>t instanceof RegExp?t.test(e):t===e))}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e){var t={};if(!e)return t;for(var r=e.trim().split(/\s*,\s*/),n=Array.isArray(o=r),i=0,o=n?o:o[Symbol.iterator]();;){var s;if(n){if(i>=o.length)break;s=o[i++]}else{if((i=o.next()).done)break;s=i.value}var a=s.split(/\s*=\s*/,2),c=a[1];t[a[0]]=void 0===c||c.replace(/^"|"$/g,"")}return t}function Se(e){var t=[];for(var r in e){var n=e[r];t.push(!0===n?r:r+"="+n)}if(t.length)return t.join(", ")}function $e(e,t){("object"!=typeof e||Array.isArray(e))&&(t=e,e={});var r,n=new Ys(e);return n._from=Array.isArray(t)?(r=(r=t).slice(),(e,t)=>{var n=null,i=r.length?r.shift():null;i instanceof Error&&(n=i,i=null),t(n,i)}):t||Te,n}function Ce(e,t){function r(t){if(!(this instanceof r))return new r(t);this._reading=!1,this._callback=(e,t)=>{if(!n.destroyed){if(e)return n.destroy(e);if(null===t)return n.push(null);n._reading=!1,n.push(t)&&n._read(i)}},this.destroyed=!1,Vs.call(this,t||e);var n=this,i=this._readableState.highWaterMark}return"function"==typeof e&&(t=e,e={}),e=Oe(e),Ws(r,Vs),r.prototype._from=t||Te,r.prototype._read=function(e){this._reading||this.destroyed||(this._reading=!0,this._from(e,this._callback))},r.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick((()=>{e&&t.emit("error",e),t.emit("close")}))}},r}function Te(){}function Oe(e){return e||{}}function Re(e){if(null===e)return"null";if(!0===e||!1===e)return"boolean";const t=typeof e;if("undefined"===t)return"undefined";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if(Re.function_(e))return"Function";if(Array.isArray(e))return"Array";if(Buffer.isBuffer(e))return"Buffer";const r=Zs(e);if(r)return r;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}function Ae(e){e=e||{};const t=new Tt,r=e.href||jt(Dt(e),e.path),n=[],i=Ks.object(e.agent)?e.agent:null;let o,s,a=0,c=0;const l=e=>{if("http:"!==e.protocol&&"https:"!==e.protocol)return void t.emit("error",new ke.UnsupportedProtocolError(e));let u,d="https:"===e.protocol?$t:St;if(i&&(e.agent=i["https:"===e.protocol?"https":"http"]||e.agent),e.useElectronNet&&process.versions.electron){const e=Xt("ituiT");d=e.net||e.remote.net}const p=new fs(d.request,e.cache)(e,(i=>{clearInterval(u),t.emit("uploadProgress",{percent:1,transferred:c,total:s});const a=i.statusCode;i.url=o||r,i.requestUrl=r;const d=e.followRedirect&&"location"in i.headers,p=d&&Ia.has(a);if(d&&Pa.has(a)||p&&("GET"===e.method||"HEAD"===e.method)){if(i.resume(),303===a&&(e.method="GET"),n.length>=10)return void t.emit("error",new ke.MaxRedirectsError(a,n,e),null,i);const r=""+ba.from(i.headers.location,"binary");o=jt(Dt(e),r),n.push(o);const s=Object.assign({},e,Ut(o));return t.emit("redirect",i,s),void l(s)}setImmediate((()=>{try{((e,t,r,n)=>{const i=+e.headers["content-length"]||null;let o=0;const s=new hs({transform(e,t,n){o+=e.length;const s=i?o/i:0;1>s&&r.emit("downloadProgress",{percent:s,transferred:o,total:i}),n(null,e)},flush(e){r.emit("downloadProgress",{percent:1,transferred:o,total:i}),e()}});js(e,s),s.redirectUrls=n;const a=!0===t.decompress&&Ks.function(na)&&"HEAD"!==t.method?na(s):s;t.decompress||-1===["gzip","deflate"].indexOf(e.headers["content-encoding"])||(t.encoding=null),r.emit("response",a),r.emit("downloadProgress",{percent:0,transferred:0,total:i}),e.pipe(s)})(i,e,t,n)}catch(e){t.emit("error",e)}}))}));p.on("error",(r=>{t.emit("error",r instanceof fs.RequestError?new ke.RequestError(r,e):new ke.CacheError(r,e))})),p.once("request",(r=>{let n=!1;r.once("abort",(e=>{n=!0})),r.once("error",(r=>{if(clearInterval(u),n)return;const i=e.retries(++a,r);i?setTimeout(l,i,e):t.emit("error",new ke.RequestError(r,e))})),t.once("request",(e=>{t.emit("uploadProgress",{percent:0,transferred:0,total:s});const r=e.connection;if(r){const n=()=>{u=setInterval((()=>{if(r.destroyed)return void clearInterval(u);const n=c,i=e._header?ba.byteLength(e._header):0;c=r.bytesWritten-i,s&&c>s&&(c=s),c!==n&&c!==s&&t.emit("uploadProgress",{percent:s?c/s:0,transferred:c,total:s})}),150)};(void 0===r.connecting?r._connecting:r.connecting)?r.once("connect",n):n()}})),e.gotTimeout&&(clearInterval(u),io(r,e.gotTimeout)),setImmediate((()=>{t.emit("request",r)}))}))};return setImmediate((()=>{Promise.resolve((e=>{const t=e.body;return e.headers["content-length"]?+e.headers["content-length"]:t||e.stream?Ks.string(t)?ba.byteLength(t):ka(t)?pa(t.getLength.bind(t))():t instanceof $gCrli$ReadStream?pa($gCrli$stat)(t.path).then((e=>e.size)):Ks.nodeStream(t)&&Ks.buffer(t._buffer)?t._buffer.length:null:0})(e)).then((t=>{s=t,Ks.undefined(e.headers["content-length"])&&Ks.undefined(e.headers["transfer-encoding"])&&ka(e.body)&&(e.headers["content-length"]=t),l(e)})).catch((e=>{t.emit("error",e)}))})),t}function Ie(e){e.stream=!0;const t=new ps,r=new ps,n=Xi(t,r);let i;if(e.gotTimeout&&e.gotTimeout.request&&(i=setTimeout((()=>{n.emit("error",new ke.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e))}),e.gotTimeout.request)),e.json)throw Error("Got can not be used as a stream when the `json` option is used");e.body&&(n.write=()=>{throw Error("Got's stream is not writable when the `body` option is used")});const o=Ae(e);return o.on("request",(r=>{n.emit("request",r),Ks.nodeStream(e.body)?e.body.pipe(r):e.body?r.end(e.body):"POST"!==e.method&&"PUT"!==e.method&&"PATCH"!==e.method?r.end():t.pipe(r)})),o.on("response",(t=>{clearTimeout(i);const o=t.statusCode;t.on("error",(t=>{n.emit("error",new ke.ReadError(t,e))})),t.pipe(r),e.throwHttpErrors&&304!==o&&(200>o||o>299)?n.emit("error",new ke.HTTPError(o,t.statusMessage,t.headers,e),null,t):n.emit("response",t)})),o.on("error",n.emit.bind(n,"error")),o.on("redirect",n.emit.bind(n,"redirect")),o.on("uploadProgress",n.emit.bind(n,"uploadProgress")),o.on("downloadProgress",n.emit.bind(n,"downloadProgress")),n}function Pe(e,t){if(!Ks.string(e)&&!Ks.object(e))throw new TypeError("Parameter `url` must be a string or object, not "+Ks(e));if(Ks.string(e)){if(e=e.replace(/^unix:/,"http://$&"),(e=ta(e)).auth)throw Error("Basic authentication must be done with the `auth` option")}else aa.lenient(e)&&(e=ra(e));t=Object.assign({path:"",retries:2,cache:!1,decompress:!0,useElectronNet:!1,throwHttpErrors:!0},e,{protocol:e.protocol||"http:"},t);const r=ao(t.headers);for(const e of Object.keys(r))Ks.nullOrUndefined(r[e])&&delete r[e];t.headers=Object.assign({"user-agent":`${va.name}/${va.version} (https://github.com/sindresorhus/got)`},r),t.decompress&&Ks.undefined(t.headers["accept-encoding"])&&(t.headers["accept-encoding"]="gzip, deflate");const n=t.query;n&&(Ks.string(n)||(t.query=Mt(n)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),t.json&&Ks.undefined(t.headers.accept)&&(t.headers.accept="application/json");const i=t.body;if(Ks.nullOrUndefined(i))t.method=(t.method||"GET").toUpperCase();else{const e=t.headers;if(!(Ks.nodeStream(i)||Ks.string(i)||Ks.buffer(i)||t.form||t.json))throw new TypeError("The `body` option must be a stream.Readable, string, Buffer or plain Object");const r=Ks.plainObject(i)||Ks.array(i);if((t.form||t.json)&&!r)throw new TypeError("The `body` option must be a plain Object or Array when the `form` or `json` option is used");if(ka(i)?e["content-type"]=e["content-type"]||"multipart/form-data; boundary="+i.getBoundary():t.form&&r?(e["content-type"]=e["content-type"]||"application/x-www-form-urlencoded",t.body=Mt(i)):t.json&&r&&(e["content-type"]=e["content-type"]||"application/json",t.body=JSON.stringify(i)),Ks.undefined(e["content-length"])&&Ks.undefined(e["transfer-encoding"])&&!Ks.nodeStream(i)){const r=Ks.string(t.body)?ba.byteLength(t.body):t.body.length;e["content-length"]=r}Ks.buffer(i)&&(t.body=Gs(i),t.body._buffer=i),t.method=(t.method||"POST").toUpperCase()}if("unix"===t.hostname){const e=/(.+?):(.+)/.exec(t.path);e&&(t.socketPath=e[1],t.path=e[2],t.host=null)}if(!Ks.function(t.retries)){const e=t.retries;t.retries=(t,r)=>t>e||!go(r)?0:1e3*(1<{const t=new Tt,r=new ha(((r,n,i)=>{const o=Ae(e);let s=!1;i((()=>{s=!0})),o.on("request",(t=>{if(s&&t.abort(),i((()=>{t.abort()})),Ks.nodeStream(e.body))return e.body.pipe(t),void(e.body=void 0);t.end(e.body)})),o.on("response",(t=>{(Ks.null(e.encoding)?lo.buffer(t):lo(t,e)).catch((t=>n(new ke.ReadError(t,e)))).then((n=>{const i=t.statusCode,o=e.followRedirect?299:399;if(t.body=n,e.json&&t.body)try{t.body=JSON.parse(t.body)}catch(t){if(i>=200&&300>i)throw new ke.ParseError(t,i,e,n)}if(e.throwHttpErrors&&304!==i&&(200>i||i>o))throw new ke.HTTPError(i,t.statusMessage,t.headers,e);r(t)})).catch((e=>{Object.defineProperty(e,"response",{value:t}),n(e)}))})),o.once("error",n),o.on("redirect",t.emit.bind(t,"redirect")),o.on("uploadProgress",t.emit.bind(t,"uploadProgress")),o.on("downloadProgress",t.emit.bind(t,"downloadProgress"))}));Object.defineProperty(r,"canceled",{get(){return r.isCanceled}});const n=(i=r,e.gotTimeout&&e.gotTimeout.request?ua(i,e.gotTimeout.request,new ke.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e)):i);var i;return n.cancel=r.cancel.bind(r),n.on=(e,r)=>(t.on(e,r),n),n})(r)}catch(e){return Promise.reject(e)}}function Ne(e){return Zi("http://captive.apple.com/hotspot-detect.html",{family:"v4"===e.version?4:6,headers:{"User-Agent":"CaptiveNetworkSupport/1.0 wispr"}}).then((e=>/Success/.test(e.body||"")||Promise.reject()))}function Le(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function je(e,t,r=null){if(De(t,e)){if("linux"===process.platform&&null!==r&&e in uc){const t=r[0];return parseInt(Object.keys(uc[e])[0],10)>t?"":uc[e][t]}return lc[e]}return null!=t?t:""}function De(e,t){return"true"===e||void 0===e&&t in lc}async function Ue(e,r){if((0,Yt.info)(`Installing ${e} ${null!=r?r:""} via pip`),void 0===dc){if(null!==t(Kt).sync("python3",{nothrow:!0}))dc="python3";else{if(null===t(Kt).sync("python",{nothrow:!0})||!await(async(e,r,n=cc)=>{const i=await(async(e,t=cc)=>{try{var r;const n=await(0,ji.getExecOutput)(e,["--version"]);return null===(r=(n.stdout||n.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,n);return"string"==typeof i&&"string"==typeof r&&""!==i&&""!==r&&-1!==t(sc)(i,r)})("python","3.0.0")){if((0,Yt.info)("python3 was not found. Installing python"),await Z(je("python",void 0),"",process.arch),hc)throw Error("Failed to install python");return hc=!0,Ue(e,r)}dc="python"}"win32"===process.platform?t(sr).sync(dc,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(O()?S("python-pip"):R()?A("python3-pip"):I()&&await v("python3-pip")),t(sr).sync(dc,["-m","pip","install","-U","wheel"],{stdio:"inherit"})}if(t(sr).sync(dc,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===pc){if("linux"===process.platform)pc="/home/runner/.local/bin/";else if("darwin"===process.platform)pc="/usr/local/bin/";else try{pc=$gCrli$join((await(0,ji.getExecOutput)(dc+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{pc=$gCrli$join((await(0,ji.getExecOutput)(dc+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}(0,Yt.info)(pc+" to PATH"),await f(pc)}return{binDir:pc}}async function Me(e,t,r){switch(process.platform){case"win32":return await T("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 $("graphviz",e);case"linux":if(O())return S("graphviz",e);if(R())return A("graphviz",e);if(I())return v("graphviz",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function Fe(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:P("doxygen"),extractedFolderName:t,extractFunction:vi.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:P("doxygen"),extractedFolderName:t,extractFunction:W,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Be(){if("darwin"===process.platform)try{const e=await(0,ji.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await h("SDKROOT",t.trim()):(0,Zn.error)("SDKROOT not set")}catch(e){(0,Zn.error)(e)}}function He(e,t,r){if("win32"===t){const t=gc[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const n="ia32"===r?"i686":"x86_64",i="seh";return{binRelativeDir:"bin/",binFileName:P("g++"),extractedFolderName:"mingw64",extractFunction:z,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${n}-posix-${i}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function qe(e,r,n){let i;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||await T("gcc-arm-embedded",e);try{i=await Y("g++",e,He,r,n)}catch(t){(0,Zn.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await(async(e,t)=>{let r;var n,i;return await T("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!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,n)}break;case"darwin":i=$("gcc",e);break;case"linux":"x64"===n?O()?i=S("gcc",e):R()?(i=A("gcc",e),A("gcc-c++",e),A("libstdc++-devel",void 0)):I()&&(await v("gcc",e,["ppa:ubuntu-toolchain-r/test"]),i=await v("g++",e,[])):((0,Zn.info)(`Install g++-multilib because gcc for ${n} was requested`),O()?S("gcc-multilib",e):I()&&await v("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]));break;default:throw Error("Unsupported platform for "+n)}if(void 0!==i)return await(async(e,r)=>{const n=[];if("win32"===process.platform)n.push(h("CC",P(r+"/gcc")),h("CXX",P(r+"/g++")));else{var i;const o=t(fc)(null!==(i=t(Ki)(e))&&void 0!==i?i:e);5>o?(n.push(h("CC",`${r}/gcc-${e}`),h("CXX",`${r}/g++-${e}`)),I()&&(_("cc",`${r}/gcc-${e}`),_("cxx",`${r}/g++-${e}`),_("gcc",`${r}/gcc-${e}`),_("g++",`${r}/g++-${e}`))):(n.push(h("CC",`${r}/gcc-${o}`),h("CXX",`${r}/g++-${o}`)),I()&&(_("cc",`${r}/gcc-${o}`),_("cxx",`${r}/g++-${o}`),_("gcc",`${r}/gcc-${o}`),_("g++",`${r}/g++-${o}`)))}n.push(Be()),"github-actions"===t(Jn)()&&(()=>{const e=Et.join(mc,"gcc_matcher.json");if(!$gCrli$existsSync(e))return(0,Zn.warning)("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Zn.info)("::add-matcher::"+e)})(),await Promise.all(n)})(e,i.binDir),i}function Ge(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function ze(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function Ve(e,r){switch(e){case"darwin":return(e=>{if(bc.has(e))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Yi)(e,"9.0.1")?ze(e,r,n):Ge(e,r,n)})(r);case"linux":return(e=>{let r=e;const n=wc.get(r);let i;if(void 0!==n&&(r=n),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!vc.has(e))throw Error("Unsupported Ubuntu version: "+e);i=r.replace(e,""),r=Le(vc,e)[0]}else""!==r&&r in Ec?i=Ec[r]:(i=Ec["14.0.0"],(0,Zn.warning)(`Falling back to LLVM version 14.0.0 ${i} for the Ubuntu.`));const o="clang+llvm-",s="5.0.0"===r?`-linux-x86_64${i}.tar.xz`:`-x86_64-linux-gnu${i}.tar.xz`;return t(Yi)(r,"9.0.1")?ze(r,o,s):Ge(r,o,s)})(r);case"win32":return(async e=>{if(xc.has(e))return null;const r="LLVM-",n=t(Yi)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=t(Yi)(e,"9.0.1");let o,s=!1;return i&&(o=ze(e,r,n),await t(Ji)(o)||(s=!0)),!s&&i||(o=Ge(e,r,n)),o})(r);default:return null}}async function We(e,r,n){const[i,o]=await(async(e,r,n,i)=>{if("linux"===r&&n.includes("ubuntu")){const e=await i(r,n);if(null!==e&&await t(Ji)(e))return[n,e]}if(!e.has(n))throw Error(`Unsupported target! (platform='${r}', version='${n}')`);for(const o of Le(e,n)){const e=await i(r,o);if(null!==e&&await t(Ji)(e))return[o,e]}throw Error(`Unsupported target! (platform='${r}', version='${n}')`)})(vc,r,e,Ve);return(0,Yt.setOutput)("version",i),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:P("clang"),extractFunction:"win32"===r?V:(e,t)=>X(e,t,["--strip-components=1"])}}async function Xe(e,r,n){const i=await Ye(e,r,n);var o;return await(async(e,r)=>{const n=(e=>{if(null===t(ac)(e))try{const r=t(Ki)(e);if(null!==r)return(0,Zn.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),i=$gCrli$join(e,"lib");var o;const s=null!==(o=process.env.LD_LIBRARY_PATH)&&void 0!==o?o:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",l=[h("LLVM_PATH",e),h("LD_LIBRARY_PATH",`${i}${$gCrli$delimiter}${s}`),h("DYLD_LIBRARY_PATH",`${i}${$gCrli$delimiter}${c}`),h("LDFLAGS",`-L"${e}/lib"`),h("CPPFLAGS",`-I"${e}/include"`),h("CC",P(e+"/bin/clang")),h("CXX",P(e+"/bin/clang++")),h("LIBRARY_PATH",e+"/lib"),Be()];if("win32"!==process.platform){const r=t(fc)(n);$gCrli$existsSync(`${e}/lib/clang/${n}/include`)?l.push(h("CPATH",`${e}/lib/clang/${n}/include`)):$gCrli$existsSync(`${e}/lib/clang/${r}/include`)&&l.push(h("CPATH",`${e}/lib/clang/${r}/include`))}I()&&(_("cc",e+"/bin/clang"),_("cxx",e+"/bin/clang++"),_("clang",e+"/bin/clang"),_("clang++",e+"/bin/clang++"),_("lld",e+"/bin/lld"),_("ld.lld",e+"/bin/ld.lld"),_("llvm-ar",e+"/bin/llvm-ar")),"github-actions"===t(Jn)()&&Je(),await Promise.all(l)})(null!==(o=i.installDir)&&void 0!==o?o:r,e),i}async function Ye(e,t,r){const n=await Y("llvm",e,We,t,r);return _c||("linux"===process.platform&&(await qe(je("gcc",void 0),"",r),O()||I()&&await v("libtinfo-dev")),_c=!0),n}function Ke(e,r,n){return"github-actions"===t(Jn)()&&Je(),Ye(e,r,n)}function Je(){const e=$gCrli$join(yc,"llvm_matcher.json");if(!$gCrli$existsSync(e))return(0,Zn.warning)("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Zn.info)("::add-matcher::"+e)}function Qe(e,t,r){const n=new Nc(e,t,r);process.stdout.write(""+n+Pc.EOL)}function Ze(e){Ac.issue("error",e instanceof Error?""+e:e)}function et(e){Ac.issue("group",e)}function tt(){Ac.issue("endgroup")}function rt(e){return Object.values(Wc).includes(e)?e:e in Wc?Wc[e]:e}function nt(e){if(Object.keys(Wc).includes(e))return e;for(const[t,r]of Object.entries(Wc))if(r===e)return t;return e}function it(e){const t=rt(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let n=((e,t)=>{try{return(""+$gCrli$execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){Tc.warning("vswhere failed: "+e)}return null})(0,r);if(n&&$gCrli$existsSync(n))return Tc.info("Found with vswhere: "+n),n;Tc.info("Not found with vswhere");const i=e?[nt(e)]:Vc;for(const e of Gc)for(const t of i)for(const r of zc)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,Tc.info("Trying standard location: "+n),$gCrli$existsSync(n))return Tc.info("Found standard location: "+n),n;if(Tc.info("Not found in standard locations"),n=qc+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",$gCrli$existsSync(n))return Tc.info("Found VS 2015: "+n),n;throw Tc.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}function ot(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function st(e,t,r,n,i,o,s){void 0!==t&&$gCrli$existsSync(t)&&((0,Zn.info)(`Adding ${t} to PATH`),await h("VCTargetsPath",t)),Cc((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),i,n,o,s,e)}async function at(e,r,n,i,o,s){if("win32"!==process.platform)return;const a=Sc(e);(0,Zn.info)(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=$c(a);u=!0,(0,Zn.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await T("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(c="14.16",await T("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(c="14.29",await T("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(c=void 0,await T("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):(0,Zn.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,Zn.error)(e)}await st(a,l,n,c,i,o,s),"github-actions"===t(Jn)()&&(()=>{const e=Et.join(Kc,"msvc_matcher.json");if(!$gCrli$existsSync(e))return(0,Zn.warning)("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Zn.info)("::add-matcher::"+e)})()}function ct(e,t,r){const n=(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:P("ninja"),extractedFolderName:"",extractFunction:W,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`}}function lt(e,t,r){return Y("ninja",e,ct,t,r)}function ut(e){return null==e?[]:Array.isArray(e)?e:[e]}function dt(e,t,r,n){var i,o=e[t],s=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(i=+r)==0?i:r),!!r)):0*(i=+r)==0?i:r;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s]}function pt(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:P("kcov"),extractFunction:X}}function ht(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:P("kcov"),extractFunction:ft}}async function ft(e,r){const n=await X(e,r,["--strip-components=1"]),i=await(async()=>{let e=t(Kt).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Q(je("cmake",void 0),$gCrli$join(d(""),"cmake"),"");e=$gCrli$join(t,"cmake")}return null===t(Kt).sync("ninja",{nothrow:!0})&&await lt(je("ninja",void 0),$gCrli$join(d(""),"ninja"),""),e})();"linux"===process.platform&&(O()?(S("libdwarf"),S("libcurl-openssl")):R()?(A("libdwarf-devel"),A("libcurl-devel")):I()&&(await v("libdw-dev"),await v("libcurl4-openssl-dev")));const o=$gCrli$join(n,"build");return await t(sr)(i,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await t(sr)(i,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function mt(e){"github-actions"!==t(Jn)()&&(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=gt(e);var n;r.help&&(0,Zn.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 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 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--bazel\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--nala\n--sevenzip\n--graphviz\n ');const i=null!==(n=r.architecture)&&void 0!==n?n:process.arch;var o;const s=null!==(o=process.env.SETUP_CPP_DIR)&&void 0!==o?o:d(""),a=[],c=[],l=Jc.create({autoloadLocales:!0});let u,p;Jc.addLocale(t(Yc)),Qc.addLocale(t(Zc));let f=null;try{f=await(async()=>{if(I()){null===t(Kt).sync("lsb_release",{nothrow:!0})&&await v("lsb-release");const e=await(0,el.getUbuntuVersion)();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){(0,Zn.warning)(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const n=t.slice(0,r).concat(t.slice(r+1)),i=t[r];if(!De(e[i],i))for(let t=0;n.length>t;t++){const r=n[t];if(De(e[r],n[t]))e[r]=e[i];else if(e[i]!==e[n[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return(0,Zn.error)("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of il){const t=r[e];if(void 0!==t){u=Date.now(),(0,Yt.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await st(je(e,t,f),void 0,i,void 0,void 0,!1,!1);else{const n=nl[e],o=$gCrli$join(s,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await n(je(e,t,f),o,i)}a.push(bt(e,r))}catch(t){(0,Zn.error)(t),c.push(e+" failed to install")}(0,Yt.endGroup)(),p=Date.now(),(0,Zn.info)("took "+(l.format(u,p)||"0 seconds"))}}const m=r.compiler;u=Date.now();try{if(void 0!==m){const{compiler:e,version:t}=yt(m);switch((0,Yt.startGroup)(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await Xe(je("llvm",t,f),$gCrli$join(s,"llvm"),i);a.push(bt("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await qe(je("gcc",t,f),$gCrli$join(s,"gcc"),i);a.push(bt("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await at(je("msvc",t,f),$gCrli$join(s,"msvc"),i);a.push(bt("msvc",e));break}case"appleclang":case"applellvm":(0,Yt.notice)("Assuming apple-clang is already installed"),await Promise.all([h("CC","clang"),h("CXX","clang++")]),a.push(bt("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}(0,Yt.endGroup)(),p=Date.now(),(0,Zn.info)("took "+(l.format(u,p)||"0 seconds"))}}catch(e){(0,Zn.error)(e),c.push("Failed to install the "+m),(0,Yt.endGroup)(),p=Date.now(),(0,Zn.info)("took "+(l.format(u,p)||"0 seconds"))}if(0===a.length&&0===c.length)return(0,Zn.warning)("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>(0,Zn.success)(e))),c.forEach((e=>(0,Zn.error)(e))),(0,Zn.info)("setup_cpp finished"),"github-actions"!==t(Jn)())switch(process.platform){case"win32":(0,Zn.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,Zn.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function gt(e){return((e,t)=>{var r,n,i,o,s,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=ut(t.string),t.boolean=ut(t.boolean),p)for(r in t.alias)for(n=t.alias[r]=ut(t.alias[r]),c=0;n.length>c;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(n=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(n[l]);for(c=t.string.length;c-- >0;)for(l=(n=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(n[l]);if(f)for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),c=0;n.length>c;c++)t[o].push(n[c]);const m=h?Object.keys(t.alias):[];for(c=0;d>c;c++){if("--"===(i=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;i.length>l&&45===i.charCodeAt(l);l++);if(0===l)a._.push(i);else if("no-"===i.substring(l,l+3)){if(o=i.substring(l+3),h&&!~m.indexOf(o))return t.unknown(i);a[o]=!1}else{for(u=l+1;i.length>u&&61!==i.charCodeAt(u);u++);for(o=i.substring(l,u),s=i.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],n=2===l?[o]:o,u=0;n.length>u;u++){if(o=n[u],h&&!~m.indexOf(o))return t.unknown("-".repeat(l)+o);dt(a,o,n.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(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a})(e,{string:ol,default:Object.fromEntries(ol.map((e=>[e,vt(e)]))),alias:{h:"help"},boolean:"help"})}function yt(e){const r=e.split("-"),n=r[0];if(1 in r){const e=r[1];return null!==t(ac)(e)||(0,Zn.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}function vt(e){const t=(0,Yt.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function bt(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 wt from"os";import Et,*as xt from"path";import*as _t from"fs";import*as St from"http";import*as $t from"https";import"net";import{connect as Ct}from"tls";import*as Tt from"events";import*as Ot from"assert";import*as Rt from"util";import*as At from"child_process";import{randomBytes as It}from"crypto";import{StringDecoder as Pt}from"string_decoder";import{setTimeout as kt}from"timers";import*as Nt from"stream";import*as Lt from"buffer";import{resolve as jt,format as Dt,parse as Ut}from"url";import{stringify as Mt}from"querystring";import{createUnzip as Ft}from"zlib";import{createSocket as Bt}from"dgram";import{toUnicode as Ht}from"punycode";import{env as qt,platform as Gt}from"process";var zt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Vt={},Wt={},Xt=zt.parcelRequire810d;null==Xt&&((Xt=e=>{if(e in Vt)return Vt[e].exports;if(e in Wt){var t=Wt[e];delete Wt[e];var r={id:e,exports:{}};return Vt[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{Wt[e]=t},zt.parcelRequire810d=Xt),Xt.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 n(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function i(e){u.issue("group",e)}function o(){u.issue("endgroup")}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var u=Xt("CzUPq"),d=Xt("a92Us"),p=Xt("7u2Mm");const h=c(wt),f=c(xt);var m,g,y=Xt("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 n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))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,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,e.exports.warning=(e,t={})=>{u.issueCommand("warning",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=i,e.exports.endGroup=o,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;i(e);try{r=yield t()}finally{o()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield y.OidcClient.getIDToken(e)}))};var v=Xt("f0qw2");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return v.summary}}),v=Xt("f0qw2"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return v.markdownSummary}});var b=Xt("gzMJ3");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return b.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return b.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return b.toPlatformPath}})})),Xt.register("CzUPq",(function(e,t){function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+s.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const s=o(wt);var a=Xt("7u2Mm");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${t=i,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Xt.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}:{}})),Xt.register("a92Us",((e,t)=>{var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const o=i(_t),s=i(wt);var a=Xt("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(!o.existsSync(r))throw Error("Missing file at path: "+r);o.appendFileSync(r,`${a.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}})),Xt.register("aKUUy",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=Xt("9kh6d"),i=Xt("bynPH"),o=Xt("gF2Jd");class s{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new i.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(),n=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=s.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),o.debug("ID token url is "+t);const r=yield s.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=s})),Xt.register("9kh6d",(function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;const s=i(St),a=i($t),c=i(Xt("hYqzk")),l=i(Xt("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=c.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],y=["OPTIONS","GET","DELETE","HEAD"];class v extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,v.prototype)}}e.exports.HttpClientError=v;class b{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))))}))}}e.exports.HttpClientResponse=b,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 o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return o(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return o(this,void 0,void 0,(function*(){t[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 o(this,void 0,void 0,(function*(){const n=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 i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions)}))}putJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=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 i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=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 i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}))}request(e,t,r,n){return o(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const i=new URL(t);let o=this._prepareRequest(e,i,n);const s=this._allowRetries&&y.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(o,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,o,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 c=new URL(s);if("https:"===i.protocol&&i.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),c.hostname!==i.hostname)for(const e in n)"authorization"===e.toLowerCase()&&delete n[e];o=this._prepareRequest(e,c,n),a=yield this.requestRaw(o,r),t--}if(!a.message.statusCode||!g.includes(a.message.statusCode))return a;c+=1,s>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(s>c);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?n(e):t?r(t):n(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function n(e,t){i||(i=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1;const o=e.httpModule.request(e.options,(e=>{n(void 0,new b(e))}));let s;o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),n(Error("Request timeout: "+e.options.path))})),o.on("error",(e=>{n(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const i="https:"===n.parsedUrl.protocol;n.httpModule=i?a:s;const o=i?443:80;if(n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(n.options);return n}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r}_getAgent(e){let t;const r=c.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const i="https:"===e.protocol;let o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||s.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const s="https:"===r.protocol;n=i?s?l.httpsOverHttps:l.httpsOverHttp:s?l.httpOverHttps:l.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=i?new a.Agent(e):new s.Agent(e),this._agent=t}return t||(t=i?a.globalAgent:s.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return o(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 o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>o(this,void 0,void 0,(function*(){const i=e.message.statusCode||0,o={statusCode:i,result:null,headers:{}};let s,a;i===u.NotFound&&r(o);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),o.result=s),o.headers=e.message.headers}catch(e){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${i})`;const t=new v(e,i);t.result=o.result,n(t)}else r(o)}))))}))}};const w=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),Xt.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 n=[e.hostname.toUpperCase()];"number"==typeof r&&n.push(`${n[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(n.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 n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0},e.exports.checkBypass=r})),Xt.register("ky4Yx",((e,t)=>{e.exports=Xt("48VNE")})),Xt.register("48VNE",(function(t,r){function n(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,n,i)=>{for(var s=o(r,n,i),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===s.host&&l.port===s.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function i(e,t){var r=this;n.prototype.createSocket.call(r,e,(n=>{var i=e.request.getHeader("host"),o=s({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),a=Ct(0,o);r.sockets[r.sockets.indexOf(n)]=a,t(a)}))}function o(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 n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a])}}return e}var a,c,l,u,d,p;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new n(e);return t.request=$gCrli$request,t},c=e=>{var t=new n(e);return t.request=$gCrli$request,t.createSocket=i,t.defaultPort=443,t},l=e=>{var t=new n(e);return t.request=$gCrli$request1,t},u=e=>{var t=new n(e);return t.request=$gCrli$request1,t.createSocket=i,t.defaultPort=443,t},$gCrli$inherits(n,$gCrli$EventEmitter),n.prototype.addRequest=function(e,t,r,n){var i=this,a=s({request:e},i.options,o(t,r,n));this.maxSockets>i.sockets.length?i.createSocket(a,(t=>{function r(){i.emit("free",t,a)}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n)}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t)})):i.requests.push(a)},n.prototype.createSocket=function(e,t){function r(r,o,s){var c;return a.removeAllListeners(),o.removeAllListeners(),200!==r.statusCode?(p("tunneling socket could not be established, statusCode=%d",r.statusCode),o.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):s.length>0?(p("got illegal response body from proxy"),o.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(i)):(p("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=o,t(o))}var n=this,i={};n.sockets.push(i);var o=s({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),p("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,n)=>{process.nextTick((()=>{r(e,t,n)}))})),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),n.removeSocket(i)})),a.end()},n.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=()=>{}})),Xt.register("bynPH",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}}})),Xt.register("f0qw2",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;const{access:n,appendFile:i,writeFile:o}=$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 n(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 n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),n=t?o:i;return yield n(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}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",n=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(r,n);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:n,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(o,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:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){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}),n=this.wrap("blockquote",e,r);return this.addRaw(n).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})),Xt.register("gzMJ3",((e,t)=>{var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const o=i(xt);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,o.sep)})),Xt.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 n=0;r.length>n;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1})(t,r)}function n(e,t,n){$gCrli$stat(e,((i,o)=>{n(i,!i&&r(o,e,t))}))}e.exports=n,n.sync=(e,t)=>r($gCrli$statSync(e),e,t)})),Xt.register("lNi8N",((e,t)=>{function r(e,t,r){$gCrli$stat(e,((e,i)=>{r(e,!e&&n(i,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,i=e.gid,o=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),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&i===s||r&a&&n===o||r&l&&0===o})(e,t)}e.exports=r,r.sync=(e,t)=>n($gCrli$statSync(e),t)})),Xt.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")})),Xt.register("ywN2f",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTION?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),Xt.register("81ovw",((r,n)=>{function i(e){return"github-actions"===t(u)()?l.error(e):console.log(`${e}`)}function o(e){return console.log(`${e}`)}function s(e){return"github-actions"===t(u)()?l.warning(e):console.log(`${e}`)}function a(e){return"github-actions"===t(u)()?l.notice(e):console.log(`${e}`)}function c(e){return"github-actions"===t(u)()?l.info(e):console.log(e)}e(r.exports,"error",(()=>i)),e(r.exports,"success",(()=>o)),e(r.exports,"warning",(()=>s)),e(r.exports,"notice",(()=>a)),e(r.exports,"info",(()=>c));var l=Xt("gF2Jd"),u=Xt("ywN2f")})),Xt.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 n(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 i(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(h.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(p.delimiter))e&&t.push(e);if(h.isRooted(e)){const r=yield h.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(p.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(p.delimiter))e&&r.push(e);const n=[];for(const i of r){const r=yield h.tryGetExecutablePath(p.join(i,e),t);r&&n.push(r)}return n}))}function o(e,t,r,i){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield n(t);const a=yield h.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield h.lstat(a)).isDirectory()?yield o(a,c,r,i):yield s(a,c,i)}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,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;const d=l(At),p=l(xt),h=l(Xt("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:n,recursive:i,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!n)return;const l=c&&c.isDirectory()&&a?p.join(t,p.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!i)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield o(e,l,0,n)}else{if(""===p.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield s(e,l,n)}}))},e.exports.mv=function(e,t,i={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let n=!0;if((yield h.isDirectory(t))&&(t=p.join(t,p.basename(e)),n=yield h.exists(t)),n){if(null!=i.force&&!i.force)throw Error("Destination already exists");yield r(t)}}yield n(p.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=n,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 n=yield i(t);return n&&n.length>0?n[0]:""}))},e.exports.findInPath=i})),Xt.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 n,i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),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)&&i(t,e,r);return o(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=s(_t),l=s(xt);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rmdir=n.rmdir,e.exports.stat=n.stat,e.exports.symlink=n.symlink,e.exports.unlink=n.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,n){return a(this,void 0,void 0,(function*(){let i;try{i=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(i&&i.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(r(i))return t;const o=t;for(const s of n){t=o+s,i=void 0;try{i=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(i&&i.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),n=l.basename(t).toUpperCase();for(const i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=l.join(r,i);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(i))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Xt.register("biqIc",(function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const s=i(Xt("dsEdn"));var a=Xt("gF2Jd");e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,(function*(){const o=$gCrli$platform();let c,l,u;for(const c of n){const n=c.version;if(a.debug(`check ${n} satisfies ${t}`),s.satisfies(n,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${o}`);let r=t.arch===i&&t.platform===o;if(r&&t.platform_version){const n=e.exports._getOsVersion();r=n===t.platform_version||s.satisfies(n,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=$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}})),Xt.register("dsEdn",((e,t)=>{var r=Xt("e9hBm");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Xt("4Y6QE").SEMVER_SPEC_VERSION,SemVer:Xt("ewE0y"),compareIdentifiers:Xt("5niLa").compareIdentifiers,rcompareIdentifiers:Xt("5niLa").rcompareIdentifiers,parse:Xt("9pDo3"),valid:Xt("kULaE"),clean:Xt("kVpax"),inc:Xt("h6Vge"),diff:Xt("3u0pC"),major:Xt("ehbTi"),minor:Xt("gKZZ5"),patch:Xt("aLUuB"),prerelease:Xt("janoF"),compare:Xt("odmNz"),rcompare:Xt("jBQST"),compareLoose:Xt("jTcyr"),compareBuild:Xt("34MvR"),sort:Xt("fGLgH"),rsort:Xt("c3rWp"),gt:Xt("fMkbf"),lt:Xt("KbgdS"),eq:Xt("13Au1"),neq:Xt("lMg40"),gte:Xt("kdktp"),lte:Xt("kNWZ7"),cmp:Xt("hYtJM"),coerce:Xt("3wKw1"),Comparator:Xt("9Bceq"),Range:Xt("kEeqW"),satisfies:Xt("fThUd"),toComparators:Xt("kBAIU"),maxSatisfying:Xt("9ybja"),minSatisfying:Xt("lw7B8"),minVersion:Xt("aGCCN"),validRange:Xt("asxHW"),outside:Xt("5T7ZF"),gtr:Xt("8pZ7x"),ltr:Xt("jkRb0"),intersects:Xt("5obom"),simplifyRange:Xt("rDQLp"),subset:Xt("3vJJ8")}})),Xt.register("e9hBm",((e,t)=>{var r=Xt("4Y6QE").MAX_SAFE_COMPONENT_LENGTH,n=Xt("36nrx");const i=(t=e.exports={}).re=[],o=t.src=[],s=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),s[e]=c,o[c]=t,i[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[s.NUMERICIDENTIFIER]}|${o[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[s.NUMERICIDENTIFIERLOOSE]}|${o[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[s.PRERELEASEIDENTIFIER]}(?:\\.${o[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[s.BUILDIDENTIFIER]}(?:\\.${o[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[s.MAINVERSION]}${o[s.PRERELEASE]}?${o[s.BUILD]}?`),c("FULL",`^${o[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[s.MAINVERSIONLOOSE]}${o[s.PRERELEASELOOSE]}?${o[s.BUILD]}?`),c("LOOSE",`^${o[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",o[s.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:${o[s.PRERELEASE]})?${o[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:${o[s.PRERELEASELOOSE]})?${o[s.BUILD]}?)?)?`),c("XRANGE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",o[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[s.LONECARET]}${o[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[s.LONECARET]}${o[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[s.GTLT]}\\s*(${o[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]}|${o[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[s.XRANGEPLAIN]})\\s+-\\s+(${o[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Xt.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}})),Xt.register("36nrx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Xt.register("ewE0y",(function(e,t){var r=Xt("36nrx"),n=Xt("4Y6QE"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=Xt("e9hBm"),a=s.re,c=s.t,l=Xt("kQXIc"),u=Xt("5niLa").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||0>this.major)throw new TypeError("Invalid major version");if(this.minor>o||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>o||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&o>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof 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 n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=d})),Xt.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)),{}):{}})),Xt.register("5niLa",((e,t)=>{const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:t>e?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers(e,t){return n(t,e)}}})),Xt.register("9pDo3",((e,t)=>{var r=Xt("4Y6QE").MAX_LENGTH,n=Xt("e9hBm"),i=n.re,o=n.t,s=Xt("ewE0y"),a=Xt("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?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}})),Xt.register("kULaE",((e,t)=>{var r=Xt("9pDo3");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}})),Xt.register("kVpax",((e,t)=>{var r=Xt("9pDo3");e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}})),Xt.register("h6Vge",((e,t)=>{var r=Xt("ewE0y");e.exports=(e,t,n,i)=>{"string"==typeof n&&(i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i).version}catch(e){return null}}})),Xt.register("3u0pC",((e,t)=>{var r=Xt("9pDo3"),n=Xt("13Au1");e.exports=(e,t)=>{if(n(e,t))return null;{const n=r(e),i=r(t),o=n.prerelease.length||i.prerelease.length,s=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==i[e])return s+e;return a}}})),Xt.register("13Au1",((e,t)=>{var r=Xt("odmNz");e.exports=(e,t,n)=>0===r(e,t,n)})),Xt.register("odmNz",((e,t)=>{var r=Xt("ewE0y");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))})),Xt.register("ehbTi",((e,t)=>{var r=Xt("ewE0y");e.exports=(e,t)=>new r(e,t).major})),Xt.register("gKZZ5",((e,t)=>{var r=Xt("ewE0y");e.exports=(e,t)=>new r(e,t).minor})),Xt.register("aLUuB",((e,t)=>{var r=Xt("ewE0y");e.exports=(e,t)=>new r(e,t).patch})),Xt.register("janoF",((e,t)=>{var r=Xt("9pDo3");e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}})),Xt.register("jBQST",((e,t)=>{var r=Xt("odmNz");e.exports=(e,t,n)=>r(t,e,n)})),Xt.register("jTcyr",((e,t)=>{var r=Xt("odmNz");e.exports=(e,t)=>r(e,t,!0)})),Xt.register("34MvR",((e,t)=>{var r=Xt("ewE0y");e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}})),Xt.register("fGLgH",((e,t)=>{var r=Xt("34MvR");e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))})),Xt.register("c3rWp",((e,t)=>{var r=Xt("34MvR");e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))})),Xt.register("fMkbf",((e,t)=>{var r=Xt("odmNz");e.exports=(e,t,n)=>r(e,t,n)>0})),Xt.register("KbgdS",((e,t)=>{var r=Xt("odmNz");e.exports=(e,t,n)=>0>r(e,t,n)})),Xt.register("lMg40",((e,t)=>{var r=Xt("odmNz");e.exports=(e,t,n)=>0!==r(e,t,n)})),Xt.register("kdktp",((e,t)=>{var r=Xt("odmNz");e.exports=(e,t,n)=>r(e,t,n)>=0})),Xt.register("kNWZ7",((e,t)=>{var r=Xt("odmNz");e.exports=(e,t,n)=>0>=r(e,t,n)})),Xt.register("hYtJM",((e,t)=>{var r=Xt("13Au1"),n=Xt("lMg40"),i=Xt("fMkbf"),o=Xt("kdktp"),s=Xt("KbgdS"),a=Xt("kNWZ7");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return n(e,c,l);case">":return i(e,c,l);case">=":return o(e,c,l);case"<":return s(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Xt.register("3wKw1",((e,t)=>{var r=Xt("ewE0y"),n=Xt("9pDo3"),i=Xt("e9hBm"),o=i.re,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1}else i=e.match(o[s.COERCE]);return null===i?null:n(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t)}})),Xt.register("9Bceq",(function(e,t){const r=Symbol();class n{static get ANY(){return r}constructor(e,t){if(t=i(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?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(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||l}}e.exports=n;var i=Xt("kQXIc"),o=Xt("e9hBm"),s=o.re,a=o.t,c=Xt("hYtJM"),l=Xt("36nrx"),u=Xt("ewE0y"),d=Xt("kEeqW")})),Xt.register("kEeqW",(function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)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=n.get(t);if(r)return r;const i=this.options.loose;e=e.replace(i?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],T(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),s("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],p)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));i&&(a=a.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",a);const c=new Map,m=a.map((e=>new o(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const g=[...c.values()];return n.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(O(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const n=new(Xt("baiI1"))({max:1e3});var i=Xt("kQXIc"),o=Xt("9Bceq"),s=Xt("36nrx"),a=Xt("ewE0y"),c=Xt("e9hBm"),l=c.re,u=c.t,d=c.comparatorTrimReplace,p=c.tildeTrimReplace,h=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},y=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=b(e,t),s("tildes",e),e=_(e,t),s("xrange",e),e=$(e,t),s("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),v(r)?a="":v(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:v(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a})),E=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{s("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,n,i,o,a)=>{let c;return s("caret",e,t,n,i,o,a),v(n)?c="":v(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(o)?c="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(s("no pr"),c="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),s("caret return",c),c}))},_=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const l=v(i),u=l||v(o),d=u||v(a);return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r})),$=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),C=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),T=e=>(t,r,n,i,o,s,a,c,l,u,d,p,h)=>`${r=v(n)?"":v(i)?`>=${n}.0.0${e?"-0":""}`:v(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`} ${c=v(l)?"":v(u)?`<${+l+1}.0.0-0`:v(d)?`<${l}.${+u+1}.0-0`:p?`<=${l}.${u}.${d}-${p}`:e?`<${l}.${u}.${+d+1}-0`:"<="+c}`.trim(),O=(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!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}})),Xt.register("baiI1",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new n.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),i=new Set,o=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},s=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:n}=f,{get:i}=Object.getOwnPropertyDescriptor(n,e);l(r,e+" method",`cache.${t}()`,i)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!i.has(e),l=(e,t,r,n)=>{i.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,n)},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:n=1,ttlAutopurge:s,updateAgeOnGet:l,updateAgeOnHas:p,allowStale:m,dispose:g,disposeAfter:y,noDisposeOnSet:v,noUpdateTTL:b,maxSize:w=0,sizeCalculation:E,fetchMethod:x}=e,{length:_,maxAge:S,stale:$}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const C=t?d(t):Array;if(!C)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=w,this.sizeCalculation=E||_,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=x||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 C(t),this.prev=new C(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 y?(this.disposeAfter=y,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!v,this.noUpdateTTL=!!b,0!==this.maxSize){if(!u(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!$,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!p,this.ttlResolution=u(n)||0===n?n: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";c(e)&&(i.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}$&&o("stale","allowStale"),S&&o("maxAge","ttl"),_&&o("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 n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(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,n)=>{if(!u(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,n)=>{this.sizes[e]=n;const i=this.maxSize-this.sizes[e];for(;this.calculatedSize>i;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(0!==this.size){const t=this.keyMap.get(e);void 0!==t&&(this.calculatedSize-=this.sizes[t])}return f.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,n){}requireSize(e,t,r,n){if(r||n)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],n={value:this.valList[t]};this.ttls&&(n.ttl=this.ttls[t]),this.sizes&&(n.size=this.sizes[t]),e.unshift([r,n])}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:n=this.noDisposeOnSet,size:i=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){i=this.requireSize(e,t,i,o);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,i),s=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():n||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,i)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),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],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const o=new n,s={signal:o.signal,options:r},a=Promise.resolve(this.fetchMethod(e,i,s)).then((t=>(o.signal.aborted||this.set(e,t,s.options),t)));return a.__abortController=o,a.__staleWhileFetching=i,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:n=this.ttl,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:n,noDisposeOnSet:i,size:o,sizeCalculation:s,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const n=this.valList[l];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),n;const i=this.backgroundFetch(e,l,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const n=this.keyMap.get(e);if(void 0!==n){const i=this.valList[n],o=this.isBackgroundFetch(i);if(this.isStale(n))return o?t?i.__staleWhileFetching:void 0:(this.delete(e),t?i:void 0);if(o)return;return this.moveToTail(n),r&&this.updateItemAge(n),i}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return 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(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),Xt.register("fThUd",((e,t)=>{var r=Xt("kEeqW");e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}})),Xt.register("kBAIU",((e,t)=>{var r=Xt("kEeqW");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Xt.register("9ybja",((e,t)=>{var r=Xt("ewE0y"),n=Xt("kEeqW");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new r(o,i)))})),o}})),Xt.register("lw7B8",((e,t)=>{var r=Xt("ewE0y"),n=Xt("kEeqW");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new r(o,i)))})),o}})),Xt.register("aGCCN",((e,t)=>{var r=Xt("ewE0y"),n=Xt("kEeqW"),i=Xt("fMkbf");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o))return o;if(o=new r("0.0.0-0"),e.test(o))return o;o=null;for(let t=0;e.set.length>t;++t){let n=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">=":n&&!i(t,n)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!n||o&&!i(o,n)||(o=n)}return o&&e.test(o)?o:null}})),Xt.register("asxHW",((e,t)=>{var r=Xt("kEeqW");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Xt.register("5T7ZF",((e,t)=>{var r=Xt("ewE0y"),n=Xt("9Bceq");const{ANY:i}=n;var o=Xt("kEeqW"),s=Xt("fThUd"),a=Xt("fMkbf"),c=Xt("KbgdS"),l=Xt("kNWZ7"),u=Xt("kdktp");e.exports=(e,t,d,p)=>{let h,f,m,g,y;switch(e=new r(e,p),t=new o(t,p),d){case">":h=a,f=l,m=c,g=">",y=">=";break;case"<":h=c,f=u,m=a,g="<",y="<=";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 o=null,s=null;if(t.set[r].forEach((e=>{e.semver===i&&(e=new n(">=0.0.0")),o=o||e,s=s||e,h(e.semver,o.semver,p)?o=e:m(e.semver,s.semver,p)&&(s=e)})),o.operator===g||o.operator===y)return!1;if((!s.operator||s.operator===g)&&f(e,s.semver))return!1;if(s.operator===y&&m(e,s.semver))return!1}return!0}})),Xt.register("8pZ7x",((e,t)=>{var r=Xt("5T7ZF");e.exports=(e,t,n)=>r(e,t,">",n)})),Xt.register("jkRb0",((e,t)=>{var r=Xt("5T7ZF");e.exports=(e,t,n)=>r(e,t,"<",n)})),Xt.register("5obom",((e,t)=>{var r=Xt("kEeqW");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))})),Xt.register("rDQLp",((e,t)=>{var r=Xt("fThUd"),n=Xt("odmNz");e.exports=(e,t,i)=>{const o=[];let s=null,a=null;const c=e.sort(((e,t)=>n(e,t,i)));for(const e of c)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const l=[];for(const[e,t]of o)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Xt.register("3vJJ8",((e,t)=>{var r=Xt("kEeqW"),n=Xt("9Bceq");const{ANY:i}=n;var o=Xt("fThUd"),s=Xt("odmNz");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const a=new Set;let u,d,p,h,f,m,g;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(p=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&&!o(e,u+"",r))return null;if(d&&!o(e,d+"",r))return null;for(const n of t)if(!o(e,n+"",r))return!1;return!0}let y=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,v=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;y&&1===y.prerelease.length&&"<"===d.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)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(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!o(u.semver,e+"",r))return!1;if(d)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(f=l(d,e,r),f===e&&f!==d)return!1}else if("<="===d.operator&&!o(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||v||y)},c=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:0>n||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return 0>n?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}})),Xt.register("8XxoC",((e,t)=>{var r=Xt("7tyCH"),n=Xt("cyw4a");e.exports=(e,t,i)=>{var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;16>a;++a)t[o+a]=s[a];return t||n(s)}})),Xt.register("7tyCH",((e,t)=>{e.exports=()=>It(16)})),Xt.register("cyw4a",((e,t)=>{for(var r=[],n=0;256>n;++n)r[n]=(n+256).toString(16).substr(1);e.exports=(e,t)=>{var n=t||0;return""+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}})),Xt.register("eGKv1",(function(e,t){function r(e,t,r){return s(this,void 0,void 0,(function*(){const n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec()}))}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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 r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=o(Xt("fGrvc"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,n){var i,o;return s(this,void 0,void 0,(function*(){let s="",a="";const c=new Pt("utf8"),l=new Pt("utf8"),u=null===(i=null==n?void 0:n.listeners)||void 0===i?void 0:i.stdout,d=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stderr,p=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout(e){s+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),h=yield r(e,t,Object.assign(Object.assign({},n),{listeners:p}));return s+=c.end(),a+=l.end(),{exitCode:h,stdout:s,stderr:a}}))}})),Xt.register("fGrvc",(function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=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}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const s=i(wt),a=i(Tt),c=i(At),l=i(xt),u=i(Xt("2fNe7")),d=i(Xt("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(),n=this._getSpawnArgs(e);let i=t?"":"[command]";if(p)if(this._isCmdFile()){i+=r;for(const e of n)i+=" "+e}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n)i+=" "+e}else{i+=this._windowsQuoteCmdArg(r);for(const e of n)i+=" "+this._windowsQuoteCmdArg(e)}else{i+=r;for(const e of n)i+=" "+e}return i}_processLineBuffer(e,t,r){try{let n=t+""+e,i=n.indexOf(s.EOL);for(;i>-1;)r(n.substring(0,i)),n=n.substring(i+s.EOL.length),i=n.indexOf(s.EOL);return n}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 n of e)if(t.some((e=>e===n))){r=!0;break}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return n+='"',n.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 n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return t+='"',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 o(this,void 0,void 0,(function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>o(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 n=new h(r,this.toolPath);if(n.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const i=this._getSpawnFileName(),o=c.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let a="";o.stdout&&o.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(o.stderr&&o.stderr.on("data",(e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),o.on("error",(e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete()})),o.on("exit",(e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete()})),o.on("close",(e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete()})),n.on("done",((r,n)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),o.removeAllListeners(),r?t(r):e(n)})),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1}const r=[];let n=!1,i=!1,o="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&i?t(a):"\\"===a&&n?i=!0:" "!==a||n?t(a):o.length>0&&(r.push(o),o=""):i?t(a):n=!n}return o.length>0&&r.push(o.trim()),r};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=kt(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())}}})),Xt.register("ddrZ4",((e,t)=>{e.exports=import("./actions_python.dfab21e0.js").then((()=>Xt("doiKQ")))})),Xt.register("cDzno",((e,t)=>{"disable"===process.env.READABLE_STREAM&&Nt?(e.exports=Nt,(t=e.exports=Nt.Readable).Readable=Nt.Readable,t.Writable=Nt.Writable,t.Duplex=Nt.Duplex,t.Transform=Nt.Transform,t.PassThrough=Nt.PassThrough,t.Stream=Nt):((t=e.exports=Xt("kFJd0")).Stream=Nt||t,t.Readable=t,t.Writable=Xt("b6wPb"),t.Duplex=Xt("6RDvy"),t.Transform=Xt("6M3Ye"),t.PassThrough=Xt("6QTGG"))})),Xt.register("kFJd0",(function(e,t){function r(e,t){var r=t instanceof(b=b||Xt("6RDvy"));this.objectMode=!!(e=e||{}).objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new O,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(T||(T=Xt("htphu").StringDecoder),this.decoder=new T(e.encoding),this.encoding=e.encoding)}function n(e){if(b=b||Xt("6RDvy"),!(this instanceof n))return new n(e);this._readableState=new r(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),x.call(this)}function i(e,t,r,n,i){var s,c=e._readableState;return null===t?(c.reading=!1,((e,t)=>{if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,a(e)}})(e,c)):(i||(s=((e,t)=>{var r,n;return _.isBuffer(n=t)||n instanceof S||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r})(c,t)),s?e.emit("error",s):c.objectMode||t&&t.length>0?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===_.prototype||(t=(e=>_.from(e))(t)),n?c.endEmitted?e.emit("error",Error("stream.unshift() after end event")):o(e,c,t,!0):c.ended?e.emit("error",Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?o(e,c,t,!1):l(e,c)):o(e,c,t,!1))):n||(c.reading=!1)),(e=>!e.ended&&(e.needReadable||e.highWaterMark>e.length||0===e.length))(c)}function o(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&a(e)),l(e,t)}function s(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(e=>(I>e?(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++):e=I,e))(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function a(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(C("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?v.nextTick(c,e):c(e))}function c(e){C("emit readable"),e.emit("readable"),h(e)}function l(e,t){t.readingMore||(t.readingMore=!0,v.nextTick(u,e,t))}function u(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.highWaterMark>t.length&&(C("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function d(e){C("readable nexttick read 0"),e.read(0)}function p(e,t){t.reading||(C("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),h(e),t.flowing&&!t.reading&&e.read(0)}function h(e){var t=e._readableState;for(C("flow",t.flowing);t.flowing&&null!==e.read(););}function f(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():e&&t.length>e?r=((e,t,r)=>{var n;return t.head.data.length>e?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?((e,t)=>{var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(i+=s===o.length?o:o.slice(0,e),0==(e-=s)){s===o.length?(++n,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i})(e,t):((e,t)=>{var r=_.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0==(e-=s)){s===o.length?(++i,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r})(e,t),n})(e,t.buffer,t.decoder):(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()),r);var r}function m(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,v.nextTick(g,t,e))}function g(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function y(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}var v=Xt("W7muo");e.exports=n;var b,w=Xt("d1ADi");n.ReadableState=r,$gCrli$EventEmitter;var E=(e,t)=>e.listeners(t).length,x=Xt("jww3r"),_=Xt("awi26").Buffer,S=zt.Uint8Array||(()=>{}),$=Object.create(Xt("iyl4M"));$.inherits=Xt("5n7Ld");var C=void 0;C=Rt&&Rt.debuglog?Rt.debuglog("stream"):()=>{};var T,O=Xt("lOpht"),R=Xt("3FvcP");$.inherits(n,x);var A=["error","close","destroy","pause","resume"];Object.defineProperty(n.prototype,"destroyed",{get(){return void 0!==this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}}),n.prototype.destroy=R.destroy,n.prototype._undestroy=R.undestroy,n.prototype._destroy=function(e,t){this.push(null),t(e)},n.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=_.from(e,t),t=""),r=!0),i(this,e,t,!1,r)},n.prototype.unshift=function(e){return i(this,e,null,!0,!1)},n.prototype.isPaused=function(){return!1===this._readableState.flowing},n.prototype.setEncoding=function(e){return T||(T=Xt("htphu").StringDecoder),this._readableState.decoder=new T(e),this._readableState.encoding=e,this};var I=8388608;n.prototype.read=function(e){C("read",e);var t=this._readableState,r=e=parseInt(e,10);if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return C("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?m(this):a(this),null;if(0===(e=s(e,t))&&t.ended)return 0===t.length&&m(this),null;var n,i=t.needReadable;return C("need readable",i),(0===t.length||t.highWaterMark>t.length-e)&&C("length less than watermark",i=!0),t.ended||t.reading?C("reading or ended",i=!1):i&&(C("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=s(r,t))),null===(n=e>0?f(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&m(this)),null!==n&&this.emit("data",n),n},n.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},n.prototype.pipe=function(e,t){function r(){C("onend"),e.end()}function n(t){C("ondata"),f=!1,!1!==e.write(t)||f||((1===l.pipesCount&&l.pipes===e||l.pipesCount>1&&-1!==y(l.pipes,e))&&!p&&(C("false write response, pause",c._readableState.awaitDrain),c._readableState.awaitDrain++,f=!0),c.pause())}function i(t){C("onerror",t),a(),e.removeListener("error",i),0===E(e,"error")&&e.emit("error",t)}function o(){e.removeListener("finish",s),a()}function s(){C("onfinish"),e.removeListener("close",o),a()}function a(){C("unpipe"),c.unpipe(e)}var c=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=e;break;case 1:l.pipes=[l.pipes,e];break;default:l.pipes.push(e)}l.pipesCount+=1,C("pipe count=%d opts=%j",l.pipesCount,t);var u=t&&!1===t.end||e===process.stdout||e===process.stderr?a:r;l.endEmitted?v.nextTick(u):c.once("end",u),e.on("unpipe",(function t(u,h){C("onunpipe"),u===c&&h&&!1===h.hasUnpiped&&(h.hasUnpiped=!0,C("cleanup"),e.removeListener("close",o),e.removeListener("finish",s),e.removeListener("drain",d),e.removeListener("error",i),e.removeListener("unpipe",t),c.removeListener("end",r),c.removeListener("end",a),c.removeListener("data",n),p=!0,!l.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}));var d=(e=>()=>{var t=e._readableState;C("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&E(e,"data")&&(t.flowing=!0,h(e))})(c);e.on("drain",d);var p=!1,f=!1;return c.on("data",n),((e,t,r)=>{if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?w(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)})(e,"error",i),e.once("close",o),e.once("finish",s),e.emit("pipe",c),l.flowing||(C("pipe resume"),c.resume()),e},n.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;i>o;o++)n[o].emit("unpipe",this,r);return this}var s=y(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},n.prototype.addListener=n.prototype.on=function(e,t){var r=x.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&a(this):v.nextTick(d,this))}return r},n.prototype.resume=function(){var e=this._readableState;return e.flowing||(C("resume"),e.flowing=!0,((e,t)=>{t.resumeScheduled||(t.resumeScheduled=!0,v.nextTick(p,e,t))})(this,e)),this},n.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this},n.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(()=>{if(C("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(i=>{C("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=(t=>function(){return e[t].apply(e,arguments)})(i));for(var o=0;A.length>o;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=t=>{C("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(n.prototype,"readableHighWaterMark",{enumerable:!1,get(){return this._readableState.highWaterMark}}),n._fromList=f})),Xt.register("W7muo",((e,t)=>{e.exports="undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((()=>{e.call(null,t)}));case 3:return process.nextTick((()=>{e.call(null,t,r)}));case 4:return process.nextTick((()=>{e.call(null,t,r,n)}));default:for(i=Array(s-1),o=0;i.length>o;)i[o++]=arguments[o];return process.nextTick((()=>{e.apply(null,i)}))}}}:process})),Xt.register("d1ADi",((e,t)=>{var r={}.toString;e.exports=Array.isArray||(e=>"[object Array]"==r.call(e))})),Xt.register("jww3r",((e,t)=>{e.exports=Nt})),Xt.register("awi26",((e,t)=>{function r(e,t){for(var r in e)t[r]=e[r]}function n(e,t,r){return i(e,t,r)}var i=Lt.Buffer;i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=Lt:(r(Lt,e.exports),e.exports.Buffer=n),r(i,n),n.from=(e,t,r)=>{if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},n.alloc=(e,t,r)=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},n.allocUnsafe=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},n.allocUnsafeSlow=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return Lt.SlowBuffer(e)}})),Xt.register("iyl4M",((t,r)=>{function n(e){return{}.toString.call(e)}var i,o,s,a,c,l,u,d,p,h,f,m,g,y,v;e(t.exports,"isArray",(()=>i),(e=>i=e)),e(t.exports,"isBoolean",(()=>o),(e=>o=e)),e(t.exports,"isNull",(()=>s),(e=>s=e)),e(t.exports,"isNullOrUndefined",(()=>a),(e=>a=e)),e(t.exports,"isNumber",(()=>c),(e=>c=e)),e(t.exports,"isString",(()=>l),(e=>l=e)),e(t.exports,"isSymbol",(()=>u),(e=>u=e)),e(t.exports,"isUndefined",(()=>d),(e=>d=e)),e(t.exports,"isRegExp",(()=>p),(e=>p=e)),e(t.exports,"isObject",(()=>h),(e=>h=e)),e(t.exports,"isDate",(()=>f),(e=>f=e)),e(t.exports,"isError",(()=>m),(e=>m=e)),e(t.exports,"isFunction",(()=>g),(e=>g=e)),e(t.exports,"isPrimitive",(()=>y),(e=>y=e)),e(t.exports,"isBuffer",(()=>v),(e=>v=e)),i=e=>Array.isArray?Array.isArray(e):"[object Array]"===n(e),o=e=>"boolean"==typeof e,s=e=>null===e,a=e=>null==e,c=e=>"number"==typeof e,l=e=>"string"==typeof e,u=e=>"symbol"==typeof e,d=e=>void 0===e,p=e=>"[object RegExp]"===n(e),h=e=>"object"==typeof e&&null!==e,f=e=>"[object Date]"===n(e),m=e=>"[object Error]"===n(e)||e instanceof Error,g=e=>"function"==typeof e,y=e=>null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e,v=$gCrli$Buffer.isBuffer})),Xt.register("5n7Ld",((e,t)=>{try{var r=$3e951ecc28e7c718$import$7debb50ef11d5e0b;if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=Xt("8IHQJ")}})),Xt.register("8IHQJ",((e,t)=>{e.exports="function"==typeof Object.create?(e,t)=>{t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:(e,t)=>{if(t){e.super_=t;var r=()=>{};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),Xt.register("lOpht",(function(e,t){var r=Xt("awi26").Buffer;e.exports=function(){function e(){((e,t)=>{if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")})(0,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)n.data.copy(t,i),i+=n.data.length,n=n.next;return t},e}(),Rt&&Rt.inspect&&Rt.inspect.custom&&(e.exports.prototype[Rt.inspect.custom]=function(){var e=Rt.inspect({length:this.length});return this.constructor.name+" "+e})})),Xt.register("3FvcP",(function(e,t){function r(e,t){e.emit("error",t)}var n=Xt("W7muo");e.exports={destroy(e,t){var i=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(r,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(e=>{!t&&e?(n.nextTick(r,i,e),i._writableState&&(i._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}})),Xt.register("6RDvy",(function(e,t){function r(e){if(!(this instanceof r))return new r(e);c.call(this,e),l.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended||o.nextTick(i,this)}function i(e){e.end()}var o=Xt("W7muo"),s=Object.keys||(e=>{var t=[];for(var r in e)t.push(r);return t});e.exports=r;var a=Object.create(Xt("iyl4M"));a.inherits=Xt("5n7Ld");var c=Xt("kFJd0"),l=Xt("b6wPb");a.inherits(r,c);for(var u=s(l.prototype),d=0;u.length>d;d++){var p=u[d];r.prototype[p]||(r.prototype[p]=l.prototype[p])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),r.prototype._destroy=function(e,t){this.push(null),this.end(),o.nextTick(t,e)}})),Xt.register("b6wPb",(function(e,t){function r(e){var t=this;this.next=null,this.entry=null,this.finish=()=>{((e,t,r)=>{var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e})(t,e)}}function n(){}function i(e,t){h=h||Xt("6RDvy");var n=t instanceof h;this.objectMode=!!(e=e||{}).objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,o=e.writableHighWaterMark;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===e.decodeStrings),this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=e=>{((e,t)=>{var r=e._writableState,n=r.sync,i=r.writecb;if((e=>{e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0})(r),t)((e,t,r,n,i)=>{--t.pendingcb,r?(p.nextTick(i,n),p.nextTick(d,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),d(e,t))})(e,r,n,t,i);else{var o=l(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||c(e,r),n?f(a,e,r,o,i):a(e,r,o,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function o(e){if(h=h||Xt("6RDvy"),!(g.call(o,this)||this instanceof h))return new o(e);this._writableState=new i(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),v.call(this)}function s(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function a(e,t,r,n){r||((e,t)=>{0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))})(e,t),t.pendingcb--,n(),d(e,t)}function c(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)i[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;i.allBuffers=c,s(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk;if(s(e,t,!1,t.objectMode?1:l.length,l,n.encoding,n.callback),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function l(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function u(e,t){e._final((r=>{t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),d(e,t)}))}function d(e,t){var r=l(t);return r&&(((e,t)=>{t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,p.nextTick(u,e,t)):(t.prefinished=!0,e.emit("prefinish")))})(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}var p=Xt("W7muo");e.exports=o;var h,f=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:p.nextTick;o.WritableState=i;var m=Object.create(Xt("iyl4M"));m.inherits=Xt("5n7Ld");var g,y={deprecate:Xt("esrZl")},v=Xt("jww3r"),b=Xt("awi26").Buffer,w=zt.Uint8Array||(()=>{}),E=Xt("3FvcP");m.inherits(o,v),i.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(i.prototype,"buffer",{get:y.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(o,Symbol.hasInstance,{value(e){return!!g.call(this,e)||this===o&&e&&e._writableState instanceof i}})):g=function(e){return e instanceof this},o.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},o.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,c=!o.objectMode&&(b.isBuffer(i=e)||i instanceof w);return c&&!b.isBuffer(e)&&(e=(e=>b.from(e))(e)),"function"==typeof t&&(r=t,t=null),c?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=n),o.ended?((e,t)=>{var r=Error("write after end");e.emit("error",r),p.nextTick(t,r)})(this,r):(c||((e,t,r,n)=>{var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),p.nextTick(n,o),i=!1),i})(this,o,e,r))&&(o.pendingcb++,a=((e,t,r,n,i,o)=>{if(!r){var a=((e,t,r)=>(e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=b.from(t,r)),t))(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var c=t.objectMode?1:n.length;t.length+=c;var l=t.highWaterMark>t.length;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else s(e,t,!1,c,n,i,o);return l})(this,o,c,e,t,r)),a},o.prototype.cork=function(){this._writableState.corked++},o.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||c(this,e))},o.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1>=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get(){return this._writableState.highWaterMark}}),o.prototype._write=(e,t,r)=>{r(Error("_write() is not implemented"))},o.prototype._writev=null,o.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||((e,t,r)=>{t.ending=!0,d(e,t),r&&(t.finished?p.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1})(this,n,r)},Object.defineProperty(o.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),o.prototype.destroy=E.destroy,o.prototype._undestroy=E.undestroy,o.prototype._destroy=function(e,t){this.end(),t(e)}})),Xt.register("esrZl",((e,t)=>{e.exports=$gCrli$deprecate})),Xt.register("htphu",(function(t,r){function n(e){var t;switch(this.encoding=(e=>{var t=(e=>{if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}})(e);if("string"!=typeof t&&(h.isEncoding===f||!f(e)))throw Error("Unknown encoding: "+e);return t||e})(e),this.encoding){case"utf16le":this.text=s,this.end=a,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=u,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=h.allocUnsafe(t)}function i(e){return e>127?e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2:0}function o(e){var t=this.lastTotal-this.lastNeed,r=((e,t,r)=>{if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}})(this,e);return void 0!==r?r:this.lastNeed>e.length?(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length)):(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal))}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&56319>=n)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}var p;e(t.exports,"StringDecoder",(()=>p),(e=>p=e));var h=Xt("awi26").Buffer,f=h.isEncoding||(e=>{switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}});p=n,n.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return e.length>r?t?t+this.text(e,r):this.text(e,r):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var r=((e,t,r)=>{var n=t.length-1;if(r>n)return 0;var o=i(t[n]);return 0>o?--n(o=i(t[n]))?--n(o=i(t[n]))?0:(o>0&&(2===o?o=0:e.lastNeed=o-3),o):(o>0&&(e.lastNeed=o-2),o):(o>0&&(e.lastNeed=o-1),o)})(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},n.prototype.fillLast=function(e){if(e.length>=this.lastNeed)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}})),Xt.register("6M3Ye",(function(e,t){function r(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.highWaterMark>i.length)&&this._read(i.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e);s.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",i)}function i(){var e=this;"function"==typeof this._flush?this._flush(((t,r)=>{o(e,t,r)})):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}e.exports=n;var s=Xt("6RDvy"),a=Object.create(Xt("iyl4M"));a.inherits=Xt("5n7Ld"),a.inherits(n,s),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},n.prototype._transform=(e,t,r)=>{throw Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.highWaterMark>i.length)&&this._read(i.highWaterMark)}},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(e,t){var r=this;s.prototype._destroy.call(this,e,(e=>{t(e),r.emit("close")}))}})),Xt.register("6QTGG",(function(e,t){function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}e.exports=r;var n=Xt("6M3Ye"),i=Object.create(Xt("iyl4M"));i.inherits=Xt("5n7Ld"),i.inherits(r,n),r.prototype._transform=(e,t,r)=>{r(null,e)}})),Xt.register("5PIzG",((e,t)=>{e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()})),Xt.register("ituiT",((e,t)=>{})),Xt.register("gGvz1",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function n(e,t,r){const n=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let n=null;if(r.some((e=>{if(void 0!==t[e])return n=t[e],!0})),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n})(r);return i.pluralize(r.locale,t,n[e]).replace("{0}",t)}var i=Xt("xu1bL"),o=Xt("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},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,i,a){return((e,t,i)=>{if(((e,t)=>{const{autoload:n}=t;if(!c[e]){if(!o||!n)throw Error(`Missing locale: ${e}, you must load it manually before using it`);(e=>{try{r(require(`../locales/${e}.js`))}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`)}})(e)}})(i.locale,{autoload:i.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");const a=((e,t)=>{let r=t-e;const n=[];return s.some((e=>{const t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),0>=r)return!0})),n})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(n(t,r,i)),l.length>=i.span)break}return l.join(i.delimiter)})(t,i,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Xt.register("xu1bL",((e,t)=>{e.exports=Xt("lhBDm")})),Xt.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(n(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var o=i[e](t);return void 0!==r[o]?r[o]:null}function n(e){(e=>void 0!==i[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var i={},o={create(e){return n(e),{pluralize(r,n){return t(e,r,n)}}},addLocale(e,t){i[e]=t},pluralize:t};void 0!==e.exports?e.exports=o:this.numerous=o}).call(e.exports)})),Xt.register("7IZzv",((e,t)=>{e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)}));var Yt=Xt("gF2Jd"),Kt={};const Jt="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Qt=Jt?";":":";var Zt,er={};Zt="win32"===process.platform||zt.TESTING_WINDOWS?Xt("jUvGx"):Xt("lNi8N"),er=r,r.sync=(e,t)=>{try{return Zt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const tr=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),rr=(e,t)=>{const r=t.colon||Qt,n=e.match(/\//)||Jt&&e.match(/\\/)?[""]:[...Jt?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Jt?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Jt?i.split(r):[""];return Jt&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i}},nr=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:i,pathExtExe:o}=rr(e,t),s=[],a=r=>new Promise(((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(tr(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=$gCrli$join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(c(d,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===i.length)return l(a(r+1));const d=i[n];er(e+d,{pathExt:o},((i,o)=>{if(!i&&o){if(!t.all)return l(e+d);s.push(e+d)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let ir;Kt=nr,nr.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:i}=rr(e,t),o=[];for(let s=0;r.length>s;s++){const a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=$gCrli$join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){const r=u+n[e];try{if(er.sync(r,{pathExt:i})){if(!t.all)return r;o.push(r)}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw tr(e)};var or,sr={},ar={},cr={},lr={};const ur=(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 dr,pr;(lr=ur).default=ur,or=e=>i(e)||i(e,!0);const hr=/([()\][%!^"`<>&|;, *?])/g;dr=e=>e.replace(hr,"^$1"),pr=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(hr,"^$1"),t&&(e=e.replace(hr,"^$1")),e);var fr,mr,gr;mr=/^#!(.*)/,fr=(e="")=>{const t=e.match(mr);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i},gr=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 fr(""+t)};const yr="win32"===process.platform,vr=/\.(?:com|exe)$/i,br=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;cr=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!yr)return e;const t=(e=>{e.file=or(e);const t=e.file&&gr(e.file);return t?(e.args.unshift(e.file),e.command=t,or(e)):e.file})(e),r=!vr.test(t);if(e.options.forceShell||r){const r=br.test(t);e.command=$gCrli$normalize(e.command),e.command=dr(e.command),e.args=e.args.map((e=>pr(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)};var wr={};const Er="win32"===process.platform;var xr;wr={hookChildProcess(e,t){if(!Er)return;const r=e.emit;e.emit=function(n,i){if("exit"===n){const n=s(i,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:s,verifyENOENTSync(e,t){return Er&&1===e&&!t.file?o(t.original,"spawnSync"):null},notFoundError:o},(ar=a).spawn=a,ar.sync=(e,t,r)=>{const n=cr(e,t,r),i=$gCrli$spawnSync(n.command,n.args,n.options);return i.error=i.error||wr.verifyENOENTSync(i.status,n),i},ar._parse=cr,ar._enoent=wr,xr=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 _r={};const Sr=e=>{let t;e={cwd:process.cwd(),path:process.env[lr()],execPath:process.execPath,...e};let r=$gCrli$resolve(e.cwd);const n=[];for(;t!==r;)n.push($gCrli$join(r,"node_modules/.bin")),t=r,r=$gCrli$resolve(r,"..");const i=$gCrli$resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join($gCrli$delimiter)};(_r=Sr).default=Sr,_r.env=e=>{const t={...(e={env:process.env,...e}).env},r=lr({env:t});return e.path=t[r],t[r]=_r(e),t};var $r={},Cr={};const Tr=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(Cr=Tr).default=Tr;const Or=new WeakMap,Rr=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"",o=function(...s){if(Or.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r};return Cr(o,e),Or.set(o,n),o};($r=Rr).default=Rr,$r.callCount=e=>{if(!Or.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Or.get(e)};var Ar,Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.signalsByNumber=Ir.signalsByName=void 0;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.getSignals=void 0;var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.SIGNALS=void 0,kr.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 Nr={};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.SIGRTMAX=Nr.getRealtimeSignals=void 0,Nr.getRealtimeSignals=()=>Array.from({length:Dr-jr+1},Lr);const Lr=(e,t)=>({name:"SIGRT"+(t+1),number:jr+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),jr=34,Dr=64;Nr.SIGRTMAX=Dr,Pr.getSignals=()=>{const e=(0,Nr.getRealtimeSignals)();return[...kr.SIGNALS,...e].map(Ur)};const Ur=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{const{signals:{[e]:s}}=$gCrli$constants1,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o}},Mr=(0,Pr.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}})),{});Ir.signalsByName=Mr;const Fr=(()=>{const e=(0,Pr.getSignals)(),t=Array.from({length:Nr.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:n,description:i,supported:o,action:s,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();Ir.signalsByNumber=Fr;var Br=Ir.signalsByName;Ar=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(i=null===i?void 0:i)?void 0:Br[i].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:p,exitCode:o=null===o?void 0:o,isCanceled:l}),f=`Command ${h}: ${s}`,m="[object Error]"==={}.toString.call(n),g=m?`${f}\n${n.message}`:f,y=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var Hr={};const qr=["stdin","stdout","stderr"],Gr=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return qr.map((t=>e[t]));if((e=>qr.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+qr.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,qr.length)},((e,r)=>t[r]))};(Hr=Gr).node=e=>{const t=Gr(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var zr,Vr={},Wr=zt.process;const Xr=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(Xr(Wr)){var Yr,Kr=Ot,Jr=Xt("3FPvT"),Qr=/^win/i.test(Wr.platform),Zr=Tt;"function"!=typeof Zr&&(Zr=Zr.EventEmitter),Wr.__signal_exit_emitter__?Yr=Wr.__signal_exit_emitter__:((Yr=Wr.__signal_exit_emitter__=new Zr).count=0,Yr.emitted={}),Yr.infinite||(Yr.setMaxListeners(1/0),Yr.infinite=!0),Vr=(e,t)=>{if(!Xr(zt.process))return()=>{};Kr.equal(typeof e,"function","a callback must be provided for exit handler"),!1===nn&&on();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Yr.on(r,e),()=>{Yr.removeListener(r,e),0===Yr.listeners("exit").length&&0===Yr.listeners("afterexit").length&&en()}};var en=()=>{nn&&Xr(zt.process)&&(nn=!1,Jr.forEach((e=>{try{Wr.removeListener(e,rn[e])}catch(e){}})),Wr.emit=cn,Wr.reallyExit=sn,Yr.count-=1)};Vr.unload=en;var tn=(e,t,r)=>{Yr.emitted[e]||(Yr.emitted[e]=!0,Yr.emit(e,t,r))},rn={};Jr.forEach((e=>{rn[e]=()=>{Xr(zt.process)&&Wr.listeners(e).length===Yr.count&&(en(),tn("exit",null,e),tn("afterexit",null,e),Qr&&"SIGHUP"===e&&(e="SIGINT"),Wr.kill(Wr.pid,e))}})),Vr.signals=()=>Jr;var nn=!1,on=()=>{!nn&&Xr(zt.process)&&(nn=!0,Yr.count+=1,Jr=Jr.filter((e=>{try{return Wr.on(e,rn[e]),!0}catch(e){return!1}})),Wr.emit=ln,Wr.reallyExit=an)};Vr.load=on;var sn=Wr.reallyExit,an=e=>{Xr(zt.process)&&(Wr.exitCode=e||0,tn("exit",Wr.exitCode,null),tn("afterexit",Wr.exitCode,null),sn.call(Wr,Wr.exitCode))},cn=Wr.emit,ln=function(e,t){if("exit"===e&&Xr(zt.process)){void 0!==t&&(Wr.exitCode=t);var r=cn.apply(this,arguments);return tn("exit",Wr.exitCode,null),tn("afterexit",Wr.exitCode,null),r}return cn.apply(this,arguments)}}else Vr=()=>()=>{};const un=e=>e===$gCrli$constants1.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var dn,pn=(zr={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>un(e)&&!1!==t&&r)(t,r,n))return;const i=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),o=setTimeout((()=>{e("SIGKILL")}),i);o.unref&&o.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let i;const o=new Promise(((n,o)=>{i=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,o)}),t)})),s=n.finally((()=>{clearTimeout(i)}));return Promise.race([o,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},n){if(!t||r)return n;const i=Vr((()=>{e.kill()}));return n.finally((()=>{i()}))}}).spawnedKill,hn=zr.spawnedCancel,fn=zr.setupTimeout,mn=zr.validateTimeout,gn=zr.setExitHandler,yn={};const vn=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;vn.writable=e=>vn(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,vn.readable=e=>vn(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,vn.duplex=e=>vn.writable(e)&&vn.readable(e),vn.transform=e=>vn.duplex(e)&&"function"==typeof e._transform,yn=vn;var bn,wn={},En=$gCrli$constants2,xn=$gCrli$promisify,_n=$gCrli$PassThrough;bn=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);const o=new _n({objectMode:i});r&&o.setEncoding(r);let s=0;const a=[];return o.on("data",(e=>{a.push(e),i?s=a.length:s+=e.length})),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o};const Sn=xn($gCrli$pipeline);class $n extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(wn=c).buffer=(e,t)=>c(e,{...t,encoding:"buffer"}),wn.array=(e,t)=>c(e,{...t,array:!0}),wn.MaxBufferError=$n;var Cn,Tn=$gCrli$PassThrough;Cn=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(n.push(t),t.once("end",r.bind(null,t)),t.once("error",i.emit.bind(i,"error")),t.pipe(i,{end:!1}),this)}function t(){return 0==n.length}function r(e){!(n=n.filter((t=>t!==e))).length&&i.readable&&i.end()}var n=[],i=new Tn({objectMode:!0});return i.setMaxListeners(0),i.add=e,i.isEmpty=t,i.on("unpipe",r),[].slice.call(arguments).forEach(e),i};const On=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Rn=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?wn(e,{encoding:t,maxBuffer:n}):wn.buffer(e,{maxBuffer:n})};var An,In=(dn={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(yn(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Cn();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s){const a=Rn(e,{encoding:n,buffer:i,maxBuffer:o}),c=Rn(t,{encoding:n,buffer:i,maxBuffer:o}),l=Rn(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},On(e,a),On(t,c),On(r,l)])}},validateInputSync({input:e}){if(yn(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,Pn=dn.getSpawnedResult,kn=dn.makeAllStream,Nn=dn.validateInputSync;const Ln=(async()=>{})().constructor.prototype,jn=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Ln,e)]));var Dn,Un=(An={mergePromise(e,t){for(const[r,n]of jn){const i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},getSpawnedPromise(e){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,Mn=An.getSpawnedPromise;const Fn=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Bn=/^[\w.-]+$/,Hn=/"/g,qn=/ +/g;var Gn=(Dn={joinCommand(e,t){return Fn(e,t).join(" ")},getEscapedCommand(e,t){return Fn(e,t).map((e=>(e=>"string"!=typeof e||Bn.test(e)?e:`"${e.replace(Hn,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(qn)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,zn=Dn.parseCommand,Vn=Dn.getEscapedCommand;const Wn=(e,t,r={})=>{const n=ar._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{const o=t?{...process.env,...e}:e;return r?_r.env({env:o,cwd:n,execPath:i}):o})(r),r.stdio=Hr(r),"win32"===process.platform&&"cmd"===$gCrli$basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Xn=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?xr(t):t:void 0===r?void 0:"",Yn=(e,t,r)=>{const n=Wn(e,t,r),i=Gn(e,t),o=Vn(e,t);let s;mn(n.options);try{s=$gCrli$spawn(n.file,n.args,n.options)}catch(e){const t=new $gCrli$ChildProcess,r=Promise.reject(Ar({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Un(t,r)}const a=Mn(s),c=fn(s,n.options,a),l=gn(s,n.options,c),u={isCanceled:!1};s.kill=pn.bind(null,s.kill.bind(s)),s.cancel=hn.bind(null,s,u);const d=$r((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await Pn(s,n.options,l),h=Xn(n.options,c),f=Xn(n.options,d),m=Xn(n.options,p);if(e||0!==t||null!==r){const c=Ar({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:i,escapedCommand:o,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:s.killed});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:o,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return In(s,n.options.input),s.all=kn(s,n.options),Un(s,d)};(sr=Yn).sync=(e,t,r)=>{const n=Wn(e,t,r),i=Gn(e,t),o=Vn(e,t);let s;Nn(n.options);try{s=$gCrli$spawnSync(n.file,n.args,n.options)}catch(e){throw Ar({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=Xn(n.options,s.stdout,s.error),c=Xn(n.options,s.stderr,s.error);if(s.error||0!==s.status||null!==s.signal){const e=Ar({stdout:a,stderr:c,error:s.error,signal:s.signal,exitCode:s.status,command:i,escapedCommand:o,parsed:n,timedOut:s.error&&"ETIMEDOUT"===s.error.code,isCanceled:!1,killed:null!==s.signal});if(!n.options.reject)return e;throw e}return{command:i,escapedCommand:o,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},sr.command=(e,t)=>{const[r,...n]=zn(e);return Yn(r,n,t)},sr.commandSync=(e,t)=>{const[r,...n]=zn(e);return Yn.sync(r,n,t)},sr.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=Hr.node(r),i=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return Yn(o,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})},Yt=Xt("gF2Jd");var Kn,Jn=Xt("ywN2f");Yt=Xt("gF2Jd"),Jn=Xt("ywN2f");const Qn=$gCrli$homedir();Kn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Qn?e.replace(/^~(?=$|\/|\\)/,Qn):e};var Zn=Xt("81ovw");let ei;var ti;const ri="win32"!==$gCrli$platform(),ni=$gCrli$release(),ii=/(\d+\.\d+)\.(\d+)/;ti=e=>ri?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...ii.exec(ni).splice(1))?e:e.replace(/(\s+)/g,"%20");const oi=d(".cpprc");let si=!1,ai=!1,ci=!1;Zn=Xt("81ovw");let li=!1,ui=!1;Yt=Xt("gF2Jd");let di,pi=!1;Yt=Xt("gF2Jd"),Zn=Xt("81ovw");let hi,fi,mi,gi=!1;Zn=Xt("81ovw");var yi=Xt("2fNe7"),vi=(Zn=Xt("81ovw"),{}),bi=$gCrli$resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),wi=vi&&vi.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),Ei=vi&&vi.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),xi=vi&&vi.__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)&&wi(t,e,r);return Ei(t,e),t}),_i=vi&&vi.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))),Si=vi&&vi.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(vi,"__esModule",{value:!0}),vi.evaluateVersions=vi.isExplicitVersion=vi.findFromManifest=vi.getManifestFromRepo=vi.findAllVersions=vi.find=vi.cacheFile=vi.cacheDir=vi.extractZip=vi.extractXar=vi.extractTar=vi.extract7z=vi.downloadTool=vi.HTTPError=void 0;const $i=xi(Xt("gF2Jd")),Ci=xi(Xt("2fNe7")),Ti=xi(_t),Oi=xi(Xt("biqIc")),Ri=xi(wt),Ai=xi(xt),Ii=xi(Xt("9kh6d")),Pi=xi(Xt("dsEdn")),ki=xi(Nt),Ni=xi(Rt),Li=Si(Xt("8XxoC"));var ji=Xt("eGKv1"),Di={},Ui=Di&&Di.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),Mi=Di&&Di.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Fi=Di&&Di.__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)&&Ui(t,e,r);return Mi(t,e),t}),Bi=Di&&Di.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(Di,"__esModule",{value:!0}),Di.RetryHelper=void 0;const Hi=Fi(Xt("gF2Jd"));Di.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;Hi.info(e.message)}const n=this.getSleepAmount();Hi.info(`Waiting ${n} seconds before trying again`),yield this.sleep(n),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 qi extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}vi.HTTPError=qi;const Gi="win32"===process.platform,zi="darwin"===process.platform;let Vi;vi.downloadTool=function(e,t,r,n){return _i(this,void 0,void 0,(function*(){t=t||Ai.join(q(),Li.default()),yield Ci.mkdirP(Ai.dirname(t)),$i.debug("Downloading "+e),$i.debug("Destination "+t);const i=G("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=G("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new Di.RetryHelper(3,i,o);return yield s.execute((()=>_i(this,void 0,void 0,(function*(){return yield function(e,t,r,n){return _i(this,void 0,void 0,(function*(){if(Ti.existsSync(t))throw Error(`Destination file path ${t} already exists`);const i=new Ii.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&($i.debug("set auth"),void 0===n&&(n={}),n.authorization=r);const o=yield i.get(e,n);if(200!==o.message.statusCode){const t=new qi(o.message.statusCode);throw $i.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}const s=Ni.promisify(ki.pipeline),a=G("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message))();let c=!1;try{return yield s(a,Ti.createWriteStream(t)),$i.debug("download complete"),c=!0,t}finally{if(!c){$i.debug("download failed");try{yield Ci.rmRF(t)}catch(e){$i.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,n)}))),(e=>!(e instanceof qi&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},vi.extract7z=function(e,t,r){return _i(this,void 0,void 0,(function*(){$gCrli$ok(Gi,"extract7z() not supported on current OS"),$gCrli$ok(e,'parameter "file" is required'),t=yield D(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",$i.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],i={silent:!0};yield ji.exec(`"${r}"`,t,i)}finally{process.chdir(n)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Ai.join(bi,"..","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,"")}'`],i={silent:!0};try{const e=yield Ci.which("powershell",!0);yield ji.exec(`"${e}"`,r,i)}finally{process.chdir(n)}}return t}))},vi.extractTar=function(e,t,r="xz"){return _i(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield D(t),$i.debug("Checking tar --version");let n="";yield ji.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e},stderr(e){return n+=""+e}}}),$i.debug(n.trim());const i=n.toUpperCase().includes("GNU TAR");let o;o=r instanceof Array?r:[r],$i.isDebug()&&!r.includes("v")&&o.push("-v");let s=t,a=e;return Gi&&i&&(o.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),i&&(o.push("--warning=no-unknown-keyword"),o.push("--overwrite")),o.push("-C",s,"-f",a),yield ji.exec("tar",o),t}))},vi.extractXar=function(e,t,r=[]){return _i(this,void 0,void 0,(function*(){let n;$gCrli$ok(zi,"extractXar() not supported on current OS"),$gCrli$ok(e,'parameter "file" is required'),t=yield D(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),$i.isDebug()&&n.push("-v");const i=yield Ci.which("xar",!0);var o;return yield ji.exec(`"${i}"`,(o=n,Array.from(new Set(o)))),t}))},vi.extractZip=function(e,t){return _i(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield D(t),Gi?yield function(e,t){return _i(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield Ci.which("pwsh",!1);if(i){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];$i.debug("Using pwsh at path: "+i),yield ji.exec(`"${i}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],t=yield Ci.which("powershell",!0);$i.debug("Using powershell at path: "+t),yield ji.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return _i(this,void 0,void 0,(function*(){const r=yield Ci.which("unzip",!0),n=[e];$i.isDebug()||n.unshift("-q"),n.unshift("-o"),yield ji.exec(`"${r}"`,n,{cwd:t})}))}(e,t),t}))},vi.cacheDir=function(e,t,r,n){return _i(this,void 0,void 0,(function*(){if(r=Pi.clean(r)||r,n=n||Ri.arch(),$i.debug(`Caching tool ${t} ${r} ${n}`),$i.debug("source dir: "+e),!Ti.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const i=yield U(t,r,n);for(const t of Ti.readdirSync(e)){const r=Ai.join(e,t);yield Ci.cp(r,i,{recursive:!0})}return M(t,r,n),i}))},vi.cacheFile=function(e,t,r,n,i){return _i(this,void 0,void 0,(function*(){if(n=Pi.clean(n)||n,i=i||Ri.arch(),$i.debug(`Caching tool ${r} ${n} ${i}`),$i.debug("source file: "+e),!Ti.statSync(e).isFile())throw Error("sourceFile is not a file");const o=yield U(r,n,i),s=Ai.join(o,t);return $i.debug("destination file "+s),yield Ci.cp(e,s),M(r,n,i),o}))},vi.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Ri.arch(),F(t)||(t=B(j(e,r),t));let n="";if(t){t=Pi.clean(t)||"";const i=Ai.join(H(),e,t,r);$i.debug("checking cache: "+i),Ti.existsSync(i)&&Ti.existsSync(i+".complete")?($i.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):$i.debug("not found")}return n},vi.findAllVersions=j,vi.getManifestFromRepo=function(e,t,r,n="master"){return _i(this,void 0,void 0,(function*(){let i=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new Ii.HttpClient("tool-cache"),a={};r&&($i.debug("set auth"),a.authorization=r);const c=yield s.getJson(o,a);if(!c.result)return i;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u)}catch(e){$i.debug("Invalid json")}}return i}))},vi.findFromManifest=function(e,t,r,n=Ri.arch()){return _i(this,void 0,void 0,(function*(){return yield Oi._findMatch(e,t,r,n)}))},vi.isExplicitVersion=F,vi.evaluateVersions=B,Yt=Xt("gF2Jd"),Jn=Xt("ywN2f");let Wi=!1;var Xi,Yi=Xt("kNWZ7"),Ki=Xt("3wKw1"),Ji=(ji=Xt("eGKv1"),Yt=Xt("gF2Jd"),Jn=Xt("ywN2f"),Zn=Xt("81ovw"),{}),Qi=$gCrli$Writable,Zi={},eo=$gCrli$PassThrough;(te.prototype=Object.create($gCrli$Duplex.prototype,{constructor:{value:te}}))._write=function(e,t,r){this._writable.write(e,t,r)},te.prototype._read=function(){for(var e,t=0;null!==(e=this._readable.read());)this.push(e),t++;0===t&&(this._waiting=!0)},(Xi=(e,t,r)=>new te(e,t,r)).DuplexWrapper=te;var to,ro=to=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;ro.writable=e=>ro(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,ro.readable=e=>ro(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,ro.duplex=e=>ro.writable(e)&&ro.readable(e),ro.transform=e=>ro.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState;var no,io,oo,so,ao,co,lo={},uo=$gCrli$PassThrough;no=e=>{const t=(e=Object.assign({},e)).array;let r=e.encoding;const n="buffer"===r;let i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=0;const s=[],a=new uo({objectMode:i});return r&&a.setEncoding(r),a.on("data",(e=>{s.push(e),i?o=s.length:o+=e.length})),a.getBufferedValue=()=>t?s:n?Buffer.concat(s,o):s.join(""),a.getBufferedLength=()=>o,a},(lo=re).buffer=(e,t)=>re(e,Object.assign({},t,{encoding:"buffer"})),lo.array=(e,t)=>re(e,Object.assign({},t,{array:!0})),io=(e,t)=>{function r(){e.timeoutTimer&&(clearTimeout(e.timeoutTimer),e.timeoutTimer=null)}function n(){r(),void 0!==i.socket&&e.setTimeout(i.socket,(()=>{e.abort();var t=Error("Socket timed out on request"+o);t.code="ESOCKETTIMEDOUT",e.emit("error",t)}))}if(e.timeoutTimer)return e;var i=isNaN(t)?t:{socket:t,connect:t},o=e._headers?" to "+e._headers.host:"";return void 0!==i.connect&&(e.timeoutTimer=setTimeout((()=>{e.abort();var t=Error("Connection timed out on request"+o);t.code="ETIMEDOUT",e.emit("error",t)}),i.connect)),e.on("socket",(e=>{e.connecting||e._connecting?e.once("connect",n):n()})),e.on("error",r)},so=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return e=e.trim(),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,"http://")},oo=e=>{var t=so(e),r=Ut(t);return t!==e&&(r.protocol=null),r},ao=e=>{for(var t={},r=Object.keys(Object(e)),n=0;r.length>n;n++)t[r[n].toLowerCase()]=e[r[n]];return t},co=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");return 300===e||301===e||302===e||303===e||305===e||307===e||308===e};var po,ho=$gCrli$PassThrough;po=e=>{if(-1===["gzip","deflate"].indexOf(e.headers["content-encoding"]))return e;const t=Ft(),r=new ho;return r.httpVersion=e.httpVersion,r.headers=e.headers,r.rawHeaders=e.rawHeaders,r.trailers=e.trailers,r.rawTrailers=e.rawTrailers,r.setTimeout=e.setTimeout.bind(e),r.statusCode=e.statusCode,r.statusMessage=e.statusMessage,r.socket=e.socket,t.on("error",(e=>{"Z_BUF_ERROR"!==e.code?r.emit("error",e):r.end()})),e.pipe(t).pipe(r),r};var fo,mo={};mo=Error.captureStackTrace||function(e){var t=Error();Object.defineProperty(e,"stack",{configurable:!0,get(){var e=t.stack;return Object.defineProperty(this,"stack",{value:e}),e}})},fo=function(e,t){if("string"!=typeof e)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(e))throw Error("className contains invalid characters");t=t||function(e){this.message=e};var r,n,i=function(){Object.defineProperty(this,"name",{configurable:!0,value:e,writable:!0}),mo(this,this.constructor),t.apply(this,arguments)};return(r=i).super_=n=Error,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i};var go,yo=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],vo=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];go=e=>!e||!e.code||-1!==yo.indexOf(e.code)||-1===vo.indexOf(e.code);var bo={},wo=Lt.Buffer;wo.from&&wo.alloc&&wo.allocUnsafe&&wo.allocUnsafeSlow?bo=Lt:(ne(Lt,bo),bo.Buffer=ie),ie.prototype=Object.create(wo.prototype),ne(wo,ie),ie.from=(e,t,r)=>{if("number"==typeof e)throw new TypeError("Argument must not be a number");return wo(e,t,r)},ie.alloc=(e,t,r)=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=wo(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},ie.allocUnsafe=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return wo(e)},ie.allocUnsafeSlow=e=>{if("number"!=typeof e)throw new TypeError("Argument must be a number");return Lt.SlowBuffer(e)};var Eo,xo=bo.Buffer;Eo=JSON.parse('{"name":"got","version":"6.7.1","description":"Simplified HTTP requests","license":"MIT","repository":"sindresorhus/got","maintainers":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"}],"engines":{"node":">=4"},"browser":{"unzip-response":false},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch"],"dependencies":{"create-error-class":"^3.0.0","duplexer3":"^0.1.4","get-stream":"^3.0.0","is-redirect":"^1.0.0","is-retry-allowed":"^1.0.0","is-stream":"^1.0.0","lowercase-keys":"^1.0.0","safe-buffer":"^5.0.1","timed-out":"^4.0.0","unzip-response":"^2.0.1","url-parse-lax":"^1.0.0"},"devDependencies":{"ava":"^0.17.0","coveralls":"^2.11.4","form-data":"^2.1.1","get-port":"^2.0.0","into-stream":"^3.0.0","nyc":"^10.0.0","pem":"^1.4.4","pify":"^2.3.0","tempfile":"^1.1.1","xo":"*"},"xo":{"esnext":true},"ava":{"concurrency":4}}');const _o=["get","post","put","patch","head","delete"];_o.forEach((e=>{ae[e]=(t,r)=>ae(t,Object.assign({},r,{method:e}))})),ae.stream=(e,t)=>(e=>{const t=new eo,r=new eo,n=Xi(t,r);if(e.json)throw Error("got can not be used as stream when options.json is used");e.body&&(n.write=()=>{throw Error("got's stream is not writable when options.body is used")});const i=oe(e);return i.on("request",(r=>{n.emit("request",r),to(e.body)?e.body.pipe(r):e.body?r.end(e.body):"POST"!==e.method&&"PUT"!==e.method&&"PATCH"!==e.method?r.end():t.pipe(r)})),i.on("response",(t=>{const i=t.statusCode;t.pipe(r),200>i||i>299?n.emit("error",new ae.HTTPError(i,e),null,t):n.emit("response",t)})),i.on("redirect",n.emit.bind(n,"redirect")),i.on("error",n.emit.bind(n,"error")),n})(se(e,t));for(const e of _o)ae.stream[e]=(t,r)=>ae.stream(t,Object.assign({},r,{method:e}));ae.RequestError=fo("RequestError",ce),ae.ReadError=fo("ReadError",ce),ae.ParseError=fo("ParseError",(function(e,t,r,n){ce.call(this,e,r),this.statusCode=t,this.statusMessage=St.STATUS_CODES[this.statusCode],this.message=`${e.message} in "${Dt(r)}": \n${n.slice(0,77)}...`})),ae.HTTPError=fo("HTTPError",(function(e,t){ce.call(this,{},t),this.statusCode=e,this.statusMessage=St.STATUS_CODES[this.statusCode],this.message=`Response code ${this.statusCode} (${this.statusMessage})`})),ae.MaxRedirectsError=fo("MaxRedirectsError",(function(e,t){ce.call(this,{},t),this.statusCode=e,this.statusMessage=St.STATUS_CODES[this.statusCode],this.message="Redirected 10 times. Aborting."})),Zi=ae;var So,$o,Co,To={};e(To,"v4",(()=>$o),(e=>$o=e)),e(To,"v6",(()=>Co),(e=>Co=e));var Oo,Ro,Ao,Io,Po,ko,No,Lo={};Io=e=>{switch(e){case 1:return"A";case 10:return"NULL";case 28:return"AAAA";case 18:return"AFSDB";case 42:return"APL";case 257:return"CAA";case 60:return"CDNSKEY";case 59:return"CDS";case 37:return"CERT";case 5:return"CNAME";case 49:return"DHCID";case 32769:return"DLV";case 39:return"DNAME";case 48:return"DNSKEY";case 43:return"DS";case 55:return"HIP";case 13:return"HINFO";case 45:return"IPSECKEY";case 25:return"KEY";case 36:return"KX";case 29:return"LOC";case 15:return"MX";case 35:return"NAPTR";case 2:return"NS";case 47:return"NSEC";case 50:return"NSEC3";case 51:return"NSEC3PARAM";case 12:return"PTR";case 46:return"RRSIG";case 17:return"RP";case 24:return"SIG";case 6:return"SOA";case 99:return"SPF";case 33:return"SRV";case 44:return"SSHFP";case 32768:return"TA";case 249:return"TKEY";case 52:return"TLSA";case 250:return"TSIG";case 16:return"TXT";case 252:return"AXFR";case 251:return"IXFR";case 41:return"OPT";case 255:return"ANY"}return"UNKNOWN_"+e},Po=e=>{switch(e.toUpperCase()){case"A":return 1;case"NULL":return 10;case"AAAA":return 28;case"AFSDB":return 18;case"APL":return 42;case"CAA":return 257;case"CDNSKEY":return 60;case"CDS":return 59;case"CERT":return 37;case"CNAME":return 5;case"DHCID":return 49;case"DLV":return 32769;case"DNAME":return 39;case"DNSKEY":return 48;case"DS":return 43;case"HIP":return 55;case"HINFO":return 13;case"IPSECKEY":return 45;case"KEY":return 25;case"KX":return 36;case"LOC":return 29;case"MX":return 15;case"NAPTR":return 35;case"NS":return 2;case"NSEC":return 47;case"NSEC3":return 50;case"NSEC3PARAM":return 51;case"PTR":return 12;case"RRSIG":return 46;case"RP":return 17;case"SIG":return 24;case"SOA":return 6;case"SPF":return 99;case"SRV":return 33;case"SSHFP":return 44;case"TA":return 32768;case"TKEY":return 249;case"TLSA":return 52;case"TSIG":return 250;case"TXT":return 16;case"AXFR":return 252;case"IXFR":return 251;case"OPT":return 41;case"ANY":case"*":return 255}return 0},ko=e=>{switch(e){case 0:return"NOERROR";case 1:return"FORMERR";case 2:return"SERVFAIL";case 3:return"NXDOMAIN";case 4:return"NOTIMP";case 5:return"REFUSED";case 6:return"YXDOMAIN";case 7:return"YXRRSET";case 8:return"NXRRSET";case 9:return"NOTAUTH";case 10:return"NOTZONE";case 11:return"RCODE_11";case 12:return"RCODE_12";case 13:return"RCODE_13";case 14:return"RCODE_14";case 15:return"RCODE_15"}return"RCODE_"+e},No=e=>{switch(e){case 0:return"QUERY";case 1:return"IQUERY";case 2:return"STATUS";case 3:return"OPCODE_3";case 4:return"NOTIFY";case 5:return"UPDATE";case 6:return"OPCODE_6";case 7:return"OPCODE_7";case 8:return"OPCODE_8";case 9:return"OPCODE_9";case 10:return"OPCODE_10";case 11:return"OPCODE_11";case 12:return"OPCODE_12";case 13:return"OPCODE_13";case 14:return"OPCODE_14";case 15:return"OPCODE_15"}return"OPCODE_"+e};var jo={},Do=jo,Uo=$gCrli$Buffer;Do.toBuffer=function(e,t,r){var n;if(r=~~r,this.isV4Format(e))n=t||new Uo(r+4),e.split(/\./g).map((e=>{n[r++]=255&parseInt(e,10)}));else if(this.isV6Format(e)){var i,o=e.split(":",8);for(i=0;o.length>i;i++){var s;this.isV4Format(o[i])&&(s=this.toBuffer(o[i]),o[i]=s.slice(0,2).toString("hex")),s&&8>++i&&o.splice(i,0,s.slice(2,4).toString("hex"))}if(""===o[0])for(;8>o.length;)o.unshift("0");else if(""===o[o.length-1])for(;8>o.length;)o.push("0");else if(8>o.length){for(i=0;o.length>i&&""!==o[i];i++);var a=[i,1];for(i=9-o.length;i>0;i--)a.push("0");o.splice.apply(o,a)}for(n=t||new Uo(r+16),i=0;o.length>i;i++){var c=parseInt(o[i],16);n[r++]=c>>8&255,n[r++]=255&c}}if(!n)throw Error("Invalid ip address: "+e);return n},Do.toString=(e,t,r)=>{t=~~t;var n,i=[];if(4===(r=r||e.length-t)){for(n=0;r>n;n++)i.push(e[t+n]);i=i.join(".")}else if(16===r){for(n=0;r>n;n+=2)i.push(e.readUInt16BE(t+n).toString(16));i=(i=(i=i.join(":")).replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3")).replace(/:{3,4}/,"::")}return i};var Mo=/^(\d{1,3}\.){3,3}\d{1,3}$/,Fo=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;Do.isV4Format=e=>Mo.test(e),Do.isV6Format=e=>Fo.test(e),Do.fromPrefixLen=(e,t)=>{var r=4;"ipv6"===(t=e>32?"ipv6":le(t))&&(r=16);for(var n=new Uo(r),i=0,o=n.length;o>i;++i){var s=8;8>e&&(s=e),e-=s,n[i]=255&~(255>>s)}return Do.toString(n)},Do.mask=(e,t)=>{e=Do.toBuffer(e),t=Do.toBuffer(t);var r,n=new Uo(Math.max(e.length,t.length));if(e.length===t.length)for(r=0;e.length>r;r++)n[r]=e[r]&t[r];else if(4===t.length)for(r=0;t.length>r;r++)n[r]=e[e.length-4+r]&t[r];else{for(r=0;n.length-6>r;r++)n[r]=0;for(n[10]=255,n[11]=255,r=0;e.length>r;r++)n[r+12]=e[r]&t[r+12];r+=12}for(;n.length>r;r++)n[r]=0;return Do.toString(n)},Do.cidr=e=>{var t=e.split("/"),r=t[0];if(2!==t.length)throw Error("invalid CIDR subnet: "+r);var n=Do.fromPrefixLen(parseInt(t[1],10));return Do.mask(r,n)},Do.subnet=(e,t)=>{for(var r=Do.toLong(Do.mask(e,t)),n=Do.toBuffer(t),i=0,o=0;n.length>o;o++)if(255===n[o])i+=8;else for(var s=255&n[o];s;)s=s<<1&255,i++;var a=Math.pow(2,32-i);return{networkAddress:Do.fromLong(r),firstAddress:Do.fromLong(a>2?r+1:r),lastAddress:Do.fromLong(a>2?r+a-2:r+a-1),broadcastAddress:Do.fromLong(r+a-1),subnetMask:t,subnetMaskLength:i,numHosts:a>2?a-2:a,length:a,contains:e=>r===Do.toLong(Do.mask(e,t))}},Do.cidrSubnet=e=>{var t=e.split("/"),r=t[0];if(2!==t.length)throw Error("invalid CIDR subnet: "+r);var n=Do.fromPrefixLen(parseInt(t[1],10));return Do.subnet(r,n)},Do.not=e=>{for(var t=Do.toBuffer(e),r=0;t.length>r;r++)t[r]=255^t[r];return Do.toString(t)},Do.or=(e,t)=>{var r;if(e=Do.toBuffer(e),t=Do.toBuffer(t),e.length===t.length){for(r=0;e.length>r;++r)e[r]|=t[r];return Do.toString(e)}var n=e,i=t;t.length>e.length&&(n=t,i=e);var o=n.length-i.length;for(r=o;n.length>r;++r)n[r]|=i[r-o];return Do.toString(n)},Do.isEqual=(e,t)=>{var r;if(e=Do.toBuffer(e),t=Do.toBuffer(t),e.length===t.length){for(r=0;e.length>r;r++)if(e[r]!==t[r])return!1;return!0}if(4===t.length){var n=t;t=e,e=n}for(r=0;10>r;r++)if(0!==t[r])return!1;var i=t.readUInt16BE(10);if(0!==i&&65535!==i)return!1;for(r=0;4>r;r++)if(e[r]!==t[r+12])return!1;return!0},Do.isPrivate=e=>/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^f[cd][0-9a-f]{2}:/i.test(e)||/^fe80:/i.test(e)||/^::1$/.test(e)||/^::$/.test(e),Do.isPublic=e=>!Do.isPrivate(e),Do.isLoopback=e=>/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(e)||/^fe80::1$/.test(e)||/^::1$/.test(e)||/^::$/.test(e),Do.loopback=e=>{if("ipv4"!==(e=le(e))&&"ipv6"!==e)throw Error("family must be ipv4 or ipv6");return"ipv4"===e?"127.0.0.1":"fe80::1"},Do.address=(e,t)=>{var r=$gCrli$networkInterfaces();if(t=le(t),e&&"private"!==e&&"public"!==e){var n=r[e].filter((e=>le(e.family)===t));if(0===n.length)return;return n[0].address}var i=Object.keys(r).map((n=>{var i=r[n].filter((r=>(r.family=le(r.family),r.family===t&&!Do.isLoopback(r.address)&&(!e||("public"===e?Do.isPrivate(r.address):Do.isPublic(r.address))))));return i.length?i[0].address:void 0})).filter(Boolean);return i.length?i[0]:Do.loopback(t)},Do.toLong=e=>{var t=0;return e.split(".").forEach((e=>{t<<=8,t+=parseInt(e)})),t>>>0},Do.fromLong=e=>`${e>>>24}.${e>>16&255}.${e>>8&255}.${255&e}`;var Bo=bo.Buffer,Ho={encode(e,t,r){t||(t=Bo.alloc(Ho.encodingLength(e))),r||(r=0);var n=r,i=e.replace(/^\.|\.$/gm,"");if(i.length)for(var o=i.split("."),s=0;o.length>s;s++){var a=t.write(o[s],r+1);t[r]=a,r+=a+1}return t[r++]=0,Ho.encode.bytes=r-n,t}};Ho.encode.bytes=0,Ho.decode=(e,t)=>{t||(t=0);var r=[],n=t,i=e[t++];if(0===i)return Ho.decode.bytes=1,".";if(i>=192){var o=Ho.decode(e,e.readUInt16BE(t-1)-49152);return Ho.decode.bytes=2,o}for(;i;){if(i>=192){r.push(Ho.decode(e,e.readUInt16BE(t-1)-49152)),t++;break}r.push(e.toString("utf-8",t,t+i)),t+=i,i=e[t++]}return Ho.decode.bytes=t-n,r.join(".")},Ho.decode.bytes=0,Ho.encodingLength=e=>"."===e||".."===e?1:Bo.byteLength(e.replace(/^\.|\.$/gm,""))+2;var qo={encode(e,t,r){t||(t=Bo.alloc(qo.encodingLength(e))),r||(r=0);var n=t.write(e,r+1);return t[r]=n,qo.encode.bytes=n+1,t}};qo.encode.bytes=0,qo.decode=(e,t)=>{t||(t=0);var r=e[t],n=e.toString("utf-8",t+1,t+1+r);return qo.decode.bytes=r+1,n},qo.decode.bytes=0,qo.encodingLength=e=>Bo.byteLength(e)+1;var Go={encode(e,t,r){t||(t=Go.encodingLength(e)),r||(r=0);var n=32767&(e.flags||0),i="response"===e.type?32768:0;return t.writeUInt16BE(e.id||0,r),t.writeUInt16BE(n|i,r+2),t.writeUInt16BE(e.questions.length,r+4),t.writeUInt16BE(e.answers.length,r+6),t.writeUInt16BE(e.authorities.length,r+8),t.writeUInt16BE(e.additionals.length,r+10),t}};Go.encode.bytes=12,Go.decode=(e,t)=>{if(t||(t=0),12>e.length)throw Error("Header must be 12 bytes");var r=e.readUInt16BE(t+2);return{id:e.readUInt16BE(t),type:32768&r?"response":"query",flags:32767&r,flag_qr:1==(r>>15&1),opcode:No(r>>11&15),flag_auth:1==(r>>10&1),flag_trunc:1==(r>>9&1),flag_rd:1==(r>>8&1),flag_ra:1==(r>>7&1),flag_z:1==(r>>6&1),flag_ad:1==(r>>5&1),flag_cd:1==(r>>4&1),rcode:ko(15&r),questions:Array(e.readUInt16BE(t+4)),answers:Array(e.readUInt16BE(t+6)),authorities:Array(e.readUInt16BE(t+8)),additionals:Array(e.readUInt16BE(t+10))}},Go.decode.bytes=12,Go.encodingLength=()=>12;var zo={encode(e,t,r){return t||(t=Bo.alloc(zo.encodingLength(e))),r||(r=0),t.writeUInt16BE(e.length,r),e.copy(t,r+2),zo.encode.bytes=e.length+2,t}};zo.encode.bytes=0,zo.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=e.slice(t+2,t+2+r);return zo.decode.bytes=r+2,n},zo.decode.bytes=0,zo.encodingLength=e=>e.length+2;var Vo={encode(e,t,r){return t||(t=Bo.alloc(Vo.encodingLength(e))),r||(r=0),Ho.encode(e,t,r+2),t.writeUInt16BE(Ho.encode.bytes,r),Vo.encode.bytes=Ho.encode.bytes+2,t}};Vo.encode.bytes=0,Vo.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=Ho.decode(e,t+2);return Vo.decode.bytes=r+2,n},Vo.decode.bytes=0,Vo.encodingLength=e=>Ho.encodingLength(e)+2;var Wo={encode(e,t,r){t||(t=Bo.alloc(Wo.encodingLength(e))),r||(r=0);var n=r;return Ho.encode(e.mname,t,r+=2),Ho.encode(e.rname,t,r+=Ho.encode.bytes),t.writeUInt32BE(e.serial||0,r+=Ho.encode.bytes),t.writeUInt32BE(e.refresh||0,r+=4),t.writeUInt32BE(e.retry||0,r+=4),t.writeUInt32BE(e.expire||0,r+=4),t.writeUInt32BE(e.minimum||0,r+=4),t.writeUInt16BE((r+=4)-n-2,n),Wo.encode.bytes=r-n,t}};Wo.encode.bytes=0,Wo.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.mname=Ho.decode(e,t+=2),n.rname=Ho.decode(e,t+=Ho.decode.bytes),n.serial=e.readUInt32BE(t+=Ho.decode.bytes),n.refresh=e.readUInt32BE(t+=4),n.retry=e.readUInt32BE(t+=4),n.expire=e.readUInt32BE(t+=4),n.minimum=e.readUInt32BE(t+=4),Wo.decode.bytes=(t+=4)-r,n},Wo.decode.bytes=0,Wo.encodingLength=e=>22+Ho.encodingLength(e.mname)+Ho.encodingLength(e.rname);var Xo={},Yo=Xo;Xo.encode=(e,t,r)=>{t||(t=Bo.alloc(Xo.encodingLength(e))),r||(r=0),"string"==typeof e&&(e=Bo.from(e)),e||(e=Bo.alloc(0));var n=r,i=e.length;return e.copy(t,r+=2,0,i),t.writeUInt16BE((r+=i)-n-2,n),Xo.encode.bytes=r-n,t},Xo.encode.bytes=0,Xo.decode=(e,t)=>{t||(t=0);var r=t,n=e.readUInt16BE(t),i=e.slice(t+=2,t+n);return Xo.decode.bytes=(t+=n)-r,i},Xo.decode.bytes=0,Xo.encodingLength=e=>e?(Bo.isBuffer(e)?e.length:Bo.byteLength(e))+2:2;var Ko={encode(e,t,r){t||(t=Bo.alloc(Ko.encodingLength(e))),r||(r=0);var n=r;return qo.encode(e.cpu,t,r+=2),qo.encode(e.os,t,r+=qo.encode.bytes),t.writeUInt16BE((r+=qo.encode.bytes)-n-2,n),Ko.encode.bytes=r-n,t}};Ko.encode.bytes=0,Ko.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.cpu=qo.decode(e,t+=2),n.os=qo.decode(e,t+=qo.decode.bytes),Ko.decode.bytes=(t+=qo.decode.bytes)-r,n},Ko.decode.bytes=0,Ko.encodingLength=e=>qo.encodingLength(e.cpu)+qo.encodingLength(e.os)+2;var Jo={},Qo=Jo,Zo=Jo;Jo.encode=(e,t,r)=>(t||(t=Bo.alloc(Jo.encodingLength(e))),r||(r=0),Ho.encode(e,t,r+2),t.writeUInt16BE(Ho.encode.bytes,r),Jo.encode.bytes=Ho.encode.bytes+2,t),Jo.encode.bytes=0,Jo.decode=(e,t)=>{t||(t=0);var r=Ho.decode(e,t+2);return Jo.decode.bytes=Ho.decode.bytes+2,r},Jo.decode.bytes=0,Jo.encodingLength=e=>Ho.encodingLength(e)+2;var es={encode(e,t,r){t||(t=Bo.alloc(es.encodingLength(e))),r||(r=0),t.writeUInt16BE(e.priority||0,r+2),t.writeUInt16BE(e.weight||0,r+4),t.writeUInt16BE(e.port||0,r+6),Ho.encode(e.target,t,r+8);var n=Ho.encode.bytes+6;return t.writeUInt16BE(n,r),es.encode.bytes=n+2,t}};es.encode.bytes=0,es.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n={};return n.priority=e.readUInt16BE(t+2),n.weight=e.readUInt16BE(t+4),n.port=e.readUInt16BE(t+6),n.target=Ho.decode(e,t+8),es.decode.bytes=r+2,n},es.decode.bytes=0,es.encodingLength=e=>8+Ho.encodingLength(e.target);var ts={ISSUER_CRITICAL:128,encode(e,t,r){var n=ts.encodingLength(e);return t||(t=Bo.alloc(ts.encodingLength(e))),r||(r=0),e.issuerCritical&&(e.flags=ts.ISSUER_CRITICAL),t.writeUInt16BE(n-2,r),t.writeUInt8(e.flags||0,r+=2),qo.encode(e.tag,t,r+=1),t.write(e.value,r+=qo.encode.bytes),r+=Bo.byteLength(e.value),ts.encode.bytes=n,t}};ts.encode.bytes=0,ts.decode=(e,t)=>{t||(t=0);var r=e.readUInt16BE(t),n=t+=2,i={};return i.flags=e.readUInt8(t),i.tag=qo.decode(e,t+=1),i.value=e.toString("utf-8",t+=qo.decode.bytes,n+r),i.issuerCritical=!!(i.flags&ts.ISSUER_CRITICAL),ts.decode.bytes=r+2,i},ts.decode.bytes=0,ts.encodingLength=e=>qo.encodingLength(e.tag)+qo.encodingLength(e.value)+2;var rs={encode(e,t,r){return t||(t=Bo.alloc(rs.encodingLength(e))),r||(r=0),t.writeUInt16BE(4,r),jo.toBuffer(e,t,r+=2),rs.encode.bytes=6,t}};rs.encode.bytes=0,rs.decode=(e,t)=>{t||(t=0);var r=jo.toString(e,t+=2,4);return rs.decode.bytes=6,r},rs.decode.bytes=0,rs.encodingLength=()=>6;var ns={encode(e,t,r){return t||(t=Bo.alloc(ns.encodingLength(e))),r||(r=0),t.writeUInt16BE(16,r),jo.toBuffer(e,t,r+=2),ns.encode.bytes=18,t}};ns.encode.bytes=0,ns.decode=(e,t)=>{t||(t=0);var r=jo.toString(e,t+=2,16);return ns.decode.bytes=18,r},ns.decode.bytes=0,ns.encodingLength=()=>18;var is=e=>{switch(e.toUpperCase()){case"A":return rs;case"PTR":return Jo;case"CNAME":return Qo;case"DNAME":return Zo;case"TXT":return Xo;case"NULL":return Yo;case"AAAA":return ns;case"SRV":return es;case"HINFO":return Ko;case"CAA":return ts;case"NS":return Vo;case"SOA":return Wo}return zo},os={encode(e,t,r){t||(t=Bo.alloc(os.encodingLength(e))),r||(r=0);var n=r;Ho.encode(e.name,t,r),r+=Ho.encode.bytes,t.writeUInt16BE(Po(e.type),r);var i=void 0===e.class?1:e.class;e.flush&&(i|=32768),t.writeUInt16BE(i,r+2),t.writeUInt32BE(e.ttl||0,r+4);var o=is(e.type);return o.encode(e.data,t,r+8),os.encode.bytes=(r+=8+o.encode.bytes)-n,t}};os.encode.bytes=0,os.decode=(e,t)=>{t||(t=0);var r={},n=t;r.name=Ho.decode(e,t),r.type=Io(e.readUInt16BE(t+=Ho.decode.bytes)),r.class=e.readUInt16BE(t+2),r.ttl=e.readUInt32BE(t+4),r.flush=!!(32768&r.class),r.flush&&(r.class&=-32769);var i=is(r.type);return r.data=i.decode(e,t+8),os.decode.bytes=(t+=8+i.decode.bytes)-n,r},os.decode.bytes=0,os.encodingLength=e=>Ho.encodingLength(e.name)+8+is(e.type).encodingLength(e.data);var ss={encode(e,t,r){t||(t=Bo.alloc(ss.encodingLength(e))),r||(r=0);var n=r;return Ho.encode(e.name,t,r),r+=Ho.encode.bytes,t.writeUInt16BE(Po(e.type),r),t.writeUInt16BE(void 0===e.class?1:e.class,r+=2),ss.encode.bytes=(r+=2)-n,e}};ss.encode.bytes=0,ss.decode=(e,t)=>{t||(t=0);var r=t,n={};return n.name=Ho.decode(e,t),n.type=Io(e.readUInt16BE(t+=Ho.decode.bytes)),n.class=e.readUInt16BE(t+=2),t+=2,!!(32768&n.class)&&(n.class&=-32769),ss.decode.bytes=t-r,n},ss.decode.bytes=0,ss.encodingLength=e=>Ho.encodingLength(e.name)+4,(Oo=(e,t,r)=>{var n=!t;n&&(t=Bo.alloc(Ao(e))),r||(r=0);var i=r;return e.questions||(e.questions=[]),e.answers||(e.answers=[]),e.authorities||(e.authorities=[]),e.additionals||(e.additionals=[]),Go.encode(e,t,r),r=de(e.questions,ss,t,r+=Go.encode.bytes),r=de(e.answers,os,t,r),r=de(e.authorities,os,t,r),r=de(e.additionals,os,t,r),Oo.bytes=r-i,n&&Oo.bytes!==t.length?t.slice(0,Oo.bytes):t}).bytes=0,(Ro=(e,t)=>{t||(t=0);var r=t,n=Go.decode(e,t);return t=pe(n.questions,ss,e,t+=Go.decode.bytes),t=pe(n.answers,os,e,t),t=pe(n.authorities,os,e,t),t=pe(n.additionals,os,e,t),Ro.bytes=t-r,n}).bytes=0,Ao=e=>Go.encodingLength(e)+ue(e.questions||[],ss)+ue(e.answers||[],os)+ue(e.authorities||[],os)+ue(e.additionals||[],os),Lo=he,$gCrli$inherits(he,$gCrli$EventEmitter),he.RECURSION_DESIRED=he.prototype.RECURSION_DESIRED=256,he.RECURSION_AVAILABLE=he.prototype.RECURSION_AVAILABLE=128,he.TRUNCATED_RESPONSE=he.prototype.TRUNCATED_RESPONSE=512,he.AUTHORITATIVE_ANSWER=he.prototype.AUTHORITATIVE_ANSWER=1024,he.AUTHENTIC_DATA=he.prototype.AUTHENTIC_DATA=32,he.CHECKING_DISABLED=he.prototype.CHECKING_DISABLED=16,he.prototype.address=function(){return this.socket.address()},he.prototype.bind=function(e,t){t&&this.once("listening",t),this.socket.bind(e)},he.prototype.destroy=function(e){if(e&&this.once("close",e),!this.destroyed){this.destroyed=!0,clearInterval(this._interval),this.socket.close();for(var t=0;this._queries.length>t;t++){var r=this._queries[t];r&&r.callback(Error("Socket destroyed"))}this._queries=[],this._ids=[],this.inflight=0}},he.prototype._ontimeout=function(){for(var e=0;this._queries.length>e;e++){var t=this._queries[e];t&&(t.tries.length?--t.tries[0]||(t.tries.shift(),this.socket.send(t.buffer,0,t.buffer.length,t.port,t.host)):(this._queries[e]=null,this._ids[e]=0,this.inflight--,this.emit("timeout",t.query,t.port,t.host),t.callback(Error("Query timed out"))))}this._trim()},he.prototype._onmessage=function(e,t){try{var r=Ro(e)}catch(e){return void this.emit("warning",e)}if("response"===r.type&&r.id){var n=this._ids.indexOf(r.id),i=n>-1?this._queries[n]:null;i&&(this.inflight--,this._ids[n]=0,this._queries[n]=null,this._trim(),i.callback(null,r,i.query,t.port,t.address))}this.emit(r.type,r,t.port,t.address)},he.prototype._trim=function(){for(;this._ids.length&&!this._ids[this._ids.length-1];)this._ids.pop(),this._queries.pop()},he.prototype.unref=function(){this.socket.unref()},he.prototype.ref=function(){this.socket.ref()},he.prototype.response=function(e,t,r,n){if(!this.destroyed){t.type="response",t.id=e.id;var i=Oo(t);this.socket.send(i,0,i.length,r,n||"127.0.0.1")}},he.prototype.cancel=function(e){var t=this._ids.indexOf(e),r=this._queries[t];r&&(this._queries[t]=null,this._ids[t]=0,this.inflight--,r.callback(Error("Query cancelled")))},he.prototype.setRetries=function(e,t){var r=this._ids.indexOf(e),n=this._queries[r];if(n){for(;t>n.tries.length;)n.tries.push(n.tries.length?2*n.tries[n.tries.length-1]:4);n.tries.length>t&&(n.tries=n.tries.slice(0,t))}},he.prototype.query=function(e,t,r,n){if("function"==typeof r)return this.query(e,t,null,r);if(n||(n=fe),this.destroyed)return((e,t)=>{process.nextTick((()=>{e(t)}))})(n,Error("Socket destroyed")),0;this.inflight++,e.type="query",e.flags="number"==typeof e.flags?e.flags:he.RECURSION_DESIRED;var i=e.id=this._id++;65535===this._id&&(this._id=1);var o=this._ids.indexOf(0);-1===o&&(o=this._ids.push(0)-1),this._queries.length===o&&this._queries.push(null);var s=Oo(e),a=this._triesArray.slice(0);return this._ids[o]=i,this._queries[o]={callback:n,tries:a,query:e,buffer:s,port:t,host:r},this.socket.send(s,0,s.length,t,r||"127.0.0.1"),i};var as,cs,ls,us,ds={},ps=$gCrli$PassThrough,hs=$gCrli$Transform,fs={};us=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()));var ms={},gs=Object.getOwnPropertySymbols,ys={}.hasOwnProperty,vs={}.propertyIsEnumerable;ms=(()=>{try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;10>r;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((e=>t[e])).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((e=>{n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()?Object.assign:function(e,t){for(var r,n,i=ge(e),o=1;arguments.length>o;o++){for(var s in r=Object(arguments[o]))ys.call(r,s)&&(i[s]=r[s]);if(gs){n=gs(r);for(var a=0;n.length>a;a++)vs.call(r,n[a])&&(i[n[a]]=r[n[a]])}}return i};var bs,ws,Es=RegExp("%[a-f0-9]{2}","gi"),xs=RegExp("(%[a-f0-9]{2})+","gi");bs=e=>{if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return(e=>{for(var t={"%FE%FF":"��","%FF%FE":"��"},r=xs.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=ve(r[0]);n!==r[0]&&(t[r[0]]=n)}r=xs.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),o=0;i.length>o;o++){var s=i[o];e=e.replace(RegExp(s,"g"),t[s])}return e})(e)}},cs=(e,t)=>{var r=(e=>{var t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),n[e=e.replace(/\[\]$/,"")]=t?void 0!==n[e]?[].concat(n[e],r):[r]:r};default:return(e,t,r)=>{r[e]=void 0!==r[e]?[].concat(r[e],t):t}}})(t=ms({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((e=>{var t=e.replace(/\+/g," ").split("="),i=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:bs(o),r(bs(i),o,n)})),Object.keys(n).sort().reduce(((e,t)=>{var r=n[t];return e[t]=r&&"object"==typeof r&&!Array.isArray(r)?we(r):r,e}),Object.create(null))):n},ls=(e,t)=>{!1===(t=ms({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=()=>{});var r=(e=>{switch(e.arrayFormat){case"index":return(t,r,n)=>null===r?be(t,e)+"["+n+"]":be(t,e)+"["+be(n,e)+"]="+be(r,e);case"bracket":return(t,r)=>null===r?be(t,e):be(t,e)+"[]="+be(r,e);default:return(t,r)=>null===r?be(t,e):be(t,e)+"="+be(r,e)}})(t);return e?Object.keys(e).sort(t.sort).map((n=>{var i=e[n];if(void 0===i)return"";if(null===i)return be(n,t);if(Array.isArray(i)){var o=[];return i.slice().forEach((e=>{void 0!==e&&o.push(r(n,e,o.length))})),o.join("&")}return be(n,t)+"="+be(i,t)})).filter((e=>e.length>0)).join("&"):""},ws=(e,t)=>{if("string"!=typeof e)throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``);return e=e.trim(),t=Object.assign({https:!1},t),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")};var _s,Ss,$s={}.toString;Ss=e=>{var t;return"[object Object]"===$s.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))},_s=(e,t)=>{if(!Ss(e))throw new TypeError("Expected a plain object");if("function"==typeof(t=t||{}))throw new TypeError("Specify the compare function as an option instead");const r=t.deep,n=[],i=[],o=e=>{const s=n.indexOf(e);if(-1!==s)return i[s];const a={},c=Object.keys(e).sort(t.compare);n.push(e),i.push(a);for(let t=0;c.length>t;t++){const n=c[t],i=e[n];if(r&&Array.isArray(i)){const e=[];for(let t=0;i.length>t;t++)e[t]=Ss(i[t])?o(i[t]):i[t];a[n]=e}else a[n]=r&&Ss(i)?o(i):i}return a};return o(e)};const Cs={"http:":80,"https:":443,"ftp:":21},Ts={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};as=(e,t)=>{if(t=Object.assign({normalizeProtocol:!0,normalizeHttps:!1,stripFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),"string"!=typeof e)throw new TypeError("Expected a string");const r=e.startsWith("//");e=ws(e.trim()).replace(/^\/\//,"http://");const n=Ut(e);if(t.normalizeHttps&&"https:"===n.protocol&&(n.protocol="http:"),!n.hostname&&!n.pathname)throw Error("Invalid URL");if(delete n.host,delete n.query,t.stripFragment&&delete n.hash,+n.port===Cs[n.protocol]&&delete n.port,n.pathname&&(n.pathname=n.pathname.replace(/\/{2,}/g,"/")),n.pathname&&(n.pathname=decodeURI(n.pathname)),!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=n.pathname.split("/");Ee(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),n.pathname=e.slice(1).join("/")+"/")}if(Ts[n.protocol]){const e=n.protocol+"//"+n.hostname,t=jt(e,n.pathname);n.pathname=t.replace(e,"")}n.hostname&&(n.hostname=Ht(n.hostname).toLowerCase(),n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&(n.hostname=n.hostname.replace(/^www\./,""))),"?"===n.search&&delete n.search;const i=cs(n.search);if(Array.isArray(t.removeQueryParameters))for(const e in i)Ee(e,t.removeQueryParameters)&&delete i[e];return t.sortQueryParameters&&(n.search=ls(_s(i))),null!==n.search&&(n.search=decodeURIComponent(n.search)),e=Dt(n),(t.removeTrailingSlash||"/"===n.pathname)&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),e};var Os={},Rs=[200,203,204,206,300,301,404,405,410,414,501],As=[200,203,204,300,301,302,303,307,308,404,405,410,414,501],Is={connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Ps={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};Os=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.shared,o=n.cacheHeuristic,s=n.immutableMinTimeToLive,a=n.ignoreCargoCult,c=n._fromObject;if(xe(this,e),c)this._fromObject(c);else{if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=!1!==i,this._cacheHeuristic=void 0!==o?o:.1,this._immutableMinTtl=void 0!==s?s:864e5,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=_e(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=_e(t.headers["cache-control"]),a&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Se(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),!r.headers["cache-control"]&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}}return e.prototype.now=()=>Date.now(),e.prototype.storable=function(){return!(this._reqcc["no-store"]||!("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())||-1===As.indexOf(this._status)||this._rescc["no-store"]||this._isShared&&this._rescc.private||this._isShared&&!this._noAuthorization&&!this._allowsStoringAuthenticated()||!(this._resHeaders.expires||this._rescc.public||this._rescc["max-age"]||this._rescc["s-maxage"]||-1!==Rs.indexOf(this._status)))},e.prototype._hasExplicitExpiration=function(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires},e.prototype._assertRequestHasHeaders=e=>{if(!e||!e.headers)throw Error("Request headers missing")},e.prototype.satisfiesWithoutRevalidation=function(e){this._assertRequestHasHeaders(e);var t=_e(e.headers["cache-control"]);return!t["no-cache"]&&!/no-cache/.test(e.headers.pragma)&&(!t["max-age"]||this.age()<=t["max-age"])&&(!t["min-fresh"]||this.timeToLive()>=1e3*t["min-fresh"])&&!(this.stale()&&(!t["max-stale"]||this._rescc["must-revalidate"]||!0!==t["max-stale"]&&t["max-stale"]<=this.age()-this.maxAge()))&&this._requestMatches(e,!1)},e.prototype._requestMatches=function(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)},e.prototype._allowsStoringAuthenticated=function(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]},e.prototype._varyMatches=function(e){if(!this._resHeaders.vary)return!0;if("*"===this._resHeaders.vary)return!1;for(var t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/),r=Array.isArray(i=t),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if((n=i.next()).done)break;o=n.value}if(e.headers[o]!==this._reqHeaders[o])return!1}return!0},e.prototype._copyWithoutHopByHopHeaders=e=>{var t={};for(var r in e)Is[r]||(t[r]=e[r]);if(e.connection)for(var n=e.connection.trim().split(/\s*,\s*/),i=Array.isArray(s=n),o=0,s=i?s:s[Symbol.iterator]();;){var a;if(i){if(o>=s.length)break;a=s[o++]}else{if((o=s.next()).done)break;a=o.value}delete t[a]}if(t.warning){var c=t.warning.split(/,/).filter((e=>!/^\s*1[0-9][0-9]/.test(e)));c.length?t.warning=c.join(",").trim():delete t.warning}return t},e.prototype.responseHeaders=function(){var e=this._copyWithoutHopByHopHeaders(this._resHeaders),t=this.age();return t>86400&&!this._hasExplicitExpiration()&&this.maxAge()>86400&&(e.warning=(e.warning?e.warning+", ":"")+'113 - "rfc7234 5.5.4"'),e.age=""+Math.round(t),e},e.prototype.date=function(){var e=Date.parse(this._resHeaders.date),t=288e5;return Number.isNaN(e)||this._responseTime-t>e||e>this._responseTime+t?this._responseTime:e},e.prototype.age=function(){var e=Math.max(0,(this._responseTime-this.date())/1e3);if(this._resHeaders.age){var t=this._ageValue();t>e&&(e=t)}return e+(this.now()-this._responseTime)/1e3},e.prototype._ageValue=function(){var e=parseInt(this._resHeaders.age);return isFinite(e)?e:0},e.prototype.maxAge=function(){if(!this.storable()||this._rescc["no-cache"])return 0;if(this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)return 0;if("*"===this._resHeaders.vary)return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return parseInt(this._rescc["s-maxage"],10)}if(this._rescc["max-age"])return parseInt(this._rescc["max-age"],10);var e=this._rescc.immutable?this._immutableMinTtl:0,t=this.date();if(this._resHeaders.expires){var r=Date.parse(this._resHeaders.expires);return Number.isNaN(r)||t>r?0:Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){var n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&t>n)return Math.max(e,(t-n)/1e3*this._cacheHeuristic)}return e},e.prototype.timeToLive=function(){return 1e3*Math.max(0,this.maxAge()-this.age())},e.prototype.stale=function(){return this.maxAge()<=this.age()},e.fromObject=function(e){return new this(void 0,void 0,{_fromObject:e})},e.prototype._fromObject=function(e){if(this._responseTime)throw Error("Reinitialized");if(!e||1!==e.v)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=void 0!==e.imm?e.imm:864e5,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc},e.prototype.toObject=function(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}},e.prototype.revalidationHeaders=function(e){this._assertRequestHasHeaders(e);var t=this._copyWithoutHopByHopHeaders(e.headers);if(delete t["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete t["if-none-match"],delete t["if-modified-since"],t;if(this._resHeaders.etag&&(t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&"GET"!=this._method){if(delete t["if-modified-since"],t["if-none-match"]){var r=t["if-none-match"].split(/,/).filter((e=>!/^\s*W\//.test(e)));r.length?t["if-none-match"]=r.join(",").trim():delete t["if-none-match"]}}else this._resHeaders["last-modified"]&&!t["if-modified-since"]&&(t["if-modified-since"]=this._resHeaders["last-modified"]);return t},e.prototype.revalidatedPolicy=function(e,t){if(this._assertRequestHasHeaders(e),!t||!t.headers)throw Error("Response headers missing");var r=!1;if(void 0!==t.status&&304!=t.status?r=!1:t.headers.etag&&!/^\s*W\//.test(t.headers.etag)?r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag:this._resHeaders.etag&&t.headers.etag?r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?r=this._resHeaders["last-modified"]===t.headers["last-modified"]:this._resHeaders.etag||this._resHeaders["last-modified"]||t.headers.etag||t.headers["last-modified"]||(r=!0),!r)return{policy:new this.constructor(e,t),modified:!0};var n={};for(var i in this._resHeaders)n[i]=i in t.headers&&!Ps[i]?t.headers[i]:this._resHeaders[i];var o=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,o),modified:!1}},e}();var ks,Ns,Ls=$gCrli$Readable;ks=class extends Ls{constructor(e,t,r,n){if("number"!=typeof e)throw new TypeError("Argument `statusCode` should be a number");if("object"!=typeof t)throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if("string"!=typeof n)throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=ao(t),this.body=r,this.url=n}_read(){this.push(this.body),this.push(null)}},Ns=e=>{for(var t={},r=Object.keys(Object(e)),n=0;r.length>n;n++)t[r[n].toLowerCase()]=e[r[n]];return t};var js,Ds,Us=$gCrli$PassThrough;const Ms=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];var Fs,Bs,Hs;js=(e,t)=>{const r=new Set(Object.keys(e).concat(Ms));for(const n of r)n in t||(t[n]="function"==typeof e[n]?e[n].bind(e):e[n])},Ds=e=>{if(!e||!e.pipe)throw new TypeError("Parameter `response` must be a response stream.");const t=new Us;return js(e,t),e.pipe(t)},Fs=function e(t){if(void 0===t)return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&"object"==typeof t){var r="",n=Array.isArray(t);r=n?"[":"{";var i=!0;for(var o in t){var s="function"==typeof t[o]||!n&&void 0===t[o];Object.hasOwnProperty.call(t,o)&&!s&&(i||(r+=","),i=!1,n?r+=null==t[o]?"null":e(t[o]):void 0!==t[o]&&(r+=e(o)+":"+e(t[o])))}return r+(n?"]":"}")}return"string"==typeof t?JSON.stringify(/^:/.test(t)?":"+t:t):void 0===t?"null":JSON.stringify(t)},Bs=e=>JSON.parse(e,((e,t)=>"string"==typeof t?/^:base64:/.test(t)?new Buffer(t.substring(8),"base64"):/^:/.test(t)?t.substring(1):t:t)),Hs=class extends Tt{constructor(e,t){if(super(),this.opts=Object.assign({namespace:"keyv"},"string"==typeof e?{uri:e}:e,t),!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=(e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map})(e)}"function"==typeof this.opts.store.on&&this.opts.store.on("error",(e=>this.emit("error",e))),this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then((()=>t.get(e))).then((t=>{if(void 0!==(t="string"==typeof t?Bs(t):t)){if("number"!=typeof t.expires||Date.now()<=t.expires)return t.value;this.delete(e)}}))}set(e,t,r){e=this._getKeyPrefix(e),void 0===r&&(r=this.opts.ttl),0===r&&(r=void 0);const n=this.opts.store;return Promise.resolve().then((()=>{const i="number"==typeof r?Date.now()+r:null;return n.set(e,Fs(t={value:t,expires:i}),r)})).then((()=>!0))}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then((()=>t.delete(e)))}clear(){const e=this.opts.store;return Promise.resolve().then((()=>e.clear()))}};class qs{constructor(e,t){if("function"!=typeof e)throw new TypeError("Parameter `request` must be a function");return this.cache=new Hs({uri:"string"==typeof t&&t,store:"string"!=typeof t&&t,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{"string"==typeof t&&(t=Ut(t)),(t=Object.assign({headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1},t)).headers=Ns(t.headers);const n=new Tt,i=as(Dt(t)),o=`${t.method}:${i}`;let s=!1,a=!1;const c=t=>{a=!0;const i=e=>{if(s){const r=Os.fromObject(s.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();(e=new ks(e.statusCode,t,s.body,s.url)).cachePolicy=r.policy,e.fromCache=!0}}let i;e.fromCache||(e.cachePolicy=new Os(t,e),e.fromCache=!1),t.cache&&e.cachePolicy.storable()?(i=Ds(e),lo.buffer(e).then((r=>{const n={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?s.statusCode:e.statusCode,body:r},i=t.strictTtl?e.cachePolicy.timeToLive():void 0;return this.cache.set(o,n,i)})).catch((e=>n.emit("error",new qs.CacheError(e))))):t.cache&&s&&this.cache.delete(o).catch((e=>n.emit("error",new qs.CacheError(e)))),n.emit("response",i||e),"function"==typeof r&&r(i||e)};try{const r=e(t,i);n.emit("request",r)}catch(e){n.emit("error",new qs.RequestError(e))}};return this.cache.on("error",(e=>n.emit("error",new qs.CacheError(e)))),(e=>Promise.resolve().then((()=>e.cache?this.cache.get(o):void 0)).then((t=>{if(void 0===t)return c(e);const i=Os.fromObject(t.cachePolicy);if(i.satisfiesWithoutRevalidation(e)){const e=i.responseHeaders(),o=new ks(t.statusCode,e,t.body,t.url);o.cachePolicy=i,o.fromCache=!0,n.emit("response",o),"function"==typeof r&&r(o)}else s=t,e.headers=i.revalidationHeaders(e),c(e)})))(t).catch((e=>{t.automaticFailover&&!a&&c(t),n.emit("error",new qs.CacheError(e))})),n}}}qs.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}},qs.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}},fs=qs;var Gs,zs={},Vs=Xt("cDzno").Readable,Ws=Xt("5n7Ld");zs=$e,$e.ctor=Ce,$e.obj=(e,t)=>(("function"==typeof e||Array.isArray(e))&&(t=e,e={}),(e=Oe(e)).objectMode=!0,e.highWaterMark=16,$e(e,t));var Xs,Ys=Ce();Xs=e=>e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch,(Gs=e=>{function t(t){r=Xs(e=t)?e:null;const i=!r&&e[Symbol.iterator]&&"string"!=typeof e&&!Buffer.isBuffer(e);n=i?e[Symbol.iterator]():null}let r,n;return Array.isArray(e)&&(e=e.slice()),t(e),zs((function i(o,s){if(r)return void r.then(t).then((()=>i.call(this,o,s)),s);if(n){const e=n.next();return void setImmediate(s,null,e.done?null:e.value)}if(0===e.length)return void setImmediate(s,null,null);const a=e.slice(0,o);e=e.slice(o),setImmediate(s,null,a)}))}).obj=e=>{function t(t){r=Xs(e=t)?e:null,n=!r&&e[Symbol.iterator]?e[Symbol.iterator]():null}let r,n;return Array.isArray(e)&&(e=e.slice()),t(e),zs.obj((function i(o,s){if(r)r.then(t).then((()=>i.call(this,o,s)),s);else if(n){const e=n.next();setImmediate(s,null,e.done?null:e.value)}else this.push(e),setImmediate(s,null,null)}))};var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});const Js={}.toString,Qs=e=>t=>typeof t===e,Zs=e=>Js.call(e).slice(8,-1)||null,ea=e=>t=>Zs(t)===e;var ta;(e=>{const t=e=>"object"==typeof e;e.undefined=Qs("undefined"),e.string=Qs("string"),e.number=Qs("number"),e.function_=Qs("function"),e.null_=e=>null===e,e.class_=t=>e.function_(t)&&(""+t).startsWith("class "),e.boolean=e=>!0===e||!1===e,e.symbol=Qs("symbol"),e.array=Array.isArray,e.buffer=Buffer.isBuffer,e.nullOrUndefined=t=>e.null_(t)||e.undefined(t),e.object=r=>!e.nullOrUndefined(r)&&(e.function_(r)||t(r)),e.iterable=t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]),e.generator=t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw),e.nativePromise=ea("Promise"),e.promise=r=>e.nativePromise(r)||(r=>!e.null_(r)&&t(r)&&e.function_(r.then)&&e.function_(r.catch))(r);const r=t=>r=>e.function_(r)&&e.function_(r.constructor)&&r.constructor.name===t;e.generatorFunction=r("GeneratorFunction"),e.asyncFunction=r("AsyncFunction"),e.boundFunction=t=>e.function_(t)&&!t.hasOwnProperty("prototype"),e.regExp=ea("RegExp"),e.date=ea("Date"),e.error=ea("Error"),e.map=ea("Map"),e.set=ea("Set"),e.weakMap=ea("WeakMap"),e.weakSet=ea("WeakSet"),e.int8Array=ea("Int8Array"),e.uint8Array=ea("Uint8Array"),e.uint8ClampedArray=ea("Uint8ClampedArray"),e.int16Array=ea("Int16Array"),e.uint16Array=ea("Uint16Array"),e.int32Array=ea("Int32Array"),e.uint32Array=ea("Uint32Array"),e.float32Array=ea("Float32Array"),e.float64Array=ea("Float64Array"),e.arrayBuffer=ea("ArrayBuffer"),e.sharedArrayBuffer=ea("SharedArrayBuffer"),e.dataView=ea("DataView"),e.directInstanceOf=(t,r)=>e.object(t)&&e.object(r)&&Object.getPrototypeOf(t)===r.prototype,e.truthy=e=>!!e,e.falsy=e=>!e,e.nan=e=>Number.isNaN(e);const n=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=t=>e.null_(t)||n.has(typeof t),e.integer=e=>Number.isInteger(e),e.safeInteger=e=>Number.isSafeInteger(e),e.plainObject=e=>{let t;return"Object"===Zs(e)&&(t=Object.getPrototypeOf(e),null===t||t===Object.getPrototypeOf({}))};const i=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=e=>{const t=Zs(e);return null!==t&&i.has(t)},e.arrayLike=t=>!e.nullOrUndefined(t)&&!e.function_(t)&&(t=>e.safeInteger(t)&&t>-1)(t.length),e.inRange=(t,r)=>{if(e.number(r))return t>=Math.min(0,r)&&Math.max(r,0)>=t;if(e.array(r)&&2===r.length)return t>=Math.min.apply(null,r)&&t<=Math.max.apply(null,r);throw new TypeError("Invalid range: "+$gCrli$inspect(r))};const o=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=t=>e.object(t)&&1===t.nodeType&&e.string(t.nodeName)&&!e.plainObject(t)&&o.every((e=>e in t)),e.nodeStream=r=>!e.nullOrUndefined(r)&&t(r)&&e.function_(r.pipe),e.infinite=e=>e===1/0||e===-1/0;const s=t=>r=>e.integer(r)&&Math.abs(r%2)===t;e.even=s(0),e.odd=s(1),e.empty=t=>e.falsy(t)||(t=>(e.string(t)||e.array(t))&&0===t.length)(t)||(t=>!e.map(t)&&!e.set(t)&&e.object(t)&&0===Object.keys(t).length)(t)||(t=>(e.map(t)||e.set(t))&&0===t.size)(t),e.emptyOrWhitespace=t=>e.empty(t)||(t=>e.string(t)&&!1===/\S/.test(t))(t);const a=(t,r,n)=>{const i=[].slice.call(n,1);if(!1===e.function_(r))throw new TypeError("Invalid predicate: "+$gCrli$inspect(r));if(0===i.length)throw new TypeError("Invalid number of values");return t.call(i,r)};e.any=function(e){return a([].some,e,arguments)},e.all=function(e){return a([].every,e,arguments)}})(Re||(Re={})),Object.defineProperties(Re,{class:{value:Re.class_},function:{value:Re.function_},null:{value:Re.null_}}),Ks.default=Re,(Ks=Re).default=Re,ta=(e,t)=>{if("string"!=typeof e)throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`);const r=ws(e,Object.assign({https:!0},t));return Ut(r)};var ra={};ra=e=>{var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return""!==e.port&&(t.port=+e.port),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t};var na,ia=$gCrli$PassThrough;na=e=>{if(-1===["gzip","deflate"].indexOf(e.headers["content-encoding"]))return e;const t=Ft(),r=new ia;return js(e,r),t.on("error",(e=>{"Z_BUF_ERROR"!==e.code?r.emit("error",e):r.end()})),e.pipe(t).pipe(r),r};var oa,sa,aa={};oa=Xt("5PIzG")&&"symbol"==typeof Symbol.toStringTag,sa=e=>"object"==typeof e&&null!==e;const ca={}.toString,la=(e,t)=>!!sa(e)&&(!oa&&"[object URL]"===ca.call(e)||"href"in e&&"protocol"in e&&"username"in e&&"password"in e&&"hostname"in e&&"port"in e&&"host"in e&&"pathname"in e&&"search"in e&&"hash"in e&&!(!0!==t&&!sa(e.searchParams)));la.lenient=e=>la(e,!0),aa=la;var ua,da,pa,ha={};class fa extends Error{constructor(){super("Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class ma{static fn(e){return function(){const t=[].slice.apply(arguments);return new ma(((r,n,i)=>{t.push(i),e.apply(null,t).then(r,n)}))}}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._promise=new Promise(((t,r)=>(this._reject=r,e((e=>{this._isPending=!1,t(e)}),(e=>{this._isPending=!1,r(e)}),(e=>{this._cancelHandlers.push(e)})))))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(){if(this._isPending&&!this._isCanceled){if(this._cancelHandlers.length>0)try{for(const e of this._cancelHandlers)e()}catch(e){this._reject(e)}this._isCanceled=!0,this._reject(new fa)}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(ma.prototype,Promise.prototype),(ha=ma).CancelError=fa,da=(e,t)=>(t=t||(()=>{}),e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e})))));class ga extends Error{constructor(e){super(e),this.name="TimeoutError"}}(ua=(e,t,r)=>new Promise(((n,i)=>{if("number"!=typeof t||0>t)throw new TypeError("Expected `ms` to be a positive number");const o=setTimeout((()=>{if("function"==typeof r){try{n(r())}catch(o){i(o)}return}const o=r instanceof Error?r:new ga("string"==typeof r?r:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),i(o)}),t);da(e.then(n,i),(()=>{clearTimeout(o)}))}))).TimeoutError=ga;const ya=(e,t)=>function(){const r=t.promiseModule,n=Array(arguments.length);for(let e=0;arguments.length>e;e++)n[e]=arguments[e];return new r(((r,i)=>{n.push(t.errorFirst?function(e,n){if(t.multiArgs){const t=Array(arguments.length-1);for(let e=1;arguments.length>e;e++)t[e-1]=arguments[e];e?(t.unshift(e),i(t)):r(t)}else e?i(e):r(n)}:function(e){if(t.multiArgs){const e=Array(arguments.length-1);for(let t=0;arguments.length>t;t++)e[t]=arguments[t];r(e)}else r(e)}),e.apply(this,n)}))};pa=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let n;n="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):ya(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const i in e){const o=e[i];n[i]="function"==typeof o&&r(i)?ya(o,t):o}return n};var va,ba=bo.Buffer;va=JSON.parse('{"name":"got","version":"8.3.2","description":"Simplified HTTP requests","license":"MIT","repository":"sindresorhus/got","maintainers":[{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},{"name":"Alexander Tesfamichael","email":"alex.tesfamichael@gmail.com","url":"alextes.me"}],"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","errors.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],"dependencies":{"@sindresorhus/is":"^0.7.0","cacheable-request":"^2.1.1","decompress-response":"^3.3.0","duplexer3":"^0.1.4","get-stream":"^3.0.0","into-stream":"^3.1.0","is-retry-allowed":"^1.1.0","isurl":"^1.0.0-alpha5","lowercase-keys":"^1.0.0","mimic-response":"^1.0.0","p-cancelable":"^0.4.0","p-timeout":"^2.0.1","pify":"^3.0.0","safe-buffer":"^5.1.1","timed-out":"^4.0.1","url-parse-lax":"^3.0.0","url-to-options":"^1.0.1"},"devDependencies":{"ava":"^0.25.0","coveralls":"^3.0.0","form-data":"^2.1.1","get-port":"^3.0.0","nyc":"^11.0.2","p-event":"^1.3.0","pem":"^1.4.4","proxyquire":"^1.8.0","sinon":"^4.0.0","slow-stream":"0.0.4","tempfile":"^2.0.0","tempy":"^0.2.1","universal-url":"1.0.0-alpha","xo":"^0.20.0"},"ava":{"concurrency":4},"browser":{"decompress-response":false,"electron":false}}');var wa,Ea,xa,_a,Sa,$a,Ca,Ta,Oa,Ra={};e(Ra,"GotError",(()=>wa),(e=>wa=e)),e(Ra,"CacheError",(()=>Ea),(e=>Ea=e)),e(Ra,"RequestError",(()=>xa),(e=>xa=e)),e(Ra,"ReadError",(()=>_a),(e=>_a=e)),e(Ra,"ParseError",(()=>Sa),(e=>Sa=e)),e(Ra,"HTTPError",(()=>$a),(e=>$a=e)),e(Ra,"MaxRedirectsError",(()=>Ca),(e=>Ca=e)),e(Ra,"UnsupportedProtocolError",(()=>Ta),(e=>Ta=e)),e(Ra,"CancelError",(()=>Oa),(e=>Oa=e));class Aa extends Error{constructor(e,t,r){super(e),Error.captureStackTrace(this,this.constructor),this.name="GotError",Ks.undefined(t.code)||(this.code=t.code),Object.assign(this,{host:r.host,hostname:r.hostname,method:r.method,path:r.path,protocol:r.protocol,url:r.href})}}wa=Aa,Ea=class extends Aa{constructor(e,t){super(e.message,e,t),this.name="CacheError"}},xa=class extends Aa{constructor(e,t){super(e.message,e,t),this.name="RequestError"}},_a=class extends Aa{constructor(e,t){super(e.message,e,t),this.name="ReadError"}},Sa=class extends Aa{constructor(e,t,r,n){super(`${e.message} in "${Dt(r)}": \n${n.slice(0,77)}...`,e,r),this.name="ParseError",this.statusCode=t,this.statusMessage=$gCrli$STATUS_CODES[this.statusCode]}},$a=class extends Aa{constructor(e,t,r,n){super(`Response code ${e} (${t=t?t.replace(/\r?\n/g," ").trim():$gCrli$STATUS_CODES[e]})`,{},n),this.name="HTTPError",this.statusCode=e,this.statusMessage=t,this.headers=r}},Ca=class extends Aa{constructor(e,t,r){super("Redirected 10 times. Aborting.",{},r),this.name="MaxRedirectsError",this.statusCode=e,this.statusMessage=$gCrli$STATUS_CODES[this.statusCode],this.redirectUrls=t}},Ta=class extends Aa{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e),this.name="UnsupportedProtocolError"}},Oa=ha.CancelError;const Ia=new Set([300,301,302,303,304,305,307,308]),Pa=new Set([300,303,307,308]),ka=e=>Ks.nodeStream(e)&&Ks.function(e.getBoundary);ke.stream=(e,t)=>Ie(Pe(e,t));const Na=["get","post","put","patch","head","delete"];for(const e of Na)ke[e]=(t,r)=>ke(t,Object.assign({},r,{method:e})),ke.stream[e]=(t,r)=>ke.stream(t,Object.assign({},r,{method:e}));var La,ja;Object.assign(ke,Ra),ds=ke;const Da="(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}",Ua=`\n(\n(?:[0-9a-fA-F]{1,4}:){7}(?:[0-9a-fA-F]{1,4}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:[0-9a-fA-F]{1,4}:){6}(?:${Da}|:[0-9a-fA-F]{1,4}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){5}(?::${Da}|(:[0-9a-fA-F]{1,4}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){4}(?:(:[0-9a-fA-F]{1,4}){0,1}:${Da}|(:[0-9a-fA-F]{1,4}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){3}(?:(:[0-9a-fA-F]{1,4}){0,2}:${Da}|(:[0-9a-fA-F]{1,4}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){2}(?:(:[0-9a-fA-F]{1,4}){0,3}:${Da}|(:[0-9a-fA-F]{1,4}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:[0-9a-fA-F]{1,4}:){1}(?:(:[0-9a-fA-F]{1,4}){0,4}:${Da}|(:[0-9a-fA-F]{1,4}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::[0-9a-fA-F]{1,4}){0,5}:${Da}|(?::[0-9a-fA-F]{1,4}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Ma=ja=e=>e&&e.exact?RegExp(`(?:^${Da}$)|(?:^${Ua}$)`):RegExp(`(?:${Da})|(?:${Ua})`,"g");Ma.v4=e=>e&&e.exact?RegExp(`^${Da}$`):RegExp(Da,"g"),Ma.v6=e=>e&&e.exact?RegExp(`^${Ua}$`):RegExp(Ua,"g");const Fa=La=e=>ja({exact:!0}).test(e);Fa.v4=e=>ja.v4({exact:!0}).test(e),Fa.v6=e=>ja.v6({exact:!0}).test(e);const Ba={timeout:5e3,https:!1},Ha={v4:{dnsServer:"208.67.222.222",dnsQuestion:{name:"myip.opendns.com",type:"A"},httpsUrl:"https://ipv4.icanhazip.com/"},v6:{dnsServer:"2620:0:ccc::2",dnsQuestion:{name:"myip.opendns.com",type:"AAAA"},httpsUrl:"https://ipv6.icanhazip.com/"}},qa=(e,t)=>{const r=Ha[e],n=Lo({retries:0,socket:Bt("v6"===e?"udp6":"udp4"),timeout:t.timeout}),i=pa(n.query.bind(n))({questions:[r.dnsQuestion]},53,r.dnsServer).then((t=>{n.destroy();const r=(t.answers[0]&&t.answers[0].data||"").trim();if(!r||!La[e](r))throw Error("Couldn't find your IP");return r})).catch((e=>{throw n.destroy(),e}));return i.cancel=()=>{n.cancel()},i},Ga=(e,t)=>{const r=ds(Ha[e].httpsUrl,{family:"v6"===e?6:4,retries:0,timeout:t.timeout}),n=r.then((e=>{const t=(e.body||"").trim();if(!t)throw Error("Couldn't find your IP");return t})).catch((e=>{if(!(e instanceof ds.CancelError))throw e}));return n.cancel=r.cancel,n};$o=e=>(e=Object.assign({},Ba,e)).https?Ga("v4",e):qa("v4",e),Co=e=>(e=Object.assign({},Ba,e)).https?Ga("v6",e):qa("v6",e);var za,Va,Wa,Xa,Ya={};Wa=(e,t,r)=>{const n="object"==typeof r?Object.assign({indent:" "},r):{indent:r||" "};if(t=void 0===t?1:t,"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof n.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);return 0===t?e:e.replace(n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm,n.indent.repeat(t))};const Ka=/\s+at.*(?:\(|\s)(.*)\)?/,Ja=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/babel-polyfill\/.*)?\w+)\.js:\d+:\d+)|native)/,Qa=$gCrli$homedir();Xa=(e,t)=>(t=Object.assign({pretty:!1},t),e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(Ka);if(null===t||!t[1])return!0;const r=t[1];return!r.includes(".app/Contents/Resources/electron.asar")&&!r.includes(".app/Contents/Resources/default_app.asar")&&!Ja.test(r)})).filter((e=>""!==e.trim())).map((e=>t.pretty?e.replace(Ka,((e,t)=>e.replace(t,t.replace(Qa,"~")))):e)).join("\n"));class Za extends Error{constructor(e){if(!e[Symbol.iterator]||"string"==typeof e)throw new TypeError("Expected input to be iterable, got "+typeof e);let t=(e=Array.from(e).map((e=>e instanceof Error?e:Error(e)))).map((e=>Xa(e.stack).replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""))).join("\n");t="\n"+Wa(t,4),super(t),this.name=this.constructor.name,Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors)yield e}}var ec;(za=(e,t)=>Va(e,Object.assign({},t,{count:1})).then((e=>e[0]))).AggregateError=(Va=(e,t)=>new Promise(((r,n)=>{if(t=Object.assign({},t),!Number.isFinite(t.count))throw new TypeError("Expected a finite number, got "+typeof t.count);const i=[],o=[];let s=0,a=1-t.count,c=1-t.count,l=!1;const u=e=>{l||("function"!=typeof t.filter||t.filter(e)?(i.push(e),0==--t.count&&(l=!0,r(i))):0==--c&&(l=!0,n(new RangeError("Not enough values pass the `filter` option"))))},d=e=>{l||(o.push(e),0==--a&&(l=!0,n(new Ya(o))))};for(const t of e)a++,c++,s++,Promise.resolve(t).then(u,d);if(t.count>s)throw new RangeError(`Expected input to contain at least ${t.count} items, but contains ${s} items`)}))).AggregateError=Ya=Za;class tc extends Error{constructor(e){super(e),this.name="TimeoutError"}}(ec=(e,t,r)=>new Promise(((n,i)=>{if("number"!=typeof t||0>t)throw new TypeError("Expected `ms` to be a positive number");const o=setTimeout((()=>{if("function"==typeof r)return void n(r());const e=r instanceof Error?r:new tc("string"==typeof r?r:`Promise timed out after ${t} milliseconds`);i(e)}),t);da(e.then(n,i),(()=>{clearTimeout(o)}))}))).TimeoutError=tc;const rc={timeout:5e3,version:"v4"};var nc;let ic;So=e=>{e=Object.assign({},rc,e);const t=za([To[e.version]().then((()=>!0)),To[e.version]({https:!0}).then((()=>!0)),Ne(e)]);return ec(t,e.timeout).catch((()=>!1))},nc=JSON.parse('{"name":"is-link-working","version":"2.2.0","description":"Checks if a given link is working or broken","main":"index.js","scripts":{"lint":"eslint \'{*.js,test/**/*.js}\' --ignore-pattern=test/coverage","test":"mocha --bail","test-cov":"istanbul cover --dir test/coverage _mocha -- --bail && echo Coverage lies in test/coverage/lcov-report/index.html","test-travis":"istanbul cover _mocha --report lcovonly -- --bail && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"bugs":{"url":"https://github.com/IndigoUnited/node-is-link-working/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-is-link-working.git"},"keywords":["url","link","uri","working","check","alive","ok","broken"],"author":"IndigoUnited (http://indigounited.com)","license":"MIT","dependencies":{"got":"^6.3.0","is-online":"^7.0.0"},"devDependencies":{"@satazor/eslint-config":"^3.0.0","chai":"^3.4.1","coveralls":"^2.11.6","eslint":"^3.0.0","istanbul":"^0.4.1","mocha":"^3.0.2","mock-require":"^2.0.0","nock":"^9.0.0","promise-delay":"^2.1.0"},"engines":{"node":">=4.0.0"}}');class oc extends Qi{_write(e,t,r){r()}}(Ji=(e,t)=>{const r={timeout:(t=Object.assign({checkConnectivity:!1,followRedirect:!0,timeout:15e3,retries:3,agent:null},t)).timeout,followRedirect:t.followRedirect,retries:t.retries,agent:t.agent,headers:{"user-agent":`is-link-working/${nc.version} (https://github.com/IndigoUnited/is-link-working)`}};return((e,t)=>Zi.head(e,t).then((()=>!0)))(e,r).catch((()=>((e,t,r)=>new Promise(((n,i)=>{let o,s;try{o=Zi.stream(e,r)}catch(e){return n(!1)}o.on("request",(e=>{s=e})).on("response",(e=>{e.on("error",(()=>{})),setImmediate((()=>s.abort())),n(!0)})).on("error",((e,r,o)=>{return o&&o.on("error",(()=>{})),setImmediate((()=>s.abort())),e instanceof Zi.MaxRedirectsError||e instanceof Zi.HTTPError?n(!1):e instanceof Zi.RequestError?n(!!t.checkConnectivity&&(a=e,(ic&&ic.cachedAt>Date.now()-Ji.connectivityCacheDuration||(ic=new Promise(((e,t)=>{So(((r,n)=>{r?(delete ic.promise,t(r)):e(n)}))})),ic.cachedAt=Date.now()),ic).catch((()=>{throw a})).then((e=>{if(!e)throw a;return!1})))):void i(e);var a})).pipe(new oc)})))(e,t,r)))}).connectivityCacheDuration=5e3;var sc=Xt("odmNz"),ac=(Ki=Xt("3wKw1"),Xt("kULaE"));ji=Xt("eGKv1"),Zn=Xt("81ovw");const cc=/v?(\d\S*)/,lc={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.50.0",meson:"0.63.0",kcov:"40",task:"3.14.0",doxygen:O()?"1.9.3-1":"1.9.4",gcc:"11"},uc={llvm:{22:"13.0.0-ubuntu-20.04",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:{22:"13.0.0-ubuntu-20.04",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:{22:"13.0.0-ubuntu-20.04",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.63.0",18:"0.61.4"},doxygen:{20:"1.9.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};let dc,pc,hc=!1;Zn=Xt("81ovw"),Yi=Xt("kNWZ7");var fc=Xt("ehbTi"),mc=(ji=Xt("eGKv1"),Zn=Xt("81ovw"),Yt=Xt("gF2Jd"),Zn=Xt("81ovw"),Jn=Xt("ywN2f"),fc=Xt("ehbTi"),Ki=Xt("3wKw1"),Zn=Xt("81ovw"),Jn=Xt("ywN2f"),$gCrli$resolve(__dirname,"../src/gcc"));const gc={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 yc=$gCrli$resolve(__dirname,"../src/llvm");const vc=(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","14.0.4","14.0.5","14.0.6"]),bc=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"]),wc=new Map,Ec={"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"},xc=new Set(["10.0.1"]);let _c=!1;var Sc,$c,Cc,Tc={},Oc=Tc&&Tc.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((i,o)=>{function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))),Rc=Tc&&Tc.__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(Tc,"__esModule",{value:!0});var Ac={},Ic=Ac&&Ac.__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(Ac,"__esModule",{value:!0});const Pc=Ic(wt);var kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Ac.issueCommand=Qe,Ac.issue=(e,t="")=>{Qe(e,{},t)};class Nc{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 n in this.properties)if(this.properties.hasOwnProperty(n)){const i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${t=i,kc.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>kc.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Lc={},jc=Lc&&Lc.__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(Lc,"__esModule",{value:!0});const Dc=jc(_t),Uc=jc(wt);Lc.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Dc.existsSync(r))throw Error("Missing file at path: "+r);Dc.appendFileSync(r,`${kc.toCommandValue(t)}${Uc.EOL}`,{encoding:"utf8"})};const Mc=Rc(wt),Fc=Rc(xt);var Bc,Hc;(Hc=Bc=Tc.ExitCode||(Tc.ExitCode={}))[Hc.Success=0]="Success",Hc[Hc.Failure=1]="Failure",Tc.exportVariable=(e,t)=>{const r=kc.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Lc.issueCommand("ENV",`${e}<<${t}${Mc.EOL}${r}${Mc.EOL}${t}`)}else Ac.issueCommand("set-env",{name:e},r)},Tc.setSecret=e=>{Ac.issueCommand("add-mask",{},e)},Tc.addPath=e=>{process.env.GITHUB_PATH?Lc.issueCommand("PATH",e):Ac.issueCommand("add-path",{},e),process.env.PATH=`${e}${Fc.delimiter}${process.env.PATH}`},Tc.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()},Tc.setOutput=(e,t)=>{Ac.issueCommand("set-output",{name:e},t)},Tc.setCommandEcho=e=>{Ac.issue("echo",e?"on":"off")},Tc.setFailed=e=>{process.exitCode=Bc.Failure,Ze(e)},Tc.isDebug=()=>"1"===process.env.RUNNER_DEBUG,Tc.debug=e=>{Ac.issueCommand("debug",{},e)},Tc.error=Ze,Tc.warning=e=>{Ac.issue("warning",e instanceof Error?""+e:e)},Tc.info=e=>{process.stdout.write(e+Mc.EOL)},Tc.startGroup=et,Tc.endGroup=tt,Tc.group=function(e,t){return Oc(this,void 0,void 0,(function*(){let r;et(e);try{r=yield t()}finally{tt()}return r}))},Tc.saveState=(e,t)=>{Ac.issueCommand("save-state",{name:e},t)},Tc.getState=e=>process.env["STATE_"+e]||"";const qc=qt["ProgramFiles(x86)"],Gc=[qt["ProgramFiles(x86)"],qt.ProgramFiles],zc=["Enterprise","Professional","Community"],Vc=["2022","2019","2017"],Wc={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};Sc=rt;const Xc=qc+"\\Microsoft Visual Studio\\Installer";$c=it,Cc=(e,t,r,n,i,o)=>{if("win32"!=Gt)return void Tc.info("This is not a Windows virtual environment, bye!");qt.PATH+=$gCrli$delimiter+Xc;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==i&&a.push("-vcvars_spectre_libs=spectre");const c=`"${it(o)}" ${a.join(" ")}`;Tc.debug("vcvars command-line: "+c);const l=(""+$gCrli$execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),d=l[1].split("\r\n"),p=l[2].split("\r\n"),h=d.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}Tc.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(Tc.info("Setting "+t),ot(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),Tc.exportVariable(t,r))}Tc.endGroup(),Tc.info("Configured Developer Command Prompt")},Zn=Xt("81ovw"),Jn=Xt("ywN2f"),Zn=Xt("81ovw");var Yc,Kc=$gCrli$resolve(__dirname,"../src/msvc"),Jc=(Jn=Xt("ywN2f"),{});Jc=Xt("gGvz1"),Yc={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 Qc=Xt("xu1bL"),Zc={};Xt("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 el={};Object.defineProperty(el,"__esModule",{value:!0}),el.getUbuntuVersion=void 0,el.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,n)=>{$gCrli$execFile(t,r,{encoding:"utf8",shell:!1},((i,o,s)=>{if(i)return"errno"in i&&"ENOENT"===i.code?void e(null):void n(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${i} (stderr=${s})`));e(o)}))})));var t,r;if(null===e)return[];const n=/^Distributor ID:\s*(.+)$/,i=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,o=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let s=null,a=null,c=!1;for(const t of e.split("\n")){const e=t.match(n);if(null!==e){if("Ubuntu"!==e[1])return[];c=!0}const r=t.match(i);r&&(s=r);const l=t.match(o);if(l&&(a=l),c&&s&&a)break}if(!c)return[];for(const e of[s,a])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},ac=Xt("kULaE"),Zn=Xt("81ovw"),Zn=Xt("81ovw");let tl,rl=!1;Zn=Xt("81ovw");const nl={async nala(e,r,n){if(!I())return;if("string"==typeof tl)return{binDir:tl};const i=t(Kt).sync("nala",{nothrow:!0});if(null!==i)return tl=$gCrli$dirname(i),{binDir:tl};u("/bin/bash",["-c",`echo "deb [signed-by=${await x("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key")}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await v("nala",void 0,[],!0):await v("nala-legacy",void 0,[],!0)}catch(e){await v("nala-legacy",void 0,[],!0)}return tl="/usr/bin",{binDir:tl}},cmake:Q,ninja:lt,python:Z,async vcpkg(e,r,n){return rl&&null!==t(Kt).sync("vcpkg",{nothrow:!0})?{binDir:$gCrli$dirname(t(Kt).sync("vcpkg"))}:("linux"===process.platform&&(O()?(S("curl"),S("zip"),S("unzip"),S("tar"),S("git"),S("pkg-config")):R()?(A("curl"),A("zip"),A("unzip"),A("tar"),A("git"),A("pkg-config")):I()&&(await v("curl"),await v("zip"),await v("unzip"),await v("tar"),await v("git"),await v("pkg-config"))),$gCrli$existsSync($gCrli$join(r,k("bootstrap-vcpkg")))?(0,Zn.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(sr).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:$gCrli$dirname(r),stdio:"inherit"}),t(sr).sync(k((i="bootstrap-vcpkg","win32"===process.platform?i:"./"+i)),{cwd:r,shell:!0,stdio:"inherit"}),L(r),await f(r),rl=!0,{binDir:r});var i},async bazel(e,t,r){switch(process.platform){case"win32":return T("bazelisk",e);case"darwin":return $("bazelisk",e);case"linux":if(O())throw Error("installing bazel on Arch linux is not supported yet");if(R())return A("dnf-plugins-core",void 0),u("dnf",["copr","enable","vbatts/bazel"]),A("bazel4",void 0);if(I())return u("bash",["-c",`echo "deb [arch=amd64 signed-by=${await x("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg")}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),v("bazel",e,[],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async conan(e,t,r){return await Ue("setuptools",""),Ue("conan",e)},meson(e,t,r){return Ue("meson",e)},gcovr(e,t,r){return Ue("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await T("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:Xe,gcc:qe,choco:C,brew:n,ccache(e,t,r){switch(process.platform){case"win32":return T("ccache",e);case"darwin":return $("ccache",e);case"linux":if(O())return S("ccache",e);if(R())return A("ccache",e);if(I())return v("ccache",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await T("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 Me(je("graphviz",void 0)),t}case"darwin":{const e=$("doxygen",void 0);return await Me(je("graphviz",void 0)),e}case"linux":{let n;if(""===e||O()||R())if(O())n=S("doxygen",e);else{if(R())return A("doxygen",e);if(!I())throw Error("Unsupported linux distributions");n=await v("doxygen",e)}else{if(!I())throw Error("Unsupported linux distributions");try{n=await Y("doxygen",e,Fe,t,r),await v("libclang-cpp9")}catch(e){(0,Zn.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await v("doxygen",void 0)}}return await Me(je("graphviz",void 0)),n}default:throw Error("Unsupported platform")}},graphviz:Me,async cppcheck(e,t,r){switch(process.platform){case"win32":return await T("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return $("cppcheck",e);case"linux":if(O())return S("cppcheck",e);if(R())return A("ccache",e);if(I())return v("cppcheck",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},clangtidy:Ke,clangformat:Ke,msvc:at,vcvarsall:st,async kcov(e,t,r){if("linux"!==process.platform)return void(0,Zn.info)("Kcov is not supported on non-linux");const n=e.split("-");let i=(e=>e.match(/^v/)?e:"v"+e)(n[0]);const o=n[1],s=(e=>parseInt(e.replace(/^v/,""),10))(i);let a;return 38===s&&(i="v38"),"binary"!==o||39>s?(a=await Y("kcov",i,ht,t,r),a):(a=await Y("kcov",i,pt,t,r),O()?S("binutils"):R()?A("binutils"):I()&&await v("libbinutils"),a)},async make(e,t,r){switch(process.platform){case"win32":return T("make",e);case"darwin":return $("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(O())return S("make",e);if(R())return A("make",e);if(I())return v("make",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task(e,t,r){return Y("task",e,K,t,r)},sevenzip:N},il=["nala","choco","brew","python","vcpkg","bazel","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],ol=["compiler","architecture",...il];mt(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,Zn.error)("main() panicked!"),(0,Zn.error)(e),process.exitCode=1}));export{mt as main,gt as parseArgs,yt as getCompilerInfo}; //# sourceMappingURL=setup_cpp.mjs.map diff --git a/dist/setup_cpp.mjs.map b/dist/setup_cpp.mjs.map index 18e20b45..0e53ea99 100644 --- a/dist/setup_cpp.mjs.map +++ b/dist/setup_cpp.mjs.map @@ -1 +1 @@ -{"mappings":"4IAWA,SAASA,EAAOC,EAAMC,EAASC,GAM7B,GALuB,mBAAZD,IACTC,EAAKD,EACLA,EAAU,KAGPC,EAAI,CACP,GAA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gBAAiB,CAAED,YAAa,yBAA0BC,WAAY,mCACtE,GAAM,CAAED,YAAa,yBAA0BC,WAAY,yCAC3D,SAAU,CAAED,YAAa,yBAA0BC,WAAY,yCAC/D,SAAU,CAAED,YAAa,kBAAmBC,WAAY,yCACxD,EAAK,CAAED,YAAa,iBAAkBC,WAAY,4BAClD,QAAS,CAAED,YAAa,iBAAkBC,WAAY,6B,+CCTjD,MAAM6B,GPRN,CAAqBsnD,IAC1B,MAAM5yD,EAAW,IAAI8oC,IAAI8pB,GAEzB,IAAK,MAAM72D,KAAW62D,EACpB5yD,EAAS0pC,IAAI,OAAO/S,KAAK56B,GAAU,IACnCiE,EAAS0pC,IAAI,YAAY/S,KAAK56B,GAAU,IAG1C,OAAOiE,C,EOA4B,CAAY,CAC/C,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,WAoBI4K,GAA8B,IAAIk+B,IAAI,CAC1C,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,WAwBI79B,GAAiC,IAAI65B,IAQrCv5B,GAA+C,CACnD,QAAS,gBACT,QAAS,GACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,eACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,sBAAuB,gBACvB,sBA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GAAA1C,OAAMnC,GACNrB,QAAQ8jB,SAAW,CAAC,W","sources":["node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","src/brew/brew.ts","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js","packages/root-tools/src/index.ts","packages/untildify-user/src/index.ts","packages/exec-powershell/src/index.ts","src/utils/env/addEnv.ts","src/utils/setup/setupAptPack.ts","src/utils/setup/setupPacmanPack.ts","src/utils/setup/setupBrewPack.ts","src/chocolatey/chocolatey.ts","src/utils/setup/setupChocoPack.ts","src/utils/env/isArch.ts","src/utils/env/hasDnf.ts","src/utils/setup/setupDnfPack.ts","src/utils/env/isUbuntu.ts","packages/extension-tools/src/index.ts","src/sevenzip/sevenzip.ts","packages/user-access/src/index.ts","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/tool-cache.ts","src/utils/setup/extract.ts","src/utils/setup/setupBin.ts","src/task/task.ts","src/cmake/cmake.ts","src/python/python.ts","src/utils/http/validate_url.ts","src/utils/setup/version.ts","src/default_versions.ts","src/utils/setup/setupPipPack.ts","src/graphviz/graphviz.ts","src/doxygen/doxygen.ts","src/macos-sdk/macos-sdk.ts","src/gcc/gcc.ts","src/llvm/llvm.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/lib.js","src/vcvarsall/vcvarsall.ts","src/msvc/msvc.ts","src/ninja/ninja.ts","node_modules/.pnpm/mri@1.2.0/node_modules/mri/lib/index.mjs","src/kcov/kcov.ts","src/main.ts","src/utils/env/ubuntu_version.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/oidc-utils.ts","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/index.ts","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/proxy.ts","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/auth.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/summary.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/path-utils.ts","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","src/utils/io/io.ts","node_modules/.pnpm/github.com+aminya+ci-detect@37fe40075bebec96794ba0a7c4a6d5c70cbea00d/node_modules/@npmcli/ci-detect/lib/index.js","node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js","node_modules/.pnpm/@actions+io@1.1.2/node_modules/@actions/io/src/io.ts","node_modules/.pnpm/@actions+io@1.1.2/node_modules/@actions/io/src/io-util.ts","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/manifest.ts","node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js","node_modules/.pnpm/lru-cache@7.8.1/node_modules/lru-cache/index.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/v4.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/rng.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/bytesToUuid.js","node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/src/exec.ts","node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/src/toolrunner.ts","node_modules/.pnpm/@parcel+runtime-js@2.6.2_@parcel+core@2.6.2/node_modules/@parcel/runtime-js/lib/runtime-8fa2e9236252370d.js","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/lib/time-delta.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/index.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib/numerous.js","node_modules/.pnpm/is-node@1.0.2/node_modules/is-node/index.js","node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js","node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js","node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js","node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js","node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js","node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/main.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/signals.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/core.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/realtime.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js","node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js","node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js","node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js","node_modules/.pnpm/untildify@4.0.0/node_modules/untildify/index.js","node_modules/.pnpm/github.com+aminya+escape-path-with-spaces@d9f81ee649203ddc55783a2f96ada59df06118e3/node_modules/escape-path-with-spaces/index.js","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/retry-helper.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/index.js","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/locales/en.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/locales/en.js","node_modules/.pnpm/ubuntu-version@2.0.0/node_modules/ubuntu-version/index.js","src/vcpkg/vcpkg.ts","src/nala/nala.ts","src/bazel/bazel.ts","src/conan/conan.ts","src/meson/meson.ts","src/gcovr/gcovr.ts","src/opencppcoverage/opencppcoverage.ts","src/ccache/ccache.ts","src/cppcheck/cppcheck.ts","src/make/make.ts"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","import { execFileSync } from \"child_process\"\nimport { dirname } from \"path\"\nimport which from \"which\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n execFileSync(`/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"`, {\n stdio: \"inherit\",\n })\n binDir = \"/usr/local/bin/\"\n\n return { binDir }\n}\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","import which from \"which\"\nimport execa from \"execa\"\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return (Boolean(process.env.CI) || isRoot()) && which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/** Detect if the process has root privileges */\nexport function isRoot(): boolean {\n return process.getuid?.() === 0\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: execa.SyncOptions = { stdio: \"inherit\", shell: true }\n): execa.ExecaSyncReturnValue {\n if (isSudo()) {\n return execa.commandSync(`sudo ${[program, ...args].map((arg) => `'${arg}'`).join(\" \")}`, execOptions)\n } else {\n return execa.sync(program, args, execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: execa.Options = { stdio: \"inherit\", shell: true }\n): execa.ExecaChildProcess {\n if (isSudo()) {\n return execa.command(`sudo ${[program, ...args].map((arg) => `'${arg}'`).join(\" \")}`, execOptions)\n } else {\n return execa(program, args, execOptions)\n }\n}\n","import { join } from \"path\"\nimport untildify from \"untildify\"\nimport { isSudo } from \"root-tools\"\n\nexport function untildifyUser(path: string) {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER, path)\n } else {\n return join(\"/home/\", process.env.SUDO_USER, path)\n }\n } else {\n return untildify(`~/${path}`)\n }\n}\n","import execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" }\n): execa.ExecaChildProcess {\n return execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" }\n): execa.ExecaSyncReturnValue {\n return execa.sync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import { exportVariable, addPath as ghAddPath, info, setFailed } from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { untildifyUser } from \"untildify-user\"\nimport { appendFileSync, existsSync, readFileSync } from \"fs\"\nimport { error, warning } from \"../io/io\"\nimport { execPowershell } from \"exec-powershell\"\nimport { delimiter } from \"path\"\nimport escapeSpace from \"escape-path-with-spaces\"\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(name: string, valGiven: string | undefined, shouldEscapeSpace: boolean = false) {\n const val = shouldEscapeSpace ? escapeSpace(valGiven ?? \"\") : valGiven\n try {\n if (ciDetect() === \"github-actions\") {\n try {\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val)\n }\n } else {\n await addEnvSystem(name, val)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (ciDetect() === \"github-actions\") {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\".cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execa.sync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execa.sync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport function setupCppInProfile() {\n if (setupCppInProfile_called) {\n return\n }\n\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"export SOURCE_CPPRC=0\"\n\n if (existsSync(cpprc_path)) {\n const cpprc_content = readFileSync(cpprc_path, \"utf8\")\n if (cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n return\n }\n }\n\n appendFileSync(cpprc_path, `\\n${source_cpprc_str}\\n`)\n info(`Added ${source_cpprc_str} to ${cpprc_path}`)\n\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n // source cpprc in .profile\n const profile_path = untildifyUser(\".profile\")\n appendFileSync(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n\n // source cpprc in .bashrc too\n const bashrc_path = untildifyUser(\".bashrc\")\n appendFileSync(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info } from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { addEnv, cpprc_path, setupCppInProfile } from \"../env/addEnv\"\nimport { appendFileSync, existsSync } from \"fs\"\nimport which from \"which\"\n\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(\n name: string,\n version?: string,\n repositories: string[] = [],\n update = false\n): Promise {\n const apt: string = getApt()\n\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n if (Array.isArray(repositories) && repositories.length !== 0) {\n for (const repo of repositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"--update\", \"-y\", repo])\n }\n updateRepos(apt)\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", `${name}=${version}`])\n } catch {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", `${name}-${version}`])\n }\n } else {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nfunction getApt() {\n let apt: string\n if (which.sync(\"nala\", { nothrow: true }) !== null) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\")\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\")\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n await addEnv(\"LANG\", \"C.UTF-8\")\n await addEnv(\"LC_ALL\", \"C.UTF-8\")\n }\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!existsSync(fileName)) {\n initGpg()\n for (const key of keys) {\n execRootSync(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n }\n return fileName\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!existsSync(fileName)) {\n initGpg()\n await setupAptPack(\"curl\", undefined)\n execRootSync(\"bash\", [\"-c\", `curl -s ${url} | gpg --no-default-keyring --keyring gnupg-ring:${fileName} --import`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport function updateAptAlternatives(name: string, path: string) {\n if (ciDetect() === \"github-actions\") {\n return execRootSync(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, \"40\"])\n } else {\n setupCppInProfile()\n return appendFileSync(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} 40; fi\\n`\n )\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info } from \"../io/io\"\n\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport function setupPacmanPack(name: string, version?: string, aur?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (!didUpdate) {\n execRootSync(pacman, [\"-Syuu\", \"--noconfirm\"])\n didUpdate = true\n }\n\n if (!didInit) {\n // install base-devel\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", `${name}=${version}`])\n } catch {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", `${name}${version}`])\n }\n } else {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport function setupBrewPack(name: string, version?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n // brew is not thread-safe\n execa.sync(\"brew\", [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name], {\n stdio: \"inherit\",\n })\n\n return { binDir: \"/usr/local/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname } from \"path\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execa.sync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" }\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (existsSync(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","/* eslint-disable require-atomic-updates */\nimport { addPath } from \"../env/addEnv\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { InstallationInfo } from \"./setupBin\"\nimport execa from \"execa\"\nimport { info } from \"@actions/core\"\nimport { notice } from \"../io/io\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execa.sync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execa.sync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n notice(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info, warning } from \"../io/io\"\n\n// let didUpdate: boolean = false\n\n/** A function that installs a package using dnf */\nexport function setupDnfPack(name: string, version?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n\n const dnf = \"dnf\"\n\n // if (!didUpdate) {\n // execRootSync(dnf, [\"-y\", \"check-update\"])\n // didUpdate = true\n // }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(dnf, [\"-y\", \"install\", `${name}-${version}`])\n } catch (err) {\n warning(`${(err as Error).toString()}\\nInstalling the default version available via dnf`)\n execRootSync(dnf, [\"-y\", \"install\", name])\n }\n } else {\n execRootSync(dnf, [\"-y\", \"install\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.exe` on Windows\n * @param unix_ext `\"\"` On unix.\n */\nexport function addBinExtension(name: string, win_ext = \".exe\", unix_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${unix_ext}`\n}\n\n/**\n * Add native shell extension to the given name\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.bat` on Windows\n * @param unix_ext `.sh` On unix.\n */\nexport function addShellExtension(name: string, win_ext = \".bat\", unix_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${unix_ext}`\n}\n\n/** Prefix a `./` for unix shell and nothing for the cmd shell */\nexport function addShellHere(name: string) {\n if (process.platform === \"win32\") {\n return name\n }\n return `./${name}`\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n setupDnfPack(\"p7zip\", version)\n return setupDnfPack(\"p7zip-plugins\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"p7zip-full\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { isSudo, execRootSync } from \"root-tools\"\n\n/**\n * Give the user access to the given path and its sub-directories. It changes the owner to the SUDO_USER. This allows\n * the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport function giveUserAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n execRootSync(\"chown\", [\"-R\", process.env.SUDO_USER, path], { cwd: path, stdio: \"inherit\", shell: true })\n }\n}\n",null,"import execa from \"execa\"\nimport { mkdirP } from \"@actions/io\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nimport { warning } from \"../io/io\"\nimport { giveUserAccess } from \"user-access\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n giveUserAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n giveUserAccess(dest)\n return dest\n}\n","import { find, downloadTool, cacheDir } from \"@actions/tool-cache\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../env/addEnv\"\nimport { join } from \"path\"\nimport { existsSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\nimport { isArch } from \"../env/isArch\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { isUbuntu } from \"../env/isUbuntu\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise | Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch\n )\n\n // Restore from cache (if found).\n if (ciDetect() === \"github-actions\") {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (existsSync(binDir) && existsSync(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if (!existsSync(binDir) || !existsSync(binFile)) {\n info(`Download and extract ${name} ${version}`)\n\n if (!didInit) {\n if (process.platform === \"linux\") {\n // extraction dependencies\n if (isArch()) {\n setupPacmanPack(\"unzip\")\n setupPacmanPack(\"tar\")\n setupPacmanPack(\"xz\")\n } else if (hasDnf()) {\n setupDnfPack(\"unzip\")\n setupDnfPack(\"tar\")\n setupDnfPack(\"xz\")\n } else if (isUbuntu()) {\n await setupAptPack(\"unzip\")\n await setupAptPack(\"tar\")\n await setupAptPack(\"xz-utils\")\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n try {\n const downloaded = await downloadTool(url)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (ciDetect() === \"github-actions\" && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","import { addBinExtension } from \"extension-tools\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport semverLte from \"semver/functions/lte\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractZip } from \"../utils/setup/extract\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { warning, info } from \"../utils/io/io\"\nimport { isArch } from \"../utils/env/isArch\"\nimport which from \"which\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { dirname, join } from \"path\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string) {\n if (ciDetect() !== \"github-actions\") {\n // TODO parse version\n return setupPythonViaSystem(version, setupDir, arch)\n }\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n return setupActionsPython(version, setupDir, arch)\n } catch (err) {\n warning((err as Error).toString())\n return setupPythonViaSystem(version, setupDir, arch)\n }\n}\n\nexport async function setupPythonViaSystem(\n version: string,\n setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const pythonBinPath =\n which.sync(\"python3.exe\", { nothrow: true }) ??\n which.sync(\"python.exe\", { nothrow: true }) ??\n join(setupDir, \"python.exe\")\n const pythonSetupDir = dirname(pythonBinPath)\n /** The directory which the tool is installed to */\n await activateWinPython(pythonSetupDir)\n return { installDir: pythonSetupDir, binDir: pythonSetupDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"python3\", version)\n }\n case \"linux\": {\n let installInfo: InstallationInfo\n if (isArch()) {\n installInfo = setupPacmanPack(\"python\", version)\n setupPacmanPack(\"python-pip\")\n } else if (hasDnf()) {\n installInfo = setupDnfPack(\"python3\", version)\n setupDnfPack(\"python3-pip\")\n } else if (isUbuntu()) {\n installInfo = await setupAptPack(\"python3\", version)\n await setupAptPack(\"python3-pip\")\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n return installInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinPython(binDir: string) {\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n}\n","import * as https from \"https\"\n\nexport function isValidUrl(url: string) {\n return new Promise((resolve) => {\n https.get(url, (res) => {\n if (res.statusCode !== undefined && res.statusCode >= 200 && res.statusCode <= 399) {\n resolve(true)\n } else {\n resolve(false)\n }\n })\n })\n}\n","import { isValidUrl } from \"../http/validate_url\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverValid from \"semver/functions/valid\"\nimport { getExecOutput } from \"@actions/exec\"\nimport { info } from \"../io/io\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort()\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isValidUrl(url))) {\n return [version, url]\n }\n }\n\n if (!versions.has(version)) {\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n }\n\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isValidUrl(url))) {\n return [specificVersion, url]\n }\n }\n\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return version\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (\n typeof givenVersion === \"string\" &&\n typeof targetVersion === \"string\" &&\n givenVersion !== \"\" &&\n targetVersion !== \"\"\n ) {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","import { Inputs, Opts } from \"./main\"\nimport { isArch } from \"./utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nconst DefaultVersions: Record = {\n llvm: \"13.0.0\", // https://github.com/llvm/llvm-project/releases\n clangtidy: \"13.0.0\",\n clangformat: \"13.0.0\",\n ninja: \"1.11.0\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.23.2\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.1\", // https://pypi.org/project/gcovr/\n conan: \"1.50.0\", // https://github.com/conan-io/conan/releases\n meson: \"0.63.0\", // https://github.com/mesonbuild/meson/releases\n kcov: \"40\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.14.0\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.9.3-1\" : \"1.9.4\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: \"11\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nconst DefaultUbuntuVersion: Record> = {\n llvm: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 20: \"5.1\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"0.63.0\",\n 18: \"0.61.4\",\n },\n doxygen: {\n 20: \"1.9.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"40\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (useDefault(version, name)) {\n // choose the default linux version based on ubuntu version\n if (process.platform === \"linux\" && osVersion !== null && name in DefaultUbuntuVersion) {\n const osVersionMaj = osVersion[0]\n const newest = parseInt(Object.keys(DefaultUbuntuVersion[name])[0], 10) // newest version with the default\n if (osVersionMaj >= newest) {\n return DefaultUbuntuVersion[name][osVersionMaj]\n } else {\n return \"\"\n }\n }\n // anything else\n return DefaultVersions[name]\n } else {\n return version ?? \"\"\n }\n}\n\nfunction useDefault(version: string | undefined, name: string) {\n return version === \"true\" || (version === undefined && name in DefaultVersions)\n}\n\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n for (let i = 0; i < tools.length; i++) {\n // tools excluding i_tool\n const otherTools = tools.slice(0, i).concat(tools.slice(i + 1))\n\n const tool = tools[i]\n\n if (!useDefault(opts[tool], tool)) {\n for (let i_other = 0; i_other < otherTools.length; i_other++) {\n const otherTool = otherTools[i_other]\n const useDefaultOtherTool = useDefault(opts[otherTool], otherTools[i_other])\n if (useDefaultOtherTool) {\n // use the same version if the other tool was requested with the default\n opts[otherTool] = opts[tool]\n } else if (opts[tool] !== opts[otherTools[i_other]]) {\n // error if different from the other given versions\n return false\n }\n }\n }\n }\n return true\n}\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../env/addEnv\"\nimport { setupPython } from \"../../python/python\"\nimport { isBinUptoDate } from \"./version\"\nimport { join } from \"path\"\nimport { getVersion } from \"../../default_versions\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { setupDnfPack } from \"./setupDnfPack\"\n\nlet python: string | undefined\nlet binDir: string | undefined\n\nlet tried = false\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(name: string, version?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pip`)\n\n // setup python and pip if needed\n if (python === undefined) {\n if (which.sync(\"python3\", { nothrow: true }) !== null) {\n python = \"python3\"\n } else if (which.sync(\"python\", { nothrow: true }) !== null && (await isBinUptoDate(\"python\", \"3.0.0\"))) {\n python = \"python\"\n } else {\n info(\"python3 was not found. Installing python\")\n await setupPython(getVersion(\"python\", undefined), \"\", process.arch)\n // try again\n if (tried) {\n throw new Error(\"Failed to install python\")\n }\n tried = true\n return setupPipPack(name, version)\n }\n if (process.platform === \"win32\") {\n // downgrade pip on Windows\n // https://github.com/pypa/pip/issues/10875#issuecomment-1030293005\n execa.sync(python, [\"-m\", \"pip\", \"install\", \"-U\", \"pip==21.3.1\"], { stdio: \"inherit\" })\n } else if (process.platform === \"linux\") {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n if (isArch()) {\n setupPacmanPack(\"python-pip\")\n } else if (hasDnf()) {\n setupDnfPack(\"python3-pip\")\n } else if (isUbuntu()) {\n await setupAptPack(\"python3-pip\")\n }\n }\n\n // install wheel (required for Conan, Meson, etc.)\n execa.sync(python, [\"-m\", \"pip\", \"install\", \"-U\", \"wheel\"], { stdio: \"inherit\" })\n }\n\n execa.sync(python, [\"-m\", \"pip\", \"install\", version !== undefined && version !== \"\" ? `${name}==${version}` : name], {\n stdio: \"inherit\",\n })\n\n if (binDir === undefined) {\n if (process.platform === \"linux\") {\n binDir = \"/home/runner/.local/bin/\"\n } else if (process.platform === \"darwin\") {\n binDir = \"/usr/local/bin/\"\n } else {\n // windows or others\n try {\n binDir = join(\n (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim(),\n \"Scripts\"\n )\n } catch {\n binDir = join(\n (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim(),\n \"Scripts\"\n )\n }\n }\n info(`${binDir} to PATH`)\n await addPath(binDir)\n }\n\n return { binDir }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"graphviz\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"graphviz\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { notice } from \"../utils/io/io\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { getVersion } from \"../default_versions\"\nimport { existsSync } from \"fs\"\nimport { join } from \"path\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"doxygen.install\", version)\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n const installationInfo = setupBrewPack(\"doxygen\", undefined)\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"doxygen\", version)\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack(\"doxygen\", version)\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n await setupAptPack(\"libclang-cpp9\")\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack(\"doxygen\", undefined)\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]) {\n if (existsSync(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { error } from \"../utils/io/io\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import { addPath, addEnv } from \"../utils/env/addEnv\"\nimport { existsSync } from \"fs\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport semverMajor from \"semver/functions/major\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport path from \"path\"\nimport { warning, info } from \"../utils/io/io\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { addBinExtension } from \"extension-tools\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"12\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"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\" },\n \"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\" },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"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\" },\n \"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\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"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\" },\n \"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\" },\n \"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\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = setupDnfPack(\"gcc\", version)\n setupDnfPack(\"gcc-c++\", version)\n setupDnfPack(\"libstdc++-devel\", undefined)\n } else if (isUbuntu()) {\n await setupAptPack(\"gcc\", version, [\"ppa:ubuntu-toolchain-r/test\"])\n installationInfo = await setupAptPack(\"g++\", version, [])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack(\"gcc-multilib\", version, [\"ppa:ubuntu-toolchain-r/test\"])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && existsSync(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && existsSync(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (existsSync(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string) {\n const promises: Promise[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addBinExtension(`${binDir}/gcc`)), addEnv(\"CXX\", addBinExtension(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`)\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`)\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`)\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`)\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`)\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`)\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`)\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`)\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (ciDetect() === \"github-actions\") {\n addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nfunction addGccLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"gcc_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import * as path from \"path\"\nimport semverLte from \"semver/functions/lte\"\nimport semverMajor from \"semver/functions/major\"\nimport { isValidUrl } from \"../utils/http/validate_url\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport {\n getSpecificVersionAndUrl,\n getSpecificVersions,\n getVersions,\n semverCoerceIfInvalid,\n} from \"../utils/setup/version\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addBinExtension } from \"extension-tools\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setOutput } from \"@actions/core\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { info, warning } from \"../utils/io/io\"\nimport { existsSync } from \"fs\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { getVersion } from \"../default_versions\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n//================================================\n// Version\n//================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n])\n\n//================================================\n// URL\n//================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING: Set = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n])\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"14.0.0\"\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let ubuntu: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n ubuntu = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n ubuntu = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n ubuntu = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${ubuntu} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n const suffix = version === \"5.0.0\" ? `-linux-x86_64${ubuntu}.tar.xz` : `-x86_64-linux-gnu${ubuntu}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\"])\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isValidUrl(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\n//================================================\n// Exports\n//================================================\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nasync function getLLVMPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n setOutput(\"version\", specificVersion)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addBinExtension(\"clang\"),\n extractFunction:\n platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await _setupLLVM(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir, version)\n return installationInfo\n}\n\nlet didInit = false\nasync function _setupLLVM(version: string, setupDir: string, arch: string) {\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n if (!didInit) {\n if (process.platform === \"linux\") {\n // install llvm build dependencies\n await setupGcc(getVersion(\"gcc\", undefined), \"\", arch) // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first\n if (isArch()) {\n // setupPacmanPack(\"ncurses\")\n // TODO: install libtinfo ?\n } else if (isUbuntu()) {\n await setupAptPack(\"libtinfo-dev\")\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n return installationInfo\n}\n\nexport async function activateLLVM(directory: string, versionGiven: string) {\n const version = semverCoerceIfInvalid(versionGiven)\n\n const lib = path.join(directory, \"lib\")\n\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const promises = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${lib}${path.delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${lib}${path.delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addBinExtension(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addBinExtension(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // windows builds fail with llvm's CPATH\n if (process.platform !== \"win32\") {\n const llvmMajor = semverMajor(version)\n if (existsSync(`${directory}/lib/clang/${version}/include`)) {\n promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n } else if (existsSync(`${directory}/lib/clang/${llvmMajor}/include`)) {\n promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n }\n }\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`)\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`)\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`)\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`)\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`)\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`)\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`)\n }\n\n if (ciDetect() === \"github-actions\") {\n addLLVMLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\n/** Setup llvm tools (clang tidy, clang format, etc) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string): Promise {\n if (ciDetect() === \"github-actions\") {\n addLLVMLoggingMatcher()\n }\n return _setupLLVM(version, setupDir, arch)\n}\n\nfunction addLLVMLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"llvm_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n",null,null,"const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/** See https://github.com/ilammy/msvc-dev-cmd#inputs */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n if (uwp == 'true') {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre == 'true') {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, { shell: \"cmd\" }).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd","import { existsSync } from \"fs\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { info } from \"../utils/io/io\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n) {\n if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { vsversion_to_versionnumber, findVcvarsall } from \"msvc-dev-cmd/lib.js\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport path from \"path\"\nimport { existsSync } from \"fs\"\nimport { error, info, warning } from \"../utils/io/io\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (ciDetect() === \"github-actions\") {\n addMSVCLoggingMatcher()\n }\n}\n\nfunction addMSVCLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"msvc_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { addBinExtension } from \"extension-tools\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import execa from \"execa\"\nimport { join } from \"path\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { getVersion } from \"../default_versions\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { info } from \"../utils/io/io\"\nimport { untildifyUser } from \"untildify-user\"\nimport { setupNinja } from \"../ninja/ninja\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addBinExtension(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addBinExtension(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n setupPacmanPack(\"libdwarf\")\n setupPacmanPack(\"libcurl-openssl\")\n } else if (hasDnf()) {\n setupDnfPack(\"libdwarf-devel\")\n setupDnfPack(\"libcurl-devel\")\n } else if (isUbuntu()) {\n await setupAptPack(\"libdw-dev\")\n await setupAptPack(\"libcurl4-openssl-dev\")\n }\n }\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(getVersion(\"cmake\", undefined), join(untildifyUser(\"\"), \"cmake\"), \"\")\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined), join(untildifyUser(\"\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n setupDnfPack(\"binutils\")\n } else if (isUbuntu()) {\n await setupAptPack(\"libbinutils\")\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { getInput, endGroup, startGroup, notice } from \"@actions/core\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupMake } from \"./make/make\"\nimport { setupTask } from \"./task/task\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupLLVM, setupClangTools } from \"./llvm/llvm\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPython } from \"./python/python\"\nimport mri from \"mri\"\nimport { untildifyUser } from \"untildify-user\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport * as timeDelta from \"time-delta\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport * as numerous from \"numerous\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport numerousLocale from \"numerous/locales/en.js\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\n\nimport semverValid from \"semver/functions/valid\"\nimport { getVersion, syncVersions } from \"./default_versions\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { error, info, success, warning } from \"./utils/io/io\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { join } from \"path\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupBazel } from \"./bazel/bazel\"\n\n/** The setup functions */\nconst setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n ccache: setupCcache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangTools,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\n/** The tools that can be installed */\nconst tools: Array = [\n \"nala\",\n \"choco\",\n \"brew\",\n \"python\",\n \"vcpkg\",\n \"bazel\",\n \"cmake\",\n \"ninja\",\n \"conan\",\n \"meson\",\n \"gcovr\",\n \"opencppcoverage\",\n \"ccache\",\n \"doxygen\",\n \"graphviz\",\n \"cppcheck\",\n \"clangtidy\",\n \"clangformat\",\n \"llvm\",\n \"gcc\",\n \"msvc\",\n \"vcvarsall\",\n \"kcov\",\n \"make\",\n \"task\",\n \"sevenzip\",\n]\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\"\n\n// an array of possible inputs\nconst inputs: Array = [\"compiler\", \"architecture\", ...tools]\n\n/** The main entry function */\nexport async function main(args: string[]): Promise {\n if (ciDetect() !== \"github-actions\") {\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n let osVersion: number[] | null = null\n try {\n // get the version if not already done\n osVersion = await ubuntuVersion()\n } catch (err) {\n warning((err as Error).toString())\n }\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n // loop over the tools and run their setup function\n for (const tool of tools) {\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n startGroup(`Installing ${tool} ${version}`)\n try {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(\n getVersion(tool, version, osVersion),\n undefined,\n arch,\n undefined,\n undefined,\n false,\n false\n )\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool) ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n time1 = Date.now()\n try {\n if (maybeCompiler !== undefined) {\n const { compiler, version } = getCompilerInfo(maybeCompiler)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch\n )\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const installationInfo = await setupGcc(getVersion(\"gcc\", version, osVersion), join(setupCppDir, \"gcc\"), arch)\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch\n )\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n } catch (e) {\n error(e as string | Error)\n errorMessages.push(`Failed to install the ${maybeCompiler}`)\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup_cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup_cpp finished\")\n\n if (ciDetect() !== \"github-actions\") {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n }\n>\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: inputs,\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(maybeCompiler: string) {\n const compilerAndMaybeVersion = maybeCompiler.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\nfunction printHelp() {\n 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 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 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--bazel\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--nala\n--sevenzip\n--graphviz\n `)\n}\n\n/** Get an object from github actions */\nfunction maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\n\nfunction getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","import { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nexport async function ubuntuVersion(): Promise {\n if (isUbuntu()) {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack(\"lsb-release\")\n }\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n throw new Error(\"Failed to get the ubuntu major version.\")\n }\n\n return versionSplitted\n } else {\n return null\n }\n}\n",null,null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,"module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","import * as core from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\n\nexport function error(err: string | Error) {\n return ciDetect() === \"github-actions\" ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return ciDetect() === \"github-actions\" ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return ciDetect() === \"github-actions\" ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return ciDetect() === \"github-actions\" ? core.info(msg) : console.log(msg)\n}\n","module.exports = () =>\n process.env.GERRIT_PROJECT ? 'gerrit'\n : process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI ? 'azure-pipelines'\n : process.env.BITRISE_IO ? 'bitrise'\n : process.env.BUDDY_WORKSPACE_ID ? 'buddy'\n : process.env.BUILDKITE ? 'buildkite'\n : process.env.CIRRUS_CI ? 'cirrus'\n : process.env.GITLAB_CI ? 'gitlab'\n : process.env.APPVEYOR ? 'appveyor'\n : process.env.CIRCLECI ? 'circle-ci'\n : process.env.SEMAPHORE ? 'semaphore'\n : process.env.DRONE ? 'drone'\n : process.env.DSARI ? 'dsari'\n : process.env.GITHUB_ACTION ? 'github-actions'\n : process.env.TDDIUM ? 'tddium'\n : process.env.SCREWDRIVER ? 'screwdriver'\n : process.env.STRIDER ? 'strider'\n : process.env.TASKCLUSTER_ROOT_URL ? 'taskcluster'\n : process.env.JENKINS_URL ? 'jenkins'\n : process.env['bamboo.buildKey'] ? 'bamboo'\n : process.env.GO_PIPELINE_NAME ? 'gocd'\n : process.env.HUDSON_URL ? 'hudson'\n : process.env.WERCKER ? 'wercker'\n : process.env.NETLIFY ? 'netlify'\n : process.env.NOW_GITHUB_DEPLOYMENT ? 'now-github'\n : process.env.GITLAB_DEPLOYMENT ? 'now-gitlab'\n : process.env.BITBUCKET_DEPLOYMENT ? 'now-bitbucket'\n : process.env.BITBUCKET_BUILD_NUMBER ? 'bitbucket-pipelines'\n : process.env.NOW_BUILDER ? 'now'\n : process.env.VERCEL_GITHUB_DEPLOYMENT ? 'vercel-github'\n : process.env.VERCEL_GITLAB_DEPLOYMENT ? 'vercel-gitlab'\n : process.env.VERCEL_BITBUCKET_DEPLOYMENT ? 'vercel-bitbucket'\n : process.env.VERCEL_URL ? 'vercel'\n : process.env.MAGNUM ? 'magnum'\n : process.env.NEVERCODE ? 'nevercode'\n : process.env.RENDER ? 'render'\n : process.env.SAIL_CI ? 'sail'\n : process.env.SHIPPABLE ? 'shippable'\n : process.env.TEAMCITY_VERSION ? 'teamcity'\n // codeship and a few others\n : process.env.CI_NAME ? process.env.CI_NAME\n // heroku doesn't set envs other than node in a heroku-specific location\n : /\\/\\.heroku\\/node\\/bin\\/node$/.test(process.env.NODE || '') ? 'heroku'\n // test travis after the others, since several CI systems mimic it\n : process.env.TRAVIS ? 'travis-ci'\n // aws CodeBuild/CodePipeline\n : process.env.CODEBUILD_SRC_DIR ? 'aws-codebuild'\n : process.env.CI === 'true' || process.env.CI === '1' ? 'custom'\n // Google Cloud Build - it sets almost nothing\n : process.env.BUILDER_OUTPUT ? 'builder'\n : false\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n",null,null,null,"// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nmodule.exports = {\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: require('./internal/constants').SEMVER_SPEC_VERSION,\n SemVer: require('./classes/semver'),\n compareIdentifiers: require('./internal/identifiers').compareIdentifiers,\n rcompareIdentifiers: require('./internal/identifiers').rcompareIdentifiers,\n parse: require('./functions/parse'),\n valid: require('./functions/valid'),\n clean: require('./functions/clean'),\n inc: require('./functions/inc'),\n diff: require('./functions/diff'),\n major: require('./functions/major'),\n minor: require('./functions/minor'),\n patch: require('./functions/patch'),\n prerelease: require('./functions/prerelease'),\n compare: require('./functions/compare'),\n rcompare: require('./functions/rcompare'),\n compareLoose: require('./functions/compare-loose'),\n compareBuild: require('./functions/compare-build'),\n sort: require('./functions/sort'),\n rsort: require('./functions/rsort'),\n gt: require('./functions/gt'),\n lt: require('./functions/lt'),\n eq: require('./functions/eq'),\n neq: require('./functions/neq'),\n gte: require('./functions/gte'),\n lte: require('./functions/lte'),\n cmp: require('./functions/cmp'),\n coerce: require('./functions/coerce'),\n Comparator: require('./classes/comparator'),\n Range: require('./classes/range'),\n satisfies: require('./functions/satisfies'),\n toComparators: require('./ranges/to-comparators'),\n maxSatisfying: require('./ranges/max-satisfying'),\n minSatisfying: require('./ranges/min-satisfying'),\n minVersion: require('./ranges/min-version'),\n validRange: require('./ranges/valid'),\n outside: require('./ranges/outside'),\n gtr: require('./ranges/gtr'),\n ltr: require('./ranges/ltr'),\n intersects: require('./ranges/intersects'),\n simplifyRange: require('./ranges/simplify'),\n subset: require('./ranges/subset'),\n}\n","const { MAX_SAFE_COMPONENT_LENGTH } = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst createToken = (name, value, isGlobal) => {\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', '\\\\d*[a-zA-Z-][a-zA-Z0-9-]*')\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\nmodule.exports = {\n SEMVER_SPEC_VERSION,\n MAX_LENGTH,\n MAX_SAFE_INTEGER,\n MAX_SAFE_COMPONENT_LENGTH,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about so we always get a consistent\n// obj with keys in a consistent order.\nconst opts = ['includePrerelease', 'loose', 'rtl']\nconst parseOptions = options =>\n !options ? {}\n : typeof options !== 'object' ? { loose: true }\n : opts.filter(k => options[k]).reduce((o, k) => {\n o[k] = true\n return o\n }, {})\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const { MAX_LENGTH } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\nconst SemVer = require('../classes/semver')\n\nconst parseOptions = require('../internal/parse-options')\nconst parse = (version, options) => {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n const r = options.loose ? re[t.LOOSE] : re[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier) => {\n if (typeof (options) === 'string') {\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse')\nconst eq = require('./eq')\n\nconst diff = (version1, version2) => {\n if (eq(version1, version2)) {\n return null\n } else {\n const v1 = parse(version1)\n const v2 = parse(version2)\n const hasPre = v1.prerelease.length || v2.prerelease.length\n const prefix = hasPre ? 'pre' : ''\n const defaultResult = hasPre ? 'prerelease' : ''\n for (const key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\nmodule.exports = diff\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false,\n }\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n const sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n const sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n const sameSemVer = this.semver.version === comp.semver.version\n const differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n const oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<')\n const oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>')\n\n return (\n sameDirectionIncreasing ||\n sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan ||\n oppositeDirectionsGreaterThan\n )\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First, split based on boolean or ||\n this.raw = range\n this.set = range\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${range}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => {\n return comps.join(' ').trim()\n })\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n range = range.trim()\n\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = Object.keys(this.options).join(',')\n const memoKey = `parseRange:${memoOpts}:${range}`\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\nconst replaceTildes = (comp, options) =>\n comp.trim().split(/\\s+/).map((c) => {\n return replaceTilde(c, options)\n }).join(' ')\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\nconst replaceCarets = (comp, options) =>\n comp.trim().split(/\\s+/).map((c) => {\n return replaceCaret(c, options)\n }).join(' ')\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map((c) => {\n return replaceXRange(c, options)\n }).join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp.trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return (`${from} ${to}`).trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","const perf = typeof performance === 'object' && performance &&\n typeof performance.now === 'function' ? performance : Date\n\nconst hasAbortController = typeof AbortController !== 'undefined'\n\n// minimal backwards-compatibility polyfill\nconst AC = hasAbortController ? AbortController : Object.assign(\n class AbortController {\n constructor () { this.signal = new AC.AbortSignal }\n abort () { this.signal.aborted = true }\n },\n { AbortSignal: class AbortSignal { constructor () { this.aborted = false }}}\n)\n\nconst warned = new Set()\nconst deprecatedOption = (opt, instead) => {\n const code = `LRU_CACHE_OPTION_${opt}`\n if (shouldWarn(code)) {\n warn(code, `${opt} option`, `options.${instead}`, LRUCache)\n }\n}\nconst deprecatedMethod = (method, instead) => {\n const code = `LRU_CACHE_METHOD_${method}`\n if (shouldWarn(code)) {\n const { prototype } = LRUCache\n const { get } = Object.getOwnPropertyDescriptor(prototype, method)\n warn(code, `${method} method`, `cache.${instead}()`, get)\n }\n}\nconst deprecatedProperty = (field, instead) => {\n const code = `LRU_CACHE_PROPERTY_${field}`\n if (shouldWarn(code)) {\n const { prototype } = LRUCache\n const { get } = Object.getOwnPropertyDescriptor(prototype, field)\n warn(code, `${field} property`, `cache.${instead}`, get)\n }\n}\n\nconst emitWarning = (...a) => {\n typeof process === 'object' &&\n process &&\n typeof process.emitWarning === 'function'\n ? process.emitWarning(...a)\n : console.error(...a)\n}\n\nconst shouldWarn = code => !warned.has(code)\n\nconst warn = (code, what, instead, fn) => {\n warned.add(code)\n const msg = `The ${what} is deprecated. Please use ${instead} instead.`\n emitWarning(msg, 'DeprecationWarning', code, fn)\n}\n\nconst isPosInt = n => n && n === Math.floor(n) && n > 0 && isFinite(n)\n\n/* istanbul ignore next - This is a little bit ridiculous, tbh.\n * The maximum array length is 2^32-1 or thereabouts on most JS impls.\n * And well before that point, you're caching the entire world, I mean,\n * that's ~32GB of just integers for the next/prev links, plus whatever\n * else to hold that many keys and values. Just filling the memory with\n * zeroes at init time is brutal when you get that big.\n * But why not be complete?\n * Maybe in the future, these limits will have expanded. */\nconst getUintArray = max => !isPosInt(max) ? null\n: max <= Math.pow(2, 8) ? Uint8Array\n: max <= Math.pow(2, 16) ? Uint16Array\n: max <= Math.pow(2, 32) ? Uint32Array\n: max <= Number.MAX_SAFE_INTEGER ? ZeroArray\n: null\n\nclass ZeroArray extends Array {\n constructor (size) {\n super(size)\n this.fill(0)\n }\n}\n\nclass Stack {\n constructor (max) {\n if (max === 0) {\n return []\n }\n const UintArray = getUintArray(max)\n this.heap = new UintArray(max)\n this.length = 0\n }\n push (n) {\n this.heap[this.length++] = n\n }\n pop () {\n return this.heap[--this.length]\n }\n}\n\nclass LRUCache {\n constructor (options = {}) {\n const {\n max = 0,\n ttl,\n ttlResolution = 1,\n ttlAutopurge,\n updateAgeOnGet,\n updateAgeOnHas,\n allowStale,\n dispose,\n disposeAfter,\n noDisposeOnSet,\n noUpdateTTL,\n maxSize = 0,\n sizeCalculation,\n fetchMethod,\n } = options\n\n // deprecated options, don't trigger a warning for getting them if\n // the thing being passed in is another LRUCache we're copying.\n const {\n length,\n maxAge,\n stale,\n } = options instanceof LRUCache ? {} : options\n\n if (max !== 0 && !isPosInt(max)) {\n throw new TypeError('max option must be a nonnegative integer')\n }\n\n const UintArray = max ? getUintArray(max) : Array\n if (!UintArray) {\n throw new Error('invalid max value: ' + max)\n }\n\n this.max = max\n this.maxSize = maxSize\n this.sizeCalculation = sizeCalculation || length\n if (this.sizeCalculation) {\n if (!this.maxSize) {\n throw new TypeError('cannot set sizeCalculation without setting maxSize')\n }\n if (typeof this.sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation set to non-function')\n }\n }\n\n this.fetchMethod = fetchMethod || null\n if (this.fetchMethod && typeof this.fetchMethod !== 'function') {\n throw new TypeError('fetchMethod must be a function if specified')\n }\n\n this.keyMap = new Map()\n this.keyList = new Array(max).fill(null)\n this.valList = new Array(max).fill(null)\n this.next = new UintArray(max)\n this.prev = new UintArray(max)\n this.head = 0\n this.tail = 0\n this.free = new Stack(max)\n this.initialFill = 1\n this.size = 0\n\n if (typeof dispose === 'function') {\n this.dispose = dispose\n }\n if (typeof disposeAfter === 'function') {\n this.disposeAfter = disposeAfter\n this.disposed = []\n } else {\n this.disposeAfter = null\n this.disposed = null\n }\n this.noDisposeOnSet = !!noDisposeOnSet\n this.noUpdateTTL = !!noUpdateTTL\n\n if (this.maxSize !== 0) {\n if (!isPosInt(this.maxSize)) {\n throw new TypeError('maxSize must be a positive integer if specified')\n }\n this.initializeSizeTracking()\n }\n\n this.allowStale = !!allowStale || !!stale\n this.updateAgeOnGet = !!updateAgeOnGet\n this.updateAgeOnHas = !!updateAgeOnHas\n this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0\n ? ttlResolution : 1\n this.ttlAutopurge = !!ttlAutopurge\n this.ttl = ttl || maxAge || 0\n if (this.ttl) {\n if (!isPosInt(this.ttl)) {\n throw new TypeError('ttl must be a positive integer if specified')\n }\n this.initializeTTLTracking()\n }\n\n // do not allow completely unbounded caches\n if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {\n throw new TypeError('At least one of max, maxSize, or ttl is required')\n }\n if (!this.ttlAutopurge && !this.max && !this.maxSize) {\n const code = 'LRU_CACHE_UNBOUNDED'\n if (shouldWarn(code)) {\n warned.add(code)\n const msg = 'TTL caching without ttlAutopurge, max, or maxSize can ' +\n 'result in unbounded memory consumption.'\n emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache)\n }\n }\n\n if (stale) {\n deprecatedOption('stale', 'allowStale')\n }\n if (maxAge) {\n deprecatedOption('maxAge', 'ttl')\n }\n if (length) {\n deprecatedOption('length', 'sizeCalculation')\n }\n }\n\n getRemainingTTL (key) {\n return this.has(key, { updateAgeOnHas: false }) ? Infinity : 0\n }\n\n initializeTTLTracking () {\n this.ttls = new ZeroArray(this.max)\n this.starts = new ZeroArray(this.max)\n\n this.setItemTTL = (index, ttl) => {\n this.starts[index] = ttl !== 0 ? perf.now() : 0\n this.ttls[index] = ttl\n if (ttl !== 0 && this.ttlAutopurge) {\n const t = setTimeout(() => {\n if (this.isStale(index)) {\n this.delete(this.keyList[index])\n }\n }, ttl + 1)\n /* istanbul ignore else - unref() not supported on all platforms */\n if (t.unref) {\n t.unref()\n }\n }\n }\n\n this.updateItemAge = (index) => {\n this.starts[index] = this.ttls[index] !== 0 ? perf.now() : 0\n }\n\n // debounce calls to perf.now() to 1s so we're not hitting\n // that costly call repeatedly.\n let cachedNow = 0\n const getNow = () => {\n const n = perf.now()\n if (this.ttlResolution > 0) {\n cachedNow = n\n const t = setTimeout(() => cachedNow = 0, this.ttlResolution)\n /* istanbul ignore else - not available on all platforms */\n if (t.unref) {\n t.unref()\n }\n }\n return n\n }\n\n this.getRemainingTTL = (key) => {\n const index = this.keyMap.get(key)\n if (index === undefined) {\n return 0\n }\n return this.ttls[index] === 0 || this.starts[index] === 0 ? Infinity\n : ((this.starts[index] + this.ttls[index]) - (cachedNow || getNow()))\n }\n\n this.isStale = (index) => {\n return this.ttls[index] !== 0 && this.starts[index] !== 0 &&\n ((cachedNow || getNow()) - this.starts[index] > this.ttls[index])\n }\n }\n updateItemAge (index) {}\n setItemTTL (index, ttl) {}\n isStale (index) { return false }\n\n initializeSizeTracking () {\n this.calculatedSize = 0\n this.sizes = new ZeroArray(this.max)\n this.removeItemSize = index => this.calculatedSize -= this.sizes[index]\n this.requireSize = (k, v, size, sizeCalculation) => {\n if (!isPosInt(size)) {\n if (sizeCalculation) {\n if (typeof sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation must be a function')\n }\n size = sizeCalculation(v, k)\n if (!isPosInt(size)) {\n throw new TypeError('sizeCalculation return invalid (expect positive integer)')\n }\n } else {\n throw new TypeError('invalid size value (must be positive integer)')\n }\n }\n return size\n }\n this.addItemSize = (index, v, k, size) => {\n this.sizes[index] = size\n const maxSize = this.maxSize - this.sizes[index]\n while (this.calculatedSize > maxSize) {\n this.evict(true)\n }\n this.calculatedSize += this.sizes[index]\n }\n this.delete = k => {\n if (this.size !== 0) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n this.calculatedSize -= this.sizes[index]\n }\n }\n return LRUCache.prototype.delete.call(this, k)\n }\n }\n removeItemSize (index) {}\n addItemSize (index, v, k, size) {}\n requireSize (k, v, size, sizeCalculation) {\n if (size || sizeCalculation) {\n throw new TypeError('cannot set size without setting maxSize on cache')\n }\n }\n\n *indexes ({ allowStale = this.allowStale } = {}) {\n if (this.size) {\n for (let i = this.tail; true; ) {\n if (!this.isValidIndex(i)) {\n break\n }\n if (allowStale || !this.isStale(i)) {\n yield i\n }\n if (i === this.head) {\n break\n } else {\n i = this.prev[i]\n }\n }\n }\n }\n\n *rindexes ({ allowStale = this.allowStale } = {}) {\n if (this.size) {\n for (let i = this.head; true; ) {\n if (!this.isValidIndex(i)) {\n break\n }\n if (allowStale || !this.isStale(i)) {\n yield i\n }\n if (i === this.tail) {\n break\n } else {\n i = this.next[i]\n }\n }\n }\n }\n\n isValidIndex (index) {\n return this.keyMap.get(this.keyList[index]) === index\n }\n\n *entries () {\n for (const i of this.indexes()) {\n yield [this.keyList[i], this.valList[i]]\n }\n }\n *rentries () {\n for (const i of this.rindexes()) {\n yield [this.keyList[i], this.valList[i]]\n }\n }\n\n *keys () {\n for (const i of this.indexes()) {\n yield this.keyList[i]\n }\n }\n *rkeys () {\n for (const i of this.rindexes()) {\n yield this.keyList[i]\n }\n }\n\n *values () {\n for (const i of this.indexes()) {\n yield this.valList[i]\n }\n }\n *rvalues () {\n for (const i of this.rindexes()) {\n yield this.valList[i]\n }\n }\n\n [Symbol.iterator] () {\n return this.entries()\n }\n\n find (fn, getOptions = {}) {\n for (const i of this.indexes()) {\n if (fn(this.valList[i], this.keyList[i], this)) {\n return this.get(this.keyList[i], getOptions)\n }\n }\n }\n\n forEach (fn, thisp = this) {\n for (const i of this.indexes()) {\n fn.call(thisp, this.valList[i], this.keyList[i], this)\n }\n }\n\n rforEach (fn, thisp = this) {\n for (const i of this.rindexes()) {\n fn.call(thisp, this.valList[i], this.keyList[i], this)\n }\n }\n\n get prune () {\n deprecatedMethod('prune', 'purgeStale')\n return this.purgeStale\n }\n\n purgeStale () {\n let deleted = false\n for (const i of this.rindexes({ allowStale: true })) {\n if (this.isStale(i)) {\n this.delete(this.keyList[i])\n deleted = true\n }\n }\n return deleted\n }\n\n dump () {\n const arr = []\n for (const i of this.indexes()) {\n const key = this.keyList[i]\n const value = this.valList[i]\n const entry = { value }\n if (this.ttls) {\n entry.ttl = this.ttls[i]\n }\n if (this.sizes) {\n entry.size = this.sizes[i]\n }\n arr.unshift([key, entry])\n }\n return arr\n }\n\n load (arr) {\n this.clear()\n for (const [key, entry] of arr) {\n this.set(key, entry.value, entry)\n }\n }\n\n dispose (v, k, reason) {}\n\n set (k, v, {\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n } = {}) {\n size = this.requireSize(k, v, size, sizeCalculation)\n let index = this.size === 0 ? undefined : this.keyMap.get(k)\n if (index === undefined) {\n // addition\n index = this.newIndex()\n this.keyList[index] = k\n this.valList[index] = v\n this.keyMap.set(k, index)\n this.next[this.tail] = index\n this.prev[index] = this.tail\n this.tail = index\n this.size ++\n this.addItemSize(index, v, k, size)\n noUpdateTTL = false\n } else {\n // update\n const oldVal = this.valList[index]\n if (v !== oldVal) {\n if (this.isBackgroundFetch(oldVal)) {\n oldVal.__abortController.abort()\n } else {\n if (!noDisposeOnSet) {\n this.dispose(oldVal, k, 'set')\n if (this.disposeAfter) {\n this.disposed.push([oldVal, k, 'set'])\n }\n }\n }\n this.removeItemSize(index)\n this.valList[index] = v\n this.addItemSize(index, v, k, size)\n }\n this.moveToTail(index)\n }\n if (ttl !== 0 && this.ttl === 0 && !this.ttls) {\n this.initializeTTLTracking()\n }\n if (!noUpdateTTL) {\n this.setItemTTL(index, ttl)\n }\n if (this.disposeAfter) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n return this\n }\n\n newIndex () {\n if (this.size === 0) {\n return this.tail\n }\n if (this.size === this.max && this.max !== 0) {\n return this.evict(false)\n }\n if (this.free.length !== 0) {\n return this.free.pop()\n }\n // initial fill, just keep writing down the list\n return this.initialFill++\n }\n\n pop () {\n if (this.size) {\n const val = this.valList[this.head]\n this.evict(true)\n return val\n }\n }\n\n evict (free) {\n const head = this.head\n const k = this.keyList[head]\n const v = this.valList[head]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n this.dispose(v, k, 'evict')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'evict'])\n }\n }\n this.removeItemSize(head)\n // if we aren't about to use the index, then null these out\n if (free) {\n this.keyList[head] = null\n this.valList[head] = null\n this.free.push(head)\n }\n this.head = this.next[head]\n this.keyMap.delete(k)\n this.size --\n return head\n }\n\n has (k, { updateAgeOnHas = this.updateAgeOnHas } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n if (!this.isStale(index)) {\n if (updateAgeOnHas) {\n this.updateItemAge(index)\n }\n return true\n }\n }\n return false\n }\n\n // like get(), but without any LRU updating or TTL expiration\n peek (k, { allowStale = this.allowStale } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined && (allowStale || !this.isStale(index))) {\n return this.valList[index]\n }\n }\n\n backgroundFetch (k, index, options) {\n const v = index === undefined ? undefined : this.valList[index]\n if (this.isBackgroundFetch(v)) {\n return v\n }\n const ac = new AC()\n const fetchOpts = {\n signal: ac.signal,\n options,\n }\n const p = Promise.resolve(this.fetchMethod(k, v, fetchOpts)).then(v => {\n if (!ac.signal.aborted) {\n this.set(k, v, fetchOpts.options)\n }\n return v\n })\n p.__abortController = ac\n p.__staleWhileFetching = v\n if (index === undefined) {\n this.set(k, p, fetchOpts.options)\n index = this.keyMap.get(k)\n } else {\n this.valList[index] = p\n }\n return p\n }\n\n isBackgroundFetch (p) {\n return p && typeof p === 'object' && typeof p.then === 'function' &&\n Object.prototype.hasOwnProperty.call(p, '__staleWhileFetching')\n }\n\n // this takes the union of get() and set() opts, because it does both\n async fetch (k, {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n } = {}) {\n if (!this.fetchMethod) {\n return this.get(k, {allowStale, updateAgeOnGet})\n }\n\n const options = {\n allowStale,\n updateAgeOnGet,\n ttl,\n noDisposeOnSet,\n size,\n sizeCalculation,\n noUpdateTTL,\n }\n\n let index = this.keyMap.get(k)\n if (index === undefined) {\n return this.backgroundFetch(k, index, options)\n } else {\n // in cache, maybe already fetching\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n return allowStale && v.__staleWhileFetching !== undefined\n ? v.__staleWhileFetching : v\n }\n\n if (!this.isStale(index)) {\n this.moveToTail(index)\n if (updateAgeOnGet) {\n this.updateItemAge(index)\n }\n return v\n }\n\n // ok, it is stale, and not already fetching\n // refresh the cache.\n const p = this.backgroundFetch(k, index, options)\n return allowStale && p.__staleWhileFetching !== undefined\n ? p.__staleWhileFetching : p\n }\n }\n\n get (k, {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n const value = this.valList[index]\n const fetching = this.isBackgroundFetch(value)\n if (this.isStale(index)) {\n // delete only if not an in-flight background fetch\n if (!fetching) {\n this.delete(k)\n return allowStale ? value : undefined\n } else {\n return allowStale ? value.__staleWhileFetching : undefined\n }\n } else {\n // if we're currently fetching it, we don't actually have it yet\n // it's not stale, which means this isn't a staleWhileRefetching,\n // so we just return undefined\n if (fetching) {\n return undefined\n }\n this.moveToTail(index)\n if (updateAgeOnGet) {\n this.updateItemAge(index)\n }\n return value\n }\n }\n }\n\n connect (p, n) {\n this.prev[n] = p\n this.next[p] = n\n }\n\n moveToTail (index) {\n // if tail already, nothing to do\n // if head, move head to next[index]\n // else\n // move next[prev[index]] to next[index] (head has no prev)\n // move prev[next[index]] to prev[index]\n // prev[index] = tail\n // next[tail] = index\n // tail = index\n if (index !== this.tail) {\n if (index === this.head) {\n this.head = this.next[index]\n } else {\n this.connect(this.prev[index], this.next[index])\n }\n this.connect(this.tail, index)\n this.tail = index\n }\n }\n\n get del () {\n deprecatedMethod('del', 'delete')\n return this.delete\n }\n delete (k) {\n let deleted = false\n if (this.size !== 0) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n deleted = true\n if (this.size === 1) {\n this.clear()\n } else {\n this.removeItemSize(index)\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n this.dispose(v, k, 'delete')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'delete'])\n }\n }\n this.keyMap.delete(k)\n this.keyList[index] = null\n this.valList[index] = null\n if (index === this.tail) {\n this.tail = this.prev[index]\n } else if (index === this.head) {\n this.head = this.next[index]\n } else {\n this.next[this.prev[index]] = this.next[index]\n this.prev[this.next[index]] = this.prev[index]\n }\n this.size --\n this.free.push(index)\n }\n }\n }\n if (this.disposed) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n return deleted\n }\n\n clear () {\n for (const index of this.rindexes({ allowStale: true })) {\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n const k = this.keyList[index]\n this.dispose(v, k, 'delete')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'delete'])\n }\n }\n }\n\n this.keyMap.clear()\n this.valList.fill(null)\n this.keyList.fill(null)\n if (this.ttls) {\n this.ttls.fill(0)\n this.starts.fill(0)\n }\n if (this.sizes) {\n this.sizes.fill(0)\n }\n this.head = 0\n this.tail = 0\n this.initialFill = 1\n this.free.length = 0\n this.calculatedSize = 0\n this.size = 0\n if (this.disposed) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n }\n get reset () {\n deprecatedMethod('reset', 'clear')\n return this.clear\n }\n\n get length () {\n deprecatedProperty('length', 'size')\n return this.size\n }\n}\n\nmodule.exports = LRUCache\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = [new Comparator('>=0.0.0-0')]\n } else {\n sub = [new Comparator('>=0.0.0')]\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = [new Comparator('>=0.0.0')]\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,"module.exports = (__parcel__import__(\"./\" + \"actions_python.dfab21e0.js\")).then(() => parcelRequire('doiKQ'));","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nmodule.exports = input => {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\treturn input;\n};\n","'use strict';\nconst path = require('path');\nconst pathKey = require('path-key');\n\nconst npmRunPath = options => {\n\toptions = {\n\t\tcwd: process.cwd(),\n\t\tpath: process.env[pathKey()],\n\t\texecPath: process.execPath,\n\t\t...options\n\t};\n\n\tlet previous;\n\tlet cwdPath = path.resolve(options.cwd);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used\n\tconst execPathDir = path.resolve(options.cwd, options.execPath, '..');\n\tresult.push(execPathDir);\n\n\treturn result.concat(options.path).join(path.delimiter);\n};\n\nmodule.exports = npmRunPath;\n// TODO: Remove this for the next major release\nmodule.exports.default = npmRunPath;\n\nmodule.exports.env = options => {\n\toptions = {\n\t\tenv: process.env,\n\t\t...options\n\t};\n\n\tconst env = {...options.env};\n\tconst path = pathKey({env});\n\n\toptions.path = env[path];\n\tenv[path] = module.exports(options);\n\n\treturn env;\n};\n","'use strict';\n\nconst mimicFn = (to, from) => {\n\tfor (const prop of Reflect.ownKeys(from)) {\n\t\tObject.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));\n\t}\n\n\treturn to;\n};\n\nmodule.exports = mimicFn;\n// TODO: Remove this for the next major release\nmodule.exports.default = mimicFn;\n","'use strict';\nconst mimicFn = require('mimic-fn');\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFn(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nmodule.exports = onetime;\n// TODO: Remove this for the next major release\nmodule.exports.default = onetime;\n\nmodule.exports.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n","import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n const signals = getSignals()\n return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n signalByNameMemo,\n { name, number, description, supported, action, forced, standard },\n) {\n return {\n ...signalByNameMemo,\n [name]: { name, number, description, supported, action, forced, standard },\n }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n const signals = getSignals()\n const length = SIGRTMAX + 1\n const signalsA = Array.from({ length }, (value, number) =>\n getSignalByNumber(number, signals),\n )\n return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n const signal = findSignalByNumber(number, signals)\n\n if (signal === undefined) {\n return {}\n }\n\n const { name, description, supported, action, forced, standard } = signal\n return {\n [number]: {\n name,\n number,\n description,\n supported,\n action,\n forced,\n standard,\n },\n }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n if (signal !== undefined) {\n return signal\n }\n\n return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n","import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n const realtimeSignals = getRealtimeSignals()\n const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n return signals\n}\n\n// Normalize signal:\n// - `number`: signal numbers are OS-specific. This is taken into account by\n// `os.constants.signals`. However we provide a default `number` since some\n// signals are not defined for some OS.\n// - `forced`: set default to `false`\n// - `supported`: set value\nconst normalizeSignal = function({\n name,\n number: defaultNumber,\n description,\n action,\n forced = false,\n standard,\n}) {\n const {\n signals: { [name]: constantSignal },\n } = constants\n const supported = constantSignal !== undefined\n const number = supported ? constantSignal : defaultNumber\n return { name, number, description, supported, action, forced, standard }\n}\n","/* eslint-disable max-lines */\n// List of known process signals with information about them\nexport const SIGNALS = [\n {\n name: 'SIGHUP',\n number: 1,\n action: 'terminate',\n description: 'Terminal closed',\n standard: 'posix',\n },\n {\n name: 'SIGINT',\n number: 2,\n action: 'terminate',\n description: 'User interruption with CTRL-C',\n standard: 'ansi',\n },\n {\n name: 'SIGQUIT',\n number: 3,\n action: 'core',\n description: 'User interruption with CTRL-\\\\',\n standard: 'posix',\n },\n {\n name: 'SIGILL',\n number: 4,\n action: 'core',\n description: 'Invalid machine instruction',\n standard: 'ansi',\n },\n {\n name: 'SIGTRAP',\n number: 5,\n action: 'core',\n description: 'Debugger breakpoint',\n standard: 'posix',\n },\n {\n name: 'SIGABRT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'ansi',\n },\n {\n name: 'SIGIOT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'bsd',\n },\n {\n name: 'SIGBUS',\n number: 7,\n action: 'core',\n description:\n 'Bus error due to misaligned, non-existing address or paging error',\n standard: 'bsd',\n },\n {\n name: 'SIGEMT',\n number: 7,\n action: 'terminate',\n description: 'Command should be emulated but is not implemented',\n standard: 'other',\n },\n {\n name: 'SIGFPE',\n number: 8,\n action: 'core',\n description: 'Floating point arithmetic error',\n standard: 'ansi',\n },\n {\n name: 'SIGKILL',\n number: 9,\n action: 'terminate',\n description: 'Forced termination',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGUSR1',\n number: 10,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGSEGV',\n number: 11,\n action: 'core',\n description: 'Segmentation fault',\n standard: 'ansi',\n },\n {\n name: 'SIGUSR2',\n number: 12,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGPIPE',\n number: 13,\n action: 'terminate',\n description: 'Broken pipe or socket',\n standard: 'posix',\n },\n {\n name: 'SIGALRM',\n number: 14,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'posix',\n },\n {\n name: 'SIGTERM',\n number: 15,\n action: 'terminate',\n description: 'Termination',\n standard: 'ansi',\n },\n {\n name: 'SIGSTKFLT',\n number: 16,\n action: 'terminate',\n description: 'Stack is empty or overflowed',\n standard: 'other',\n },\n {\n name: 'SIGCHLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'posix',\n },\n {\n name: 'SIGCLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'other',\n },\n {\n name: 'SIGCONT',\n number: 18,\n action: 'unpause',\n description: 'Unpaused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGSTOP',\n number: 19,\n action: 'pause',\n description: 'Paused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGTSTP',\n number: 20,\n action: 'pause',\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: 'posix',\n },\n {\n name: 'SIGTTIN',\n number: 21,\n action: 'pause',\n description: 'Background process cannot read terminal input',\n standard: 'posix',\n },\n {\n name: 'SIGBREAK',\n number: 21,\n action: 'terminate',\n description: 'User interruption with CTRL-BREAK',\n standard: 'other',\n },\n {\n name: 'SIGTTOU',\n number: 22,\n action: 'pause',\n description: 'Background process cannot write to terminal output',\n standard: 'posix',\n },\n {\n name: 'SIGURG',\n number: 23,\n action: 'ignore',\n description: 'Socket received out-of-band data',\n standard: 'bsd',\n },\n {\n name: 'SIGXCPU',\n number: 24,\n action: 'core',\n description: 'Process timed out',\n standard: 'bsd',\n },\n {\n name: 'SIGXFSZ',\n number: 25,\n action: 'core',\n description: 'File too big',\n standard: 'bsd',\n },\n {\n name: 'SIGVTALRM',\n number: 26,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGPROF',\n number: 27,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGWINCH',\n number: 28,\n action: 'ignore',\n description: 'Terminal window size changed',\n standard: 'bsd',\n },\n {\n name: 'SIGIO',\n number: 29,\n action: 'terminate',\n description: 'I/O is available',\n standard: 'other',\n },\n {\n name: 'SIGPOLL',\n number: 29,\n action: 'terminate',\n description: 'Watched event',\n standard: 'other',\n },\n {\n name: 'SIGINFO',\n number: 29,\n action: 'ignore',\n description: 'Request for process information',\n standard: 'other',\n },\n {\n name: 'SIGPWR',\n number: 30,\n action: 'terminate',\n description: 'Device running out of power',\n standard: 'systemv',\n },\n {\n name: 'SIGSYS',\n number: 31,\n action: 'core',\n description: 'Invalid system call',\n standard: 'other',\n },\n {\n name: 'SIGUNUSED',\n number: 31,\n action: 'terminate',\n description: 'Invalid system call',\n standard: 'other',\n },\n]\n/* eslint-enable max-lines */\n","// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n const length = SIGRTMAX - SIGRTMIN + 1\n return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n return {\n name: `SIGRT${index + 1}`,\n number: SIGRTMIN + index,\n action: 'terminate',\n description: 'Application-specific signal (realtime)',\n standard: 'posix',\n }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n","'use strict';\nconst {signalsByName} = require('human-signals');\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nconst makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}}\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n\nmodule.exports = makeError;\n","'use strict';\nconst aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nconst normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\nmodule.exports = normalizeStdio;\n\n// `ipc` is pushed unless it is already present\nmodule.exports.node = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","'use strict';\nconst os = require('os');\nconst onExit = require('signal-exit');\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nconst spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => {\n\treturn isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n};\n\nconst isSigterm = signal => {\n\treturn signal === os.constants.signals.SIGTERM ||\n\t\t(typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n};\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nconst spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nconst setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nconst validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nconst setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n\nmodule.exports = {\n\tspawnedKill,\n\tspawnedCancel,\n\tsetupTimeout,\n\tvalidateTimeout,\n\tsetExitHandler\n};\n","'use strict';\nconst path = require('path');\nconst childProcess = require('child_process');\nconst crossSpawn = require('cross-spawn');\nconst stripFinalNewline = require('strip-final-newline');\nconst npmRunPath = require('npm-run-path');\nconst onetime = require('onetime');\nconst makeError = require('./lib/error');\nconst normalizeStdio = require('./lib/stdio');\nconst {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} = require('./lib/kill');\nconst {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = require('./lib/stream');\nconst {mergePromise, getSpawnedPromise} = require('./lib/promise');\nconst {joinCommand, parseCommand, getEscapedCommand} = require('./lib/command');\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPath.env({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\t...options\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execa.sync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nconst execa = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t}));\n\t\treturn mergePromise(dummySpawned, errorPromise);\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled,\n\t\t\t\tkilled: spawned.killed\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options.input);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\treturn mergePromise(spawned, handlePromiseOnce);\n};\n\nmodule.exports = execa;\n\nmodule.exports.sync = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false\n\t};\n};\n\nmodule.exports.command = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n};\n\nmodule.exports.commandSync = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa.sync(file, args, options);\n};\n\nmodule.exports.node = (scriptPath, args, options = {}) => {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdio.node(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : [])\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false\n\t\t}\n\t);\n};\n","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","'use strict';\nconst isStream = require('is-stream');\nconst getStream = require('get-stream');\nconst mergeStream = require('merge-stream');\n\n// `input` option\nconst handleInput = (spawned, input) => {\n\t// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852\n\t// @todo remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0\n\tif (input === undefined || spawned.stdin === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nconst makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\tif (!stream) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nconst getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise)\n\t\t]);\n\t}\n};\n\nconst validateInputSync = ({input}) => {\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n};\n\nmodule.exports = {\n\thandleInput,\n\tmakeAllStream,\n\tgetSpawnedResult,\n\tvalidateInputSync\n};\n\n","'use strict';\n\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property)\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nconst mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function' ?\n\t\t\t(...args) => Reflect.apply(descriptor.value, promise(), args) :\n\t\t\tdescriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n\n\treturn spawned;\n};\n\n// Use promises instead of `child_process` events\nconst getSpawnedPromise = spawned => {\n\treturn new Promise((resolve, reject) => {\n\t\tspawned.on('exit', (exitCode, signal) => {\n\t\t\tresolve({exitCode, signal});\n\t\t});\n\n\t\tspawned.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\n\t\tif (spawned.stdin) {\n\t\t\tspawned.stdin.on('error', error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t}\n\t});\n};\n\nmodule.exports = {\n\tmergePromise,\n\tgetSpawnedPromise\n};\n\n","'use strict';\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nconst joinCommand = (file, args) => {\n\treturn normalizeArgs(file, args).join(' ');\n};\n\nconst getEscapedCommand = (file, args) => {\n\treturn normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n};\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execa.command()`\nconst parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nmodule.exports = {\n\tjoinCommand,\n\tgetEscapedCommand,\n\tparseCommand\n};\n","'use strict';\nconst os = require('os');\n\nconst homeDirectory = os.homedir();\n\nmodule.exports = pathWithTilde => {\n\tif (typeof pathWithTilde !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof pathWithTilde}`);\n\t}\n\n\treturn homeDirectory ? pathWithTilde.replace(/^~(?=$|\\/|\\\\)/, homeDirectory) : pathWithTilde;\n};\n","const os = require(\"os\");\n\n// to detect on with os user had used path.resolve(...)\nconst is_posix_os = (os.platform() !== \"win32\");\nconst version = os.release();\n\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n\nmodule.exports = function (given_path) {\n return (is_posix_os)\n // for posix path, escape is simple\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\n // for windows, it depend of the build\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\n // on major version, no need to escape anymore\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\n ? given_path\n // on older version, replace space with symbol %20\n : given_path.replace(/(\\s+)/g, '%20');\n};",null,null,null,"\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname, join } from \"path\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { addShellExtension, addShellHere } from \"extension-tools\"\nimport { notice } from \"../utils/io/io\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { giveUserAccess } from \"user-access\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n setupPacmanPack(\"curl\")\n setupPacmanPack(\"zip\")\n setupPacmanPack(\"unzip\")\n setupPacmanPack(\"tar\")\n setupPacmanPack(\"git\")\n setupPacmanPack(\"pkg-config\")\n } else if (hasDnf()) {\n setupDnfPack(\"curl\")\n setupDnfPack(\"zip\")\n setupDnfPack(\"unzip\")\n setupDnfPack(\"tar\")\n setupDnfPack(\"git\")\n setupDnfPack(\"pkg-config\")\n } else if (isUbuntu()) {\n await setupAptPack(\"curl\")\n await setupAptPack(\"zip\")\n await setupAptPack(\"unzip\")\n await setupAptPack(\"tar\")\n await setupAptPack(\"git\")\n await setupAptPack(\"pkg-config\")\n }\n }\n\n if (!existsSync(join(setupDir, addShellExtension(\"bootstrap-vcpkg\")))) {\n execa.sync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execa.sync(addShellExtension(addShellHere(\"bootstrap-vcpkg\")), { cwd: setupDir, shell: true, stdio: \"inherit\" })\n\n giveUserAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { dirname } from \"path\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { execRootSync } from \"root-tools\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\"\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack(\"nala\", undefined, [], true)\n } else {\n await setupAptPack(\"nala-legacy\", undefined, [], true)\n }\n } catch (err) {\n await setupAptPack(\"nala-legacy\", undefined, [], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n","import { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { execRootSync } from \"root-tools\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n setupDnfPack(\"dnf-plugins-core\", undefined)\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack(\"bazel4\", undefined)\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\"\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack(\"bazel\", version, [], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n await setupPipPack(\"setuptools\", \"\")\n return setupPipPack(\"conan\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"ccache\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"ccache\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"ccache\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"cppcheck\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"make\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"make\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n"],"names":["$7b9209944aaaa76d$var$isexe","path","options","cb","Promise","TypeError","resolve","reject","er","is","$7b9209944aaaa76d$var$core","code","ignoreErrors","$cf4e1c210ca26295$export$c5eeb9c87a610a0e","_version","_setupDir","_arch","includes","process","platform","$cf4e1c210ca26295$var$binDir","maybeBinDir","$parcel$interopDefault","$ee50b93f35d1d045$exports","sync","nothrow","$gCrli$dirname","$gCrli$execFileSync","stdio","$13876d63a1d769ba$var$resolveCommandAttempt","parsed","withoutPathExt","env","cwd","hasCustomCwd","shouldSwitchCwd","undefined","chdir","disabled","err","resolved","command","$0d499e77a65c6243$exports","pathExt","$gCrli$delimiter","e","$gCrli$resolve","$9653863791c871cf$var$notFoundError","original","syscall","Object","assign","Error","errno","spawnargs","args","$9653863791c871cf$var$verifyENOENT","status","$9653863791c871cf$var$isWin","file","$3d4add3ad29c5f63$var$spawn","$6c97148d68b1e108$exports","spawned","$gCrli$spawn","$9653863791c871cf$exports","hookChildProcess","async","$b66d4b39a4b6d666$var$getStream","inputStream","maxBuffer","Infinity","stream1","$e221f82cbd79e937$exports","rejectPromise","error","getBufferedLength","$b66d4b39a4b6d666$require$BufferConstants","MAX_LENGTH","bufferedData","getBufferedValue","$b66d4b39a4b6d666$var$streamPipelinePromisified","on","$b66d4b39a4b6d666$var$MaxBufferError","$f5d4aa828adcef03$export$316200228f28b8ce","CI","ref","getuid","call","$f5d4aa828adcef03$export$58f152936f209932","program","execOptions","shell","$78a9a46c46452123$exports","commandSync","map","arg","join","$e58590dcd68a5bb4$export$8312d9eeba321950","SUDO_USER","$gCrli$join","$b6801b6bd01e6394$exports","$8c6d8d466be1e003$export$43324456a02f71b0","startupFlags","$8c6d8d466be1e003$var$powershell","maybePwsh","maybePowerShell","$8c6d8d466be1e003$export$4dfdd3964d242d20","$7df98a59b6cda272$export$f63d3080ce25e0fd","name","valGiven","shouldEscapeSpace","val","$4d5f494194aaccf5$exports","$ywN2f","$gF2Jd","exportVariable","$81ovw","$7df98a59b6cda272$var$addEnvSystem","setFailed","$7df98a59b6cda272$export$4c25481b843feb0b","PATH","addPath","$7df98a59b6cda272$var$addPathSystem","info","$7df98a59b6cda272$export$bd1dffd792f43c41","$gCrli$appendFileSync","$7df98a59b6cda272$export$1bbbc3a810c5799d","$7df98a59b6cda272$var$setupCppInProfile_called","source_cpprc_str","$gCrli$existsSync","$gCrli$readFileSync","source_cpprc_string","profile_path","bashrc_path","warning","$8dc48a0df4182e55$export$d73dc343f5abf26","version","repositories","update","apt","$8dc48a0df4182e55$var$getApt","DEBIAN_FRONTEND","$8dc48a0df4182e55$var$didUpdate","$8dc48a0df4182e55$var$updateRepos","$8dc48a0df4182e55$var$didInit","$8dc48a0df4182e55$export$11aa10c05ada0934","$8dc48a0df4182e55$var$initApt","Array","isArray","length","repo","binDir","$8dc48a0df4182e55$var$initGpg","keys","server","fileName","key","$8dc48a0df4182e55$export$7fb1a688af1305f0","url","$8dc48a0df4182e55$export$6fe6436bd9f53d02","$341dc468efaea0e8$export$cfa75578ee2d6e6c","aur","pacman","$341dc468efaea0e8$var$didUpdate","$341dc468efaea0e8$var$didInit","$9c8780e70e45392a$export$ce5d13d8a85cb784","$9c8780e70e45392a$var$hasBrew","$9673de8e5b109fdc$export$b804d731cdad7ef9","$9673de8e5b109fdc$var$binDir","powershell","SystemRoot","chocoPath","ALLUSERSPROFILE","maybeChoco","_ChocolateyInstall","ChocolateyInstall","$ae125dfe1d8c6517$export$9f6912bc890040b2","$ae125dfe1d8c6517$var$hasChoco","TMP","TEMP","Path","extendEnv","message","notice","$0064ffc7a9258f2e$export$d415ddb6702ec3a2","$0064ffc7a9258f2e$var$isArchCache","$d2761e35f27d9347$export$8ce8b4b22331a8c7","$d2761e35f27d9347$var$hasDnfCache","$a985b62b448f1220$export$49d4f9ba8e0dd34f","dnf","$2c51dff9e067076b$export$da8baf1d6c6802b6","$2c51dff9e067076b$var$isUbuntuCache","$521895b306840a5a$export$e88210974180936f","win_ext","unix_ext","$521895b306840a5a$export$eae120f0e5838f32","$8ddba0eda1584d62$export$5fc39629e14c8173","$408e5c7710e3a3ac$export$f9a3d10eb7c735af","$050bf27eb9b74231$var$findAllVersions","toolName","arch","versions","$050bf27eb9b74231$var$os","toolPath","$050bf27eb9b74231$var$path","$050bf27eb9b74231$var$_getCacheDirectory","$050bf27eb9b74231$var$fs","existsSync","children","readdirSync","child","$050bf27eb9b74231$var$isExplicitVersion","fullPath","push","$050bf27eb9b74231$var$_createExtractFolder","dest","$050bf27eb9b74231$var$_getTempDirectory","$050bf27eb9b74231$var$v4_1","default","$050bf27eb9b74231$var$io","mkdirP","$050bf27eb9b74231$var$_createToolPath","tool","folderPath","$050bf27eb9b74231$var$semver","clean","$050bf27eb9b74231$var$core","debug","markerPath","rmRF","$050bf27eb9b74231$var$_completeToolPath","writeFileSync","versionSpec","c","valid","$050bf27eb9b74231$var$evaluateVersions","i","sort","a","b","gt","potential","satisfies","cacheDirectory","$gCrli$ok","tempDirectory","$050bf27eb9b74231$var$_getGlobal","defaultValue","value","$parcel$global","$4806f3517e2790ac$export$eecfe186811d4a20","$4806f3517e2790ac$var$sevenZip","$4806f3517e2790ac$var$getSevenZip","$4806f3517e2790ac$export$7949938b2681a4f0","$4806f3517e2790ac$export$6411c5cbab21135b","$4806f3517e2790ac$export$2ab07ac150064014","flags","$2fNe7","$47eb08dd23d40b94$export$334f77c9844c21f6","getPackageInfo","setupDir","_RUNNER_TEMP","_RUNNER_TOOL_CACHE","RUNNER_TEMP","$gCrli$tmpdir","RUNNER_TOOL_CACHE","binRelativeDir","binFileName","extractedFolderName","extractFunction","dir","$050bf27eb9b74231$exports","find","installDir","binFile","$47eb08dd23d40b94$var$didInit","downloaded","downloadTool","cacheDir","$af41b2eb086f75df$var$getTaskPackageInfo","taskPlatform","$af41b2eb086f75df$var$getTaskPlatform","taskArch","$af41b2eb086f75df$var$getTaskArch","isZip","extension","$846d2db31756a5f1$var$getCmakePackageInfo","semVersion","$3wKw1","isOld","$kNWZ7","osArchStr","folderName","extractTar","$846d2db31756a5f1$export$c28663a621f418ce","$58fb2ba5d4eaabfd$export$2b0b68e9df3d4a02","$58fb2ba5d4eaabfd$export$33cd96f062979ce0","setupActionsPython","parcelRequire","ref1","pythonBinPath","pythonSetupDir","$58fb2ba5d4eaabfd$var$activateWinPython","installInfo","$3e28919a4f09deea$export$bef94a5618bf18bf","$gCrli$get","res","statusCode","$790ff57fcb06130d$export$deb1064c8260c54c","semversion","from","filter","v","test","startsWith","reverse","$3677b80f3674c7fd$export$c506eb22e615ba4a","osVersion","$3677b80f3674c7fd$var$useDefault","$3677b80f3674c7fd$var$DefaultUbuntuVersion","osVersionMaj","parseInt","$3677b80f3674c7fd$var$DefaultVersions","$bb1819ad9d8078c5$export$4020cb77ffa3ffac","$bb1819ad9d8078c5$var$python","givenFile","targetVersion","versionRegex","$790ff57fcb06130d$export$d7ab5e2d33b06cd5","givenVersion","execout","$eGKv1","getExecOutput","stdout","stderr","trim","match","console","$790ff57fcb06130d$export$5b54ecc7386538f","$odmNz","$bb1819ad9d8078c5$var$tried","$bb1819ad9d8078c5$var$binDir","$94f77cc296162005$export$b885bd977caaafb9","$94f77cc296162005$var$activateGraphviz","$09f0776ac5e57c1d$var$getDoxygenPackageInfo","$1bef5d52b7eec4ce$export$28f5fd35e3005b7a","xcrun","sdkroot","$3a6223ec43316a0a$var$getGccPackageInfo","mingwInfo","$3a6223ec43316a0a$var$GccToMingwInfo","mingwArch","exceptionModel","releaseName","fileSuffix","$3a6223ec43316a0a$export$405fab3de79b77b","installationInfo","_ChocolateyInstall1","$3a6223ec43316a0a$var$setupChocoMingw","promises","majorVersion","$ehbTi","matcherPath","$gCrli$path1","$3a6223ec43316a0a$var$__dirname1","$3a6223ec43316a0a$var$addGccLoggingMatcher","all","$3a6223ec43316a0a$var$activateGcc","$b027b2b1c81cdfa5$var$getGitHubUrl","prefix","suffix","$b027b2b1c81cdfa5$var$getReleaseUrl","$b027b2b1c81cdfa5$export$94df0e59ebebf4a7","$b027b2b1c81cdfa5$var$DARWIN_MISSING","has","$b027b2b1c81cdfa5$var$getDarwinUrl","versionGiven","rc","$b027b2b1c81cdfa5$var$UBUNTU_RC","get","ubuntu","givenUbuntuVersion","replace","$b027b2b1c81cdfa5$export$aa5307f1aca77413","$b027b2b1c81cdfa5$var$UBUNTU_SUFFIX_MAP","$b027b2b1c81cdfa5$export$ae24f9682a44836b","$b027b2b1c81cdfa5$var$WIN32_MISSING","olderThan9_1","fallback","$b027b2b1c81cdfa5$var$getWin32Url","$b027b2b1c81cdfa5$var$getLLVMPackageInfo","specificVersion","getUrl","setOutput","$b027b2b1c81cdfa5$export$3016de7ae9d14988","$b027b2b1c81cdfa5$var$_setupLLVM","_installDir","directory","$kULaE","coercedVersion","lib","_LD_LIBRARY_PATH","ld","LD_LIBRARY_PATH","_DYLD_LIBRARY_PATH","dyld","DYLD_LIBRARY_PATH","llvmMajor","$b027b2b1c81cdfa5$var$addLLVMLoggingMatcher","$b027b2b1c81cdfa5$export$6238b5ebfd6640e7","$b027b2b1c81cdfa5$var$didInit","$b027b2b1c81cdfa5$export$814ccfc953503728","$b027b2b1c81cdfa5$var$__dirname1","$c112f7dc4a6d1792$var$issueCommand","properties","cmd","$c112f7dc4a6d1792$var$Command","write","$c112f7dc4a6d1792$var$os","EOL","$0da1435a5673ff4a$var$error","$c112f7dc4a6d1792$exports","issue","$0da1435a5673ff4a$var$startGroup","$0da1435a5673ff4a$var$endGroup","$03fa2bac94687fac$var$vsversion_to_versionnumber","vsversion","values","$03fa2bac94687fac$var$VsYearVersion","$03fa2bac94687fac$var$vsversion_to_year","year","ver","entries","$03fa2bac94687fac$var$findVcvarsall","vsversion_number","version_pattern","upper_bound","split","path1","pattern","$gCrli$execSync","installationPath","$0da1435a5673ff4a$exports","$03fa2bac94687fac$var$findWithVswhere","years","$03fa2bac94687fac$var$YEARS","prog_files","$03fa2bac94687fac$var$PROGRAM_FILES","ed","$03fa2bac94687fac$var$EDITIONS","$03fa2bac94687fac$var$PROGRAM_FILES_X86","$03fa2bac94687fac$var$isPathVariable","indexOf","toUpperCase","$3bc36fe80bba3989$export$5dcf571c91fc8369","VCTargetsPath","toolset","sdk","uwp","spectre","$03fa2bac94687fac$export$443b8bb890f5027e","$3bc36fe80bba3989$var$getArch","$7039d147efcacce1$export$a91ef0362c1a7298","$03fa2bac94687fac$export$3c7cae5a162b1458","installed","vcvarsall_path","$03fa2bac94687fac$export$a6a3bfb882356813","$7039d147efcacce1$var$__dirname1","$7039d147efcacce1$var$addMSVCLoggingMatcher","$2c8be0433aa63082$var$getNinjaPackageInfo","ninjaPlatform","$2c8be0433aa63082$var$getNinjaPlatform","$2c8be0433aa63082$export$e6190f4bfe2ef71","$aeaaa5f722f62c97$var$toArr","any","$aeaaa5f722f62c97$var$toVal","out","opts","x","old","nxt","string","String","boolean","_","concat","$3b7100cc0a379b6a$var$getDownloadKcovPackageInfo","$3b7100cc0a379b6a$var$getBuildKcovPackageInfo","$3b7100cc0a379b6a$var$buildKcov","cmake","$3b7100cc0a379b6a$var$getCmake","buildDir","$71ec725eca131b9e$export$f22da7240b7add18","ACTIONS_ALLOW_UNSECURE_COMMANDS","$71ec725eca131b9e$export$7300a92932ee17a3","_architecture","help","architecture","_SETUP_CPP_DIR","setupCppDir","SETUP_CPP_DIR","successMessages","errorMessages","timeFormatter","$05e9e6b3660f8f7d$exports","create","autoloadLocales","time1","time2","addLocale","$a3d9ceb2b0adad84$exports","$xu1bL","$02af6f06b93afca7$exports","versionSplitted","$c02e4f88a510f864$exports","getUbuntuVersion","tools","otherTools","slice","i_other","otherTool","tool1","$71ec725eca131b9e$var$tools","Date","now","startGroup","setupFunction","$71ec725eca131b9e$var$setups","$71ec725eca131b9e$var$getSuccessMessage","endGroup","format","maybeCompiler","compiler","$71ec725eca131b9e$export$588248dee5258836","forEach","success","k","arr","j","idx","len","alibi","alias","strict","unknown","defaults","splice","charCodeAt","substring","repeat","shift","$71ec725eca131b9e$var$inputs","fromEntries","inp","$71ec725eca131b9e$var$maybeGetInput","h","compilerAndMaybeVersion","maybeVersion","getInput","toLowerCase","msg","$c212977669ffc7b9$var$getInput","required","trimWhitespace","$c212977669ffc7b9$var$error","$CzUPq","issueCommand","$7u2Mm","toCommandProperties","$c212977669ffc7b9$var$startGroup","$c212977669ffc7b9$var$endGroup","$c212977669ffc7b9$var$os","$c212977669ffc7b9$var$__importStar","$gCrli$os","$c212977669ffc7b9$var$path","$gCrli$path","$c212977669ffc7b9$var$ExitCode","ExitCode1","module","exports","ExitCode","convertedVal","toCommandValue","delimiter","$a92Us","setSecret","secret","inputPath","getMultilineInput","getBooleanInput","setCommandEcho","enabled","exitCode","Failure","isDebug","group","fn","result","saveState","getState","getIDToken","aud","$aKUUy","OidcClient","defineProperty","enumerable","$f0qw2","summary","markdownSummary","$gzMJ3","toPosixPath","toWin32Path","toPlatformPath","$073f68cfe983618f$var$issueCommand","$073f68cfe983618f$var$Command","$073f68cfe983618f$var$os","$073f68cfe983618f$var$__importStar","constructor","this","toString","cmdStr","first","hasOwnProperty","s","$073f68cfe983618f$var$escapeData","input","JSON","stringify","annotationProperties","title","line","startLine","endLine","col","startColumn","endColumn","$762d007442c364ca$var$fs","$762d007442c364ca$var$__importStar","$gCrli$fs","$762d007442c364ca$var$os","filePath","appendFileSync","encoding","$7d4a589cbda69547$var$OidcClient","static","allowRetry","maxRetry","requestOptions","allowRetries","maxRetries","$9kh6d","HttpClient","$bynPH","BearerCredentialHandler","getRequestToken","token","runtimeUrl","id_token_url","httpclient","createHttpClient","getJson","catch","id_token","_a","audience","getIDTokenUrl","encodeURIComponent","getCall","$6ca33ede3d67c352$var$http","$6ca33ede3d67c352$var$__importStar","$gCrli$http","$6ca33ede3d67c352$var$https","$gCrli$https","$6ca33ede3d67c352$var$pm","$6ca33ede3d67c352$var$tunnel","$6ca33ede3d67c352$var$HttpCodes","HttpCodes1","$6ca33ede3d67c352$var$Headers","Headers1","$6ca33ede3d67c352$var$MediaTypes","HttpCodes","Headers","MediaTypes","getProxyUrl","serverUrl","proxyUrl","URL","href","$6ca33ede3d67c352$var$HttpRedirectCodes","MovedPermanently","ResourceMoved","SeeOther","TemporaryRedirect","PermanentRedirect","$6ca33ede3d67c352$var$HttpResponseRetryCodes","BadGateway","ServiceUnavailable","GatewayTimeout","$6ca33ede3d67c352$var$RetryableHttpVerbs","$6ca33ede3d67c352$var$HttpClientError","super","setPrototypeOf","prototype","HttpClientError","$6ca33ede3d67c352$var$HttpClientResponse","readBody","$6ca33ede3d67c352$var$__awaiter","output","Buffer","alloc","chunk","HttpClientResponse","isHttps","requestUrl","protocol","userAgent","handlers","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","Math","max","keepAlive","additionalHeaders","request","del","post","data","patch","put","head","sendStream","verb","stream","Accept","_getExistingOrDefaultHeader","ApplicationJson","_processResponse","postJson","obj","ContentType","putJson","patchJson","headers","parsedUrl","_prepareRequest","maxTries","response","numTries","requestRaw","Unauthorized","authenticationHandler","handler","canHandleAuthentication","handleAuthentication","redirectsRemaining","redirectUrl","parsedRedirectUrl","hostname","header","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","onResult","handleResult","callbackCalled","byteLength","req","httpModule","socket","sock","setTimeout","end","pipe","getAgent","_getAgent","method","usingSsl","defaultPort","host","port","pathname","search","_mergeHeaders","agent","prepareRequest","$6ca33ede3d67c352$var$lowercaseKeys","_default","clientHeader","useProxy","_proxyAgent","maxSockets","globalAgent","agentOptions","proxy","username","password","proxyAuth","tunnelAgent","overHttps","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","retryNumber","ms","pow","min","contents","NotFound","deserializeDates","parse","isNaN","valueOf","reduce","$d15ca64227d39f30$var$checkBypass","reqUrl","noProxy","reqPort","upperReqHosts","upperNoProxyItem","some","proxyVar","checkBypass","$3044be9be8a68e81$var$TunnelingAgent","options1","self","proxyOptions","$gCrli$Agent","defaultMaxSockets","requests","sockets","localAddress","$3044be9be8a68e81$var$toOptions","pending","onSocket","removeSocket","$3044be9be8a68e81$var$createSecureSocket","createSocket","hostHeader","getHeader","tlsOptions","$3044be9be8a68e81$var$mergeOptions","servername","secureSocket","$gCrli$connect","target","arguments","overrides","keyLen","$3044be9be8a68e81$export$25cbd437c61a3835","$3044be9be8a68e81$export$c06e3df7111bae43","$3044be9be8a68e81$export$5d50e36ef656139f","$3044be9be8a68e81$export$212d6605025321cc","$3044be9be8a68e81$export$1c9f709888824e05","$3044be9be8a68e81$var$debug","$gCrli$request","$gCrli$request1","$gCrli$inherits","$gCrli$EventEmitter","addRequest","onFree","emit","onCloseOrRemove","removeListener","onConnect","connectReq","removeAllListeners","placeholder","connectOptions","useChunkedEncodingByDefault","once","upgrade","nextTick","cause","stack","socket1","pos","BasicCredentialHandler","PersonalAccessTokenCredentialHandler","access","$aecb6c990ae3e90d$var$access","appendFile","$aecb6c990ae3e90d$var$appendFile","writeFile","$aecb6c990ae3e90d$var$writeFile","$gCrli$promises","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","$aecb6c990ae3e90d$var$_summary","_buffer","_filePath","pathFromEnv","$gCrli$constants","R_OK","W_OK","wrap","tag","content","attrs","htmlAttrs","overwrite","writeFunc","emptyBuffer","clear","isEmptyBuffer","addRaw","text","addEOL","$gCrli$EOL","addCodeBlock","lang","element","addList","items","ordered","listItems","item","addTable","rows","tableBody","row","cells","cell","colspan","rowspan","addDetails","label","addImage","src","alt","width","height","addHeading","level","allowedTag","addSeparator","addBreak","addQuote","cite","addLink","$031d40df77afb21f$var$path","$031d40df77afb21f$var$__importStar","pth","sep","$03bd9c2eb1055186$var$checkStat","stat","isSymbolicLink","isFile","pathext","PATHEXT","p","substr","$03bd9c2eb1055186$var$checkPathExt","$03bd9c2eb1055186$var$isexe","$gCrli$stat","$gCrli$statSync","$fddc3ef8185065f0$var$isexe","$fddc3ef8185065f0$var$checkStat","mod","mode","uid","gid","myUid","myGid","getgid","u","g","ug","$fddc3ef8185065f0$var$checkMode","$f76427e29b649494$export$a3bc9b8ed74fc","log","$f76427e29b649494$export$fe7c49d056ea1d88","$f76427e29b649494$export$491112666e282270","$f76427e29b649494$export$b31f6ae88848cf15","$f76427e29b649494$export$a80b3bd66acc52ff","GERRIT_PROJECT","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","BITRISE_IO","BUDDY_WORKSPACE_ID","BUILDKITE","CIRRUS_CI","GITLAB_CI","APPVEYOR","CIRCLECI","SEMAPHORE","DRONE","DSARI","GITHUB_ACTION","TDDIUM","SCREWDRIVER","STRIDER","TASKCLUSTER_ROOT_URL","JENKINS_URL","GO_PIPELINE_NAME","HUDSON_URL","WERCKER","NETLIFY","NOW_GITHUB_DEPLOYMENT","GITLAB_DEPLOYMENT","BITBUCKET_DEPLOYMENT","BITBUCKET_BUILD_NUMBER","NOW_BUILDER","VERCEL_GITHUB_DEPLOYMENT","VERCEL_GITLAB_DEPLOYMENT","VERCEL_BITBUCKET_DEPLOYMENT","VERCEL_URL","MAGNUM","NEVERCODE","RENDER","SAIL_CI","SHIPPABLE","TEAMCITY_VERSION","CI_NAME","NODE","TRAVIS","CODEBUILD_SRC_DIR","BUILDER_OUTPUT","$1a432ae5df7c9fc5$var$rmRF","$1a432ae5df7c9fc5$var$ioUtil","IS_WINDOWS","cmdPath","getCmdPath","isDirectory","$1a432ae5df7c9fc5$var$exec","unlink","err1","isDir","$1a432ae5df7c9fc5$var$execFile","$1a432ae5df7c9fc5$var$mkdirP","fsPath","mkdir","recursive","$1a432ae5df7c9fc5$var$findInPath","extensions","$1a432ae5df7c9fc5$var$path","isRooted","tryGetExecutablePath","directories","matches","$1a432ae5df7c9fc5$var$cpDirRecursive","sourceDir","destDir","currentDepth","force","files","readdir","srcFile","destFile","lstat","$1a432ae5df7c9fc5$var$copyFile","chmod","symlinkFull","readlink","symlink","exists","copyFile","$1a432ae5df7c9fc5$var$childProcess","$1a432ae5df7c9fc5$var$__importStar","$gCrli$child_process","$gCrli$promisify","exec","execFile","cp","source","copySourceDirectory","$1a432ae5df7c9fc5$var$readCopyOptions","destStat","newDest","basename","relative","mv","destExists","dirname","rename","which","$1a432ae5df7c9fc5$var$which","check","findInPath","$002c9b206c81b529$var$isUnixExecutable","stats","$002c9b206c81b529$var$fs","$002c9b206c81b529$var$__importStar","$002c9b206c81b529$var$path","$002c9b206c81b529$var$_a","rmdir","useStat","$002c9b206c81b529$var$normalizeSeparators","upperExt","extname","validExt","originalFilePath","upperName","actualName","_a1","$839618916b261156$var$semver","$839618916b261156$var$__importStar","_findMatch","stable","candidates","archFilter","platFilter","$gCrli$platform","candidate","chk","platform_version","_getOsVersion","plat","lsbContents","_readLinuxVersionFile","lines","parts","lsbReleaseFile","osReleaseFile","$e9hBm","re","tokens","t","SEMVER_SPEC_VERSION","SemVer","compareIdentifiers","rcompareIdentifiers","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","eq","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","MAX_SAFE_COMPONENT_LENGTH","R","createToken","isGlobal","index","$36nrx","RegExp","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","$a4cf8f46fd58533a$require$MAX_SAFE_COMPONENT_LENGTH","COERCE","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","Number","MAX_SAFE_INTEGER","$24241defe03a56e8$var$debug","$4Y6QE","$a933169cf37428ec$var$SemVer","$kQXIc","loose","includePrerelease","$a933169cf37428ec$require$MAX_LENGTH","m","$a933169cf37428ec$require$re","$a933169cf37428ec$require$t","LOOSE","FULL","raw","$a933169cf37428ec$require$MAX_SAFE_INTEGER","id","num","build","other","compareMain","comparePre","$a933169cf37428ec$require$compareIdentifiers","release","identifier","$f2e6fb8416d028ea$var$opts","o","$3e9da70389122fde$var$numeric","$3e9da70389122fde$var$compareIdentifiers","anum","bnum","$ewE0y","$6da50047f029b6ec$require$MAX_LENGTH","$6da50047f029b6ec$require$re","$6da50047f029b6ec$require$t","$9pDo3","version1","version2","$13Au1","v1","v2","hasPre","defaultResult","versionA","versionB","$34MvR","list","op","$lMg40","$fMkbf","$kdktp","$KbgdS","rtl","next","$2918713db77b48d4$require$re","$2918713db77b48d4$require$t","COERCERTL","lastIndex","$6fd10eb44bc1053f$var$ANY","Symbol","$6fd10eb44bc1053f$var$Comparator","ANY","comp","semver","operator","$6fd10eb44bc1053f$require$re","$6fd10eb44bc1053f$require$t","COMPARATORLOOSE","COMPARATOR","$hYtJM","$kEeqW","sameDirectionIncreasing","sameDirectionDecreasing","sameSemVer","differentDirectionsInclusive","oppositeDirectionsLessThan","oppositeDirectionsGreaterThan","$f082bd4895a2884d$var$Range","range","$9Bceq","set","r","parseRange","$f082bd4895a2884d$var$isNullSet","$f082bd4895a2884d$var$isAny","comps","memoKey","cached","$f082bd4895a2884d$var$cache","$f082bd4895a2884d$require$re","$f082bd4895a2884d$require$t","HYPHENRANGELOOSE","HYPHENRANGE","$f082bd4895a2884d$var$hyphenReplace","COMPARATORTRIM","$f082bd4895a2884d$require$comparatorTrimReplace","rangeList","TILDETRIM","$f082bd4895a2884d$require$tildeTrimReplace","CARETTRIM","$f082bd4895a2884d$require$caretTrimReplace","$f082bd4895a2884d$var$parseComparator","$f082bd4895a2884d$var$replaceGTE0","rangeMap","Map","comparators","comp1","size","delete","thisComparators","$f082bd4895a2884d$var$isSatisfiable","rangeComparators","every","thisComparator","rangeComparator","$f082bd4895a2884d$var$testSet","remainingComparators","testComparator","pop","otherComparator","$f082bd4895a2884d$var$replaceCarets","$f082bd4895a2884d$var$replaceTildes","$f082bd4895a2884d$var$replaceXRanges","$f082bd4895a2884d$var$replaceStars","$f082bd4895a2884d$var$isX","$f082bd4895a2884d$var$replaceTilde","TILDELOOSE","TILDE","M","pr","ret","$f082bd4895a2884d$var$replaceCaret","z","CARETLOOSE","CARET","$f082bd4895a2884d$var$replaceXRange","XRANGELOOSE","XRANGE","gtlt","xM","xm","xp","STAR","GTE0PRE","GTE0","incPr","$0","fM","fm","fp","fpr","fb","to","tM","tm","tp","tpr","tb","allowed","$820f241dd15ba23c$var$perf","performance","$820f241dd15ba23c$var$AC","AbortController","signal","AbortSignal","abort","aborted","$820f241dd15ba23c$var$warned","Set","$820f241dd15ba23c$var$deprecatedOption","opt","instead","$820f241dd15ba23c$var$shouldWarn","$820f241dd15ba23c$var$warn","$820f241dd15ba23c$var$LRUCache","$820f241dd15ba23c$var$deprecatedMethod","getOwnPropertyDescriptor","$820f241dd15ba23c$var$emitWarning","emitWarning","what","add","$820f241dd15ba23c$var$isPosInt","n","floor","isFinite","$820f241dd15ba23c$var$getUintArray","$820f241dd15ba23c$var$ZeroArray","Uint32Array","Uint16Array","Uint8Array","fill","$820f241dd15ba23c$var$Stack","UintArray","heap","ttl","ttlResolution","ttlAutopurge","updateAgeOnGet","updateAgeOnHas","allowStale","disposeAfter","noDisposeOnSet","noUpdateTTL","maxSize","sizeCalculation","fetchMethod","maxAge","stale","keyMap","keyList","valList","prev","tail","free","initialFill","disposed","initializeSizeTracking","initializeTTLTracking","getRemainingTTL","ttls","starts","setItemTTL","isStale","unref","updateItemAge","cachedNow","getNow","calculatedSize","sizes","removeItemSize","requireSize","addItemSize","evict","indexes","isValidIndex","rindexes","rentries","rkeys","rvalues","iterator","getOptions","thisp","rforEach","prune","purgeStale","deleted","dump","entry","unshift","load","reason","newIndex","oldVal","isBackgroundFetch","__abortController","moveToTail","peek","backgroundFetch","ac","fetchOpts","then","__staleWhileFetching","fetching","connect","reset","field","$820f241dd15ba23c$var$deprecatedProperty","maxSV","rangeObj","minSV","minver","setMin","comparator","compver","$44984a2886386c55$var$ANY","hilo","gtfn","ltefn","ltfn","ecomp","$fThUd","high","low","$5T7ZF","r1","r2","ranges","simplified","$28e7bcc4b2b66496$var$ANY","$28e7bcc4b2b66496$var$simpleSubset","sub","dom","eqSet","gtltComp","higher","lower","hasDomLT","hasDomGT","$28e7bcc4b2b66496$var$higherGT","$28e7bcc4b2b66496$var$lowerLT","needDomLTPre","needDomGTPre","c1","sawNonNull","OUTER","simpleSub","simpleDom","isSub","$7tyCH","buf","offset","rnds","random","rng","ii","$cyw4a","$gCrli$randomBytes","$924188b3e0448444$var$byteToHex","$924188b3e0448444$var$i","i1","$ab190eb82299eef6$var$exec","commandLine","commandArgs","$ab190eb82299eef6$var$tr","argStringToArray","ToolRunner","$ab190eb82299eef6$var$__importStar","stdoutDecoder","$gCrli$StringDecoder","stderrDecoder","originalStdoutListener","listeners","originalStdErrListener","_b","$b6b01ca0ac6a61d6$var$os","$b6b01ca0ac6a61d6$var$__importStar","$b6b01ca0ac6a61d6$var$events","$gCrli$events","$b6b01ca0ac6a61d6$var$child","$b6b01ca0ac6a61d6$var$path","$b6b01ca0ac6a61d6$var$io","$b6b01ca0ac6a61d6$var$ioUtil","$b6b01ca0ac6a61d6$var$IS_WINDOWS","EventEmitter","_debug","_getCommandString","noPrefix","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","strBuffer","onLine","argline","_endsWith","str","endsWith","upperToolPath","_uvQuoteCmdArg","cmdSpecialChars","needsQuotes","char","quoteHit","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","$b6b01ca0ac6a61d6$var$__awaiter","optionsNonNull","state","$b6b01ca0ac6a61d6$var$ExecState","spawn","stdbuffer","stdline","errbuffer","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","argString","append","escaped","inQuotes","charAt","done","timeout","_setResult","$gCrli$setTimeout","HandleTimeout","clearTimeout","import","$c2590d837d224815$var$addLocale","localeData","$c2590d837d224815$var$locales","$c2590d837d224815$var$pluralize","unit","config","unitTypeData","locale","lookupOrder","unitTypeLookupOrder","unitType","$c2590d837d224815$var$getLocaleDataForUnitType","pluralize","$c2590d837d224815$var$timeUnits","$c2590d837d224815$var$defaultConfig","span","firstDate","secondDate","autoload","$7IZzv","localeId","require","$c2590d837d224815$var$requireLocale","$c2590d837d224815$var$ensureLocaleLoadedOrThrow","difference","results","divider","$c2590d837d224815$var$getDifference","$c2590d837d224815$var$format","variants","checkLocale","locales","hasLocale","$f7e860cde5315f5f$var$__dirname1","requireLocale","moduleDefinition","callable","numerous","node","$ee50b93f35d1d045$var$isWindows","OSTYPE","$ee50b93f35d1d045$var$COLON","TESTING_WINDOWS","$7b9209944aaaa76d$exports","$ee50b93f35d1d045$var$getNotFoundError","$ee50b93f35d1d045$var$getPathInfo","colon","pathEnv","pathExtExe","$ee50b93f35d1d045$var$which","found","step","ppRaw","pathPart","pCmd","subStep","ext","cur","ex","$0d499e77a65c6243$var$pathKey","environment","$7dd3fa4e75bca08d$export$ae50443ffc990749","$7dd3fa4e75bca08d$export$6ea29ee575e3f5ff","$13876d63a1d769ba$exports","$7dd3fa4e75bca08d$var$metaCharsRegExp","doubleEscapeMetaChars","$0d00fbf54931595d$exports","$29c07e94897d7a59$exports","argument","binary","$36323010904bb25a$exports","buffer","fd","$gCrli$openSync","$gCrli$readSync","$gCrli$closeSync","$6c97148d68b1e108$var$isWin","$6c97148d68b1e108$var$isExecutableRegExp","$6c97148d68b1e108$var$isCmdShimRegExp","commandFile","shebang","$6c97148d68b1e108$var$detectShebang","needsShell","forceShell","needsDoubleEscapeMetaChars","$gCrli$normalize","shellCommand","comspec","$6c97148d68b1e108$var$parseNonShell","originalEmit","arg1","apply","$3d4add3ad29c5f63$exports","$gCrli$spawnSync","verifyENOENTSync","_parse","_enoent","$6c65bf76ed80beb1$exports","CR","$3c40ebeb795180e6$var$npmRunPath","previous","execPath","cwdPath","execPathDir","$3c40ebeb795180e6$exports","$083c094d5f322ea4$var$mimicFn","prop","Reflect","ownKeys","$083c094d5f322ea4$exports","$4744e4dfe63f8573$var$calledFunctions","WeakMap","$4744e4dfe63f8573$var$onetime","function_","returnValue","callCount","functionName","displayName","onetime1","arguments_","throw","$4744e4dfe63f8573$exports","$5ef0bba32a11c1bd$exports","signalsByNumber","signalsByName","$67476999bf5eecc7$exports","getSignals","standard","number","action","description","forced","getRealtimeSignals","SIGRTMAX","SIGRTMIN","getRealtimeSignal","$ce3780d380f6d6d2$var$SIGRTMAX","realtimeSignals","$ce3780d380f6d6d2$exports","SIGNALS","normalizeSignal","defaultNumber","signals","constantSignal","constants","supported","signalByNameMemo","$5ef0bba32a11c1bd$var$signalsByName","signalsA","signalA","findSignalByNumber","getSignalByNumber","getSignalsByNumber","$5ef0bba32a11c1bd$var$signalsByNumber","$22ce991938258c2c$exports","escapedCommand","timedOut","isCanceled","killed","signalDescription","$22ce991938258c2c$require$signalsByName","errorCode","$22ce991938258c2c$var$getErrorPrefix","execaMessage","isError","shortMessage","Boolean","originalMessage","failed","$25226dd4913ac96b$var$aliases","$25226dd4913ac96b$var$normalizeStdio","$25226dd4913ac96b$var$hasAlias","$25226dd4913ac96b$exports","$7324ecdc22917825$var$process","$7324ecdc22917825$var$processOk","process1","reallyExit","kill","pid","$7324ecdc22917825$var$emitter","$7324ecdc22917825$var$assert","$gCrli$assert","$7324ecdc22917825$var$signals","$7324ecdc22917825$var$isWin","$7324ecdc22917825$var$EE","__signal_exit_emitter__","count","emitted","infinite","setMaxListeners","$7324ecdc22917825$exports","equal","$7324ecdc22917825$var$loaded","$7324ecdc22917825$var$load","ev","alwaysLast","$7324ecdc22917825$var$unload","sig","$7324ecdc22917825$var$sigListeners","$7324ecdc22917825$var$originalProcessEmit","$7324ecdc22917825$var$originalProcessReallyExit","unload","$7324ecdc22917825$var$emit","event","$7324ecdc22917825$var$processEmit","$7324ecdc22917825$var$processReallyExit","$2a9d5cede3e23a86$var$isSigterm","$gCrli$constants1","SIGTERM","$2a9d5cede3e23a86$exports","killResult","forceKillAfterTimeout","$2a9d5cede3e23a86$var$shouldForceKill","$2a9d5cede3e23a86$var$getForceKillAfterTimeout","$2a9d5cede3e23a86$var$setKillTimeout","context","killSignal","spawnedPromise","timeoutId","timeoutPromise","$2a9d5cede3e23a86$var$timeoutKill","safeSpawnedPromise","finally","race","cleanup","detached","timedPromise","removeExitHandler","spawnedKill","spawnedCancel","setupTimeout","validateTimeout","setExitHandler","$444c55d8cc7400c1$var$isStream","writable","_write","_writableState","readable","_read","_readableState","duplex","transform","_transform","$444c55d8cc7400c1$exports","$gCrli$constants2","$gCrli$PassThrough","array","isBuffer","objectMode","$e221f82cbd79e937$require$PassThroughStream","setEncoding","chunks","$b66d4b39a4b6d666$require$promisify","$gCrli$pipeline","$b66d4b39a4b6d666$exports","stream2","stream3","MaxBufferError","$247e371530aaf2c8$exports","sources","remove","bind","isEmpty","it","$247e371530aaf2c8$require$PassThrough","$06125db202b43402$var$getBufferedData","streamPromise","$06125db202b43402$var$getStreamPromise","$06125db202b43402$exports","mixed","processDone","stdoutPromise","stderrPromise","allPromise","handleInput","getSpawnedResult","makeAllStream","validateInputSync","$cd1d4b7bf0a885f7$var$nativePromisePrototype","$cd1d4b7bf0a885f7$var$descriptors","property","$cd1d4b7bf0a885f7$exports","promise","descriptor","mergePromise","getSpawnedPromise","$7f1ae7744e01347b$var$normalizeArgs","$7f1ae7744e01347b$var$NO_ESCAPE_REGEXP","$7f1ae7744e01347b$var$DOUBLE_QUOTES_REGEXP","$7f1ae7744e01347b$var$SPACES_REGEXP","$7f1ae7744e01347b$exports","$7f1ae7744e01347b$var$escapeArg","previousToken","joinCommand","parseCommand","getEscapedCommand","$78a9a46c46452123$var$handleArguments","stripFinalNewline","preferLocal","localDir","windowsHide","envOption","$78a9a46c46452123$var$getEnv","$gCrli$basename","$78a9a46c46452123$var$handleOutput","$78a9a46c46452123$var$execa","$78a9a46c46452123$require$joinCommand","$78a9a46c46452123$require$getEscapedCommand","$78a9a46c46452123$require$validateTimeout","error1","dummySpawned","$gCrli$ChildProcess","errorPromise","$78a9a46c46452123$require$mergePromise","$78a9a46c46452123$require$getSpawnedPromise","$78a9a46c46452123$require$setupTimeout","$78a9a46c46452123$require$setExitHandler","$78a9a46c46452123$require$spawnedKill","cancel","$78a9a46c46452123$require$spawnedCancel","handlePromiseOnce","stdoutResult","stderrResult","allResult","$78a9a46c46452123$require$getSpawnedResult","returnedError","$78a9a46c46452123$require$handleInput","$78a9a46c46452123$require$makeAllStream","$78a9a46c46452123$require$validateInputSync","$78a9a46c46452123$require$parseCommand","scriptPath","defaultExecArgv","execArgv","nodePath","nodeOptions","$b6801b6bd01e6394$var$homeDirectory","$gCrli$homedir","pathWithTilde","$4d5f494194aaccf5$var$is_posix_os","$4d5f494194aaccf5$var$version","$gCrli$release","$4d5f494194aaccf5$var$windows_version_regex","given_path","major_release","os_build","$4d5f494194aaccf5$var$should_not_escape","$050bf27eb9b74231$var$__importStar","$050bf27eb9b74231$var$mm","$050bf27eb9b74231$var$httpm","$050bf27eb9b74231$var$stream","$gCrli$stream","$050bf27eb9b74231$var$util","$gCrli$util","$050bf27eb9b74231$var$__importDefault","$0720ed162241c7ef$var$core","$0720ed162241c7ef$var$__importStar","$0720ed162241c7ef$exports","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","isRetryable","attempt","seconds","getSleepAmount","sleep","$050bf27eb9b74231$var$HTTPError","httpStatusCode","HTTPError","$050bf27eb9b74231$var$IS_WINDOWS","$050bf27eb9b74231$var$IS_MAC","auth","retryHelper","$050bf27eb9b74231$var$__awaiter","http","authorization","statusMessage","pipeline","promisify","readStream","responseMessageFactory","succeeded","createWriteStream","$050bf27eb9b74231$var$downloadToolAttempt","extract7z","_7zPath","originalCwd","$050bf27eb9b74231$var$__dirname1","powershellPath","versionOutput","isGnuTar","destArg","fileArg","extractXar","xarPath","extractZip","escapedFile","escapedDest","pwshPath","$050bf27eb9b74231$var$extractZipWin","unzipPath","$050bf27eb9b74231$var$extractZipNix","statSync","destPath","itemName","cacheFile","sourceFile","targetFile","destFolder","cachePath","findAllVersions","getManifestFromRepo","owner","branch","releases","treeUrl","manifestUrl","tree","versionsRaw","findFromManifest","manifest","isExplicitVersion","evaluateVersions","llvm","clangtidy","clangformat","ninja","gcovr","conan","meson","kcov","task","doxygen","gcc","nala","specific","$c112f7dc4a6d1792$var$__importStar","$7104a8b219ab06be$exports","$c112f7dc4a6d1792$var$escapeData","$419fd15dcc891459$var$fs","$419fd15dcc891459$var$__importStar","$419fd15dcc891459$var$os","$419fd15dcc891459$exports","$0da1435a5673ff4a$var$os","$0da1435a5673ff4a$var$__importStar","$0da1435a5673ff4a$var$path","$0da1435a5673ff4a$var$ExitCode","$gCrli$env","$03fa2bac94687fac$var$VSWHERE_PATH","$gCrli$platform1","arch_aliases","win32","win64","x86_64","vcvars","cmd_output_parts","old_environment","vcvars_output","new_environment","error_messages","old_env_vars","string1","new_value","long","one","months","weeks","days","hours","minutes","narrow","short","abs","exe","$gCrli$execFile","reDistributor","reDescription","reRelease","distributorFound","desc","rel","ss","$afd14d39247c0f30$var$binDir","$ce54bf56b9f5521e$var$hasVCPKG","python","vcpkg","bazel","opencppcoverage","$4072dd4cc3873d73$var$activateOpencppcoverage","choco","brew","ccache","$09f0776ac5e57c1d$var$activateWinDoxygen","graphviz","cppcheck","$758d288127dc92bf$var$activateWinCppcheck","msvc","vcvarsall","versionSplit","installMethod","version_number","make","sevenzip","argv"],"version":3,"file":"setup_cpp.mjs.map","sourceRoot":"../"} \ No newline at end of file +{"mappings":"4IAWA,SAASA,EAAOC,EAAMC,EAASC,GAM7B,GALuB,mBAAZD,IACTC,EAAKD,EACLA,EAAU,KAGPC,EAAI,CACP,GAAuB,mBAAZC,QACT,MAAM,IAAIC,UAAU,yBAGtB,OAAO,IAAID,SAAQ,CAAUE,EAASC,KACpCP,EAAMC,EAAMC,GAAW,IAAI,CAAUM,EAAIC,KACnCD,EACFD,EAAOC,GAEPF,EAAQG,E,OAMhBC,GAAKT,EAAMC,GAAW,IAAI,CAAUM,EAAIC,KAElCD,IACc,WAAZA,EAAGG,MAAqBT,GAAWA,EAAQU,gBAC7CJ,EAAK,KACLC,GAAK,GAGTN,EAAGK,EAAIC,E,IClCJ,SAASI,EAAUC,EAAkBC,EAAmBC,GAC7D,IAAK,CAAC,SAAU,SAASC,SAASC,QAAQC,UACxC,OAEF,GAAsB,iBAAXC,GACT,MAAO,C,OAAEA,IAGX,MAAMC,EAAcC,EAAAC,IAAMC,KAAK,OAAQ,CAAEC,SAAS,IAClD,OAAoB,OAAhBJ,GACFD,GAASM,eAAQL,GACV,C,OAAED,MAIXO,oBAAa,kGAAmG,CAC9GC,MAAO,YAETR,GAAS,kBAEF,C,OAAEA,I,CCrBX,SAASS,EAAsBC,EAAQC,GACnC,MAAMC,EAAMF,EAAO5B,QAAQ8B,KAAOd,QAAQc,IACpCC,EAAMf,QAAQe,MACdC,EAAqC,MAAtBJ,EAAO5B,QAAQ+B,IAE9BE,EAAkBD,QAAkCE,IAAlBlB,QAAQ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EmC6B/Dg3F,SAAUp3F,GAINgoB,GAAoC,CACxC,OACA,QACA,OACA,SACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,kBACA,SACA,UACA,WACA,WACA,YACA,cACA,OACA,MACA,OACA,YACA,OACA,OACA,OACA,YAOIyB,GAAwB,CAAC,WAAY,kBAAmBzB,IAgM9D7B,GAAKrxB,QAAQw/E,MACVlsE,MAAM4H,IACLlb,QAAQm3B,SAAWjc,CAAG,IAEvB9C,OAAO/W,KACN,EAAA6E,GAAA1C,OAAM,qBACN,EAAA0C,GAAA1C,OAAMnC,GACNrB,QAAQm3B,SAAW,CAAC,W","sources":["node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","src/brew/brew.ts","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js","packages/root-tools/src/index.ts","packages/untildify-user/src/index.ts","packages/exec-powershell/src/index.ts","src/utils/env/addEnv.ts","src/utils/setup/setupAptPack.ts","src/utils/setup/setupPacmanPack.ts","src/utils/setup/setupBrewPack.ts","src/chocolatey/chocolatey.ts","src/utils/setup/setupChocoPack.ts","src/utils/env/isArch.ts","src/utils/env/hasDnf.ts","src/utils/setup/setupDnfPack.ts","src/utils/env/isUbuntu.ts","packages/extension-tools/src/index.ts","src/sevenzip/sevenzip.ts","packages/user-access/src/index.ts","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/tool-cache.ts","src/utils/setup/extract.ts","src/utils/setup/setupBin.ts","src/task/task.ts","src/cmake/cmake.ts","src/python/python.ts","node_modules/.pnpm/duplexer3@0.1.5/node_modules/duplexer3/index.js","node_modules/.pnpm/get-stream@3.0.0/node_modules/get-stream/index.js","node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js","node_modules/.pnpm/got@6.7.1/node_modules/got/index.js","node_modules/.pnpm/ip@1.1.8/node_modules/ip/lib/ip.js","node_modules/.pnpm/dns-packet@1.3.4/node_modules/dns-packet/index.js","node_modules/.pnpm/dns-socket@1.6.3/node_modules/dns-socket/index.js","node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js","node_modules/.pnpm/decode-uri-component@0.2.0/node_modules/decode-uri-component/index.js","node_modules/.pnpm/query-string@5.1.1/node_modules/query-string/index.js","node_modules/.pnpm/normalize-url@2.0.1/node_modules/normalize-url/index.js","node_modules/.pnpm/http-cache-semantics@3.8.1/node_modules/http-cache-semantics/node4/index.js","node_modules/.pnpm/from2@2.3.0/node_modules/from2/index.js","node_modules/.pnpm/@sindresorhus+is@0.7.0/node_modules/@sindresorhus/is/dist/index.js","node_modules/.pnpm/got@8.3.2/node_modules/got/index.js","node_modules/.pnpm/is-online@7.0.0/node_modules/is-online/index.js","src/utils/setup/version.ts","src/default_versions.ts","src/utils/setup/setupPipPack.ts","src/graphviz/graphviz.ts","src/doxygen/doxygen.ts","src/macos-sdk/macos-sdk.ts","src/gcc/gcc.ts","src/llvm/llvm.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/lib.js","src/vcvarsall/vcvarsall.ts","src/msvc/msvc.ts","src/ninja/ninja.ts","node_modules/.pnpm/mri@1.2.0/node_modules/mri/lib/index.mjs","src/kcov/kcov.ts","src/main.ts","src/utils/env/ubuntu_version.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/oidc-utils.ts","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/index.ts","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/proxy.ts","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js","node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js","node_modules/.pnpm/@actions+http-client@2.0.1/node_modules/@actions/http-client/src/auth.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/summary.ts","node_modules/.pnpm/@actions+core@1.9.0/node_modules/@actions/core/src/path-utils.ts","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js","node_modules/.pnpm/github.com+aminya+ci-detect@37fe40075bebec96794ba0a7c4a6d5c70cbea00d/node_modules/@npmcli/ci-detect/lib/index.js","src/utils/io/io.ts","node_modules/.pnpm/@actions+io@1.1.2/node_modules/@actions/io/src/io.ts","node_modules/.pnpm/@actions+io@1.1.2/node_modules/@actions/io/src/io-util.ts","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/manifest.ts","node_modules/.pnpm/semver@7.3.7/node_modules/semver/index.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/re.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/constants.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/debug.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/semver.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/parse-options.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/internal/identifiers.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/parse.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/valid.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/clean.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/inc.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/diff.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/eq.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/major.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/minor.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/patch.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/prerelease.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rcompare.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-loose.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/compare-build.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/sort.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/rsort.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gt.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lt.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/neq.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/gte.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/lte.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/cmp.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/coerce.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/comparator.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/classes/range.js","node_modules/.pnpm/lru-cache@7.8.1/node_modules/lru-cache/index.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/functions/satisfies.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/to-comparators.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/max-satisfying.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-satisfying.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/min-version.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/valid.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/outside.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/gtr.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/ltr.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/intersects.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/simplify.js","node_modules/.pnpm/semver@7.3.7/node_modules/semver/ranges/subset.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/v4.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/rng.js","node_modules/.pnpm/uuid@3.4.0/node_modules/uuid/lib/bytesToUuid.js","node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/src/exec.ts","node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/src/toolrunner.ts","node_modules/.pnpm/@parcel+runtime-js@2.6.2_@parcel+core@2.6.2/node_modules/@parcel/runtime-js/lib/runtime-8fa2e9236252370d.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/readable.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_readable.js","node_modules/.pnpm/process-nextick-args@2.0.1/node_modules/process-nextick-args/index.js","node_modules/.pnpm/isarray@1.0.0/node_modules/isarray/index.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/stream.js","node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js","node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js","node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js","node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/BufferList.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/destroy.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_writable.js","node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js","node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_transform.js","node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_passthrough.js","node_modules/.pnpm/has-symbol-support-x@1.4.2/node_modules/has-symbol-support-x/index.js","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/lib/time-delta.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/index.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib/numerous.js","node_modules/.pnpm/is-node@1.0.2/node_modules/is-node/index.js","node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js","node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js","node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js","node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js","node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js","node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/main.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/signals.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/core.js","node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/src/realtime.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js","node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js","node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js","node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js","node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js","node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js","node_modules/.pnpm/untildify@4.0.0/node_modules/untildify/index.js","node_modules/.pnpm/github.com+aminya+escape-path-with-spaces@d9f81ee649203ddc55783a2f96ada59df06118e3/node_modules/escape-path-with-spaces/index.js","node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/src/retry-helper.ts","node_modules/.pnpm/is-link-working@2.2.0/node_modules/is-link-working/index.js","node_modules/.pnpm/is-stream@1.1.0/node_modules/is-stream/index.js","node_modules/.pnpm/get-stream@3.0.0/node_modules/get-stream/buffer-stream.js","node_modules/.pnpm/timed-out@4.0.1/node_modules/timed-out/index.js","node_modules/.pnpm/prepend-http@1.0.4/node_modules/prepend-http/index.js","node_modules/.pnpm/url-parse-lax@1.0.0/node_modules/url-parse-lax/index.js","node_modules/.pnpm/lowercase-keys@1.0.1/node_modules/lowercase-keys/index.js","node_modules/.pnpm/is-redirect@1.0.0/node_modules/is-redirect/index.js","node_modules/.pnpm/unzip-response@2.0.1/node_modules/unzip-response/index.js","node_modules/.pnpm/capture-stack-trace@1.0.1/node_modules/capture-stack-trace/index.js","node_modules/.pnpm/create-error-class@3.0.2/node_modules/create-error-class/index.js","node_modules/.pnpm/is-retry-allowed@1.2.0/node_modules/is-retry-allowed/index.js","node_modules/.pnpm/got@6.7.1/node_modules/got/package.json","node_modules/.pnpm/public-ip@2.5.0/node_modules/public-ip/index.js","node_modules/.pnpm/dns-packet@1.3.4/node_modules/dns-packet/types.js","node_modules/.pnpm/dns-packet@1.3.4/node_modules/dns-packet/rcodes.js","node_modules/.pnpm/dns-packet@1.3.4/node_modules/dns-packet/opcodes.js","node_modules/.pnpm/strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js","node_modules/.pnpm/prepend-http@2.0.0/node_modules/prepend-http/index.js","node_modules/.pnpm/is-plain-obj@1.1.0/node_modules/is-plain-obj/index.js","node_modules/.pnpm/sort-keys@2.0.0/node_modules/sort-keys/index.js","node_modules/.pnpm/responselike@1.0.2/node_modules/responselike/src/index.js","node_modules/.pnpm/lowercase-keys@1.0.0/node_modules/lowercase-keys/index.js","node_modules/.pnpm/clone-response@1.0.2/node_modules/clone-response/src/index.js","node_modules/.pnpm/mimic-response@1.0.1/node_modules/mimic-response/index.js","node_modules/.pnpm/json-buffer@3.0.0/node_modules/json-buffer/index.js","node_modules/.pnpm/keyv@3.0.0/node_modules/keyv/src/index.js","node_modules/.pnpm/cacheable-request@2.1.4/node_modules/cacheable-request/src/index.js","node_modules/.pnpm/p-is-promise@1.1.0/node_modules/p-is-promise/index.js","node_modules/.pnpm/into-stream@3.1.0/node_modules/into-stream/index.js","node_modules/.pnpm/url-parse-lax@3.0.0/node_modules/url-parse-lax/index.js","node_modules/.pnpm/url-to-options@1.0.1/node_modules/url-to-options/index.js","node_modules/.pnpm/decompress-response@3.3.0/node_modules/decompress-response/index.js","node_modules/.pnpm/has-to-string-tag-x@1.4.1/node_modules/has-to-string-tag-x/index.js","node_modules/.pnpm/is-object@1.0.2/node_modules/is-object/index.js","node_modules/.pnpm/isurl@1.0.0/node_modules/isurl/index.js","node_modules/.pnpm/p-cancelable@0.4.1/node_modules/p-cancelable/index.js","node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js","node_modules/.pnpm/p-timeout@2.0.1/node_modules/p-timeout/index.js","node_modules/.pnpm/pify@3.0.0/node_modules/pify/index.js","node_modules/.pnpm/got@8.3.2/node_modules/got/package.json","node_modules/.pnpm/got@8.3.2/node_modules/got/errors.js","node_modules/.pnpm/ip-regex@2.1.0/node_modules/ip-regex/index.js","node_modules/.pnpm/is-ip@2.0.0/node_modules/is-ip/index.js","node_modules/.pnpm/indent-string@3.2.0/node_modules/indent-string/index.js","node_modules/.pnpm/clean-stack@1.3.0/node_modules/clean-stack/index.js","node_modules/.pnpm/aggregate-error@1.0.0/node_modules/aggregate-error/index.js","node_modules/.pnpm/p-any@1.1.0/node_modules/p-any/index.js","node_modules/.pnpm/p-some@2.0.1/node_modules/p-some/index.js","node_modules/.pnpm/p-timeout@1.2.1/node_modules/p-timeout/index.js","node_modules/.pnpm/is-link-working@2.2.0/node_modules/is-link-working/package.json","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/github.com+aminya+msvc-dev-cmd@9f672c1/node_modules/msvc-dev-cmd/node_modules/@actions/core/src/file-command.ts","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/index.js","node_modules/.pnpm/github.com+aminya+time-delta@69d91a41cef28e569be9a2991129f5f7d1f0d00e/node_modules/time-delta/locales/en.js","node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/locales/en.js","node_modules/.pnpm/ubuntu-version@2.0.0/node_modules/ubuntu-version/index.js","src/vcpkg/vcpkg.ts","src/nala/nala.ts","src/bazel/bazel.ts","src/conan/conan.ts","src/meson/meson.ts","src/gcovr/gcovr.ts","src/opencppcoverage/opencppcoverage.ts","src/ccache/ccache.ts","src/cppcheck/cppcheck.ts","src/make/make.ts"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","import { execFileSync } from \"child_process\"\nimport { dirname } from \"path\"\nimport which from \"which\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n execFileSync(`/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"`, {\n stdio: \"inherit\",\n })\n binDir = \"/usr/local/bin/\"\n\n return { binDir }\n}\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","import which from \"which\"\nimport execa from \"execa\"\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return (Boolean(process.env.CI) || isRoot()) && which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/** Detect if the process has root privileges */\nexport function isRoot(): boolean {\n return process.getuid?.() === 0\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: execa.SyncOptions = { stdio: \"inherit\", shell: true }\n): execa.ExecaSyncReturnValue {\n if (isSudo()) {\n return execa.commandSync(`sudo ${[program, ...args].map((arg) => `'${arg}'`).join(\" \")}`, execOptions)\n } else {\n return execa.sync(program, args, execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: execa.Options = { stdio: \"inherit\", shell: true }\n): execa.ExecaChildProcess {\n if (isSudo()) {\n return execa.command(`sudo ${[program, ...args].map((arg) => `'${arg}'`).join(\" \")}`, execOptions)\n } else {\n return execa(program, args, execOptions)\n }\n}\n","import { join } from \"path\"\nimport untildify from \"untildify\"\nimport { isSudo } from \"root-tools\"\n\nexport function untildifyUser(path: string) {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER, path)\n } else {\n return join(\"/home/\", process.env.SUDO_USER, path)\n }\n } else {\n return untildify(`~/${path}`)\n }\n}\n","import execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" }\n): execa.ExecaChildProcess {\n return execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" }\n): execa.ExecaSyncReturnValue {\n return execa.sync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import { exportVariable, addPath as ghAddPath, info, setFailed } from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { untildifyUser } from \"untildify-user\"\nimport { appendFileSync, existsSync, readFileSync } from \"fs\"\nimport { error, warning } from \"../io/io\"\nimport { execPowershell } from \"exec-powershell\"\nimport { delimiter } from \"path\"\nimport escapeSpace from \"escape-path-with-spaces\"\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(name: string, valGiven: string | undefined, shouldEscapeSpace: boolean = false) {\n const val = shouldEscapeSpace ? escapeSpace(valGiven ?? \"\") : valGiven\n try {\n if (ciDetect() === \"github-actions\") {\n try {\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val)\n }\n } else {\n await addEnvSystem(name, val)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (ciDetect() === \"github-actions\") {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\".cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execa.sync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execa.sync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport function setupCppInProfile() {\n if (setupCppInProfile_called) {\n return\n }\n\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"export SOURCE_CPPRC=0\"\n\n if (existsSync(cpprc_path)) {\n const cpprc_content = readFileSync(cpprc_path, \"utf8\")\n if (cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n return\n }\n }\n\n appendFileSync(cpprc_path, `\\n${source_cpprc_str}\\n`)\n info(`Added ${source_cpprc_str} to ${cpprc_path}`)\n\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n // source cpprc in .profile\n const profile_path = untildifyUser(\".profile\")\n appendFileSync(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n\n // source cpprc in .bashrc too\n const bashrc_path = untildifyUser(\".bashrc\")\n appendFileSync(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info } from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { addEnv, cpprc_path, setupCppInProfile } from \"../env/addEnv\"\nimport { appendFileSync, existsSync } from \"fs\"\nimport which from \"which\"\n\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(\n name: string,\n version?: string,\n repositories: string[] = [],\n update = false\n): Promise {\n const apt: string = getApt()\n\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n if (Array.isArray(repositories) && repositories.length !== 0) {\n for (const repo of repositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"--update\", \"-y\", repo])\n }\n updateRepos(apt)\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", `${name}=${version}`])\n } catch {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", `${name}-${version}`])\n }\n } else {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nfunction getApt() {\n let apt: string\n if (which.sync(\"nala\", { nothrow: true }) !== null) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\")\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\")\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n await addEnv(\"LANG\", \"C.UTF-8\")\n await addEnv(\"LC_ALL\", \"C.UTF-8\")\n }\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!existsSync(fileName)) {\n initGpg()\n for (const key of keys) {\n execRootSync(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n }\n return fileName\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!existsSync(fileName)) {\n initGpg()\n await setupAptPack(\"curl\", undefined)\n execRootSync(\"bash\", [\"-c\", `curl -s ${url} | gpg --no-default-keyring --keyring gnupg-ring:${fileName} --import`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport function updateAptAlternatives(name: string, path: string) {\n if (ciDetect() === \"github-actions\") {\n return execRootSync(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, \"40\"])\n } else {\n setupCppInProfile()\n return appendFileSync(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} 40; fi\\n`\n )\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info } from \"../io/io\"\n\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport function setupPacmanPack(name: string, version?: string, aur?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (!didUpdate) {\n execRootSync(pacman, [\"-Syuu\", \"--noconfirm\"])\n didUpdate = true\n }\n\n if (!didInit) {\n // install base-devel\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", `${name}=${version}`])\n } catch {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", `${name}${version}`])\n }\n } else {\n execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport function setupBrewPack(name: string, version?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n // brew is not thread-safe\n execa.sync(\"brew\", [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name], {\n stdio: \"inherit\",\n })\n\n return { binDir: \"/usr/local/bin/\" }\n}\n","/* eslint-disable require-atomic-updates */\nimport execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname } from \"path\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execa.sync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" }\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (existsSync(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","/* eslint-disable require-atomic-updates */\nimport { addPath } from \"../env/addEnv\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { InstallationInfo } from \"./setupBin\"\nimport execa from \"execa\"\nimport { info } from \"@actions/core\"\nimport { notice } from \"../io/io\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execa.sync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execa.sync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n notice(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","/* eslint-disable require-atomic-updates */\nimport { InstallationInfo } from \"./setupBin\"\nimport { execRootSync } from \"root-tools\"\nimport { info, warning } from \"../io/io\"\n\n// let didUpdate: boolean = false\n\n/** A function that installs a package using dnf */\nexport function setupDnfPack(name: string, version?: string): InstallationInfo {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n\n const dnf = \"dnf\"\n\n // if (!didUpdate) {\n // execRootSync(dnf, [\"-y\", \"check-update\"])\n // didUpdate = true\n // }\n\n if (version !== undefined && version !== \"\") {\n try {\n execRootSync(dnf, [\"-y\", \"install\", `${name}-${version}`])\n } catch (err) {\n warning(`${(err as Error).toString()}\\nInstalling the default version available via dnf`)\n execRootSync(dnf, [\"-y\", \"install\", name])\n }\n } else {\n execRootSync(dnf, [\"-y\", \"install\", name])\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.exe` on Windows\n * @param unix_ext `\"\"` On unix.\n */\nexport function addBinExtension(name: string, win_ext = \".exe\", unix_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${unix_ext}`\n}\n\n/**\n * Add native shell extension to the given name\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.bat` on Windows\n * @param unix_ext `.sh` On unix.\n */\nexport function addShellExtension(name: string, win_ext = \".bat\", unix_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${unix_ext}`\n}\n\n/** Prefix a `./` for unix shell and nothing for the cmd shell */\nexport function addShellHere(name: string) {\n if (process.platform === \"win32\") {\n return name\n }\n return `./${name}`\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n setupDnfPack(\"p7zip\", version)\n return setupDnfPack(\"p7zip-plugins\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"p7zip-full\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { isSudo, execRootSync } from \"root-tools\"\n\n/**\n * Give the user access to the given path and its sub-directories. It changes the owner to the SUDO_USER. This allows\n * the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport function giveUserAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n execRootSync(\"chown\", [\"-R\", process.env.SUDO_USER, path], { cwd: path, stdio: \"inherit\", shell: true })\n }\n}\n",null,"import execa from \"execa\"\nimport { mkdirP } from \"@actions/io\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nimport { warning } from \"../io/io\"\nimport { giveUserAccess } from \"user-access\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n giveUserAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n giveUserAccess(dest)\n return dest\n}\n","import { find, downloadTool, cacheDir } from \"@actions/tool-cache\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../env/addEnv\"\nimport { join } from \"path\"\nimport { existsSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\nimport { isArch } from \"../env/isArch\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { isUbuntu } from \"../env/isUbuntu\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise | Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch\n )\n\n // Restore from cache (if found).\n if (ciDetect() === \"github-actions\") {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (existsSync(binDir) && existsSync(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if (!existsSync(binDir) || !existsSync(binFile)) {\n info(`Download and extract ${name} ${version}`)\n\n if (!didInit) {\n if (process.platform === \"linux\") {\n // extraction dependencies\n if (isArch()) {\n setupPacmanPack(\"unzip\")\n setupPacmanPack(\"tar\")\n setupPacmanPack(\"xz\")\n } else if (hasDnf()) {\n setupDnfPack(\"unzip\")\n setupDnfPack(\"tar\")\n setupDnfPack(\"xz\")\n } else if (isUbuntu()) {\n await setupAptPack(\"unzip\")\n await setupAptPack(\"tar\")\n await setupAptPack(\"xz-utils\")\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n try {\n const downloaded = await downloadTool(url)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (ciDetect() === \"github-actions\" && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","import { addBinExtension } from \"extension-tools\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport semverLte from \"semver/functions/lte\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractZip } from \"../utils/setup/extract\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { warning, info } from \"../utils/io/io\"\nimport { isArch } from \"../utils/env/isArch\"\nimport which from \"which\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { dirname, join } from \"path\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string) {\n if (ciDetect() !== \"github-actions\") {\n // TODO parse version\n return setupPythonViaSystem(version, setupDir, arch)\n }\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n return setupActionsPython(version, setupDir, arch)\n } catch (err) {\n warning((err as Error).toString())\n return setupPythonViaSystem(version, setupDir, arch)\n }\n}\n\nexport async function setupPythonViaSystem(\n version: string,\n setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string\n): Promise {\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const pythonBinPath =\n which.sync(\"python3.exe\", { nothrow: true }) ??\n which.sync(\"python.exe\", { nothrow: true }) ??\n join(setupDir, \"python.exe\")\n const pythonSetupDir = dirname(pythonBinPath)\n /** The directory which the tool is installed to */\n await activateWinPython(pythonSetupDir)\n return { installDir: pythonSetupDir, binDir: pythonSetupDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"python3\", version)\n }\n case \"linux\": {\n let installInfo: InstallationInfo\n if (isArch()) {\n installInfo = setupPacmanPack(\"python\", version)\n setupPacmanPack(\"python-pip\")\n } else if (hasDnf()) {\n installInfo = setupDnfPack(\"python3\", version)\n setupDnfPack(\"python3-pip\")\n } else if (isUbuntu()) {\n installInfo = await setupAptPack(\"python3\", version)\n await setupAptPack(\"python3-pip\")\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n return installInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinPython(binDir: string) {\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n}\n","\"use strict\";\n\nvar stream = require(\"stream\");\n\nfunction DuplexWrapper(options, writable, readable) {\n if (typeof readable === \"undefined\") {\n readable = writable;\n writable = options;\n options = null;\n }\n\n stream.Duplex.call(this, options);\n\n if (typeof readable.read !== \"function\") {\n readable = (new stream.Readable(options)).wrap(readable);\n }\n\n this._writable = writable;\n this._readable = readable;\n this._waiting = false;\n\n var self = this;\n\n writable.once(\"finish\", function() {\n self.end();\n });\n\n this.once(\"finish\", function() {\n writable.end();\n });\n\n readable.on(\"readable\", function() {\n if (self._waiting) {\n self._waiting = false;\n self._read();\n }\n });\n\n readable.once(\"end\", function() {\n self.push(null);\n });\n\n if (!options || typeof options.bubbleErrors === \"undefined\" || options.bubbleErrors) {\n writable.on(\"error\", function(err) {\n self.emit(\"error\", err);\n });\n\n readable.on(\"error\", function(err) {\n self.emit(\"error\", err);\n });\n }\n}\n\nDuplexWrapper.prototype = Object.create(stream.Duplex.prototype, {constructor: {value: DuplexWrapper}});\n\nDuplexWrapper.prototype._write = function _write(input, encoding, done) {\n this._writable.write(input, encoding, done);\n};\n\nDuplexWrapper.prototype._read = function _read() {\n var buf;\n var reads = 0;\n while ((buf = this._readable.read()) !== null) {\n this.push(buf);\n reads++;\n }\n if (reads === 0) {\n this._waiting = true;\n }\n};\n\nmodule.exports = function duplex2(options, writable, readable) {\n return new DuplexWrapper(options, writable, readable);\n};\n\nmodule.exports.DuplexWrapper = DuplexWrapper;\n","'use strict';\nconst bufferStream = require('./buffer-stream');\n\nfunction getStream(inputStream, opts) {\n\tif (!inputStream) {\n\t\treturn Promise.reject(new Error('Expected a stream'));\n\t}\n\n\topts = Object.assign({maxBuffer: Infinity}, opts);\n\n\tconst maxBuffer = opts.maxBuffer;\n\tlet stream;\n\tlet clean;\n\n\tconst p = new Promise((resolve, reject) => {\n\t\tconst error = err => {\n\t\t\tif (err) { // null check\n\t\t\t\terr.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(err);\n\t\t};\n\n\t\tstream = bufferStream(opts);\n\t\tinputStream.once('error', error);\n\t\tinputStream.pipe(stream);\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\treject(new Error('maxBuffer exceeded'));\n\t\t\t}\n\t\t});\n\t\tstream.once('error', error);\n\t\tstream.on('end', resolve);\n\n\t\tclean = () => {\n\t\t\t// some streams doesn't implement the `stream.Readable` interface correctly\n\t\t\tif (inputStream.unpipe) {\n\t\t\t\tinputStream.unpipe(stream);\n\t\t\t}\n\t\t};\n\t});\n\n\tp.then(clean, clean);\n\n\treturn p.then(() => stream.getBufferedValue());\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, opts) => getStream(stream, Object.assign({}, opts, {encoding: 'buffer'}));\nmodule.exports.array = (stream, opts) => getStream(stream, Object.assign({}, opts, {array: true}));\n","/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","'use strict';\nconst EventEmitter = require('events');\nconst http = require('http');\nconst https = require('https');\nconst PassThrough = require('stream').PassThrough;\nconst urlLib = require('url');\nconst querystring = require('querystring');\nconst duplexer3 = require('duplexer3');\nconst isStream = require('is-stream');\nconst getStream = require('get-stream');\nconst timedOut = require('timed-out');\nconst urlParseLax = require('url-parse-lax');\nconst lowercaseKeys = require('lowercase-keys');\nconst isRedirect = require('is-redirect');\nconst unzipResponse = require('unzip-response');\nconst createErrorClass = require('create-error-class');\nconst isRetryAllowed = require('is-retry-allowed');\nconst Buffer = require('safe-buffer').Buffer;\nconst pkg = require('./package');\n\nfunction requestAsEventEmitter(opts) {\n\topts = opts || {};\n\n\tconst ee = new EventEmitter();\n\tconst requestUrl = opts.href || urlLib.resolve(urlLib.format(opts), opts.path);\n\tlet redirectCount = 0;\n\tlet retryCount = 0;\n\tlet redirectUrl;\n\n\tconst get = opts => {\n\t\tconst fn = opts.protocol === 'https:' ? https : http;\n\n\t\tconst req = fn.request(opts, res => {\n\t\t\tconst statusCode = res.statusCode;\n\n\t\t\tif (isRedirect(statusCode) && opts.followRedirect && 'location' in res.headers && (opts.method === 'GET' || opts.method === 'HEAD')) {\n\t\t\t\tres.resume();\n\n\t\t\t\tif (++redirectCount > 10) {\n\t\t\t\t\tee.emit('error', new got.MaxRedirectsError(statusCode, opts), null, res);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst bufferString = Buffer.from(res.headers.location, 'binary').toString();\n\n\t\t\t\tredirectUrl = urlLib.resolve(urlLib.format(opts), bufferString);\n\t\t\t\tconst redirectOpts = Object.assign({}, opts, urlLib.parse(redirectUrl));\n\n\t\t\t\tee.emit('redirect', res, redirectOpts);\n\n\t\t\t\tget(redirectOpts);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetImmediate(() => {\n\t\t\t\tconst response = typeof unzipResponse === 'function' && req.method !== 'HEAD' ? unzipResponse(res) : res;\n\t\t\t\tresponse.url = redirectUrl || requestUrl;\n\t\t\t\tresponse.requestUrl = requestUrl;\n\n\t\t\t\tee.emit('response', response);\n\t\t\t});\n\t\t});\n\n\t\treq.once('error', err => {\n\t\t\tconst backoff = opts.retries(++retryCount, err);\n\n\t\t\tif (backoff) {\n\t\t\t\tsetTimeout(get, backoff, opts);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tee.emit('error', new got.RequestError(err, opts));\n\t\t});\n\n\t\tif (opts.gotTimeout) {\n\t\t\ttimedOut(req, opts.gotTimeout);\n\t\t}\n\n\t\tsetImmediate(() => {\n\t\t\tee.emit('request', req);\n\t\t});\n\t};\n\n\tget(opts);\n\treturn ee;\n}\n\nfunction asPromise(opts) {\n\treturn new Promise((resolve, reject) => {\n\t\tconst ee = requestAsEventEmitter(opts);\n\n\t\tee.on('request', req => {\n\t\t\tif (isStream(opts.body)) {\n\t\t\t\topts.body.pipe(req);\n\t\t\t\topts.body = undefined;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\treq.end(opts.body);\n\t\t});\n\n\t\tee.on('response', res => {\n\t\t\tconst stream = opts.encoding === null ? getStream.buffer(res) : getStream(res, opts);\n\n\t\t\tstream\n\t\t\t\t.catch(err => reject(new got.ReadError(err, opts)))\n\t\t\t\t.then(data => {\n\t\t\t\t\tconst statusCode = res.statusCode;\n\t\t\t\t\tconst limitStatusCode = opts.followRedirect ? 299 : 399;\n\n\t\t\t\t\tres.body = data;\n\n\t\t\t\t\tif (opts.json && res.body) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tres.body = JSON.parse(res.body);\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\tthrow new got.ParseError(e, statusCode, opts, data);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (statusCode < 200 || statusCode > limitStatusCode) {\n\t\t\t\t\t\tthrow new got.HTTPError(statusCode, opts);\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(res);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tObject.defineProperty(err, 'response', {value: res});\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\n\t\tee.on('error', reject);\n\t});\n}\n\nfunction asStream(opts) {\n\tconst input = new PassThrough();\n\tconst output = new PassThrough();\n\tconst proxy = duplexer3(input, output);\n\n\tif (opts.json) {\n\t\tthrow new Error('got can not be used as stream when options.json is used');\n\t}\n\n\tif (opts.body) {\n\t\tproxy.write = () => {\n\t\t\tthrow new Error('got\\'s stream is not writable when options.body is used');\n\t\t};\n\t}\n\n\tconst ee = requestAsEventEmitter(opts);\n\n\tee.on('request', req => {\n\t\tproxy.emit('request', req);\n\n\t\tif (isStream(opts.body)) {\n\t\t\topts.body.pipe(req);\n\t\t\treturn;\n\t\t}\n\n\t\tif (opts.body) {\n\t\t\treq.end(opts.body);\n\t\t\treturn;\n\t\t}\n\n\t\tif (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {\n\t\t\tinput.pipe(req);\n\t\t\treturn;\n\t\t}\n\n\t\treq.end();\n\t});\n\n\tee.on('response', res => {\n\t\tconst statusCode = res.statusCode;\n\n\t\tres.pipe(output);\n\n\t\tif (statusCode < 200 || statusCode > 299) {\n\t\t\tproxy.emit('error', new got.HTTPError(statusCode, opts), null, res);\n\t\t\treturn;\n\t\t}\n\n\t\tproxy.emit('response', res);\n\t});\n\n\tee.on('redirect', proxy.emit.bind(proxy, 'redirect'));\n\tee.on('error', proxy.emit.bind(proxy, 'error'));\n\n\treturn proxy;\n}\n\nfunction normalizeArguments(url, opts) {\n\tif (typeof url !== 'string' && typeof url !== 'object') {\n\t\tthrow new Error(`Parameter \\`url\\` must be a string or object, not ${typeof url}`);\n\t}\n\n\tif (typeof url === 'string') {\n\t\turl = url.replace(/^unix:/, 'http://$&');\n\t\turl = urlParseLax(url);\n\n\t\tif (url.auth) {\n\t\t\tthrow new Error('Basic authentication must be done with auth option');\n\t\t}\n\t}\n\n\topts = Object.assign(\n\t\t{\n\t\t\tprotocol: 'http:',\n\t\t\tpath: '',\n\t\t\tretries: 5\n\t\t},\n\t\turl,\n\t\topts\n\t);\n\n\topts.headers = Object.assign({\n\t\t'user-agent': `${pkg.name}/${pkg.version} (https://github.com/sindresorhus/got)`,\n\t\t'accept-encoding': 'gzip,deflate'\n\t}, lowercaseKeys(opts.headers));\n\n\tconst query = opts.query;\n\n\tif (query) {\n\t\tif (typeof query !== 'string') {\n\t\t\topts.query = querystring.stringify(query);\n\t\t}\n\n\t\topts.path = `${opts.path.split('?')[0]}?${opts.query}`;\n\t\tdelete opts.query;\n\t}\n\n\tif (opts.json && opts.headers.accept === undefined) {\n\t\topts.headers.accept = 'application/json';\n\t}\n\n\tlet body = opts.body;\n\n\tif (body) {\n\t\tif (typeof body !== 'string' && !(body !== null && typeof body === 'object')) {\n\t\t\tthrow new Error('options.body must be a ReadableStream, string, Buffer or plain Object');\n\t\t}\n\n\t\topts.method = opts.method || 'POST';\n\n\t\tif (isStream(body) && typeof body.getBoundary === 'function') {\n\t\t\t// Special case for https://github.com/form-data/form-data\n\t\t\topts.headers['content-type'] = opts.headers['content-type'] || `multipart/form-data; boundary=${body.getBoundary()}`;\n\t\t} else if (body !== null && typeof body === 'object' && !Buffer.isBuffer(body) && !isStream(body)) {\n\t\t\topts.headers['content-type'] = opts.headers['content-type'] || 'application/x-www-form-urlencoded';\n\t\t\tbody = opts.body = querystring.stringify(body);\n\t\t}\n\n\t\tif (opts.headers['content-length'] === undefined && opts.headers['transfer-encoding'] === undefined && !isStream(body)) {\n\t\t\tconst length = typeof body === 'string' ? Buffer.byteLength(body) : body.length;\n\t\t\topts.headers['content-length'] = length;\n\t\t}\n\t}\n\n\topts.method = (opts.method || 'GET').toUpperCase();\n\n\tif (opts.hostname === 'unix') {\n\t\tconst matches = /(.+):(.+)/.exec(opts.path);\n\n\t\tif (matches) {\n\t\t\topts.socketPath = matches[1];\n\t\t\topts.path = matches[2];\n\t\t\topts.host = null;\n\t\t}\n\t}\n\n\tif (typeof opts.retries !== 'function') {\n\t\tconst retries = opts.retries;\n\n\t\topts.retries = (iter, err) => {\n\t\t\tif (iter > retries || !isRetryAllowed(err)) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\tconst noise = Math.random() * 100;\n\n\t\t\treturn ((1 << iter) * 1000) + noise;\n\t\t};\n\t}\n\n\tif (opts.followRedirect === undefined) {\n\t\topts.followRedirect = true;\n\t}\n\n\tif (opts.timeout) {\n\t\topts.gotTimeout = opts.timeout;\n\t\tdelete opts.timeout;\n\t}\n\n\treturn opts;\n}\n\nfunction got(url, opts) {\n\ttry {\n\t\treturn asPromise(normalizeArguments(url, opts));\n\t} catch (err) {\n\t\treturn Promise.reject(err);\n\t}\n}\n\nconst helpers = [\n\t'get',\n\t'post',\n\t'put',\n\t'patch',\n\t'head',\n\t'delete'\n];\n\nhelpers.forEach(el => {\n\tgot[el] = (url, opts) => got(url, Object.assign({}, opts, {method: el}));\n});\n\ngot.stream = (url, opts) => asStream(normalizeArguments(url, opts));\n\nfor (const el of helpers) {\n\tgot.stream[el] = (url, opts) => got.stream(url, Object.assign({}, opts, {method: el}));\n}\n\nfunction stdError(error, opts) {\n\tif (error.code !== undefined) {\n\t\tthis.code = error.code;\n\t}\n\n\tObject.assign(this, {\n\t\tmessage: error.message,\n\t\thost: opts.host,\n\t\thostname: opts.hostname,\n\t\tmethod: opts.method,\n\t\tpath: opts.path\n\t});\n}\n\ngot.RequestError = createErrorClass('RequestError', stdError);\ngot.ReadError = createErrorClass('ReadError', stdError);\ngot.ParseError = createErrorClass('ParseError', function (e, statusCode, opts, data) {\n\tstdError.call(this, e, opts);\n\tthis.statusCode = statusCode;\n\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\tthis.message = `${e.message} in \"${urlLib.format(opts)}\": \\n${data.slice(0, 77)}...`;\n});\n\ngot.HTTPError = createErrorClass('HTTPError', function (statusCode, opts) {\n\tstdError.call(this, {}, opts);\n\tthis.statusCode = statusCode;\n\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\tthis.message = `Response code ${this.statusCode} (${this.statusMessage})`;\n});\n\ngot.MaxRedirectsError = createErrorClass('MaxRedirectsError', function (statusCode, opts) {\n\tstdError.call(this, {}, opts);\n\tthis.statusCode = statusCode;\n\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\tthis.message = 'Redirected 10 times. Aborting.';\n});\n\nmodule.exports = got;\n","var ip = exports;\nvar { Buffer } = require('buffer');\nvar os = require('os');\n\nip.toBuffer = function (ip, buff, offset) {\n offset = ~~offset;\n\n var result;\n\n if (this.isV4Format(ip)) {\n result = buff || new Buffer(offset + 4);\n ip.split(/\\./g).map((byte) => {\n result[offset++] = parseInt(byte, 10) & 0xff;\n });\n } else if (this.isV6Format(ip)) {\n var sections = ip.split(':', 8);\n\n var i;\n for (i = 0; i < sections.length; i++) {\n var isv4 = this.isV4Format(sections[i]);\n var v4Buffer;\n\n if (isv4) {\n v4Buffer = this.toBuffer(sections[i]);\n sections[i] = v4Buffer.slice(0, 2).toString('hex');\n }\n\n if (v4Buffer && ++i < 8) {\n sections.splice(i, 0, v4Buffer.slice(2, 4).toString('hex'));\n }\n }\n\n if (sections[0] === '') {\n while (sections.length < 8) sections.unshift('0');\n } else if (sections[sections.length - 1] === '') {\n while (sections.length < 8) sections.push('0');\n } else if (sections.length < 8) {\n for (i = 0; i < sections.length && sections[i] !== ''; i++);\n var argv = [i, 1];\n for (i = 9 - sections.length; i > 0; i--) {\n argv.push('0');\n }\n sections.splice.apply(sections, argv);\n }\n\n result = buff || new Buffer(offset + 16);\n for (i = 0; i < sections.length; i++) {\n var word = parseInt(sections[i], 16);\n result[offset++] = (word >> 8) & 0xff;\n result[offset++] = word & 0xff;\n }\n }\n\n if (!result) {\n throw Error(`Invalid ip address: ${ip}`);\n }\n\n return result;\n};\n\nip.toString = function (buff, offset, length) {\n offset = ~~offset;\n length = length || (buff.length - offset);\n\n var result = [];\n var i;\n if (length === 4) {\n // IPv4\n for (i = 0; i < length; i++) {\n result.push(buff[offset + i]);\n }\n result = result.join('.');\n } else if (length === 16) {\n // IPv6\n for (i = 0; i < length; i += 2) {\n result.push(buff.readUInt16BE(offset + i).toString(16));\n }\n result = result.join(':');\n result = result.replace(/(^|:)0(:0)*:0(:|$)/, '$1::$3');\n result = result.replace(/:{3,4}/, '::');\n }\n\n return result;\n};\n\nvar ipv4Regex = /^(\\d{1,3}\\.){3,3}\\d{1,3}$/;\nvar ipv6Regex = /^(::)?(((\\d{1,3}\\.){3}(\\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;\n\nip.isV4Format = function (ip) {\n return ipv4Regex.test(ip);\n};\n\nip.isV6Format = function (ip) {\n return ipv6Regex.test(ip);\n};\n\nfunction _normalizeFamily(family) {\n if (family === 4) {\n return 'ipv4';\n }\n if (family === 6) {\n return 'ipv6';\n }\n return family ? family.toLowerCase() : 'ipv4';\n}\n\nip.fromPrefixLen = function (prefixlen, family) {\n if (prefixlen > 32) {\n family = 'ipv6';\n } else {\n family = _normalizeFamily(family);\n }\n\n var len = 4;\n if (family === 'ipv6') {\n len = 16;\n }\n var buff = new Buffer(len);\n\n for (var i = 0, n = buff.length; i < n; ++i) {\n var bits = 8;\n if (prefixlen < 8) {\n bits = prefixlen;\n }\n prefixlen -= bits;\n\n buff[i] = ~(0xff >> bits) & 0xff;\n }\n\n return ip.toString(buff);\n};\n\nip.mask = function (addr, mask) {\n addr = ip.toBuffer(addr);\n mask = ip.toBuffer(mask);\n\n var result = new Buffer(Math.max(addr.length, mask.length));\n\n // Same protocol - do bitwise and\n var i;\n if (addr.length === mask.length) {\n for (i = 0; i < addr.length; i++) {\n result[i] = addr[i] & mask[i];\n }\n } else if (mask.length === 4) {\n // IPv6 address and IPv4 mask\n // (Mask low bits)\n for (i = 0; i < mask.length; i++) {\n result[i] = addr[addr.length - 4 + i] & mask[i];\n }\n } else {\n // IPv6 mask and IPv4 addr\n for (i = 0; i < result.length - 6; i++) {\n result[i] = 0;\n }\n\n // ::ffff:ipv4\n result[10] = 0xff;\n result[11] = 0xff;\n for (i = 0; i < addr.length; i++) {\n result[i + 12] = addr[i] & mask[i + 12];\n }\n i += 12;\n }\n for (; i < result.length; i++) {\n result[i] = 0;\n }\n\n return ip.toString(result);\n};\n\nip.cidr = function (cidrString) {\n var cidrParts = cidrString.split('/');\n\n var addr = cidrParts[0];\n if (cidrParts.length !== 2) {\n throw new Error(`invalid CIDR subnet: ${addr}`);\n }\n\n var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));\n\n return ip.mask(addr, mask);\n};\n\nip.subnet = function (addr, mask) {\n var networkAddress = ip.toLong(ip.mask(addr, mask));\n\n // Calculate the mask's length.\n var maskBuffer = ip.toBuffer(mask);\n var maskLength = 0;\n\n for (var i = 0; i < maskBuffer.length; i++) {\n if (maskBuffer[i] === 0xff) {\n maskLength += 8;\n } else {\n var octet = maskBuffer[i] & 0xff;\n while (octet) {\n octet = (octet << 1) & 0xff;\n maskLength++;\n }\n }\n }\n\n var numberOfAddresses = Math.pow(2, 32 - maskLength);\n\n return {\n networkAddress: ip.fromLong(networkAddress),\n firstAddress: numberOfAddresses <= 2\n ? ip.fromLong(networkAddress)\n : ip.fromLong(networkAddress + 1),\n lastAddress: numberOfAddresses <= 2\n ? ip.fromLong(networkAddress + numberOfAddresses - 1)\n : ip.fromLong(networkAddress + numberOfAddresses - 2),\n broadcastAddress: ip.fromLong(networkAddress + numberOfAddresses - 1),\n subnetMask: mask,\n subnetMaskLength: maskLength,\n numHosts: numberOfAddresses <= 2\n ? numberOfAddresses : numberOfAddresses - 2,\n length: numberOfAddresses,\n contains(other) {\n return networkAddress === ip.toLong(ip.mask(other, mask));\n },\n };\n};\n\nip.cidrSubnet = function (cidrString) {\n var cidrParts = cidrString.split('/');\n\n var addr = cidrParts[0];\n if (cidrParts.length !== 2) {\n throw new Error(`invalid CIDR subnet: ${addr}`);\n }\n\n var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));\n\n return ip.subnet(addr, mask);\n};\n\nip.not = function (addr) {\n var buff = ip.toBuffer(addr);\n for (var i = 0; i < buff.length; i++) {\n buff[i] = 0xff ^ buff[i];\n }\n return ip.toString(buff);\n};\n\nip.or = function (a, b) {\n var i;\n\n a = ip.toBuffer(a);\n b = ip.toBuffer(b);\n\n // same protocol\n if (a.length === b.length) {\n for (i = 0; i < a.length; ++i) {\n a[i] |= b[i];\n }\n return ip.toString(a);\n\n // mixed protocols\n }\n var buff = a;\n var other = b;\n if (b.length > a.length) {\n buff = b;\n other = a;\n }\n\n var offset = buff.length - other.length;\n for (i = offset; i < buff.length; ++i) {\n buff[i] |= other[i - offset];\n }\n\n return ip.toString(buff);\n};\n\nip.isEqual = function (a, b) {\n var i;\n\n a = ip.toBuffer(a);\n b = ip.toBuffer(b);\n\n // Same protocol\n if (a.length === b.length) {\n for (i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n }\n\n // Swap\n if (b.length === 4) {\n var t = b;\n b = a;\n a = t;\n }\n\n // a - IPv4, b - IPv6\n for (i = 0; i < 10; i++) {\n if (b[i] !== 0) return false;\n }\n\n var word = b.readUInt16BE(10);\n if (word !== 0 && word !== 0xffff) return false;\n\n for (i = 0; i < 4; i++) {\n if (a[i] !== b[i + 12]) return false;\n }\n\n return true;\n};\n\nip.isPrivate = function (addr) {\n return /^(::f{4}:)?10\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/i\n .test(addr)\n || /^(::f{4}:)?192\\.168\\.([0-9]{1,3})\\.([0-9]{1,3})$/i.test(addr)\n || /^(::f{4}:)?172\\.(1[6-9]|2\\d|30|31)\\.([0-9]{1,3})\\.([0-9]{1,3})$/i\n .test(addr)\n || /^(::f{4}:)?127\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/i.test(addr)\n || /^(::f{4}:)?169\\.254\\.([0-9]{1,3})\\.([0-9]{1,3})$/i.test(addr)\n || /^f[cd][0-9a-f]{2}:/i.test(addr)\n || /^fe80:/i.test(addr)\n || /^::1$/.test(addr)\n || /^::$/.test(addr);\n};\n\nip.isPublic = function (addr) {\n return !ip.isPrivate(addr);\n};\n\nip.isLoopback = function (addr) {\n return /^(::f{4}:)?127\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})/\n .test(addr)\n || /^fe80::1$/.test(addr)\n || /^::1$/.test(addr)\n || /^::$/.test(addr);\n};\n\nip.loopback = function (family) {\n //\n // Default to `ipv4`\n //\n family = _normalizeFamily(family);\n\n if (family !== 'ipv4' && family !== 'ipv6') {\n throw new Error('family must be ipv4 or ipv6');\n }\n\n return family === 'ipv4' ? '127.0.0.1' : 'fe80::1';\n};\n\n//\n// ### function address (name, family)\n// #### @name {string|'public'|'private'} **Optional** Name or security\n// of the network interface.\n// #### @family {ipv4|ipv6} **Optional** IP family of the address (defaults\n// to ipv4).\n//\n// Returns the address for the network interface on the current system with\n// the specified `name`:\n// * String: First `family` address of the interface.\n// If not found see `undefined`.\n// * 'public': the first public ip address of family.\n// * 'private': the first private ip address of family.\n// * undefined: First address with `ipv4` or loopback address `127.0.0.1`.\n//\nip.address = function (name, family) {\n var interfaces = os.networkInterfaces();\n\n //\n // Default to `ipv4`\n //\n family = _normalizeFamily(family);\n\n //\n // If a specific network interface has been named,\n // return the address.\n //\n if (name && name !== 'private' && name !== 'public') {\n var res = interfaces[name].filter((details) => {\n var itemFamily = _normalizeFamily(details.family);\n return itemFamily === family;\n });\n if (res.length === 0) {\n return undefined;\n }\n return res[0].address;\n }\n\n var all = Object.keys(interfaces).map((nic) => {\n //\n // Note: name will only be `public` or `private`\n // when this is called.\n //\n var addresses = interfaces[nic].filter((details) => {\n details.family = _normalizeFamily(details.family);\n if (details.family !== family || ip.isLoopback(details.address)) {\n return false;\n } if (!name) {\n return true;\n }\n\n return name === 'public' ? ip.isPrivate(details.address)\n : ip.isPublic(details.address);\n });\n\n return addresses.length ? addresses[0].address : undefined;\n }).filter(Boolean);\n\n return !all.length ? ip.loopback(family) : all[0];\n};\n\nip.toLong = function (ip) {\n var ipl = 0;\n ip.split('.').forEach((octet) => {\n ipl <<= 8;\n ipl += parseInt(octet);\n });\n return (ipl >>> 0);\n};\n\nip.fromLong = function (ipl) {\n return (`${ipl >>> 24}.${\n ipl >> 16 & 255}.${\n ipl >> 8 & 255}.${\n ipl & 255}`);\n};\n","var types = require('./types')\nvar rcodes = require('./rcodes')\nvar opcodes = require('./opcodes')\nvar ip = require('ip')\nvar Buffer = require('safe-buffer').Buffer\n\nvar QUERY_FLAG = 0\nvar RESPONSE_FLAG = 1 << 15\nvar FLUSH_MASK = 1 << 15\nvar NOT_FLUSH_MASK = ~FLUSH_MASK\nvar QU_MASK = 1 << 15\nvar NOT_QU_MASK = ~QU_MASK\n\nvar name = exports.txt = exports.name = {}\n\nname.encode = function (str, buf, offset) {\n if (!buf) buf = Buffer.alloc(name.encodingLength(str))\n if (!offset) offset = 0\n var oldOffset = offset\n\n // strip leading and trailing .\n var n = str.replace(/^\\.|\\.$/gm, '')\n if (n.length) {\n var list = n.split('.')\n\n for (var i = 0; i < list.length; i++) {\n var len = buf.write(list[i], offset + 1)\n buf[offset] = len\n offset += len + 1\n }\n }\n\n buf[offset++] = 0\n\n name.encode.bytes = offset - oldOffset\n return buf\n}\n\nname.encode.bytes = 0\n\nname.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var list = []\n var oldOffset = offset\n var len = buf[offset++]\n\n if (len === 0) {\n name.decode.bytes = 1\n return '.'\n }\n if (len >= 0xc0) {\n var res = name.decode(buf, buf.readUInt16BE(offset - 1) - 0xc000)\n name.decode.bytes = 2\n return res\n }\n\n while (len) {\n if (len >= 0xc0) {\n list.push(name.decode(buf, buf.readUInt16BE(offset - 1) - 0xc000))\n offset++\n break\n }\n\n list.push(buf.toString('utf-8', offset, offset + len))\n offset += len\n len = buf[offset++]\n }\n\n name.decode.bytes = offset - oldOffset\n return list.join('.')\n}\n\nname.decode.bytes = 0\n\nname.encodingLength = function (n) {\n if (n === '.' || n === '..') return 1\n return Buffer.byteLength(n.replace(/^\\.|\\.$/gm, '')) + 2\n}\n\nvar string = {}\n\nstring.encode = function (s, buf, offset) {\n if (!buf) buf = Buffer.alloc(string.encodingLength(s))\n if (!offset) offset = 0\n\n var len = buf.write(s, offset + 1)\n buf[offset] = len\n string.encode.bytes = len + 1\n return buf\n}\n\nstring.encode.bytes = 0\n\nstring.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf[offset]\n var s = buf.toString('utf-8', offset + 1, offset + 1 + len)\n string.decode.bytes = len + 1\n return s\n}\n\nstring.decode.bytes = 0\n\nstring.encodingLength = function (s) {\n return Buffer.byteLength(s) + 1\n}\n\nvar header = {}\n\nheader.encode = function (h, buf, offset) {\n if (!buf) buf = header.encodingLength(h)\n if (!offset) offset = 0\n\n var flags = (h.flags || 0) & 32767\n var type = h.type === 'response' ? RESPONSE_FLAG : QUERY_FLAG\n\n buf.writeUInt16BE(h.id || 0, offset)\n buf.writeUInt16BE(flags | type, offset + 2)\n buf.writeUInt16BE(h.questions.length, offset + 4)\n buf.writeUInt16BE(h.answers.length, offset + 6)\n buf.writeUInt16BE(h.authorities.length, offset + 8)\n buf.writeUInt16BE(h.additionals.length, offset + 10)\n\n return buf\n}\n\nheader.encode.bytes = 12\n\nheader.decode = function (buf, offset) {\n if (!offset) offset = 0\n if (buf.length < 12) throw new Error('Header must be 12 bytes')\n var flags = buf.readUInt16BE(offset + 2)\n\n return {\n id: buf.readUInt16BE(offset),\n type: flags & RESPONSE_FLAG ? 'response' : 'query',\n flags: flags & 32767,\n flag_qr: ((flags >> 15) & 0x1) === 1,\n opcode: opcodes.toString((flags >> 11) & 0xf),\n flag_auth: ((flags >> 10) & 0x1) === 1,\n flag_trunc: ((flags >> 9) & 0x1) === 1,\n flag_rd: ((flags >> 8) & 0x1) === 1,\n flag_ra: ((flags >> 7) & 0x1) === 1,\n flag_z: ((flags >> 6) & 0x1) === 1,\n flag_ad: ((flags >> 5) & 0x1) === 1,\n flag_cd: ((flags >> 4) & 0x1) === 1,\n rcode: rcodes.toString(flags & 0xf),\n questions: new Array(buf.readUInt16BE(offset + 4)),\n answers: new Array(buf.readUInt16BE(offset + 6)),\n authorities: new Array(buf.readUInt16BE(offset + 8)),\n additionals: new Array(buf.readUInt16BE(offset + 10))\n }\n}\n\nheader.decode.bytes = 12\n\nheader.encodingLength = function () {\n return 12\n}\n\nvar runknown = exports.unknown = {}\n\nrunknown.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(runknown.encodingLength(data))\n if (!offset) offset = 0\n\n buf.writeUInt16BE(data.length, offset)\n data.copy(buf, offset + 2)\n\n runknown.encode.bytes = data.length + 2\n return buf\n}\n\nrunknown.encode.bytes = 0\n\nrunknown.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf.readUInt16BE(offset)\n var data = buf.slice(offset + 2, offset + 2 + len)\n runknown.decode.bytes = len + 2\n return data\n}\n\nrunknown.decode.bytes = 0\n\nrunknown.encodingLength = function (data) {\n return data.length + 2\n}\n\nvar rns = exports.ns = {}\n\nrns.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rns.encodingLength(data))\n if (!offset) offset = 0\n\n name.encode(data, buf, offset + 2)\n buf.writeUInt16BE(name.encode.bytes, offset)\n rns.encode.bytes = name.encode.bytes + 2\n return buf\n}\n\nrns.encode.bytes = 0\n\nrns.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf.readUInt16BE(offset)\n var dd = name.decode(buf, offset + 2)\n\n rns.decode.bytes = len + 2\n return dd\n}\n\nrns.decode.bytes = 0\n\nrns.encodingLength = function (data) {\n return name.encodingLength(data) + 2\n}\n\nvar rsoa = exports.soa = {}\n\nrsoa.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rsoa.encodingLength(data))\n if (!offset) offset = 0\n\n var oldOffset = offset\n offset += 2\n name.encode(data.mname, buf, offset)\n offset += name.encode.bytes\n name.encode(data.rname, buf, offset)\n offset += name.encode.bytes\n buf.writeUInt32BE(data.serial || 0, offset)\n offset += 4\n buf.writeUInt32BE(data.refresh || 0, offset)\n offset += 4\n buf.writeUInt32BE(data.retry || 0, offset)\n offset += 4\n buf.writeUInt32BE(data.expire || 0, offset)\n offset += 4\n buf.writeUInt32BE(data.minimum || 0, offset)\n offset += 4\n\n buf.writeUInt16BE(offset - oldOffset - 2, oldOffset)\n rsoa.encode.bytes = offset - oldOffset\n return buf\n}\n\nrsoa.encode.bytes = 0\n\nrsoa.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n var data = {}\n offset += 2\n data.mname = name.decode(buf, offset)\n offset += name.decode.bytes\n data.rname = name.decode(buf, offset)\n offset += name.decode.bytes\n data.serial = buf.readUInt32BE(offset)\n offset += 4\n data.refresh = buf.readUInt32BE(offset)\n offset += 4\n data.retry = buf.readUInt32BE(offset)\n offset += 4\n data.expire = buf.readUInt32BE(offset)\n offset += 4\n data.minimum = buf.readUInt32BE(offset)\n offset += 4\n\n rsoa.decode.bytes = offset - oldOffset\n return data\n}\n\nrsoa.decode.bytes = 0\n\nrsoa.encodingLength = function (data) {\n return 22 + name.encodingLength(data.mname) + name.encodingLength(data.rname)\n}\n\nvar rtxt = exports.txt = exports.null = {}\nvar rnull = rtxt\n\nrtxt.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rtxt.encodingLength(data))\n if (!offset) offset = 0\n\n if (typeof data === 'string') data = Buffer.from(data)\n if (!data) data = Buffer.alloc(0)\n\n var oldOffset = offset\n offset += 2\n\n var len = data.length\n data.copy(buf, offset, 0, len)\n offset += len\n\n buf.writeUInt16BE(offset - oldOffset - 2, oldOffset)\n rtxt.encode.bytes = offset - oldOffset\n return buf\n}\n\nrtxt.encode.bytes = 0\n\nrtxt.decode = function (buf, offset) {\n if (!offset) offset = 0\n var oldOffset = offset\n var len = buf.readUInt16BE(offset)\n\n offset += 2\n\n var data = buf.slice(offset, offset + len)\n offset += len\n\n rtxt.decode.bytes = offset - oldOffset\n return data\n}\n\nrtxt.decode.bytes = 0\n\nrtxt.encodingLength = function (data) {\n if (!data) return 2\n return (Buffer.isBuffer(data) ? data.length : Buffer.byteLength(data)) + 2\n}\n\nvar rhinfo = exports.hinfo = {}\n\nrhinfo.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rhinfo.encodingLength(data))\n if (!offset) offset = 0\n\n var oldOffset = offset\n offset += 2\n string.encode(data.cpu, buf, offset)\n offset += string.encode.bytes\n string.encode(data.os, buf, offset)\n offset += string.encode.bytes\n buf.writeUInt16BE(offset - oldOffset - 2, oldOffset)\n rhinfo.encode.bytes = offset - oldOffset\n return buf\n}\n\nrhinfo.encode.bytes = 0\n\nrhinfo.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n var data = {}\n offset += 2\n data.cpu = string.decode(buf, offset)\n offset += string.decode.bytes\n data.os = string.decode(buf, offset)\n offset += string.decode.bytes\n rhinfo.decode.bytes = offset - oldOffset\n return data\n}\n\nrhinfo.decode.bytes = 0\n\nrhinfo.encodingLength = function (data) {\n return string.encodingLength(data.cpu) + string.encodingLength(data.os) + 2\n}\n\nvar rptr = exports.ptr = {}\nvar rcname = exports.cname = rptr\nvar rdname = exports.dname = rptr\n\nrptr.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rptr.encodingLength(data))\n if (!offset) offset = 0\n\n name.encode(data, buf, offset + 2)\n buf.writeUInt16BE(name.encode.bytes, offset)\n rptr.encode.bytes = name.encode.bytes + 2\n return buf\n}\n\nrptr.encode.bytes = 0\n\nrptr.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var data = name.decode(buf, offset + 2)\n rptr.decode.bytes = name.decode.bytes + 2\n return data\n}\n\nrptr.decode.bytes = 0\n\nrptr.encodingLength = function (data) {\n return name.encodingLength(data) + 2\n}\n\nvar rsrv = exports.srv = {}\n\nrsrv.encode = function (data, buf, offset) {\n if (!buf) buf = Buffer.alloc(rsrv.encodingLength(data))\n if (!offset) offset = 0\n\n buf.writeUInt16BE(data.priority || 0, offset + 2)\n buf.writeUInt16BE(data.weight || 0, offset + 4)\n buf.writeUInt16BE(data.port || 0, offset + 6)\n name.encode(data.target, buf, offset + 8)\n\n var len = name.encode.bytes + 6\n buf.writeUInt16BE(len, offset)\n\n rsrv.encode.bytes = len + 2\n return buf\n}\n\nrsrv.encode.bytes = 0\n\nrsrv.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf.readUInt16BE(offset)\n\n var data = {}\n data.priority = buf.readUInt16BE(offset + 2)\n data.weight = buf.readUInt16BE(offset + 4)\n data.port = buf.readUInt16BE(offset + 6)\n data.target = name.decode(buf, offset + 8)\n\n rsrv.decode.bytes = len + 2\n return data\n}\n\nrsrv.decode.bytes = 0\n\nrsrv.encodingLength = function (data) {\n return 8 + name.encodingLength(data.target)\n}\n\nvar rcaa = exports.caa = {}\n\nrcaa.ISSUER_CRITICAL = 1 << 7\n\nrcaa.encode = function (data, buf, offset) {\n var len = rcaa.encodingLength(data)\n\n if (!buf) buf = Buffer.alloc(rcaa.encodingLength(data))\n if (!offset) offset = 0\n\n if (data.issuerCritical) {\n data.flags = rcaa.ISSUER_CRITICAL\n }\n\n buf.writeUInt16BE(len - 2, offset)\n offset += 2\n buf.writeUInt8(data.flags || 0, offset)\n offset += 1\n string.encode(data.tag, buf, offset)\n offset += string.encode.bytes\n buf.write(data.value, offset)\n offset += Buffer.byteLength(data.value)\n\n rcaa.encode.bytes = len\n return buf\n}\n\nrcaa.encode.bytes = 0\n\nrcaa.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var len = buf.readUInt16BE(offset)\n offset += 2\n\n var oldOffset = offset\n var data = {}\n data.flags = buf.readUInt8(offset)\n offset += 1\n data.tag = string.decode(buf, offset)\n offset += string.decode.bytes\n data.value = buf.toString('utf-8', offset, oldOffset + len)\n\n data.issuerCritical = !!(data.flags & rcaa.ISSUER_CRITICAL)\n\n rcaa.decode.bytes = len + 2\n\n return data\n}\n\nrcaa.decode.bytes = 0\n\nrcaa.encodingLength = function (data) {\n return string.encodingLength(data.tag) + string.encodingLength(data.value) + 2\n}\n\nvar ra = exports.a = {}\n\nra.encode = function (host, buf, offset) {\n if (!buf) buf = Buffer.alloc(ra.encodingLength(host))\n if (!offset) offset = 0\n\n buf.writeUInt16BE(4, offset)\n offset += 2\n ip.toBuffer(host, buf, offset)\n ra.encode.bytes = 6\n return buf\n}\n\nra.encode.bytes = 0\n\nra.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n offset += 2\n var host = ip.toString(buf, offset, 4)\n ra.decode.bytes = 6\n return host\n}\n\nra.decode.bytes = 0\n\nra.encodingLength = function () {\n return 6\n}\n\nvar raaaa = exports.aaaa = {}\n\nraaaa.encode = function (host, buf, offset) {\n if (!buf) buf = Buffer.alloc(raaaa.encodingLength(host))\n if (!offset) offset = 0\n\n buf.writeUInt16BE(16, offset)\n offset += 2\n ip.toBuffer(host, buf, offset)\n raaaa.encode.bytes = 18\n return buf\n}\n\nraaaa.encode.bytes = 0\n\nraaaa.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n offset += 2\n var host = ip.toString(buf, offset, 16)\n raaaa.decode.bytes = 18\n return host\n}\n\nraaaa.decode.bytes = 0\n\nraaaa.encodingLength = function () {\n return 18\n}\n\nvar renc = exports.record = function (type) {\n switch (type.toUpperCase()) {\n case 'A': return ra\n case 'PTR': return rptr\n case 'CNAME': return rcname\n case 'DNAME': return rdname\n case 'TXT': return rtxt\n case 'NULL': return rnull\n case 'AAAA': return raaaa\n case 'SRV': return rsrv\n case 'HINFO': return rhinfo\n case 'CAA': return rcaa\n case 'NS': return rns\n case 'SOA': return rsoa\n }\n return runknown\n}\n\nvar answer = exports.answer = {}\n\nanswer.encode = function (a, buf, offset) {\n if (!buf) buf = Buffer.alloc(answer.encodingLength(a))\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n name.encode(a.name, buf, offset)\n offset += name.encode.bytes\n\n buf.writeUInt16BE(types.toType(a.type), offset)\n\n var klass = a.class === undefined ? 1 : a.class\n if (a.flush) klass |= FLUSH_MASK // the 1st bit of the class is the flush bit\n buf.writeUInt16BE(klass, offset + 2)\n\n buf.writeUInt32BE(a.ttl || 0, offset + 4)\n\n var enc = renc(a.type)\n enc.encode(a.data, buf, offset + 8)\n offset += 8 + enc.encode.bytes\n\n answer.encode.bytes = offset - oldOffset\n return buf\n}\n\nanswer.encode.bytes = 0\n\nanswer.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var a = {}\n var oldOffset = offset\n\n a.name = name.decode(buf, offset)\n offset += name.decode.bytes\n a.type = types.toString(buf.readUInt16BE(offset))\n a.class = buf.readUInt16BE(offset + 2)\n a.ttl = buf.readUInt32BE(offset + 4)\n\n a.flush = !!(a.class & FLUSH_MASK)\n if (a.flush) a.class &= NOT_FLUSH_MASK\n\n var enc = renc(a.type)\n a.data = enc.decode(buf, offset + 8)\n offset += 8 + enc.decode.bytes\n\n answer.decode.bytes = offset - oldOffset\n return a\n}\n\nanswer.decode.bytes = 0\n\nanswer.encodingLength = function (a) {\n return name.encodingLength(a.name) + 8 + renc(a.type).encodingLength(a.data)\n}\n\nvar question = exports.question = {}\n\nquestion.encode = function (q, buf, offset) {\n if (!buf) buf = Buffer.alloc(question.encodingLength(q))\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n name.encode(q.name, buf, offset)\n offset += name.encode.bytes\n\n buf.writeUInt16BE(types.toType(q.type), offset)\n offset += 2\n\n buf.writeUInt16BE(q.class === undefined ? 1 : q.class, offset)\n offset += 2\n\n question.encode.bytes = offset - oldOffset\n return q\n}\n\nquestion.encode.bytes = 0\n\nquestion.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var oldOffset = offset\n var q = {}\n\n q.name = name.decode(buf, offset)\n offset += name.decode.bytes\n\n q.type = types.toString(buf.readUInt16BE(offset))\n offset += 2\n\n q.class = buf.readUInt16BE(offset)\n offset += 2\n\n var qu = !!(q.class & QU_MASK)\n if (qu) q.class &= NOT_QU_MASK\n\n question.decode.bytes = offset - oldOffset\n return q\n}\n\nquestion.decode.bytes = 0\n\nquestion.encodingLength = function (q) {\n return name.encodingLength(q.name) + 4\n}\n\nexports.AUTHORITATIVE_ANSWER = 1 << 10\nexports.TRUNCATED_RESPONSE = 1 << 9\nexports.RECURSION_DESIRED = 1 << 8\nexports.RECURSION_AVAILABLE = 1 << 7\nexports.AUTHENTIC_DATA = 1 << 5\nexports.CHECKING_DISABLED = 1 << 4\n\nexports.encode = function (result, buf, offset) {\n var allocing = !buf\n if (allocing) buf = Buffer.alloc(exports.encodingLength(result))\n if (!offset) offset = 0\n\n var oldOffset = offset\n\n if (!result.questions) result.questions = []\n if (!result.answers) result.answers = []\n if (!result.authorities) result.authorities = []\n if (!result.additionals) result.additionals = []\n\n header.encode(result, buf, offset)\n offset += header.encode.bytes\n\n offset = encodeList(result.questions, question, buf, offset)\n offset = encodeList(result.answers, answer, buf, offset)\n offset = encodeList(result.authorities, answer, buf, offset)\n offset = encodeList(result.additionals, answer, buf, offset)\n\n exports.encode.bytes = offset - oldOffset\n\n // just a quick sanity check\n if (allocing && exports.encode.bytes !== buf.length) {\n return buf.slice(0, exports.encode.bytes)\n }\n\n return buf\n}\n\nexports.encode.bytes = 0\n\nexports.decode = function (buf, offset) {\n if (!offset) offset = 0\n\n var oldOffset = offset\n var result = header.decode(buf, offset)\n offset += header.decode.bytes\n\n offset = decodeList(result.questions, question, buf, offset)\n offset = decodeList(result.answers, answer, buf, offset)\n offset = decodeList(result.authorities, answer, buf, offset)\n offset = decodeList(result.additionals, answer, buf, offset)\n\n exports.decode.bytes = offset - oldOffset\n\n return result\n}\n\nexports.decode.bytes = 0\n\nexports.encodingLength = function (result) {\n return header.encodingLength(result) +\n encodingLengthList(result.questions || [], question) +\n encodingLengthList(result.answers || [], answer) +\n encodingLengthList(result.authorities || [], answer) +\n encodingLengthList(result.additionals || [], answer)\n}\n\nfunction encodingLengthList (list, enc) {\n var len = 0\n for (var i = 0; i < list.length; i++) len += enc.encodingLength(list[i])\n return len\n}\n\nfunction encodeList (list, enc, buf, offset) {\n for (var i = 0; i < list.length; i++) {\n enc.encode(list[i], buf, offset)\n offset += enc.encode.bytes\n }\n return offset\n}\n\nfunction decodeList (list, enc, buf, offset) {\n for (var i = 0; i < list.length; i++) {\n list[i] = enc.decode(buf, offset)\n offset += enc.decode.bytes\n }\n return offset\n}\n","var dgram = require('dgram')\nvar util = require('util')\nvar packet = require('dns-packet')\nvar events = require('events')\n\nmodule.exports = DNS\n\nfunction DNS (opts) {\n if (!(this instanceof DNS)) return new DNS(opts)\n if (!opts) opts = {}\n\n events.EventEmitter.call(this)\n\n var self = this\n\n this.retries = opts.retries || 5\n this.timeout = opts.timeout || 7500\n this.destroyed = false\n this.inflight = 0\n this.socket = opts.socket || dgram.createSocket('udp4')\n this._id = Math.ceil(Math.random() * 65535)\n this._ids = []\n this._queries = []\n this._interval = null\n this._triesArray = getTriesArray(this.retries) // default: [2, 4, 8, 16] = .5s, 1s, 2s, 4s\n\n this.socket.on('error', onerror)\n this.socket.on('message', onmessage)\n if (isListening(this.socket)) onlistening()\n else this.socket.on('listening', onlistening)\n this.socket.on('close', onclose)\n\n function onerror (err) {\n if (err.code === 'EACCES' || err.code === 'EADDRINUSE') self.emit('error', err)\n else self.emit('warning', err)\n }\n\n function onmessage (message, rinfo) {\n self._onmessage(message, rinfo)\n }\n\n function onlistening () {\n var timeSlices = self._triesArray.reduce(add, 0)\n self._interval = setInterval(ontimeout, Math.round(self.timeout / timeSlices))\n self.emit('listening')\n }\n\n function onclose () {\n self.emit('close')\n }\n\n function ontimeout () {\n self._ontimeout()\n }\n}\n\nutil.inherits(DNS, events.EventEmitter)\n\nDNS.RECURSION_DESIRED = DNS.prototype.RECURSION_DESIRED = packet.RECURSION_DESIRED\nDNS.RECURSION_AVAILABLE = DNS.prototype.RECURSION_AVAILABLE = packet.RECURSION_AVAILABLE\nDNS.TRUNCATED_RESPONSE = DNS.prototype.TRUNCATED_RESPONSE = packet.TRUNCATED_RESPONSE\nDNS.AUTHORITATIVE_ANSWER = DNS.prototype.AUTHORITATIVE_ANSWER = packet.AUTHORITATIVE_ANSWER\nDNS.AUTHENTIC_DATA = DNS.prototype.AUTHENTIC_DATA = packet.AUTHENTIC_DATA\nDNS.CHECKING_DISABLED = DNS.prototype.CHECKING_DISABLED = packet.CHECKING_DISABLED\n\nDNS.prototype.address = function () {\n return this.socket.address()\n}\n\nDNS.prototype.bind = function (port, onlistening) {\n if (onlistening) this.once('listening', onlistening)\n this.socket.bind(port)\n}\n\nDNS.prototype.destroy = function (onclose) {\n if (onclose) this.once('close', onclose)\n if (this.destroyed) return\n this.destroyed = true\n clearInterval(this._interval)\n this.socket.close()\n for (var i = 0; i < this._queries.length; i++) {\n var q = this._queries[i]\n if (q) q.callback(new Error('Socket destroyed'))\n }\n this._queries = []\n this._ids = []\n this.inflight = 0\n}\n\nDNS.prototype._ontimeout = function () {\n for (var i = 0; i < this._queries.length; i++) {\n var q = this._queries[i]\n if (!q) continue\n if (!q.tries.length) {\n this._queries[i] = null\n this._ids[i] = 0\n this.inflight--\n this.emit('timeout', q.query, q.port, q.host)\n q.callback(new Error('Query timed out'))\n continue\n }\n if (--q.tries[0]) continue\n q.tries.shift()\n this.socket.send(q.buffer, 0, q.buffer.length, q.port, q.host)\n }\n this._trim()\n}\n\nDNS.prototype._onmessage = function (buffer, rinfo) {\n try {\n var message = packet.decode(buffer)\n } catch (err) {\n this.emit('warning', err)\n return\n }\n\n if (message.type === 'response' && message.id) {\n var i = this._ids.indexOf(message.id)\n var q = i > -1 ? this._queries[i] : null\n if (q) {\n this.inflight--\n this._ids[i] = 0\n this._queries[i] = null\n this._trim()\n q.callback(null, message, q.query, rinfo.port, rinfo.address)\n }\n }\n\n this.emit(message.type, message, rinfo.port, rinfo.address)\n}\n\nDNS.prototype._trim = function () {\n while (this._ids.length && !this._ids[this._ids.length - 1]) {\n this._ids.pop()\n this._queries.pop()\n }\n}\n\nDNS.prototype.unref = function () {\n this.socket.unref()\n}\n\nDNS.prototype.ref = function () {\n this.socket.ref()\n}\n\nDNS.prototype.response = function (query, response, port, host) {\n if (this.destroyed) return\n\n response.type = 'response'\n response.id = query.id\n\n var buffer = packet.encode(response)\n this.socket.send(buffer, 0, buffer.length, port, host || '127.0.0.1')\n}\n\nDNS.prototype.cancel = function (id) {\n var i = this._ids.indexOf(id)\n var q = this._queries[i]\n if (!q) return\n\n this._queries[i] = null\n this._ids[i] = 0\n this.inflight--\n q.callback(new Error('Query cancelled'))\n}\n\nDNS.prototype.setRetries = function (id, retries) {\n var i = this._ids.indexOf(id)\n var q = this._queries[i]\n if (!q) return\n\n while (q.tries.length < retries) {\n q.tries.push(q.tries.length ? 2 * q.tries[q.tries.length - 1] : 4)\n }\n if (q.tries.length > retries) {\n q.tries = q.tries.slice(0, retries)\n }\n}\n\nDNS.prototype.query = function (query, port, host, cb) {\n if (typeof host === 'function') return this.query(query, port, null, host)\n if (!cb) cb = noop\n\n if (this.destroyed) {\n nextTick(cb, new Error('Socket destroyed'))\n return 0\n }\n\n this.inflight++\n query.type = 'query'\n query.flags = typeof query.flags === 'number' ? query.flags : DNS.RECURSION_DESIRED\n var id = query.id = this._id++\n if (this._id === 65535) this._id = 1\n\n var i = this._ids.indexOf(0)\n if (i === -1) i = this._ids.push(0) - 1\n if (this._queries.length === i) this._queries.push(null)\n\n var buffer = packet.encode(query)\n var tries = this._triesArray.slice(0)\n\n this._ids[i] = id\n this._queries[i] = {\n callback: cb,\n tries: tries,\n query: query,\n buffer: buffer,\n port: port,\n host: host\n }\n\n this.socket.send(buffer, 0, buffer.length, port, host || '127.0.0.1')\n return id\n}\n\nfunction noop () {}\n\nfunction nextTick (cb, err) {\n process.nextTick(function () {\n cb(err)\n })\n}\n\nfunction add (a, b) {\n return a + b\n}\n\nfunction getTriesArray (retries) {\n var ret = []\n if (retries <= 1) return ret\n for (var i = 1; i <= retries - 1; i++) {\n ret.push(Math.pow(2, i))\n }\n return ret\n}\n\nfunction isListening (socket) {\n try {\n return socket.address().port !== 0\n } catch (err) {\n return false\n }\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","'use strict';\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn decodeURIComponent(components.join(''));\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher);\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher);\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n","'use strict';\nvar strictUriEncode = require('strict-uri-encode');\nvar objectAssign = require('object-assign');\nvar decodeComponent = require('decode-uri-component');\n\nfunction encoderForArrayFormat(opts) {\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, index) {\n\t\t\t\treturn value === null ? [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tindex,\n\t\t\t\t\t']'\n\t\t\t\t].join('') : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tencode(index, opts),\n\t\t\t\t\t']=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[]=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(opts) {\n\tvar result;\n\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t} else if (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction encode(value, opts) {\n\tif (opts.encode) {\n\t\treturn opts.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t} else if (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input)).sort(function (a, b) {\n\t\t\treturn Number(a) - Number(b);\n\t\t}).map(function (key) {\n\t\t\treturn input[key];\n\t\t});\n\t}\n\n\treturn input;\n}\n\nfunction extract(str) {\n\tvar queryStart = str.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\treturn str.slice(queryStart + 1);\n}\n\nfunction parse(str, opts) {\n\topts = objectAssign({arrayFormat: 'none'}, opts);\n\n\tvar formatter = parserForArrayFormat(opts);\n\n\t// Create an object with no prototype\n\t// https://github.com/sindresorhus/query-string/issues/47\n\tvar ret = Object.create(null);\n\n\tif (typeof str !== 'string') {\n\t\treturn ret;\n\t}\n\n\tstr = str.trim().replace(/^[?#&]/, '');\n\n\tif (!str) {\n\t\treturn ret;\n\t}\n\n\tstr.split('&').forEach(function (param) {\n\t\tvar parts = param.replace(/\\+/g, ' ').split('=');\n\t\t// Firefox (pre 40) decodes `%3D` to `=`\n\t\t// https://github.com/sindresorhus/query-string/pull/37\n\t\tvar key = parts.shift();\n\t\tvar val = parts.length > 0 ? parts.join('=') : undefined;\n\n\t\t// missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tval = val === undefined ? null : decodeComponent(val);\n\n\t\tformatter(decodeComponent(key), val, ret);\n\t});\n\n\treturn Object.keys(ret).sort().reduce(function (result, key) {\n\t\tvar val = ret[key];\n\t\tif (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(val);\n\t\t} else {\n\t\t\tresult[key] = val;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = function (obj, opts) {\n\tvar defaults = {\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none'\n\t};\n\n\topts = objectAssign(defaults, opts);\n\n\tif (opts.sort === false) {\n\t\topts.sort = function () {};\n\t}\n\n\tvar formatter = encoderForArrayFormat(opts);\n\n\treturn obj ? Object.keys(obj).sort(opts.sort).map(function (key) {\n\t\tvar val = obj[key];\n\n\t\tif (val === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (val === null) {\n\t\t\treturn encode(key, opts);\n\t\t}\n\n\t\tif (Array.isArray(val)) {\n\t\t\tvar result = [];\n\n\t\t\tval.slice().forEach(function (val2) {\n\t\t\t\tif (val2 === undefined) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tresult.push(formatter(key, val2, result.length));\n\t\t\t});\n\n\t\t\treturn result.join('&');\n\t\t}\n\n\t\treturn encode(key, opts) + '=' + encode(val, opts);\n\t}).filter(function (x) {\n\t\treturn x.length > 0;\n\t}).join('&') : '';\n};\n\nexports.parseUrl = function (str, opts) {\n\treturn {\n\t\turl: str.split('?')[0] || '',\n\t\tquery: parse(extract(str), opts)\n\t};\n};\n","'use strict';\nconst url = require('url');\nconst punycode = require('punycode');\nconst queryString = require('query-string');\nconst prependHttp = require('prepend-http');\nconst sortKeys = require('sort-keys');\n\nconst DEFAULT_PORTS = {\n\t'http:': 80,\n\t'https:': 443,\n\t'ftp:': 21\n};\n\n// Protocols that always contain a `//`` bit\nconst slashedProtocol = {\n\thttp: true,\n\thttps: true,\n\tftp: true,\n\tgopher: true,\n\tfile: true,\n\t'http:': true,\n\t'https:': true,\n\t'ftp:': true,\n\t'gopher:': true,\n\t'file:': true\n};\n\nfunction testParameter(name, filters) {\n\treturn filters.some(filter => filter instanceof RegExp ? filter.test(name) : filter === name);\n}\n\nmodule.exports = (str, opts) => {\n\topts = Object.assign({\n\t\tnormalizeProtocol: true,\n\t\tnormalizeHttps: false,\n\t\tstripFragment: true,\n\t\tstripWWW: true,\n\t\tremoveQueryParameters: [/^utm_\\w+/i],\n\t\tremoveTrailingSlash: true,\n\t\tremoveDirectoryIndex: false,\n\t\tsortQueryParameters: true\n\t}, opts);\n\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\tconst hasRelativeProtocol = str.startsWith('//');\n\n\t// Prepend protocol\n\tstr = prependHttp(str.trim()).replace(/^\\/\\//, 'http://');\n\n\tconst urlObj = url.parse(str);\n\n\tif (opts.normalizeHttps && urlObj.protocol === 'https:') {\n\t\turlObj.protocol = 'http:';\n\t}\n\n\tif (!urlObj.hostname && !urlObj.pathname) {\n\t\tthrow new Error('Invalid URL');\n\t}\n\n\t// Prevent these from being used by `url.format`\n\tdelete urlObj.host;\n\tdelete urlObj.query;\n\n\t// Remove fragment\n\tif (opts.stripFragment) {\n\t\tdelete urlObj.hash;\n\t}\n\n\t// Remove default port\n\tconst port = DEFAULT_PORTS[urlObj.protocol];\n\tif (Number(urlObj.port) === port) {\n\t\tdelete urlObj.port;\n\t}\n\n\t// Remove duplicate slashes\n\tif (urlObj.pathname) {\n\t\turlObj.pathname = urlObj.pathname.replace(/\\/{2,}/g, '/');\n\t}\n\n\t// Decode URI octets\n\tif (urlObj.pathname) {\n\t\turlObj.pathname = decodeURI(urlObj.pathname);\n\t}\n\n\t// Remove directory index\n\tif (opts.removeDirectoryIndex === true) {\n\t\topts.removeDirectoryIndex = [/^index\\.[a-z]+$/];\n\t}\n\n\tif (Array.isArray(opts.removeDirectoryIndex) && opts.removeDirectoryIndex.length > 0) {\n\t\tlet pathComponents = urlObj.pathname.split('/');\n\t\tconst lastComponent = pathComponents[pathComponents.length - 1];\n\n\t\tif (testParameter(lastComponent, opts.removeDirectoryIndex)) {\n\t\t\tpathComponents = pathComponents.slice(0, pathComponents.length - 1);\n\t\t\turlObj.pathname = pathComponents.slice(1).join('/') + '/';\n\t\t}\n\t}\n\n\t// Resolve relative paths, but only for slashed protocols\n\tif (slashedProtocol[urlObj.protocol]) {\n\t\tconst domain = urlObj.protocol + '//' + urlObj.hostname;\n\t\tconst relative = url.resolve(domain, urlObj.pathname);\n\t\turlObj.pathname = relative.replace(domain, '');\n\t}\n\n\tif (urlObj.hostname) {\n\t\t// IDN to Unicode\n\t\turlObj.hostname = punycode.toUnicode(urlObj.hostname).toLowerCase();\n\n\t\t// Remove trailing dot\n\t\turlObj.hostname = urlObj.hostname.replace(/\\.$/, '');\n\n\t\t// Remove `www.`\n\t\tif (opts.stripWWW) {\n\t\t\turlObj.hostname = urlObj.hostname.replace(/^www\\./, '');\n\t\t}\n\t}\n\n\t// Remove URL with empty query string\n\tif (urlObj.search === '?') {\n\t\tdelete urlObj.search;\n\t}\n\n\tconst queryParameters = queryString.parse(urlObj.search);\n\n\t// Remove query unwanted parameters\n\tif (Array.isArray(opts.removeQueryParameters)) {\n\t\tfor (const key in queryParameters) {\n\t\t\tif (testParameter(key, opts.removeQueryParameters)) {\n\t\t\t\tdelete queryParameters[key];\n\t\t\t}\n\t\t}\n\t}\n\n\t// Sort query parameters\n\tif (opts.sortQueryParameters) {\n\t\turlObj.search = queryString.stringify(sortKeys(queryParameters));\n\t}\n\n\t// Decode query parameters\n\tif (urlObj.search !== null) {\n\t\turlObj.search = decodeURIComponent(urlObj.search);\n\t}\n\n\t// Take advantage of many of the Node `url` normalizations\n\tstr = url.format(urlObj);\n\n\t// Remove ending `/`\n\tif (opts.removeTrailingSlash || urlObj.pathname === '/') {\n\t\tstr = str.replace(/\\/$/, '');\n\t}\n\n\t// Restore relative protocol, if applicable\n\tif (hasRelativeProtocol && !opts.normalizeProtocol) {\n\t\tstr = str.replace(/^http:\\/\\//, '//');\n\t}\n\n\treturn str;\n};\n","'use strict';\n// rfc7231 6.1\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar statusCodeCacheableByDefault = [200, 203, 204, 206, 300, 301, 404, 405, 410, 414, 501];\n\n// This implementation does not understand partial responses (206)\nvar understoodStatuses = [200, 203, 204, 300, 301, 302, 303, 307, 308, 404, 405, 410, 414, 501];\n\nvar hopByHopHeaders = { 'connection': true, 'keep-alive': true, 'proxy-authenticate': true, 'proxy-authorization': true, 'te': true, 'trailer': true, 'transfer-encoding': true, 'upgrade': true };\nvar excludedFromRevalidationUpdate = {\n // Since the old body is reused, it doesn't make sense to change properties of the body\n 'content-length': true, 'content-encoding': true, 'transfer-encoding': true,\n 'content-range': true\n};\n\nfunction parseCacheControl(header) {\n var cc = {};\n if (!header) return cc;\n\n // TODO: When there is more than one value present for a given directive (e.g., two Expires header fields, multiple Cache-Control: max-age directives),\n // the directive's value is considered invalid. Caches are encouraged to consider responses that have invalid freshness information to be stale\n var parts = header.trim().split(/\\s*,\\s*/); // TODO: lame parsing\n for (var _iterator = parts, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var part = _ref;\n\n var _part$split = part.split(/\\s*=\\s*/, 2),\n k = _part$split[0],\n v = _part$split[1];\n\n cc[k] = v === undefined ? true : v.replace(/^\"|\"$/g, ''); // TODO: lame unquoting\n }\n\n return cc;\n}\n\nfunction formatCacheControl(cc) {\n var parts = [];\n for (var k in cc) {\n var v = cc[k];\n parts.push(v === true ? k : k + '=' + v);\n }\n if (!parts.length) {\n return undefined;\n }\n return parts.join(', ');\n}\n\nmodule.exports = function () {\n function CachePolicy(req, res) {\n var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n shared = _ref2.shared,\n cacheHeuristic = _ref2.cacheHeuristic,\n immutableMinTimeToLive = _ref2.immutableMinTimeToLive,\n ignoreCargoCult = _ref2.ignoreCargoCult,\n _fromObject = _ref2._fromObject;\n\n _classCallCheck(this, CachePolicy);\n\n if (_fromObject) {\n this._fromObject(_fromObject);\n return;\n }\n\n if (!res || !res.headers) {\n throw Error(\"Response headers missing\");\n }\n this._assertRequestHasHeaders(req);\n\n this._responseTime = this.now();\n this._isShared = shared !== false;\n this._cacheHeuristic = undefined !== cacheHeuristic ? cacheHeuristic : 0.1; // 10% matches IE\n this._immutableMinTtl = undefined !== immutableMinTimeToLive ? immutableMinTimeToLive : 24 * 3600 * 1000;\n\n this._status = 'status' in res ? res.status : 200;\n this._resHeaders = res.headers;\n this._rescc = parseCacheControl(res.headers['cache-control']);\n this._method = 'method' in req ? req.method : 'GET';\n this._url = req.url;\n this._host = req.headers.host;\n this._noAuthorization = !req.headers.authorization;\n this._reqHeaders = res.headers.vary ? req.headers : null; // Don't keep all request headers if they won't be used\n this._reqcc = parseCacheControl(req.headers['cache-control']);\n\n // Assume that if someone uses legacy, non-standard uncecessary options they don't understand caching,\n // so there's no point stricly adhering to the blindly copy&pasted directives.\n if (ignoreCargoCult && \"pre-check\" in this._rescc && \"post-check\" in this._rescc) {\n delete this._rescc['pre-check'];\n delete this._rescc['post-check'];\n delete this._rescc['no-cache'];\n delete this._rescc['no-store'];\n delete this._rescc['must-revalidate'];\n this._resHeaders = Object.assign({}, this._resHeaders, { 'cache-control': formatCacheControl(this._rescc) });\n delete this._resHeaders.expires;\n delete this._resHeaders.pragma;\n }\n\n // When the Cache-Control header field is not present in a request, caches MUST consider the no-cache request pragma-directive\n // as having the same effect as if \"Cache-Control: no-cache\" were present (see Section 5.2.1).\n if (!res.headers['cache-control'] && /no-cache/.test(res.headers.pragma)) {\n this._rescc['no-cache'] = true;\n }\n }\n\n CachePolicy.prototype.now = function now() {\n return Date.now();\n };\n\n CachePolicy.prototype.storable = function storable() {\n // The \"no-store\" request directive indicates that a cache MUST NOT store any part of either this request or any response to it.\n return !!(!this._reqcc['no-store'] && (\n // A cache MUST NOT store a response to any request, unless:\n // The request method is understood by the cache and defined as being cacheable, and\n 'GET' === this._method || 'HEAD' === this._method || 'POST' === this._method && this._hasExplicitExpiration()) &&\n // the response status code is understood by the cache, and\n understoodStatuses.indexOf(this._status) !== -1 &&\n // the \"no-store\" cache directive does not appear in request or response header fields, and\n !this._rescc['no-store'] && (\n // the \"private\" response directive does not appear in the response, if the cache is shared, and\n !this._isShared || !this._rescc.private) && (\n // the Authorization header field does not appear in the request, if the cache is shared,\n !this._isShared || this._noAuthorization || this._allowsStoringAuthenticated()) && (\n // the response either:\n\n // contains an Expires header field, or\n this._resHeaders.expires ||\n // contains a max-age response directive, or\n // contains a s-maxage response directive and the cache is shared, or\n // contains a public response directive.\n this._rescc.public || this._rescc['max-age'] || this._rescc['s-maxage'] ||\n // has a status code that is defined as cacheable by default\n statusCodeCacheableByDefault.indexOf(this._status) !== -1));\n };\n\n CachePolicy.prototype._hasExplicitExpiration = function _hasExplicitExpiration() {\n // 4.2.1 Calculating Freshness Lifetime\n return this._isShared && this._rescc['s-maxage'] || this._rescc['max-age'] || this._resHeaders.expires;\n };\n\n CachePolicy.prototype._assertRequestHasHeaders = function _assertRequestHasHeaders(req) {\n if (!req || !req.headers) {\n throw Error(\"Request headers missing\");\n }\n };\n\n CachePolicy.prototype.satisfiesWithoutRevalidation = function satisfiesWithoutRevalidation(req) {\n this._assertRequestHasHeaders(req);\n\n // When presented with a request, a cache MUST NOT reuse a stored response, unless:\n // the presented request does not contain the no-cache pragma (Section 5.4), nor the no-cache cache directive,\n // unless the stored response is successfully validated (Section 4.3), and\n var requestCC = parseCacheControl(req.headers['cache-control']);\n if (requestCC['no-cache'] || /no-cache/.test(req.headers.pragma)) {\n return false;\n }\n\n if (requestCC['max-age'] && this.age() > requestCC['max-age']) {\n return false;\n }\n\n if (requestCC['min-fresh'] && this.timeToLive() < 1000 * requestCC['min-fresh']) {\n return false;\n }\n\n // the stored response is either:\n // fresh, or allowed to be served stale\n if (this.stale()) {\n var allowsStale = requestCC['max-stale'] && !this._rescc['must-revalidate'] && (true === requestCC['max-stale'] || requestCC['max-stale'] > this.age() - this.maxAge());\n if (!allowsStale) {\n return false;\n }\n }\n\n return this._requestMatches(req, false);\n };\n\n CachePolicy.prototype._requestMatches = function _requestMatches(req, allowHeadMethod) {\n // The presented effective request URI and that of the stored response match, and\n return (!this._url || this._url === req.url) && this._host === req.headers.host && (\n // the request method associated with the stored response allows it to be used for the presented request, and\n !req.method || this._method === req.method || allowHeadMethod && 'HEAD' === req.method) &&\n // selecting header fields nominated by the stored response (if any) match those presented, and\n this._varyMatches(req);\n };\n\n CachePolicy.prototype._allowsStoringAuthenticated = function _allowsStoringAuthenticated() {\n // following Cache-Control response directives (Section 5.2.2) have such an effect: must-revalidate, public, and s-maxage.\n return this._rescc['must-revalidate'] || this._rescc.public || this._rescc['s-maxage'];\n };\n\n CachePolicy.prototype._varyMatches = function _varyMatches(req) {\n if (!this._resHeaders.vary) {\n return true;\n }\n\n // A Vary header field-value of \"*\" always fails to match\n if (this._resHeaders.vary === '*') {\n return false;\n }\n\n var fields = this._resHeaders.vary.trim().toLowerCase().split(/\\s*,\\s*/);\n for (var _iterator2 = fields, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {\n var _ref3;\n\n if (_isArray2) {\n if (_i2 >= _iterator2.length) break;\n _ref3 = _iterator2[_i2++];\n } else {\n _i2 = _iterator2.next();\n if (_i2.done) break;\n _ref3 = _i2.value;\n }\n\n var name = _ref3;\n\n if (req.headers[name] !== this._reqHeaders[name]) return false;\n }\n return true;\n };\n\n CachePolicy.prototype._copyWithoutHopByHopHeaders = function _copyWithoutHopByHopHeaders(inHeaders) {\n var headers = {};\n for (var name in inHeaders) {\n if (hopByHopHeaders[name]) continue;\n headers[name] = inHeaders[name];\n }\n // 9.1. Connection\n if (inHeaders.connection) {\n var tokens = inHeaders.connection.trim().split(/\\s*,\\s*/);\n for (var _iterator3 = tokens, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {\n var _ref4;\n\n if (_isArray3) {\n if (_i3 >= _iterator3.length) break;\n _ref4 = _iterator3[_i3++];\n } else {\n _i3 = _iterator3.next();\n if (_i3.done) break;\n _ref4 = _i3.value;\n }\n\n var _name = _ref4;\n\n delete headers[_name];\n }\n }\n if (headers.warning) {\n var warnings = headers.warning.split(/,/).filter(function (warning) {\n return !/^\\s*1[0-9][0-9]/.test(warning);\n });\n if (!warnings.length) {\n delete headers.warning;\n } else {\n headers.warning = warnings.join(',').trim();\n }\n }\n return headers;\n };\n\n CachePolicy.prototype.responseHeaders = function responseHeaders() {\n var headers = this._copyWithoutHopByHopHeaders(this._resHeaders);\n var age = this.age();\n\n // A cache SHOULD generate 113 warning if it heuristically chose a freshness\n // lifetime greater than 24 hours and the response's age is greater than 24 hours.\n if (age > 3600 * 24 && !this._hasExplicitExpiration() && this.maxAge() > 3600 * 24) {\n headers.warning = (headers.warning ? `${headers.warning}, ` : '') + '113 - \"rfc7234 5.5.4\"';\n }\n headers.age = `${Math.round(age)}`;\n return headers;\n };\n\n /**\n * Value of the Date response header or current time if Date was demed invalid\n * @return timestamp\n */\n\n\n CachePolicy.prototype.date = function date() {\n var dateValue = Date.parse(this._resHeaders.date);\n var maxClockDrift = 8 * 3600 * 1000;\n if (Number.isNaN(dateValue) || dateValue < this._responseTime - maxClockDrift || dateValue > this._responseTime + maxClockDrift) {\n return this._responseTime;\n }\n return dateValue;\n };\n\n /**\n * Value of the Age header, in seconds, updated for the current time.\n * May be fractional.\n *\n * @return Number\n */\n\n\n CachePolicy.prototype.age = function age() {\n var age = Math.max(0, (this._responseTime - this.date()) / 1000);\n if (this._resHeaders.age) {\n var ageValue = this._ageValue();\n if (ageValue > age) age = ageValue;\n }\n\n var residentTime = (this.now() - this._responseTime) / 1000;\n return age + residentTime;\n };\n\n CachePolicy.prototype._ageValue = function _ageValue() {\n var ageValue = parseInt(this._resHeaders.age);\n return isFinite(ageValue) ? ageValue : 0;\n };\n\n /**\n * Value of applicable max-age (or heuristic equivalent) in seconds. This counts since response's `Date`.\n *\n * For an up-to-date value, see `timeToLive()`.\n *\n * @return Number\n */\n\n\n CachePolicy.prototype.maxAge = function maxAge() {\n if (!this.storable() || this._rescc['no-cache']) {\n return 0;\n }\n\n // Shared responses with cookies are cacheable according to the RFC, but IMHO it'd be unwise to do so by default\n // so this implementation requires explicit opt-in via public header\n if (this._isShared && this._resHeaders['set-cookie'] && !this._rescc.public && !this._rescc.immutable) {\n return 0;\n }\n\n if (this._resHeaders.vary === '*') {\n return 0;\n }\n\n if (this._isShared) {\n if (this._rescc['proxy-revalidate']) {\n return 0;\n }\n // if a response includes the s-maxage directive, a shared cache recipient MUST ignore the Expires field.\n if (this._rescc['s-maxage']) {\n return parseInt(this._rescc['s-maxage'], 10);\n }\n }\n\n // If a response includes a Cache-Control field with the max-age directive, a recipient MUST ignore the Expires field.\n if (this._rescc['max-age']) {\n return parseInt(this._rescc['max-age'], 10);\n }\n\n var defaultMinTtl = this._rescc.immutable ? this._immutableMinTtl : 0;\n\n var dateValue = this.date();\n if (this._resHeaders.expires) {\n var expires = Date.parse(this._resHeaders.expires);\n // A cache recipient MUST interpret invalid date formats, especially the value \"0\", as representing a time in the past (i.e., \"already expired\").\n if (Number.isNaN(expires) || expires < dateValue) {\n return 0;\n }\n return Math.max(defaultMinTtl, (expires - dateValue) / 1000);\n }\n\n if (this._resHeaders['last-modified']) {\n var lastModified = Date.parse(this._resHeaders['last-modified']);\n if (isFinite(lastModified) && dateValue > lastModified) {\n return Math.max(defaultMinTtl, (dateValue - lastModified) / 1000 * this._cacheHeuristic);\n }\n }\n\n return defaultMinTtl;\n };\n\n CachePolicy.prototype.timeToLive = function timeToLive() {\n return Math.max(0, this.maxAge() - this.age()) * 1000;\n };\n\n CachePolicy.prototype.stale = function stale() {\n return this.maxAge() <= this.age();\n };\n\n CachePolicy.fromObject = function fromObject(obj) {\n return new this(undefined, undefined, { _fromObject: obj });\n };\n\n CachePolicy.prototype._fromObject = function _fromObject(obj) {\n if (this._responseTime) throw Error(\"Reinitialized\");\n if (!obj || obj.v !== 1) throw Error(\"Invalid serialization\");\n\n this._responseTime = obj.t;\n this._isShared = obj.sh;\n this._cacheHeuristic = obj.ch;\n this._immutableMinTtl = obj.imm !== undefined ? obj.imm : 24 * 3600 * 1000;\n this._status = obj.st;\n this._resHeaders = obj.resh;\n this._rescc = obj.rescc;\n this._method = obj.m;\n this._url = obj.u;\n this._host = obj.h;\n this._noAuthorization = obj.a;\n this._reqHeaders = obj.reqh;\n this._reqcc = obj.reqcc;\n };\n\n CachePolicy.prototype.toObject = function toObject() {\n return {\n v: 1,\n t: this._responseTime,\n sh: this._isShared,\n ch: this._cacheHeuristic,\n imm: this._immutableMinTtl,\n st: this._status,\n resh: this._resHeaders,\n rescc: this._rescc,\n m: this._method,\n u: this._url,\n h: this._host,\n a: this._noAuthorization,\n reqh: this._reqHeaders,\n reqcc: this._reqcc\n };\n };\n\n /**\n * Headers for sending to the origin server to revalidate stale response.\n * Allows server to return 304 to allow reuse of the previous response.\n *\n * Hop by hop headers are always stripped.\n * Revalidation headers may be added or removed, depending on request.\n */\n\n\n CachePolicy.prototype.revalidationHeaders = function revalidationHeaders(incomingReq) {\n this._assertRequestHasHeaders(incomingReq);\n var headers = this._copyWithoutHopByHopHeaders(incomingReq.headers);\n\n // This implementation does not understand range requests\n delete headers['if-range'];\n\n if (!this._requestMatches(incomingReq, true) || !this.storable()) {\n // revalidation allowed via HEAD\n // not for the same resource, or wasn't allowed to be cached anyway\n delete headers['if-none-match'];\n delete headers['if-modified-since'];\n return headers;\n }\n\n /* MUST send that entity-tag in any cache validation request (using If-Match or If-None-Match) if an entity-tag has been provided by the origin server. */\n if (this._resHeaders.etag) {\n headers['if-none-match'] = headers['if-none-match'] ? `${headers['if-none-match']}, ${this._resHeaders.etag}` : this._resHeaders.etag;\n }\n\n // Clients MAY issue simple (non-subrange) GET requests with either weak validators or strong validators. Clients MUST NOT use weak validators in other forms of request.\n var forbidsWeakValidators = headers['accept-ranges'] || headers['if-match'] || headers['if-unmodified-since'] || this._method && this._method != 'GET';\n\n /* SHOULD send the Last-Modified value in non-subrange cache validation requests (using If-Modified-Since) if only a Last-Modified value has been provided by the origin server.\n Note: This implementation does not understand partial responses (206) */\n if (forbidsWeakValidators) {\n delete headers['if-modified-since'];\n\n if (headers['if-none-match']) {\n var etags = headers['if-none-match'].split(/,/).filter(function (etag) {\n return !/^\\s*W\\//.test(etag);\n });\n if (!etags.length) {\n delete headers['if-none-match'];\n } else {\n headers['if-none-match'] = etags.join(',').trim();\n }\n }\n } else if (this._resHeaders['last-modified'] && !headers['if-modified-since']) {\n headers['if-modified-since'] = this._resHeaders['last-modified'];\n }\n\n return headers;\n };\n\n /**\n * Creates new CachePolicy with information combined from the previews response,\n * and the new revalidation response.\n *\n * Returns {policy, modified} where modified is a boolean indicating\n * whether the response body has been modified, and old cached body can't be used.\n *\n * @return {Object} {policy: CachePolicy, modified: Boolean}\n */\n\n\n CachePolicy.prototype.revalidatedPolicy = function revalidatedPolicy(request, response) {\n this._assertRequestHasHeaders(request);\n if (!response || !response.headers) {\n throw Error(\"Response headers missing\");\n }\n\n // These aren't going to be supported exactly, since one CachePolicy object\n // doesn't know about all the other cached objects.\n var matches = false;\n if (response.status !== undefined && response.status != 304) {\n matches = false;\n } else if (response.headers.etag && !/^\\s*W\\//.test(response.headers.etag)) {\n // \"All of the stored responses with the same strong validator are selected.\n // If none of the stored responses contain the same strong validator,\n // then the cache MUST NOT use the new response to update any stored responses.\"\n matches = this._resHeaders.etag && this._resHeaders.etag.replace(/^\\s*W\\//, '') === response.headers.etag;\n } else if (this._resHeaders.etag && response.headers.etag) {\n // \"If the new response contains a weak validator and that validator corresponds\n // to one of the cache's stored responses,\n // then the most recent of those matching stored responses is selected for update.\"\n matches = this._resHeaders.etag.replace(/^\\s*W\\//, '') === response.headers.etag.replace(/^\\s*W\\//, '');\n } else if (this._resHeaders['last-modified']) {\n matches = this._resHeaders['last-modified'] === response.headers['last-modified'];\n } else {\n // If the new response does not include any form of validator (such as in the case where\n // a client generates an If-Modified-Since request from a source other than the Last-Modified\n // response header field), and there is only one stored response, and that stored response also\n // lacks a validator, then that stored response is selected for update.\n if (!this._resHeaders.etag && !this._resHeaders['last-modified'] && !response.headers.etag && !response.headers['last-modified']) {\n matches = true;\n }\n }\n\n if (!matches) {\n return {\n policy: new this.constructor(request, response),\n modified: true\n };\n }\n\n // use other header fields provided in the 304 (Not Modified) response to replace all instances\n // of the corresponding header fields in the stored response.\n var headers = {};\n for (var k in this._resHeaders) {\n headers[k] = k in response.headers && !excludedFromRevalidationUpdate[k] ? response.headers[k] : this._resHeaders[k];\n }\n\n var newResponse = Object.assign({}, response, {\n status: this._status,\n method: this._method,\n headers\n });\n return {\n policy: new this.constructor(request, newResponse),\n modified: false\n };\n };\n\n return CachePolicy;\n}();","var Readable = require('readable-stream').Readable\nvar inherits = require('inherits')\n\nmodule.exports = from2\n\nfrom2.ctor = ctor\nfrom2.obj = obj\n\nvar Proto = ctor()\n\nfunction toFunction(list) {\n list = list.slice()\n return function (_, cb) {\n var err = null\n var item = list.length ? list.shift() : null\n if (item instanceof Error) {\n err = item\n item = null\n }\n\n cb(err, item)\n }\n}\n\nfunction from2(opts, read) {\n if (typeof opts !== 'object' || Array.isArray(opts)) {\n read = opts\n opts = {}\n }\n\n var rs = new Proto(opts)\n rs._from = Array.isArray(read) ? toFunction(read) : (read || noop)\n return rs\n}\n\nfunction ctor(opts, read) {\n if (typeof opts === 'function') {\n read = opts\n opts = {}\n }\n\n opts = defaults(opts)\n\n inherits(Class, Readable)\n function Class(override) {\n if (!(this instanceof Class)) return new Class(override)\n this._reading = false\n this._callback = check\n this.destroyed = false\n Readable.call(this, override || opts)\n\n var self = this\n var hwm = this._readableState.highWaterMark\n\n function check(err, data) {\n if (self.destroyed) return\n if (err) return self.destroy(err)\n if (data === null) return self.push(null)\n self._reading = false\n if (self.push(data)) self._read(hwm)\n }\n }\n\n Class.prototype._from = read || noop\n Class.prototype._read = function(size) {\n if (this._reading || this.destroyed) return\n this._reading = true\n this._from(size, this._callback)\n }\n\n Class.prototype.destroy = function(err) {\n if (this.destroyed) return\n this.destroyed = true\n\n var self = this\n process.nextTick(function() {\n if (err) self.emit('error', err)\n self.emit('close')\n })\n }\n\n return Class\n}\n\nfunction obj(opts, read) {\n if (typeof opts === 'function' || Array.isArray(opts)) {\n read = opts\n opts = {}\n }\n\n opts = defaults(opts)\n opts.objectMode = true\n opts.highWaterMark = 16\n\n return from2(opts, read)\n}\n\nfunction noop () {}\n\nfunction defaults(opts) {\n opts = opts || {}\n return opts\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst util = require(\"util\");\nconst toString = Object.prototype.toString;\nconst isOfType = (type) => (value) => typeof value === type; // tslint:disable-line:strict-type-predicates\nconst getObjectType = (value) => {\n const objectName = toString.call(value).slice(8, -1);\n if (objectName) {\n return objectName;\n }\n return null;\n};\nconst isObjectOfType = (typeName) => (value) => {\n return getObjectType(value) === typeName;\n};\nfunction is(value) {\n if (value === null) {\n return \"null\" /* null */;\n }\n if (value === true || value === false) {\n return \"boolean\" /* boolean */;\n }\n const type = typeof value;\n if (type === 'undefined') {\n return \"undefined\" /* undefined */;\n }\n if (type === 'string') {\n return \"string\" /* string */;\n }\n if (type === 'number') {\n return \"number\" /* number */;\n }\n if (type === 'symbol') {\n return \"symbol\" /* symbol */;\n }\n if (is.function_(value)) {\n return \"Function\" /* Function */;\n }\n if (Array.isArray(value)) {\n return \"Array\" /* Array */;\n }\n if (Buffer.isBuffer(value)) {\n return \"Buffer\" /* Buffer */;\n }\n const tagType = getObjectType(value);\n if (tagType) {\n return tagType;\n }\n if (value instanceof String || value instanceof Boolean || value instanceof Number) {\n throw new TypeError('Please don\\'t use object wrappers for primitive types');\n }\n return \"Object\" /* Object */;\n}\n(function (is) {\n const isObject = (value) => typeof value === 'object';\n // tslint:disable:variable-name\n is.undefined = isOfType('undefined');\n is.string = isOfType('string');\n is.number = isOfType('number');\n is.function_ = isOfType('function');\n is.null_ = (value) => value === null;\n is.class_ = (value) => is.function_(value) && value.toString().startsWith('class ');\n is.boolean = (value) => value === true || value === false;\n // tslint:enable:variable-name\n is.symbol = isOfType('symbol');\n is.array = Array.isArray;\n is.buffer = Buffer.isBuffer;\n is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value);\n is.object = (value) => !is.nullOrUndefined(value) && (is.function_(value) || isObject(value));\n is.iterable = (value) => !is.nullOrUndefined(value) && is.function_(value[Symbol.iterator]);\n is.generator = (value) => is.iterable(value) && is.function_(value.next) && is.function_(value.throw);\n is.nativePromise = isObjectOfType(\"Promise\" /* Promise */);\n const hasPromiseAPI = (value) => !is.null_(value) &&\n isObject(value) &&\n is.function_(value.then) &&\n is.function_(value.catch);\n is.promise = (value) => is.nativePromise(value) || hasPromiseAPI(value);\n // TODO: Change to use `isObjectOfType` once Node.js 6 or higher is targeted\n const isFunctionOfType = (type) => (value) => is.function_(value) && is.function_(value.constructor) && value.constructor.name === type;\n is.generatorFunction = isFunctionOfType('GeneratorFunction');\n is.asyncFunction = isFunctionOfType('AsyncFunction');\n is.boundFunction = (value) => is.function_(value) && !value.hasOwnProperty('prototype');\n is.regExp = isObjectOfType(\"RegExp\" /* RegExp */);\n is.date = isObjectOfType(\"Date\" /* Date */);\n is.error = isObjectOfType(\"Error\" /* Error */);\n is.map = isObjectOfType(\"Map\" /* Map */);\n is.set = isObjectOfType(\"Set\" /* Set */);\n is.weakMap = isObjectOfType(\"WeakMap\" /* WeakMap */);\n is.weakSet = isObjectOfType(\"WeakSet\" /* WeakSet */);\n is.int8Array = isObjectOfType(\"Int8Array\" /* Int8Array */);\n is.uint8Array = isObjectOfType(\"Uint8Array\" /* Uint8Array */);\n is.uint8ClampedArray = isObjectOfType(\"Uint8ClampedArray\" /* Uint8ClampedArray */);\n is.int16Array = isObjectOfType(\"Int16Array\" /* Int16Array */);\n is.uint16Array = isObjectOfType(\"Uint16Array\" /* Uint16Array */);\n is.int32Array = isObjectOfType(\"Int32Array\" /* Int32Array */);\n is.uint32Array = isObjectOfType(\"Uint32Array\" /* Uint32Array */);\n is.float32Array = isObjectOfType(\"Float32Array\" /* Float32Array */);\n is.float64Array = isObjectOfType(\"Float64Array\" /* Float64Array */);\n is.arrayBuffer = isObjectOfType(\"ArrayBuffer\" /* ArrayBuffer */);\n is.sharedArrayBuffer = isObjectOfType(\"SharedArrayBuffer\" /* SharedArrayBuffer */);\n is.dataView = isObjectOfType(\"DataView\" /* DataView */);\n // TODO: Remove `object` checks when targeting ES2015 or higher\n // See `Notes`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf\n is.directInstanceOf = (instance, klass) => is.object(instance) && is.object(klass) && Object.getPrototypeOf(instance) === klass.prototype;\n is.truthy = (value) => Boolean(value);\n is.falsy = (value) => !value;\n is.nan = (value) => Number.isNaN(value);\n const primitiveTypes = new Set([\n 'undefined',\n 'string',\n 'number',\n 'boolean',\n 'symbol'\n ]);\n is.primitive = (value) => is.null_(value) || primitiveTypes.has(typeof value);\n is.integer = (value) => Number.isInteger(value);\n is.safeInteger = (value) => Number.isSafeInteger(value);\n is.plainObject = (value) => {\n // From: https://github.com/sindresorhus/is-plain-obj/blob/master/index.js\n let prototype;\n return getObjectType(value) === \"Object\" /* Object */ &&\n (prototype = Object.getPrototypeOf(value), prototype === null || // tslint:disable-line:ban-comma-operator\n prototype === Object.getPrototypeOf({}));\n };\n const typedArrayTypes = new Set([\n \"Int8Array\" /* Int8Array */,\n \"Uint8Array\" /* Uint8Array */,\n \"Uint8ClampedArray\" /* Uint8ClampedArray */,\n \"Int16Array\" /* Int16Array */,\n \"Uint16Array\" /* Uint16Array */,\n \"Int32Array\" /* Int32Array */,\n \"Uint32Array\" /* Uint32Array */,\n \"Float32Array\" /* Float32Array */,\n \"Float64Array\" /* Float64Array */\n ]);\n is.typedArray = (value) => {\n const objectType = getObjectType(value);\n if (objectType === null) {\n return false;\n }\n return typedArrayTypes.has(objectType);\n };\n const isValidLength = (value) => is.safeInteger(value) && value > -1;\n is.arrayLike = (value) => !is.nullOrUndefined(value) && !is.function_(value) && isValidLength(value.length);\n is.inRange = (value, range) => {\n if (is.number(range)) {\n return value >= Math.min(0, range) && value <= Math.max(range, 0);\n }\n if (is.array(range) && range.length === 2) {\n // TODO: Use spread operator here when targeting Node.js 6 or higher\n return value >= Math.min.apply(null, range) && value <= Math.max.apply(null, range);\n }\n throw new TypeError(`Invalid range: ${util.inspect(range)}`);\n };\n const NODE_TYPE_ELEMENT = 1;\n const DOM_PROPERTIES_TO_CHECK = [\n 'innerHTML',\n 'ownerDocument',\n 'style',\n 'attributes',\n 'nodeValue'\n ];\n is.domElement = (value) => is.object(value) && value.nodeType === NODE_TYPE_ELEMENT && is.string(value.nodeName) &&\n !is.plainObject(value) && DOM_PROPERTIES_TO_CHECK.every(property => property in value);\n is.nodeStream = (value) => !is.nullOrUndefined(value) && isObject(value) && is.function_(value.pipe);\n is.infinite = (value) => value === Infinity || value === -Infinity;\n const isAbsoluteMod2 = (value) => (rem) => is.integer(rem) && Math.abs(rem % 2) === value;\n is.even = isAbsoluteMod2(0);\n is.odd = isAbsoluteMod2(1);\n const isWhiteSpaceString = (value) => is.string(value) && /\\S/.test(value) === false;\n const isEmptyStringOrArray = (value) => (is.string(value) || is.array(value)) && value.length === 0;\n const isEmptyObject = (value) => !is.map(value) && !is.set(value) && is.object(value) && Object.keys(value).length === 0;\n const isEmptyMapOrSet = (value) => (is.map(value) || is.set(value)) && value.size === 0;\n is.empty = (value) => is.falsy(value) || isEmptyStringOrArray(value) || isEmptyObject(value) || isEmptyMapOrSet(value);\n is.emptyOrWhitespace = (value) => is.empty(value) || isWhiteSpaceString(value);\n const predicateOnArray = (method, predicate, args) => {\n // `args` is the calling function's \"arguments object\".\n // We have to do it this way to keep node v4 support.\n // So here we convert it to an array and slice off the first item.\n const values = Array.prototype.slice.call(args, 1);\n if (is.function_(predicate) === false) {\n throw new TypeError(`Invalid predicate: ${util.inspect(predicate)}`);\n }\n if (values.length === 0) {\n throw new TypeError('Invalid number of values');\n }\n return method.call(values, predicate);\n };\n function any(predicate) {\n return predicateOnArray(Array.prototype.some, predicate, arguments);\n }\n is.any = any;\n function all(predicate) {\n return predicateOnArray(Array.prototype.every, predicate, arguments);\n }\n is.all = all;\n // tslint:enable:only-arrow-functions no-function-expression\n})(is || (is = {}));\n// Some few keywords are reserved, but we'll populate them for Node.js users\n// See https://github.com/Microsoft/TypeScript/issues/2536\nObject.defineProperties(is, {\n class: {\n value: is.class_\n },\n function: {\n value: is.function_\n },\n null: {\n value: is.null_\n }\n});\nexports.default = is;\n// For CommonJS default export support\nmodule.exports = is;\nmodule.exports.default = is;\n","'use strict';\nconst EventEmitter = require('events');\nconst http = require('http');\nconst https = require('https');\nconst PassThrough = require('stream').PassThrough;\nconst Transform = require('stream').Transform;\nconst urlLib = require('url');\nconst fs = require('fs');\nconst querystring = require('querystring');\nconst CacheableRequest = require('cacheable-request');\nconst duplexer3 = require('duplexer3');\nconst intoStream = require('into-stream');\nconst is = require('@sindresorhus/is');\nconst getStream = require('get-stream');\nconst timedOut = require('timed-out');\nconst urlParseLax = require('url-parse-lax');\nconst urlToOptions = require('url-to-options');\nconst lowercaseKeys = require('lowercase-keys');\nconst decompressResponse = require('decompress-response');\nconst mimicResponse = require('mimic-response');\nconst isRetryAllowed = require('is-retry-allowed');\nconst isURL = require('isurl');\nconst PCancelable = require('p-cancelable');\nconst pTimeout = require('p-timeout');\nconst pify = require('pify');\nconst Buffer = require('safe-buffer').Buffer;\nconst pkg = require('./package.json');\nconst errors = require('./errors');\n\nconst getMethodRedirectCodes = new Set([300, 301, 302, 303, 304, 305, 307, 308]);\nconst allMethodRedirectCodes = new Set([300, 303, 307, 308]);\n\nconst isFormData = body => is.nodeStream(body) && is.function(body.getBoundary);\n\nconst getBodySize = opts => {\n\tconst body = opts.body;\n\n\tif (opts.headers['content-length']) {\n\t\treturn Number(opts.headers['content-length']);\n\t}\n\n\tif (!body && !opts.stream) {\n\t\treturn 0;\n\t}\n\n\tif (is.string(body)) {\n\t\treturn Buffer.byteLength(body);\n\t}\n\n\tif (isFormData(body)) {\n\t\treturn pify(body.getLength.bind(body))();\n\t}\n\n\tif (body instanceof fs.ReadStream) {\n\t\treturn pify(fs.stat)(body.path).then(stat => stat.size);\n\t}\n\n\tif (is.nodeStream(body) && is.buffer(body._buffer)) {\n\t\treturn body._buffer.length;\n\t}\n\n\treturn null;\n};\n\nfunction requestAsEventEmitter(opts) {\n\topts = opts || {};\n\n\tconst ee = new EventEmitter();\n\tconst requestUrl = opts.href || urlLib.resolve(urlLib.format(opts), opts.path);\n\tconst redirects = [];\n\tconst agents = is.object(opts.agent) ? opts.agent : null;\n\tlet retryCount = 0;\n\tlet redirectUrl;\n\tlet uploadBodySize;\n\tlet uploaded = 0;\n\n\tconst get = opts => {\n\t\tif (opts.protocol !== 'http:' && opts.protocol !== 'https:') {\n\t\t\tee.emit('error', new got.UnsupportedProtocolError(opts));\n\t\t\treturn;\n\t\t}\n\n\t\tlet fn = opts.protocol === 'https:' ? https : http;\n\n\t\tif (agents) {\n\t\t\tconst protocolName = opts.protocol === 'https:' ? 'https' : 'http';\n\t\t\topts.agent = agents[protocolName] || opts.agent;\n\t\t}\n\n\t\tif (opts.useElectronNet && process.versions.electron) {\n\t\t\tconst electron = require('electron');\n\t\t\tfn = electron.net || electron.remote.net;\n\t\t}\n\n\t\tlet progressInterval;\n\n\t\tconst cacheableRequest = new CacheableRequest(fn.request, opts.cache);\n\t\tconst cacheReq = cacheableRequest(opts, res => {\n\t\t\tclearInterval(progressInterval);\n\n\t\t\tee.emit('uploadProgress', {\n\t\t\t\tpercent: 1,\n\t\t\t\ttransferred: uploaded,\n\t\t\t\ttotal: uploadBodySize\n\t\t\t});\n\n\t\t\tconst statusCode = res.statusCode;\n\n\t\t\tres.url = redirectUrl || requestUrl;\n\t\t\tres.requestUrl = requestUrl;\n\n\t\t\tconst followRedirect = opts.followRedirect && 'location' in res.headers;\n\t\t\tconst redirectGet = followRedirect && getMethodRedirectCodes.has(statusCode);\n\t\t\tconst redirectAll = followRedirect && allMethodRedirectCodes.has(statusCode);\n\n\t\t\tif (redirectAll || (redirectGet && (opts.method === 'GET' || opts.method === 'HEAD'))) {\n\t\t\t\tres.resume();\n\n\t\t\t\tif (statusCode === 303) {\n\t\t\t\t\t// Server responded with \"see other\", indicating that the resource exists at another location,\n\t\t\t\t\t// and the client should request it from that location via GET or HEAD.\n\t\t\t\t\topts.method = 'GET';\n\t\t\t\t}\n\n\t\t\t\tif (redirects.length >= 10) {\n\t\t\t\t\tee.emit('error', new got.MaxRedirectsError(statusCode, redirects, opts), null, res);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst bufferString = Buffer.from(res.headers.location, 'binary').toString();\n\n\t\t\t\tredirectUrl = urlLib.resolve(urlLib.format(opts), bufferString);\n\n\t\t\t\tredirects.push(redirectUrl);\n\n\t\t\t\tconst redirectOpts = Object.assign({}, opts, urlLib.parse(redirectUrl));\n\n\t\t\t\tee.emit('redirect', res, redirectOpts);\n\n\t\t\t\tget(redirectOpts);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetImmediate(() => {\n\t\t\t\ttry {\n\t\t\t\t\tgetResponse(res, opts, ee, redirects);\n\t\t\t\t} catch (e) {\n\t\t\t\t\tee.emit('error', e);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tcacheReq.on('error', err => {\n\t\t\tif (err instanceof CacheableRequest.RequestError) {\n\t\t\t\tee.emit('error', new got.RequestError(err, opts));\n\t\t\t} else {\n\t\t\t\tee.emit('error', new got.CacheError(err, opts));\n\t\t\t}\n\t\t});\n\n\t\tcacheReq.once('request', req => {\n\t\t\tlet aborted = false;\n\t\t\treq.once('abort', _ => {\n\t\t\t\taborted = true;\n\t\t\t});\n\n\t\t\treq.once('error', err => {\n\t\t\t\tclearInterval(progressInterval);\n\n\t\t\t\tif (aborted) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst backoff = opts.retries(++retryCount, err);\n\n\t\t\t\tif (backoff) {\n\t\t\t\t\tsetTimeout(get, backoff, opts);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tee.emit('error', new got.RequestError(err, opts));\n\t\t\t});\n\n\t\t\tee.once('request', req => {\n\t\t\t\tee.emit('uploadProgress', {\n\t\t\t\t\tpercent: 0,\n\t\t\t\t\ttransferred: 0,\n\t\t\t\t\ttotal: uploadBodySize\n\t\t\t\t});\n\n\t\t\t\tconst socket = req.connection;\n\t\t\t\tif (socket) {\n\t\t\t\t\t// `._connecting` was the old property which was made public in node v6.1.0\n\t\t\t\t\tconst isConnecting = socket.connecting === undefined ? socket._connecting : socket.connecting;\n\n\t\t\t\t\tconst onSocketConnect = () => {\n\t\t\t\t\t\tconst uploadEventFrequency = 150;\n\n\t\t\t\t\t\tprogressInterval = setInterval(() => {\n\t\t\t\t\t\t\tif (socket.destroyed) {\n\t\t\t\t\t\t\t\tclearInterval(progressInterval);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tconst lastUploaded = uploaded;\n\t\t\t\t\t\t\tconst headersSize = req._header ? Buffer.byteLength(req._header) : 0;\n\t\t\t\t\t\t\tuploaded = socket.bytesWritten - headersSize;\n\n\t\t\t\t\t\t\t// Prevent the known issue of `bytesWritten` being larger than body size\n\t\t\t\t\t\t\tif (uploadBodySize && uploaded > uploadBodySize) {\n\t\t\t\t\t\t\t\tuploaded = uploadBodySize;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Don't emit events with unchanged progress and\n\t\t\t\t\t\t\t// prevent last event from being emitted, because\n\t\t\t\t\t\t\t// it's emitted when `response` is emitted\n\t\t\t\t\t\t\tif (uploaded === lastUploaded || uploaded === uploadBodySize) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tee.emit('uploadProgress', {\n\t\t\t\t\t\t\t\tpercent: uploadBodySize ? uploaded / uploadBodySize : 0,\n\t\t\t\t\t\t\t\ttransferred: uploaded,\n\t\t\t\t\t\t\t\ttotal: uploadBodySize\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}, uploadEventFrequency);\n\t\t\t\t\t};\n\n\t\t\t\t\t// Only subscribe to 'connect' event if we're actually connecting a new\n\t\t\t\t\t// socket, otherwise if we're already connected (because this is a\n\t\t\t\t\t// keep-alive connection) do not bother. This is important since we won't\n\t\t\t\t\t// get a 'connect' event for an already connected socket.\n\t\t\t\t\tif (isConnecting) {\n\t\t\t\t\t\tsocket.once('connect', onSocketConnect);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tonSocketConnect();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (opts.gotTimeout) {\n\t\t\t\tclearInterval(progressInterval);\n\t\t\t\ttimedOut(req, opts.gotTimeout);\n\t\t\t}\n\n\t\t\tsetImmediate(() => {\n\t\t\t\tee.emit('request', req);\n\t\t\t});\n\t\t});\n\t};\n\n\tsetImmediate(() => {\n\t\tPromise.resolve(getBodySize(opts))\n\t\t\t.then(size => {\n\t\t\t\tuploadBodySize = size;\n\n\t\t\t\tif (\n\t\t\t\t\tis.undefined(opts.headers['content-length']) &&\n\t\t\t\t\tis.undefined(opts.headers['transfer-encoding']) &&\n\t\t\t\t\tisFormData(opts.body)\n\t\t\t\t) {\n\t\t\t\t\topts.headers['content-length'] = size;\n\t\t\t\t}\n\n\t\t\t\tget(opts);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tee.emit('error', err);\n\t\t\t});\n\t});\n\n\treturn ee;\n}\n\nfunction getResponse(res, opts, ee, redirects) {\n\tconst downloadBodySize = Number(res.headers['content-length']) || null;\n\tlet downloaded = 0;\n\n\tconst progressStream = new Transform({\n\t\ttransform(chunk, encoding, callback) {\n\t\t\tdownloaded += chunk.length;\n\n\t\t\tconst percent = downloadBodySize ? downloaded / downloadBodySize : 0;\n\n\t\t\t// Let flush() be responsible for emitting the last event\n\t\t\tif (percent < 1) {\n\t\t\t\tee.emit('downloadProgress', {\n\t\t\t\t\tpercent,\n\t\t\t\t\ttransferred: downloaded,\n\t\t\t\t\ttotal: downloadBodySize\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcallback(null, chunk);\n\t\t},\n\n\t\tflush(callback) {\n\t\t\tee.emit('downloadProgress', {\n\t\t\t\tpercent: 1,\n\t\t\t\ttransferred: downloaded,\n\t\t\t\ttotal: downloadBodySize\n\t\t\t});\n\n\t\t\tcallback();\n\t\t}\n\t});\n\n\tmimicResponse(res, progressStream);\n\tprogressStream.redirectUrls = redirects;\n\n\tconst response = opts.decompress === true &&\n\t\tis.function(decompressResponse) &&\n\t\topts.method !== 'HEAD' ? decompressResponse(progressStream) : progressStream;\n\n\tif (!opts.decompress && ['gzip', 'deflate'].indexOf(res.headers['content-encoding']) !== -1) {\n\t\topts.encoding = null;\n\t}\n\n\tee.emit('response', response);\n\n\tee.emit('downloadProgress', {\n\t\tpercent: 0,\n\t\ttransferred: 0,\n\t\ttotal: downloadBodySize\n\t});\n\n\tres.pipe(progressStream);\n}\n\nfunction asPromise(opts) {\n\tconst timeoutFn = requestPromise => opts.gotTimeout && opts.gotTimeout.request ?\n\t\tpTimeout(requestPromise, opts.gotTimeout.request, new got.RequestError({message: 'Request timed out', code: 'ETIMEDOUT'}, opts)) :\n\t\trequestPromise;\n\n\tconst proxy = new EventEmitter();\n\n\tconst cancelable = new PCancelable((resolve, reject, onCancel) => {\n\t\tconst ee = requestAsEventEmitter(opts);\n\t\tlet cancelOnRequest = false;\n\n\t\tonCancel(() => {\n\t\t\tcancelOnRequest = true;\n\t\t});\n\n\t\tee.on('request', req => {\n\t\t\tif (cancelOnRequest) {\n\t\t\t\treq.abort();\n\t\t\t}\n\n\t\t\tonCancel(() => {\n\t\t\t\treq.abort();\n\t\t\t});\n\n\t\t\tif (is.nodeStream(opts.body)) {\n\t\t\t\topts.body.pipe(req);\n\t\t\t\topts.body = undefined;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\treq.end(opts.body);\n\t\t});\n\n\t\tee.on('response', res => {\n\t\t\tconst stream = is.null(opts.encoding) ? getStream.buffer(res) : getStream(res, opts);\n\n\t\t\tstream\n\t\t\t\t.catch(err => reject(new got.ReadError(err, opts)))\n\t\t\t\t.then(data => {\n\t\t\t\t\tconst statusCode = res.statusCode;\n\t\t\t\t\tconst limitStatusCode = opts.followRedirect ? 299 : 399;\n\n\t\t\t\t\tres.body = data;\n\n\t\t\t\t\tif (opts.json && res.body) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tres.body = JSON.parse(res.body);\n\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\tif (statusCode >= 200 && statusCode < 300) {\n\t\t\t\t\t\t\t\tthrow new got.ParseError(err, statusCode, opts, data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (opts.throwHttpErrors && statusCode !== 304 && (statusCode < 200 || statusCode > limitStatusCode)) {\n\t\t\t\t\t\tthrow new got.HTTPError(statusCode, res.statusMessage, res.headers, opts);\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(res);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tObject.defineProperty(err, 'response', {value: res});\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\n\t\tee.once('error', reject);\n\t\tee.on('redirect', proxy.emit.bind(proxy, 'redirect'));\n\t\tee.on('uploadProgress', proxy.emit.bind(proxy, 'uploadProgress'));\n\t\tee.on('downloadProgress', proxy.emit.bind(proxy, 'downloadProgress'));\n\t});\n\n\t// Preserve backwards-compatibility\n\t// TODO: Remove this in the next major version\n\tObject.defineProperty(cancelable, 'canceled', {\n\t\tget() {\n\t\t\treturn cancelable.isCanceled;\n\t\t}\n\t});\n\n\tconst promise = timeoutFn(cancelable);\n\n\tpromise.cancel = cancelable.cancel.bind(cancelable);\n\n\tpromise.on = (name, fn) => {\n\t\tproxy.on(name, fn);\n\t\treturn promise;\n\t};\n\n\treturn promise;\n}\n\nfunction asStream(opts) {\n\topts.stream = true;\n\n\tconst input = new PassThrough();\n\tconst output = new PassThrough();\n\tconst proxy = duplexer3(input, output);\n\tlet timeout;\n\n\tif (opts.gotTimeout && opts.gotTimeout.request) {\n\t\ttimeout = setTimeout(() => {\n\t\t\tproxy.emit('error', new got.RequestError({message: 'Request timed out', code: 'ETIMEDOUT'}, opts));\n\t\t}, opts.gotTimeout.request);\n\t}\n\n\tif (opts.json) {\n\t\tthrow new Error('Got can not be used as a stream when the `json` option is used');\n\t}\n\n\tif (opts.body) {\n\t\tproxy.write = () => {\n\t\t\tthrow new Error('Got\\'s stream is not writable when the `body` option is used');\n\t\t};\n\t}\n\n\tconst ee = requestAsEventEmitter(opts);\n\n\tee.on('request', req => {\n\t\tproxy.emit('request', req);\n\n\t\tif (is.nodeStream(opts.body)) {\n\t\t\topts.body.pipe(req);\n\t\t\treturn;\n\t\t}\n\n\t\tif (opts.body) {\n\t\t\treq.end(opts.body);\n\t\t\treturn;\n\t\t}\n\n\t\tif (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {\n\t\t\tinput.pipe(req);\n\t\t\treturn;\n\t\t}\n\n\t\treq.end();\n\t});\n\n\tee.on('response', res => {\n\t\tclearTimeout(timeout);\n\n\t\tconst statusCode = res.statusCode;\n\n\t\tres.on('error', err => {\n\t\t\tproxy.emit('error', new got.ReadError(err, opts));\n\t\t});\n\n\t\tres.pipe(output);\n\n\t\tif (opts.throwHttpErrors && statusCode !== 304 && (statusCode < 200 || statusCode > 299)) {\n\t\t\tproxy.emit('error', new got.HTTPError(statusCode, res.statusMessage, res.headers, opts), null, res);\n\t\t\treturn;\n\t\t}\n\n\t\tproxy.emit('response', res);\n\t});\n\n\tee.on('error', proxy.emit.bind(proxy, 'error'));\n\tee.on('redirect', proxy.emit.bind(proxy, 'redirect'));\n\tee.on('uploadProgress', proxy.emit.bind(proxy, 'uploadProgress'));\n\tee.on('downloadProgress', proxy.emit.bind(proxy, 'downloadProgress'));\n\n\treturn proxy;\n}\n\nfunction normalizeArguments(url, opts) {\n\tif (!is.string(url) && !is.object(url)) {\n\t\tthrow new TypeError(`Parameter \\`url\\` must be a string or object, not ${is(url)}`);\n\t} else if (is.string(url)) {\n\t\turl = url.replace(/^unix:/, 'http://$&');\n\n\t\ttry {\n\t\t\tdecodeURI(url);\n\t\t} catch (err) {\n\t\t\tthrow new Error('Parameter `url` must contain valid UTF-8 character sequences');\n\t\t}\n\n\t\turl = urlParseLax(url);\n\t\tif (url.auth) {\n\t\t\tthrow new Error('Basic authentication must be done with the `auth` option');\n\t\t}\n\t} else if (isURL.lenient(url)) {\n\t\turl = urlToOptions(url);\n\t}\n\n\topts = Object.assign(\n\t\t{\n\t\t\tpath: '',\n\t\t\tretries: 2,\n\t\t\tcache: false,\n\t\t\tdecompress: true,\n\t\t\tuseElectronNet: false,\n\t\t\tthrowHttpErrors: true\n\t\t},\n\t\turl,\n\t\t{\n\t\t\tprotocol: url.protocol || 'http:' // Override both null/undefined with default protocol\n\t\t},\n\t\topts\n\t);\n\n\tconst headers = lowercaseKeys(opts.headers);\n\tfor (const key of Object.keys(headers)) {\n\t\tif (is.nullOrUndefined(headers[key])) {\n\t\t\tdelete headers[key];\n\t\t}\n\t}\n\n\topts.headers = Object.assign({\n\t\t'user-agent': `${pkg.name}/${pkg.version} (https://github.com/sindresorhus/got)`\n\t}, headers);\n\n\tif (opts.decompress && is.undefined(opts.headers['accept-encoding'])) {\n\t\topts.headers['accept-encoding'] = 'gzip, deflate';\n\t}\n\n\tconst query = opts.query;\n\n\tif (query) {\n\t\tif (!is.string(query)) {\n\t\t\topts.query = querystring.stringify(query);\n\t\t}\n\n\t\topts.path = `${opts.path.split('?')[0]}?${opts.query}`;\n\t\tdelete opts.query;\n\t}\n\n\tif (opts.json && is.undefined(opts.headers.accept)) {\n\t\topts.headers.accept = 'application/json';\n\t}\n\n\tconst body = opts.body;\n\tif (is.nullOrUndefined(body)) {\n\t\topts.method = (opts.method || 'GET').toUpperCase();\n\t} else {\n\t\tconst headers = opts.headers;\n\t\tif (!is.nodeStream(body) && !is.string(body) && !is.buffer(body) && !(opts.form || opts.json)) {\n\t\t\tthrow new TypeError('The `body` option must be a stream.Readable, string, Buffer or plain Object');\n\t\t}\n\n\t\tconst canBodyBeStringified = is.plainObject(body) || is.array(body);\n\t\tif ((opts.form || opts.json) && !canBodyBeStringified) {\n\t\t\tthrow new TypeError('The `body` option must be a plain Object or Array when the `form` or `json` option is used');\n\t\t}\n\n\t\tif (isFormData(body)) {\n\t\t\t// Special case for https://github.com/form-data/form-data\n\t\t\theaders['content-type'] = headers['content-type'] || `multipart/form-data; boundary=${body.getBoundary()}`;\n\t\t} else if (opts.form && canBodyBeStringified) {\n\t\t\theaders['content-type'] = headers['content-type'] || 'application/x-www-form-urlencoded';\n\t\t\topts.body = querystring.stringify(body);\n\t\t} else if (opts.json && canBodyBeStringified) {\n\t\t\theaders['content-type'] = headers['content-type'] || 'application/json';\n\t\t\topts.body = JSON.stringify(body);\n\t\t}\n\n\t\tif (is.undefined(headers['content-length']) && is.undefined(headers['transfer-encoding']) && !is.nodeStream(body)) {\n\t\t\tconst length = is.string(opts.body) ? Buffer.byteLength(opts.body) : opts.body.length;\n\t\t\theaders['content-length'] = length;\n\t\t}\n\n\t\t// Convert buffer to stream to receive upload progress events\n\t\t// see https://github.com/sindresorhus/got/pull/322\n\t\tif (is.buffer(body)) {\n\t\t\topts.body = intoStream(body);\n\t\t\topts.body._buffer = body;\n\t\t}\n\n\t\topts.method = (opts.method || 'POST').toUpperCase();\n\t}\n\n\tif (opts.hostname === 'unix') {\n\t\tconst matches = /(.+?):(.+)/.exec(opts.path);\n\n\t\tif (matches) {\n\t\t\topts.socketPath = matches[1];\n\t\t\topts.path = matches[2];\n\t\t\topts.host = null;\n\t\t}\n\t}\n\n\tif (!is.function(opts.retries)) {\n\t\tconst retries = opts.retries;\n\n\t\topts.retries = (iter, err) => {\n\t\t\tif (iter > retries || !isRetryAllowed(err)) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\tconst noise = Math.random() * 100;\n\n\t\t\treturn ((1 << iter) * 1000) + noise;\n\t\t};\n\t}\n\n\tif (is.undefined(opts.followRedirect)) {\n\t\topts.followRedirect = true;\n\t}\n\n\tif (opts.timeout) {\n\t\tif (is.number(opts.timeout)) {\n\t\t\topts.gotTimeout = {request: opts.timeout};\n\t\t} else {\n\t\t\topts.gotTimeout = opts.timeout;\n\t\t}\n\t\tdelete opts.timeout;\n\t}\n\n\treturn opts;\n}\n\nfunction got(url, opts) {\n\ttry {\n\t\tconst normalizedArgs = normalizeArguments(url, opts);\n\n\t\tif (normalizedArgs.stream) {\n\t\t\treturn asStream(normalizedArgs);\n\t\t}\n\n\t\treturn asPromise(normalizedArgs);\n\t} catch (err) {\n\t\treturn Promise.reject(err);\n\t}\n}\n\ngot.stream = (url, opts) => asStream(normalizeArguments(url, opts));\n\nconst methods = [\n\t'get',\n\t'post',\n\t'put',\n\t'patch',\n\t'head',\n\t'delete'\n];\n\nfor (const method of methods) {\n\tgot[method] = (url, opts) => got(url, Object.assign({}, opts, {method}));\n\tgot.stream[method] = (url, opts) => got.stream(url, Object.assign({}, opts, {method}));\n}\n\nObject.assign(got, errors);\n\nmodule.exports = got;\n","'use strict';\n\nconst got = require('got');\nconst publicIp = require('public-ip');\nconst pAny = require('p-any');\nconst pTimeout = require('p-timeout');\n\nconst defaults = {\n\ttimeout: 5000,\n\tversion: 'v4'\n};\n\nfunction appleCheck(options) {\n\treturn got('http://captive.apple.com/hotspot-detect.html', {\n\t\tfamily: options.version === 'v4' ? 4 : 6,\n\t\theaders: {'User-Agent': 'CaptiveNetworkSupport/1.0 wispr'}\n\t}).then(res => /Success/.test(res.body || '') || Promise.reject());\n}\n\nmodule.exports = options => {\n\toptions = Object.assign({}, defaults, options);\n\n\tconst p = pAny([\n\t\tpublicIp[options.version]().then(() => true),\n\t\tpublicIp[options.version]({https: true}).then(() => true),\n\t\tappleCheck(options)\n\t]);\n\n\treturn pTimeout(p, options.timeout).catch(() => false);\n};\n","import isLinkWorking from \"is-link-working\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverValid from \"semver/functions/valid\"\nimport { getExecOutput } from \"@actions/exec\"\nimport { info } from \"../io/io\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort()\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isLinkWorking(url))) {\n return [version, url]\n }\n }\n\n if (!versions.has(version)) {\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n }\n\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isLinkWorking(url))) {\n return [specificVersion, url]\n }\n }\n\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return version\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (\n typeof givenVersion === \"string\" &&\n typeof targetVersion === \"string\" &&\n givenVersion !== \"\" &&\n targetVersion !== \"\"\n ) {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","import { Inputs, Opts } from \"./main\"\nimport { isArch } from \"./utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nconst DefaultVersions: Record = {\n llvm: \"13.0.0\", // https://github.com/llvm/llvm-project/releases\n clangtidy: \"13.0.0\",\n clangformat: \"13.0.0\",\n ninja: \"1.11.0\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.23.2\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.1\", // https://pypi.org/project/gcovr/\n conan: \"1.50.0\", // https://github.com/conan-io/conan/releases\n meson: \"0.63.0\", // https://github.com/mesonbuild/meson/releases\n kcov: \"40\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.14.0\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.9.3-1\" : \"1.9.4\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: \"11\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nconst DefaultUbuntuVersion: Record> = {\n llvm: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"13.0.0-ubuntu-20.04\",\n 20: \"13.0.0-ubuntu-20.04\",\n 18: \"13.0.1-ubuntu-18.04\",\n 16: \"13.0.0-ubuntu-16.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 20: \"5.1\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"0.63.0\",\n 18: \"0.61.4\",\n },\n doxygen: {\n 20: \"1.9.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"40\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (useDefault(version, name)) {\n // choose the default linux version based on ubuntu version\n if (process.platform === \"linux\" && osVersion !== null && name in DefaultUbuntuVersion) {\n const osVersionMaj = osVersion[0]\n const newest = parseInt(Object.keys(DefaultUbuntuVersion[name])[0], 10) // newest version with the default\n if (osVersionMaj >= newest) {\n return DefaultUbuntuVersion[name][osVersionMaj]\n } else {\n return \"\"\n }\n }\n // anything else\n return DefaultVersions[name]\n } else {\n return version ?? \"\"\n }\n}\n\nfunction useDefault(version: string | undefined, name: string) {\n return version === \"true\" || (version === undefined && name in DefaultVersions)\n}\n\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n for (let i = 0; i < tools.length; i++) {\n // tools excluding i_tool\n const otherTools = tools.slice(0, i).concat(tools.slice(i + 1))\n\n const tool = tools[i]\n\n if (!useDefault(opts[tool], tool)) {\n for (let i_other = 0; i_other < otherTools.length; i_other++) {\n const otherTool = otherTools[i_other]\n const useDefaultOtherTool = useDefault(opts[otherTool], otherTools[i_other])\n if (useDefaultOtherTool) {\n // use the same version if the other tool was requested with the default\n opts[otherTool] = opts[tool]\n } else if (opts[tool] !== opts[otherTools[i_other]]) {\n // error if different from the other given versions\n return false\n }\n }\n }\n }\n return true\n}\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport execa from \"execa\"\nimport which from \"which\"\nimport { info } from \"@actions/core\"\nimport { addPath } from \"../env/addEnv\"\nimport { setupPython } from \"../../python/python\"\nimport { isBinUptoDate } from \"./version\"\nimport { join } from \"path\"\nimport { getVersion } from \"../../default_versions\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { setupDnfPack } from \"./setupDnfPack\"\n\nlet python: string | undefined\nlet binDir: string | undefined\n\nlet tried = false\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(name: string, version?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pip`)\n\n // setup python and pip if needed\n if (python === undefined) {\n if (which.sync(\"python3\", { nothrow: true }) !== null) {\n python = \"python3\"\n } else if (which.sync(\"python\", { nothrow: true }) !== null && (await isBinUptoDate(\"python\", \"3.0.0\"))) {\n python = \"python\"\n } else {\n info(\"python3 was not found. Installing python\")\n await setupPython(getVersion(\"python\", undefined), \"\", process.arch)\n // try again\n if (tried) {\n throw new Error(\"Failed to install python\")\n }\n tried = true\n return setupPipPack(name, version)\n }\n if (process.platform === \"win32\") {\n // downgrade pip on Windows\n // https://github.com/pypa/pip/issues/10875#issuecomment-1030293005\n execa.sync(python, [\"-m\", \"pip\", \"install\", \"-U\", \"pip==21.3.1\"], { stdio: \"inherit\" })\n } else if (process.platform === \"linux\") {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n if (isArch()) {\n setupPacmanPack(\"python-pip\")\n } else if (hasDnf()) {\n setupDnfPack(\"python3-pip\")\n } else if (isUbuntu()) {\n await setupAptPack(\"python3-pip\")\n }\n }\n\n // install wheel (required for Conan, Meson, etc.)\n execa.sync(python, [\"-m\", \"pip\", \"install\", \"-U\", \"wheel\"], { stdio: \"inherit\" })\n }\n\n execa.sync(python, [\"-m\", \"pip\", \"install\", version !== undefined && version !== \"\" ? `${name}==${version}` : name], {\n stdio: \"inherit\",\n })\n\n if (binDir === undefined) {\n if (process.platform === \"linux\") {\n binDir = \"/home/runner/.local/bin/\"\n } else if (process.platform === \"darwin\") {\n binDir = \"/usr/local/bin/\"\n } else {\n // windows or others\n try {\n binDir = join(\n (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim(),\n \"Scripts\"\n )\n } catch {\n binDir = join(\n (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim(),\n \"Scripts\"\n )\n }\n }\n info(`${binDir} to PATH`)\n await addPath(binDir)\n }\n\n return { binDir }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"graphviz\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"graphviz\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { notice } from \"../utils/io/io\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { getVersion } from \"../default_versions\"\nimport { existsSync } from \"fs\"\nimport { join } from \"path\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"doxygen.install\", version)\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n const installationInfo = setupBrewPack(\"doxygen\", undefined)\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"doxygen\", version)\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack(\"doxygen\", version)\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n await setupAptPack(\"libclang-cpp9\")\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack(\"doxygen\", undefined)\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]) {\n if (existsSync(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { error } from \"../utils/io/io\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import { addPath, addEnv } from \"../utils/env/addEnv\"\nimport { existsSync } from \"fs\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport semverMajor from \"semver/functions/major\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport path from \"path\"\nimport { warning, info } from \"../utils/io/io\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { addBinExtension } from \"extension-tools\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"12\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"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\" },\n \"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\" },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"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\" },\n \"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\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"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\" },\n \"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\" },\n \"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\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addBinExtension(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = setupDnfPack(\"gcc\", version)\n setupDnfPack(\"gcc-c++\", version)\n setupDnfPack(\"libstdc++-devel\", undefined)\n } else if (isUbuntu()) {\n await setupAptPack(\"gcc\", version, [\"ppa:ubuntu-toolchain-r/test\"])\n installationInfo = await setupAptPack(\"g++\", version, [])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack(\"gcc-multilib\", version, [\"ppa:ubuntu-toolchain-r/test\"])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && existsSync(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && existsSync(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (existsSync(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string) {\n const promises: Promise[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addBinExtension(`${binDir}/gcc`)), addEnv(\"CXX\", addBinExtension(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`)\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`)\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`)\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`)\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`)\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`)\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`)\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`)\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (ciDetect() === \"github-actions\") {\n addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nfunction addGccLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"gcc_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import * as path from \"path\"\nimport semverLte from \"semver/functions/lte\"\nimport semverMajor from \"semver/functions/major\"\nimport isLinkWorking from \"is-link-working\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport {\n getSpecificVersionAndUrl,\n getSpecificVersions,\n getVersions,\n semverCoerceIfInvalid,\n} from \"../utils/setup/version\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addBinExtension } from \"extension-tools\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setOutput } from \"@actions/core\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { info, warning } from \"../utils/io/io\"\nimport { existsSync } from \"fs\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { getVersion } from \"../default_versions\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n//================================================\n// Version\n//================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n])\n\n//================================================\n// URL\n//================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING: Set = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n])\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"14.0.0\"\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let ubuntu: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n ubuntu = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n ubuntu = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n ubuntu = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${ubuntu} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n const suffix = version === \"5.0.0\" ? `-linux-x86_64${ubuntu}.tar.xz` : `-x86_64-linux-gnu${ubuntu}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\"])\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isLinkWorking(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\n//================================================\n// Exports\n//================================================\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nasync function getLLVMPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n setOutput(\"version\", specificVersion)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addBinExtension(\"clang\"),\n extractFunction:\n platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await _setupLLVM(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir, version)\n return installationInfo\n}\n\nlet didInit = false\nasync function _setupLLVM(version: string, setupDir: string, arch: string) {\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n if (!didInit) {\n if (process.platform === \"linux\") {\n // install llvm build dependencies\n await setupGcc(getVersion(\"gcc\", undefined), \"\", arch) // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first\n if (isArch()) {\n // setupPacmanPack(\"ncurses\")\n // TODO: install libtinfo ?\n } else if (isUbuntu()) {\n await setupAptPack(\"libtinfo-dev\")\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n return installationInfo\n}\n\nexport async function activateLLVM(directory: string, versionGiven: string) {\n const version = semverCoerceIfInvalid(versionGiven)\n\n const lib = path.join(directory, \"lib\")\n\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const promises = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${lib}${path.delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${lib}${path.delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addBinExtension(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addBinExtension(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // windows builds fail with llvm's CPATH\n if (process.platform !== \"win32\") {\n const llvmMajor = semverMajor(version)\n if (existsSync(`${directory}/lib/clang/${version}/include`)) {\n promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n } else if (existsSync(`${directory}/lib/clang/${llvmMajor}/include`)) {\n promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n }\n }\n\n if (isUbuntu()) {\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`)\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`)\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`)\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`)\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`)\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`)\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`)\n }\n\n if (ciDetect() === \"github-actions\") {\n addLLVMLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\n/** Setup llvm tools (clang tidy, clang format, etc) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string): Promise {\n if (ciDetect() === \"github-actions\") {\n addLLVMLoggingMatcher()\n }\n return _setupLLVM(version, setupDir, arch)\n}\n\nfunction addLLVMLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"llvm_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n",null,null,"const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/** See https://github.com/ilammy/msvc-dev-cmd#inputs */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n if (uwp == 'true') {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre == 'true') {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, { shell: \"cmd\" }).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd","import { existsSync } from \"fs\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { info } from \"../utils/io/io\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n) {\n if (VCTargetsPath !== undefined && existsSync(VCTargetsPath)) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { vsversion_to_versionnumber, findVcvarsall } from \"msvc-dev-cmd/lib.js\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport path from \"path\"\nimport { existsSync } from \"fs\"\nimport { error, info, warning } from \"../utils/io/io\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (ciDetect() === \"github-actions\") {\n addMSVCLoggingMatcher()\n }\n}\n\nfunction addMSVCLoggingMatcher() {\n const matcherPath = path.join(__dirname, \"msvc_matcher.json\")\n if (!existsSync(matcherPath)) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup_cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { addBinExtension } from \"extension-tools\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { setupBin, PackageInfo, InstallationInfo } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addBinExtension(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import execa from \"execa\"\nimport { join } from \"path\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { getVersion } from \"../default_versions\"\nimport { addBinExtension } from \"extension-tools\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { info } from \"../utils/io/io\"\nimport { untildifyUser } from \"untildify-user\"\nimport { setupNinja } from \"../ninja/ninja\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addBinExtension(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addBinExtension(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n setupPacmanPack(\"libdwarf\")\n setupPacmanPack(\"libcurl-openssl\")\n } else if (hasDnf()) {\n setupDnfPack(\"libdwarf-devel\")\n setupDnfPack(\"libcurl-devel\")\n } else if (isUbuntu()) {\n await setupAptPack(\"libdw-dev\")\n await setupAptPack(\"libcurl4-openssl-dev\")\n }\n }\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(getVersion(\"cmake\", undefined), join(untildifyUser(\"\"), \"cmake\"), \"\")\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined), join(untildifyUser(\"\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n setupDnfPack(\"binutils\")\n } else if (isUbuntu()) {\n await setupAptPack(\"libbinutils\")\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { getInput, endGroup, startGroup, notice } from \"@actions/core\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupMake } from \"./make/make\"\nimport { setupTask } from \"./task/task\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupLLVM, setupClangTools } from \"./llvm/llvm\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPython } from \"./python/python\"\nimport mri from \"mri\"\nimport { untildifyUser } from \"untildify-user\"\nimport ciDetect from \"@npmcli/ci-detect\"\nimport * as timeDelta from \"time-delta\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport * as numerous from \"numerous\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport numerousLocale from \"numerous/locales/en.js\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\n\nimport semverValid from \"semver/functions/valid\"\nimport { getVersion, syncVersions } from \"./default_versions\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { error, info, success, warning } from \"./utils/io/io\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { join } from \"path\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupBazel } from \"./bazel/bazel\"\n\n/** The setup functions */\nconst setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n ccache: setupCcache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangTools,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\n/** The tools that can be installed */\nconst tools: Array = [\n \"nala\",\n \"choco\",\n \"brew\",\n \"python\",\n \"vcpkg\",\n \"bazel\",\n \"cmake\",\n \"ninja\",\n \"conan\",\n \"meson\",\n \"gcovr\",\n \"opencppcoverage\",\n \"ccache\",\n \"doxygen\",\n \"graphviz\",\n \"cppcheck\",\n \"clangtidy\",\n \"clangformat\",\n \"llvm\",\n \"gcc\",\n \"msvc\",\n \"vcvarsall\",\n \"kcov\",\n \"make\",\n \"task\",\n \"sevenzip\",\n]\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\"\n\n// an array of possible inputs\nconst inputs: Array = [\"compiler\", \"architecture\", ...tools]\n\n/** The main entry function */\nexport async function main(args: string[]): Promise {\n if (ciDetect() !== \"github-actions\") {\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n let osVersion: number[] | null = null\n try {\n // get the version if not already done\n osVersion = await ubuntuVersion()\n } catch (err) {\n warning((err as Error).toString())\n }\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n // loop over the tools and run their setup function\n for (const tool of tools) {\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n startGroup(`Installing ${tool} ${version}`)\n try {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(\n getVersion(tool, version, osVersion),\n undefined,\n arch,\n undefined,\n undefined,\n false,\n false\n )\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool) ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n time1 = Date.now()\n try {\n if (maybeCompiler !== undefined) {\n const { compiler, version } = getCompilerInfo(maybeCompiler)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch\n )\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const installationInfo = await setupGcc(getVersion(\"gcc\", version, osVersion), join(setupCppDir, \"gcc\"), arch)\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch\n )\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n } catch (e) {\n error(e as string | Error)\n errorMessages.push(`Failed to install the ${maybeCompiler}`)\n endGroup()\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup_cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup_cpp finished\")\n\n if (ciDetect() !== \"github-actions\") {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n }\n>\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: inputs,\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(maybeCompiler: string) {\n const compilerAndMaybeVersion = maybeCompiler.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\nfunction printHelp() {\n 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 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 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--bazel\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--nala\n--sevenzip\n--graphviz\n `)\n}\n\n/** Get an object from github actions */\nfunction maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\n\nfunction getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","import { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nexport async function ubuntuVersion(): Promise {\n if (isUbuntu()) {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack(\"lsb-release\")\n }\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n throw new Error(\"Failed to get the ubuntu major version.\")\n }\n\n return versionSplitted\n } else {\n return null\n }\n}\n",null,null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,"module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","module.exports = () =>\n process.env.GERRIT_PROJECT ? 'gerrit'\n : process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI ? 'azure-pipelines'\n : process.env.BITRISE_IO ? 'bitrise'\n : process.env.BUDDY_WORKSPACE_ID ? 'buddy'\n : process.env.BUILDKITE ? 'buildkite'\n : process.env.CIRRUS_CI ? 'cirrus'\n : process.env.GITLAB_CI ? 'gitlab'\n : process.env.APPVEYOR ? 'appveyor'\n : process.env.CIRCLECI ? 'circle-ci'\n : process.env.SEMAPHORE ? 'semaphore'\n : process.env.DRONE ? 'drone'\n : process.env.DSARI ? 'dsari'\n : process.env.GITHUB_ACTION ? 'github-actions'\n : process.env.TDDIUM ? 'tddium'\n : process.env.SCREWDRIVER ? 'screwdriver'\n : process.env.STRIDER ? 'strider'\n : process.env.TASKCLUSTER_ROOT_URL ? 'taskcluster'\n : process.env.JENKINS_URL ? 'jenkins'\n : process.env['bamboo.buildKey'] ? 'bamboo'\n : process.env.GO_PIPELINE_NAME ? 'gocd'\n : process.env.HUDSON_URL ? 'hudson'\n : process.env.WERCKER ? 'wercker'\n : process.env.NETLIFY ? 'netlify'\n : process.env.NOW_GITHUB_DEPLOYMENT ? 'now-github'\n : process.env.GITLAB_DEPLOYMENT ? 'now-gitlab'\n : process.env.BITBUCKET_DEPLOYMENT ? 'now-bitbucket'\n : process.env.BITBUCKET_BUILD_NUMBER ? 'bitbucket-pipelines'\n : process.env.NOW_BUILDER ? 'now'\n : process.env.VERCEL_GITHUB_DEPLOYMENT ? 'vercel-github'\n : process.env.VERCEL_GITLAB_DEPLOYMENT ? 'vercel-gitlab'\n : process.env.VERCEL_BITBUCKET_DEPLOYMENT ? 'vercel-bitbucket'\n : process.env.VERCEL_URL ? 'vercel'\n : process.env.MAGNUM ? 'magnum'\n : process.env.NEVERCODE ? 'nevercode'\n : process.env.RENDER ? 'render'\n : process.env.SAIL_CI ? 'sail'\n : process.env.SHIPPABLE ? 'shippable'\n : process.env.TEAMCITY_VERSION ? 'teamcity'\n // codeship and a few others\n : process.env.CI_NAME ? process.env.CI_NAME\n // heroku doesn't set envs other than node in a heroku-specific location\n : /\\/\\.heroku\\/node\\/bin\\/node$/.test(process.env.NODE || '') ? 'heroku'\n // test travis after the others, since several CI systems mimic it\n : process.env.TRAVIS ? 'travis-ci'\n // aws CodeBuild/CodePipeline\n : process.env.CODEBUILD_SRC_DIR ? 'aws-codebuild'\n : process.env.CI === 'true' || process.env.CI === '1' ? 'custom'\n // Google Cloud Build - it sets almost nothing\n : process.env.BUILDER_OUTPUT ? 'builder'\n : false\n","import * as core from \"@actions/core\"\nimport ciDetect from \"@npmcli/ci-detect\"\n\nexport function error(err: string | Error) {\n return ciDetect() === \"github-actions\" ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return ciDetect() === \"github-actions\" ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return ciDetect() === \"github-actions\" ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return ciDetect() === \"github-actions\" ? core.info(msg) : console.log(msg)\n}\n",null,null,null,"// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nmodule.exports = {\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: require('./internal/constants').SEMVER_SPEC_VERSION,\n SemVer: require('./classes/semver'),\n compareIdentifiers: require('./internal/identifiers').compareIdentifiers,\n rcompareIdentifiers: require('./internal/identifiers').rcompareIdentifiers,\n parse: require('./functions/parse'),\n valid: require('./functions/valid'),\n clean: require('./functions/clean'),\n inc: require('./functions/inc'),\n diff: require('./functions/diff'),\n major: require('./functions/major'),\n minor: require('./functions/minor'),\n patch: require('./functions/patch'),\n prerelease: require('./functions/prerelease'),\n compare: require('./functions/compare'),\n rcompare: require('./functions/rcompare'),\n compareLoose: require('./functions/compare-loose'),\n compareBuild: require('./functions/compare-build'),\n sort: require('./functions/sort'),\n rsort: require('./functions/rsort'),\n gt: require('./functions/gt'),\n lt: require('./functions/lt'),\n eq: require('./functions/eq'),\n neq: require('./functions/neq'),\n gte: require('./functions/gte'),\n lte: require('./functions/lte'),\n cmp: require('./functions/cmp'),\n coerce: require('./functions/coerce'),\n Comparator: require('./classes/comparator'),\n Range: require('./classes/range'),\n satisfies: require('./functions/satisfies'),\n toComparators: require('./ranges/to-comparators'),\n maxSatisfying: require('./ranges/max-satisfying'),\n minSatisfying: require('./ranges/min-satisfying'),\n minVersion: require('./ranges/min-version'),\n validRange: require('./ranges/valid'),\n outside: require('./ranges/outside'),\n gtr: require('./ranges/gtr'),\n ltr: require('./ranges/ltr'),\n intersects: require('./ranges/intersects'),\n simplifyRange: require('./ranges/simplify'),\n subset: require('./ranges/subset'),\n}\n","const { MAX_SAFE_COMPONENT_LENGTH } = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst createToken = (name, value, isGlobal) => {\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', '\\\\d*[a-zA-Z-][a-zA-Z0-9-]*')\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\nmodule.exports = {\n SEMVER_SPEC_VERSION,\n MAX_LENGTH,\n MAX_SAFE_INTEGER,\n MAX_SAFE_COMPONENT_LENGTH,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about so we always get a consistent\n// obj with keys in a consistent order.\nconst opts = ['includePrerelease', 'loose', 'rtl']\nconst parseOptions = options =>\n !options ? {}\n : typeof options !== 'object' ? { loose: true }\n : opts.filter(k => options[k]).reduce((o, k) => {\n o[k] = true\n return o\n }, {})\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const { MAX_LENGTH } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\nconst SemVer = require('../classes/semver')\n\nconst parseOptions = require('../internal/parse-options')\nconst parse = (version, options) => {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n const r = options.loose ? re[t.LOOSE] : re[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier) => {\n if (typeof (options) === 'string') {\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse')\nconst eq = require('./eq')\n\nconst diff = (version1, version2) => {\n if (eq(version1, version2)) {\n return null\n } else {\n const v1 = parse(version1)\n const v2 = parse(version2)\n const hasPre = v1.prerelease.length || v2.prerelease.length\n const prefix = hasPre ? 'pre' : ''\n const defaultResult = hasPre ? 'prerelease' : ''\n for (const key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\nmodule.exports = diff\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n let next\n while ((next = re[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n re[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false,\n }\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n const sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n const sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n const sameSemVer = this.semver.version === comp.semver.version\n const differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n const oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<')\n const oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>')\n\n return (\n sameDirectionIncreasing ||\n sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan ||\n oppositeDirectionsGreaterThan\n )\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First, split based on boolean or ||\n this.raw = range\n this.set = range\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${range}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => {\n return comps.join(' ').trim()\n })\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n range = range.trim()\n\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = Object.keys(this.options).join(',')\n const memoKey = `parseRange:${memoOpts}:${range}`\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\nconst replaceTildes = (comp, options) =>\n comp.trim().split(/\\s+/).map((c) => {\n return replaceTilde(c, options)\n }).join(' ')\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\nconst replaceCarets = (comp, options) =>\n comp.trim().split(/\\s+/).map((c) => {\n return replaceCaret(c, options)\n }).join(' ')\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map((c) => {\n return replaceXRange(c, options)\n }).join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp.trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return (`${from} ${to}`).trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","const perf = typeof performance === 'object' && performance &&\n typeof performance.now === 'function' ? performance : Date\n\nconst hasAbortController = typeof AbortController !== 'undefined'\n\n// minimal backwards-compatibility polyfill\nconst AC = hasAbortController ? AbortController : Object.assign(\n class AbortController {\n constructor () { this.signal = new AC.AbortSignal }\n abort () { this.signal.aborted = true }\n },\n { AbortSignal: class AbortSignal { constructor () { this.aborted = false }}}\n)\n\nconst warned = new Set()\nconst deprecatedOption = (opt, instead) => {\n const code = `LRU_CACHE_OPTION_${opt}`\n if (shouldWarn(code)) {\n warn(code, `${opt} option`, `options.${instead}`, LRUCache)\n }\n}\nconst deprecatedMethod = (method, instead) => {\n const code = `LRU_CACHE_METHOD_${method}`\n if (shouldWarn(code)) {\n const { prototype } = LRUCache\n const { get } = Object.getOwnPropertyDescriptor(prototype, method)\n warn(code, `${method} method`, `cache.${instead}()`, get)\n }\n}\nconst deprecatedProperty = (field, instead) => {\n const code = `LRU_CACHE_PROPERTY_${field}`\n if (shouldWarn(code)) {\n const { prototype } = LRUCache\n const { get } = Object.getOwnPropertyDescriptor(prototype, field)\n warn(code, `${field} property`, `cache.${instead}`, get)\n }\n}\n\nconst emitWarning = (...a) => {\n typeof process === 'object' &&\n process &&\n typeof process.emitWarning === 'function'\n ? process.emitWarning(...a)\n : console.error(...a)\n}\n\nconst shouldWarn = code => !warned.has(code)\n\nconst warn = (code, what, instead, fn) => {\n warned.add(code)\n const msg = `The ${what} is deprecated. Please use ${instead} instead.`\n emitWarning(msg, 'DeprecationWarning', code, fn)\n}\n\nconst isPosInt = n => n && n === Math.floor(n) && n > 0 && isFinite(n)\n\n/* istanbul ignore next - This is a little bit ridiculous, tbh.\n * The maximum array length is 2^32-1 or thereabouts on most JS impls.\n * And well before that point, you're caching the entire world, I mean,\n * that's ~32GB of just integers for the next/prev links, plus whatever\n * else to hold that many keys and values. Just filling the memory with\n * zeroes at init time is brutal when you get that big.\n * But why not be complete?\n * Maybe in the future, these limits will have expanded. */\nconst getUintArray = max => !isPosInt(max) ? null\n: max <= Math.pow(2, 8) ? Uint8Array\n: max <= Math.pow(2, 16) ? Uint16Array\n: max <= Math.pow(2, 32) ? Uint32Array\n: max <= Number.MAX_SAFE_INTEGER ? ZeroArray\n: null\n\nclass ZeroArray extends Array {\n constructor (size) {\n super(size)\n this.fill(0)\n }\n}\n\nclass Stack {\n constructor (max) {\n if (max === 0) {\n return []\n }\n const UintArray = getUintArray(max)\n this.heap = new UintArray(max)\n this.length = 0\n }\n push (n) {\n this.heap[this.length++] = n\n }\n pop () {\n return this.heap[--this.length]\n }\n}\n\nclass LRUCache {\n constructor (options = {}) {\n const {\n max = 0,\n ttl,\n ttlResolution = 1,\n ttlAutopurge,\n updateAgeOnGet,\n updateAgeOnHas,\n allowStale,\n dispose,\n disposeAfter,\n noDisposeOnSet,\n noUpdateTTL,\n maxSize = 0,\n sizeCalculation,\n fetchMethod,\n } = options\n\n // deprecated options, don't trigger a warning for getting them if\n // the thing being passed in is another LRUCache we're copying.\n const {\n length,\n maxAge,\n stale,\n } = options instanceof LRUCache ? {} : options\n\n if (max !== 0 && !isPosInt(max)) {\n throw new TypeError('max option must be a nonnegative integer')\n }\n\n const UintArray = max ? getUintArray(max) : Array\n if (!UintArray) {\n throw new Error('invalid max value: ' + max)\n }\n\n this.max = max\n this.maxSize = maxSize\n this.sizeCalculation = sizeCalculation || length\n if (this.sizeCalculation) {\n if (!this.maxSize) {\n throw new TypeError('cannot set sizeCalculation without setting maxSize')\n }\n if (typeof this.sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation set to non-function')\n }\n }\n\n this.fetchMethod = fetchMethod || null\n if (this.fetchMethod && typeof this.fetchMethod !== 'function') {\n throw new TypeError('fetchMethod must be a function if specified')\n }\n\n this.keyMap = new Map()\n this.keyList = new Array(max).fill(null)\n this.valList = new Array(max).fill(null)\n this.next = new UintArray(max)\n this.prev = new UintArray(max)\n this.head = 0\n this.tail = 0\n this.free = new Stack(max)\n this.initialFill = 1\n this.size = 0\n\n if (typeof dispose === 'function') {\n this.dispose = dispose\n }\n if (typeof disposeAfter === 'function') {\n this.disposeAfter = disposeAfter\n this.disposed = []\n } else {\n this.disposeAfter = null\n this.disposed = null\n }\n this.noDisposeOnSet = !!noDisposeOnSet\n this.noUpdateTTL = !!noUpdateTTL\n\n if (this.maxSize !== 0) {\n if (!isPosInt(this.maxSize)) {\n throw new TypeError('maxSize must be a positive integer if specified')\n }\n this.initializeSizeTracking()\n }\n\n this.allowStale = !!allowStale || !!stale\n this.updateAgeOnGet = !!updateAgeOnGet\n this.updateAgeOnHas = !!updateAgeOnHas\n this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0\n ? ttlResolution : 1\n this.ttlAutopurge = !!ttlAutopurge\n this.ttl = ttl || maxAge || 0\n if (this.ttl) {\n if (!isPosInt(this.ttl)) {\n throw new TypeError('ttl must be a positive integer if specified')\n }\n this.initializeTTLTracking()\n }\n\n // do not allow completely unbounded caches\n if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {\n throw new TypeError('At least one of max, maxSize, or ttl is required')\n }\n if (!this.ttlAutopurge && !this.max && !this.maxSize) {\n const code = 'LRU_CACHE_UNBOUNDED'\n if (shouldWarn(code)) {\n warned.add(code)\n const msg = 'TTL caching without ttlAutopurge, max, or maxSize can ' +\n 'result in unbounded memory consumption.'\n emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache)\n }\n }\n\n if (stale) {\n deprecatedOption('stale', 'allowStale')\n }\n if (maxAge) {\n deprecatedOption('maxAge', 'ttl')\n }\n if (length) {\n deprecatedOption('length', 'sizeCalculation')\n }\n }\n\n getRemainingTTL (key) {\n return this.has(key, { updateAgeOnHas: false }) ? Infinity : 0\n }\n\n initializeTTLTracking () {\n this.ttls = new ZeroArray(this.max)\n this.starts = new ZeroArray(this.max)\n\n this.setItemTTL = (index, ttl) => {\n this.starts[index] = ttl !== 0 ? perf.now() : 0\n this.ttls[index] = ttl\n if (ttl !== 0 && this.ttlAutopurge) {\n const t = setTimeout(() => {\n if (this.isStale(index)) {\n this.delete(this.keyList[index])\n }\n }, ttl + 1)\n /* istanbul ignore else - unref() not supported on all platforms */\n if (t.unref) {\n t.unref()\n }\n }\n }\n\n this.updateItemAge = (index) => {\n this.starts[index] = this.ttls[index] !== 0 ? perf.now() : 0\n }\n\n // debounce calls to perf.now() to 1s so we're not hitting\n // that costly call repeatedly.\n let cachedNow = 0\n const getNow = () => {\n const n = perf.now()\n if (this.ttlResolution > 0) {\n cachedNow = n\n const t = setTimeout(() => cachedNow = 0, this.ttlResolution)\n /* istanbul ignore else - not available on all platforms */\n if (t.unref) {\n t.unref()\n }\n }\n return n\n }\n\n this.getRemainingTTL = (key) => {\n const index = this.keyMap.get(key)\n if (index === undefined) {\n return 0\n }\n return this.ttls[index] === 0 || this.starts[index] === 0 ? Infinity\n : ((this.starts[index] + this.ttls[index]) - (cachedNow || getNow()))\n }\n\n this.isStale = (index) => {\n return this.ttls[index] !== 0 && this.starts[index] !== 0 &&\n ((cachedNow || getNow()) - this.starts[index] > this.ttls[index])\n }\n }\n updateItemAge (index) {}\n setItemTTL (index, ttl) {}\n isStale (index) { return false }\n\n initializeSizeTracking () {\n this.calculatedSize = 0\n this.sizes = new ZeroArray(this.max)\n this.removeItemSize = index => this.calculatedSize -= this.sizes[index]\n this.requireSize = (k, v, size, sizeCalculation) => {\n if (!isPosInt(size)) {\n if (sizeCalculation) {\n if (typeof sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation must be a function')\n }\n size = sizeCalculation(v, k)\n if (!isPosInt(size)) {\n throw new TypeError('sizeCalculation return invalid (expect positive integer)')\n }\n } else {\n throw new TypeError('invalid size value (must be positive integer)')\n }\n }\n return size\n }\n this.addItemSize = (index, v, k, size) => {\n this.sizes[index] = size\n const maxSize = this.maxSize - this.sizes[index]\n while (this.calculatedSize > maxSize) {\n this.evict(true)\n }\n this.calculatedSize += this.sizes[index]\n }\n this.delete = k => {\n if (this.size !== 0) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n this.calculatedSize -= this.sizes[index]\n }\n }\n return LRUCache.prototype.delete.call(this, k)\n }\n }\n removeItemSize (index) {}\n addItemSize (index, v, k, size) {}\n requireSize (k, v, size, sizeCalculation) {\n if (size || sizeCalculation) {\n throw new TypeError('cannot set size without setting maxSize on cache')\n }\n }\n\n *indexes ({ allowStale = this.allowStale } = {}) {\n if (this.size) {\n for (let i = this.tail; true; ) {\n if (!this.isValidIndex(i)) {\n break\n }\n if (allowStale || !this.isStale(i)) {\n yield i\n }\n if (i === this.head) {\n break\n } else {\n i = this.prev[i]\n }\n }\n }\n }\n\n *rindexes ({ allowStale = this.allowStale } = {}) {\n if (this.size) {\n for (let i = this.head; true; ) {\n if (!this.isValidIndex(i)) {\n break\n }\n if (allowStale || !this.isStale(i)) {\n yield i\n }\n if (i === this.tail) {\n break\n } else {\n i = this.next[i]\n }\n }\n }\n }\n\n isValidIndex (index) {\n return this.keyMap.get(this.keyList[index]) === index\n }\n\n *entries () {\n for (const i of this.indexes()) {\n yield [this.keyList[i], this.valList[i]]\n }\n }\n *rentries () {\n for (const i of this.rindexes()) {\n yield [this.keyList[i], this.valList[i]]\n }\n }\n\n *keys () {\n for (const i of this.indexes()) {\n yield this.keyList[i]\n }\n }\n *rkeys () {\n for (const i of this.rindexes()) {\n yield this.keyList[i]\n }\n }\n\n *values () {\n for (const i of this.indexes()) {\n yield this.valList[i]\n }\n }\n *rvalues () {\n for (const i of this.rindexes()) {\n yield this.valList[i]\n }\n }\n\n [Symbol.iterator] () {\n return this.entries()\n }\n\n find (fn, getOptions = {}) {\n for (const i of this.indexes()) {\n if (fn(this.valList[i], this.keyList[i], this)) {\n return this.get(this.keyList[i], getOptions)\n }\n }\n }\n\n forEach (fn, thisp = this) {\n for (const i of this.indexes()) {\n fn.call(thisp, this.valList[i], this.keyList[i], this)\n }\n }\n\n rforEach (fn, thisp = this) {\n for (const i of this.rindexes()) {\n fn.call(thisp, this.valList[i], this.keyList[i], this)\n }\n }\n\n get prune () {\n deprecatedMethod('prune', 'purgeStale')\n return this.purgeStale\n }\n\n purgeStale () {\n let deleted = false\n for (const i of this.rindexes({ allowStale: true })) {\n if (this.isStale(i)) {\n this.delete(this.keyList[i])\n deleted = true\n }\n }\n return deleted\n }\n\n dump () {\n const arr = []\n for (const i of this.indexes()) {\n const key = this.keyList[i]\n const value = this.valList[i]\n const entry = { value }\n if (this.ttls) {\n entry.ttl = this.ttls[i]\n }\n if (this.sizes) {\n entry.size = this.sizes[i]\n }\n arr.unshift([key, entry])\n }\n return arr\n }\n\n load (arr) {\n this.clear()\n for (const [key, entry] of arr) {\n this.set(key, entry.value, entry)\n }\n }\n\n dispose (v, k, reason) {}\n\n set (k, v, {\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n } = {}) {\n size = this.requireSize(k, v, size, sizeCalculation)\n let index = this.size === 0 ? undefined : this.keyMap.get(k)\n if (index === undefined) {\n // addition\n index = this.newIndex()\n this.keyList[index] = k\n this.valList[index] = v\n this.keyMap.set(k, index)\n this.next[this.tail] = index\n this.prev[index] = this.tail\n this.tail = index\n this.size ++\n this.addItemSize(index, v, k, size)\n noUpdateTTL = false\n } else {\n // update\n const oldVal = this.valList[index]\n if (v !== oldVal) {\n if (this.isBackgroundFetch(oldVal)) {\n oldVal.__abortController.abort()\n } else {\n if (!noDisposeOnSet) {\n this.dispose(oldVal, k, 'set')\n if (this.disposeAfter) {\n this.disposed.push([oldVal, k, 'set'])\n }\n }\n }\n this.removeItemSize(index)\n this.valList[index] = v\n this.addItemSize(index, v, k, size)\n }\n this.moveToTail(index)\n }\n if (ttl !== 0 && this.ttl === 0 && !this.ttls) {\n this.initializeTTLTracking()\n }\n if (!noUpdateTTL) {\n this.setItemTTL(index, ttl)\n }\n if (this.disposeAfter) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n return this\n }\n\n newIndex () {\n if (this.size === 0) {\n return this.tail\n }\n if (this.size === this.max && this.max !== 0) {\n return this.evict(false)\n }\n if (this.free.length !== 0) {\n return this.free.pop()\n }\n // initial fill, just keep writing down the list\n return this.initialFill++\n }\n\n pop () {\n if (this.size) {\n const val = this.valList[this.head]\n this.evict(true)\n return val\n }\n }\n\n evict (free) {\n const head = this.head\n const k = this.keyList[head]\n const v = this.valList[head]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n this.dispose(v, k, 'evict')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'evict'])\n }\n }\n this.removeItemSize(head)\n // if we aren't about to use the index, then null these out\n if (free) {\n this.keyList[head] = null\n this.valList[head] = null\n this.free.push(head)\n }\n this.head = this.next[head]\n this.keyMap.delete(k)\n this.size --\n return head\n }\n\n has (k, { updateAgeOnHas = this.updateAgeOnHas } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n if (!this.isStale(index)) {\n if (updateAgeOnHas) {\n this.updateItemAge(index)\n }\n return true\n }\n }\n return false\n }\n\n // like get(), but without any LRU updating or TTL expiration\n peek (k, { allowStale = this.allowStale } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined && (allowStale || !this.isStale(index))) {\n return this.valList[index]\n }\n }\n\n backgroundFetch (k, index, options) {\n const v = index === undefined ? undefined : this.valList[index]\n if (this.isBackgroundFetch(v)) {\n return v\n }\n const ac = new AC()\n const fetchOpts = {\n signal: ac.signal,\n options,\n }\n const p = Promise.resolve(this.fetchMethod(k, v, fetchOpts)).then(v => {\n if (!ac.signal.aborted) {\n this.set(k, v, fetchOpts.options)\n }\n return v\n })\n p.__abortController = ac\n p.__staleWhileFetching = v\n if (index === undefined) {\n this.set(k, p, fetchOpts.options)\n index = this.keyMap.get(k)\n } else {\n this.valList[index] = p\n }\n return p\n }\n\n isBackgroundFetch (p) {\n return p && typeof p === 'object' && typeof p.then === 'function' &&\n Object.prototype.hasOwnProperty.call(p, '__staleWhileFetching')\n }\n\n // this takes the union of get() and set() opts, because it does both\n async fetch (k, {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n } = {}) {\n if (!this.fetchMethod) {\n return this.get(k, {allowStale, updateAgeOnGet})\n }\n\n const options = {\n allowStale,\n updateAgeOnGet,\n ttl,\n noDisposeOnSet,\n size,\n sizeCalculation,\n noUpdateTTL,\n }\n\n let index = this.keyMap.get(k)\n if (index === undefined) {\n return this.backgroundFetch(k, index, options)\n } else {\n // in cache, maybe already fetching\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n return allowStale && v.__staleWhileFetching !== undefined\n ? v.__staleWhileFetching : v\n }\n\n if (!this.isStale(index)) {\n this.moveToTail(index)\n if (updateAgeOnGet) {\n this.updateItemAge(index)\n }\n return v\n }\n\n // ok, it is stale, and not already fetching\n // refresh the cache.\n const p = this.backgroundFetch(k, index, options)\n return allowStale && p.__staleWhileFetching !== undefined\n ? p.__staleWhileFetching : p\n }\n }\n\n get (k, {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n } = {}) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n const value = this.valList[index]\n const fetching = this.isBackgroundFetch(value)\n if (this.isStale(index)) {\n // delete only if not an in-flight background fetch\n if (!fetching) {\n this.delete(k)\n return allowStale ? value : undefined\n } else {\n return allowStale ? value.__staleWhileFetching : undefined\n }\n } else {\n // if we're currently fetching it, we don't actually have it yet\n // it's not stale, which means this isn't a staleWhileRefetching,\n // so we just return undefined\n if (fetching) {\n return undefined\n }\n this.moveToTail(index)\n if (updateAgeOnGet) {\n this.updateItemAge(index)\n }\n return value\n }\n }\n }\n\n connect (p, n) {\n this.prev[n] = p\n this.next[p] = n\n }\n\n moveToTail (index) {\n // if tail already, nothing to do\n // if head, move head to next[index]\n // else\n // move next[prev[index]] to next[index] (head has no prev)\n // move prev[next[index]] to prev[index]\n // prev[index] = tail\n // next[tail] = index\n // tail = index\n if (index !== this.tail) {\n if (index === this.head) {\n this.head = this.next[index]\n } else {\n this.connect(this.prev[index], this.next[index])\n }\n this.connect(this.tail, index)\n this.tail = index\n }\n }\n\n get del () {\n deprecatedMethod('del', 'delete')\n return this.delete\n }\n delete (k) {\n let deleted = false\n if (this.size !== 0) {\n const index = this.keyMap.get(k)\n if (index !== undefined) {\n deleted = true\n if (this.size === 1) {\n this.clear()\n } else {\n this.removeItemSize(index)\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n this.dispose(v, k, 'delete')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'delete'])\n }\n }\n this.keyMap.delete(k)\n this.keyList[index] = null\n this.valList[index] = null\n if (index === this.tail) {\n this.tail = this.prev[index]\n } else if (index === this.head) {\n this.head = this.next[index]\n } else {\n this.next[this.prev[index]] = this.next[index]\n this.prev[this.next[index]] = this.prev[index]\n }\n this.size --\n this.free.push(index)\n }\n }\n }\n if (this.disposed) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n return deleted\n }\n\n clear () {\n for (const index of this.rindexes({ allowStale: true })) {\n const v = this.valList[index]\n if (this.isBackgroundFetch(v)) {\n v.__abortController.abort()\n } else {\n const k = this.keyList[index]\n this.dispose(v, k, 'delete')\n if (this.disposeAfter) {\n this.disposed.push([v, k, 'delete'])\n }\n }\n }\n\n this.keyMap.clear()\n this.valList.fill(null)\n this.keyList.fill(null)\n if (this.ttls) {\n this.ttls.fill(0)\n this.starts.fill(0)\n }\n if (this.sizes) {\n this.sizes.fill(0)\n }\n this.head = 0\n this.tail = 0\n this.initialFill = 1\n this.free.length = 0\n this.calculatedSize = 0\n this.size = 0\n if (this.disposed) {\n while (this.disposed.length) {\n this.disposeAfter(...this.disposed.shift())\n }\n }\n }\n get reset () {\n deprecatedMethod('reset', 'clear')\n return this.clear\n }\n\n get length () {\n deprecatedProperty('length', 'size')\n return this.size\n }\n}\n\nmodule.exports = LRUCache\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = [new Comparator('>=0.0.0-0')]\n } else {\n sub = [new Comparator('>=0.0.0')]\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = [new Comparator('>=0.0.0')]\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,"module.exports = (__parcel__import__(\"./\" + \"actions_python.dfab21e0.js\")).then(() => parcelRequire('doiKQ'));","var Stream = require('stream');\nif (process.env.READABLE_STREAM === 'disable' && Stream) {\n module.exports = Stream;\n exports = module.exports = Stream.Readable;\n exports.Readable = Stream.Readable;\n exports.Writable = Stream.Writable;\n exports.Duplex = Stream.Duplex;\n exports.Transform = Stream.Transform;\n exports.PassThrough = Stream.PassThrough;\n exports.Stream = Stream;\n} else {\n exports = module.exports = require('./lib/_stream_readable.js');\n exports.Stream = Stream || exports;\n exports.Readable = exports;\n exports.Writable = require('./lib/_stream_writable.js');\n exports.Duplex = require('./lib/_stream_duplex.js');\n exports.Transform = require('./lib/_stream_transform.js');\n exports.PassThrough = require('./lib/_stream_passthrough.js');\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = require('isarray');\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n\n/**/\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar debugUtil = require('util');\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar BufferList = require('./internal/streams/BufferList');\nvar destroyImpl = require('./internal/streams/destroy');\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, unpipeInfo);\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark;\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}","'use strict';\n\nif (typeof process === 'undefined' ||\n !process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = { nextTick: nextTick };\n} else {\n module.exports = process\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","module.exports = require('stream');\n","/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('buffer').Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n","try {\n var util = require('util');\n /* istanbul ignore next */\n if (typeof util.inherits !== 'function') throw '';\n module.exports = util.inherits;\n} catch (e) {\n /* istanbul ignore next */\n module.exports = require('./inherits_browser.js');\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Buffer = require('safe-buffer').Buffer;\nvar util = require('util');\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n if (this.length === 1) return this.head.data;\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({ length: this.length });\n return this.constructor.name + ' ' + obj;\n };\n}","'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\n pna.nextTick(emitErrorNT, this, err);\n }\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n pna.nextTick(emitErrorNT, _this, err);\n if (_this._writableState) {\n _this._writableState.errorEmitted = true;\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/**/\n\nmodule.exports = Duplex;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nvar Readable = require('./_stream_readable');\nvar Writable = require('./_stream_writable');\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Writable;\n\n/* */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var writableHwm = options.writableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function (object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function (object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n pna.nextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n pna.nextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n pna.nextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n pna.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /**/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /**/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n stream.emit('error', err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n pna.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = corkReq;\n } else {\n state.corkedRequestsFree = corkReq;\n }\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function () {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\n\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};","\n/**\n * For Node.js, simply re-export the core `util.deprecate` function.\n */\n\nmodule.exports = require('util').deprecate;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = require('./_stream_duplex');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return this.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n\n cb(er);\n\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function') {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this2 = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this2.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","/**\n * @file Tests if ES6 Symbol is supported.\n * @version 1.4.2\n * @author Xotic750 \n * @copyright Xotic750\n * @license {@link MIT}\n * @module has-symbol-support-x\n */\n\n'use strict';\n\n/**\n * Indicates if `Symbol`exists and creates the correct type.\n * `true`, if it exists and creates the correct type, otherwise `false`.\n *\n * @type boolean\n */\nmodule.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';\n","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nmodule.exports = input => {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, input.length - 1);\n\t}\n\n\treturn input;\n};\n","'use strict';\nconst path = require('path');\nconst pathKey = require('path-key');\n\nconst npmRunPath = options => {\n\toptions = {\n\t\tcwd: process.cwd(),\n\t\tpath: process.env[pathKey()],\n\t\texecPath: process.execPath,\n\t\t...options\n\t};\n\n\tlet previous;\n\tlet cwdPath = path.resolve(options.cwd);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used\n\tconst execPathDir = path.resolve(options.cwd, options.execPath, '..');\n\tresult.push(execPathDir);\n\n\treturn result.concat(options.path).join(path.delimiter);\n};\n\nmodule.exports = npmRunPath;\n// TODO: Remove this for the next major release\nmodule.exports.default = npmRunPath;\n\nmodule.exports.env = options => {\n\toptions = {\n\t\tenv: process.env,\n\t\t...options\n\t};\n\n\tconst env = {...options.env};\n\tconst path = pathKey({env});\n\n\toptions.path = env[path];\n\tenv[path] = module.exports(options);\n\n\treturn env;\n};\n","'use strict';\n\nconst mimicFn = (to, from) => {\n\tfor (const prop of Reflect.ownKeys(from)) {\n\t\tObject.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));\n\t}\n\n\treturn to;\n};\n\nmodule.exports = mimicFn;\n// TODO: Remove this for the next major release\nmodule.exports.default = mimicFn;\n","'use strict';\nconst mimicFn = require('mimic-fn');\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFn(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nmodule.exports = onetime;\n// TODO: Remove this for the next major release\nmodule.exports.default = onetime;\n\nmodule.exports.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n","import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n const signals = getSignals()\n return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n signalByNameMemo,\n { name, number, description, supported, action, forced, standard },\n) {\n return {\n ...signalByNameMemo,\n [name]: { name, number, description, supported, action, forced, standard },\n }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n const signals = getSignals()\n const length = SIGRTMAX + 1\n const signalsA = Array.from({ length }, (value, number) =>\n getSignalByNumber(number, signals),\n )\n return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n const signal = findSignalByNumber(number, signals)\n\n if (signal === undefined) {\n return {}\n }\n\n const { name, description, supported, action, forced, standard } = signal\n return {\n [number]: {\n name,\n number,\n description,\n supported,\n action,\n forced,\n standard,\n },\n }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n if (signal !== undefined) {\n return signal\n }\n\n return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n","import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n const realtimeSignals = getRealtimeSignals()\n const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n return signals\n}\n\n// Normalize signal:\n// - `number`: signal numbers are OS-specific. This is taken into account by\n// `os.constants.signals`. However we provide a default `number` since some\n// signals are not defined for some OS.\n// - `forced`: set default to `false`\n// - `supported`: set value\nconst normalizeSignal = function({\n name,\n number: defaultNumber,\n description,\n action,\n forced = false,\n standard,\n}) {\n const {\n signals: { [name]: constantSignal },\n } = constants\n const supported = constantSignal !== undefined\n const number = supported ? constantSignal : defaultNumber\n return { name, number, description, supported, action, forced, standard }\n}\n","/* eslint-disable max-lines */\n// List of known process signals with information about them\nexport const SIGNALS = [\n {\n name: 'SIGHUP',\n number: 1,\n action: 'terminate',\n description: 'Terminal closed',\n standard: 'posix',\n },\n {\n name: 'SIGINT',\n number: 2,\n action: 'terminate',\n description: 'User interruption with CTRL-C',\n standard: 'ansi',\n },\n {\n name: 'SIGQUIT',\n number: 3,\n action: 'core',\n description: 'User interruption with CTRL-\\\\',\n standard: 'posix',\n },\n {\n name: 'SIGILL',\n number: 4,\n action: 'core',\n description: 'Invalid machine instruction',\n standard: 'ansi',\n },\n {\n name: 'SIGTRAP',\n number: 5,\n action: 'core',\n description: 'Debugger breakpoint',\n standard: 'posix',\n },\n {\n name: 'SIGABRT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'ansi',\n },\n {\n name: 'SIGIOT',\n number: 6,\n action: 'core',\n description: 'Aborted',\n standard: 'bsd',\n },\n {\n name: 'SIGBUS',\n number: 7,\n action: 'core',\n description:\n 'Bus error due to misaligned, non-existing address or paging error',\n standard: 'bsd',\n },\n {\n name: 'SIGEMT',\n number: 7,\n action: 'terminate',\n description: 'Command should be emulated but is not implemented',\n standard: 'other',\n },\n {\n name: 'SIGFPE',\n number: 8,\n action: 'core',\n description: 'Floating point arithmetic error',\n standard: 'ansi',\n },\n {\n name: 'SIGKILL',\n number: 9,\n action: 'terminate',\n description: 'Forced termination',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGUSR1',\n number: 10,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGSEGV',\n number: 11,\n action: 'core',\n description: 'Segmentation fault',\n standard: 'ansi',\n },\n {\n name: 'SIGUSR2',\n number: 12,\n action: 'terminate',\n description: 'Application-specific signal',\n standard: 'posix',\n },\n {\n name: 'SIGPIPE',\n number: 13,\n action: 'terminate',\n description: 'Broken pipe or socket',\n standard: 'posix',\n },\n {\n name: 'SIGALRM',\n number: 14,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'posix',\n },\n {\n name: 'SIGTERM',\n number: 15,\n action: 'terminate',\n description: 'Termination',\n standard: 'ansi',\n },\n {\n name: 'SIGSTKFLT',\n number: 16,\n action: 'terminate',\n description: 'Stack is empty or overflowed',\n standard: 'other',\n },\n {\n name: 'SIGCHLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'posix',\n },\n {\n name: 'SIGCLD',\n number: 17,\n action: 'ignore',\n description: 'Child process terminated, paused or unpaused',\n standard: 'other',\n },\n {\n name: 'SIGCONT',\n number: 18,\n action: 'unpause',\n description: 'Unpaused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGSTOP',\n number: 19,\n action: 'pause',\n description: 'Paused',\n standard: 'posix',\n forced: true,\n },\n {\n name: 'SIGTSTP',\n number: 20,\n action: 'pause',\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: 'posix',\n },\n {\n name: 'SIGTTIN',\n number: 21,\n action: 'pause',\n description: 'Background process cannot read terminal input',\n standard: 'posix',\n },\n {\n name: 'SIGBREAK',\n number: 21,\n action: 'terminate',\n description: 'User interruption with CTRL-BREAK',\n standard: 'other',\n },\n {\n name: 'SIGTTOU',\n number: 22,\n action: 'pause',\n description: 'Background process cannot write to terminal output',\n standard: 'posix',\n },\n {\n name: 'SIGURG',\n number: 23,\n action: 'ignore',\n description: 'Socket received out-of-band data',\n standard: 'bsd',\n },\n {\n name: 'SIGXCPU',\n number: 24,\n action: 'core',\n description: 'Process timed out',\n standard: 'bsd',\n },\n {\n name: 'SIGXFSZ',\n number: 25,\n action: 'core',\n description: 'File too big',\n standard: 'bsd',\n },\n {\n name: 'SIGVTALRM',\n number: 26,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGPROF',\n number: 27,\n action: 'terminate',\n description: 'Timeout or timer',\n standard: 'bsd',\n },\n {\n name: 'SIGWINCH',\n number: 28,\n action: 'ignore',\n description: 'Terminal window size changed',\n standard: 'bsd',\n },\n {\n name: 'SIGIO',\n number: 29,\n action: 'terminate',\n description: 'I/O is available',\n standard: 'other',\n },\n {\n name: 'SIGPOLL',\n number: 29,\n action: 'terminate',\n description: 'Watched event',\n standard: 'other',\n },\n {\n name: 'SIGINFO',\n number: 29,\n action: 'ignore',\n description: 'Request for process information',\n standard: 'other',\n },\n {\n name: 'SIGPWR',\n number: 30,\n action: 'terminate',\n description: 'Device running out of power',\n standard: 'systemv',\n },\n {\n name: 'SIGSYS',\n number: 31,\n action: 'core',\n description: 'Invalid system call',\n standard: 'other',\n },\n {\n name: 'SIGUNUSED',\n number: 31,\n action: 'terminate',\n description: 'Invalid system call',\n standard: 'other',\n },\n]\n/* eslint-enable max-lines */\n","// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n const length = SIGRTMAX - SIGRTMIN + 1\n return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n return {\n name: `SIGRT${index + 1}`,\n number: SIGRTMIN + index,\n action: 'terminate',\n description: 'Application-specific signal (realtime)',\n standard: 'posix',\n }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n","'use strict';\nconst {signalsByName} = require('human-signals');\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nconst makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}}\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n\nmodule.exports = makeError;\n","'use strict';\nconst aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nconst normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\nmodule.exports = normalizeStdio;\n\n// `ipc` is pushed unless it is already present\nmodule.exports.node = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","'use strict';\nconst os = require('os');\nconst onExit = require('signal-exit');\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nconst spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => {\n\treturn isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n};\n\nconst isSigterm = signal => {\n\treturn signal === os.constants.signals.SIGTERM ||\n\t\t(typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n};\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nconst spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nconst setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nconst validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nconst setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n\nmodule.exports = {\n\tspawnedKill,\n\tspawnedCancel,\n\tsetupTimeout,\n\tvalidateTimeout,\n\tsetExitHandler\n};\n","'use strict';\nconst path = require('path');\nconst childProcess = require('child_process');\nconst crossSpawn = require('cross-spawn');\nconst stripFinalNewline = require('strip-final-newline');\nconst npmRunPath = require('npm-run-path');\nconst onetime = require('onetime');\nconst makeError = require('./lib/error');\nconst normalizeStdio = require('./lib/stdio');\nconst {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} = require('./lib/kill');\nconst {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = require('./lib/stream');\nconst {mergePromise, getSpawnedPromise} = require('./lib/promise');\nconst {joinCommand, parseCommand, getEscapedCommand} = require('./lib/command');\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPath.env({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\t...options\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execa.sync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nconst execa = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t}));\n\t\treturn mergePromise(dummySpawned, errorPromise);\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled,\n\t\t\t\tkilled: spawned.killed\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options.input);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\treturn mergePromise(spawned, handlePromiseOnce);\n};\n\nmodule.exports = execa;\n\nmodule.exports.sync = (file, args, options) => {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false\n\t};\n};\n\nmodule.exports.command = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n};\n\nmodule.exports.commandSync = (command, options) => {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa.sync(file, args, options);\n};\n\nmodule.exports.node = (scriptPath, args, options = {}) => {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdio.node(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : [])\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false\n\t\t}\n\t);\n};\n","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","'use strict';\nconst isStream = require('is-stream');\nconst getStream = require('get-stream');\nconst mergeStream = require('merge-stream');\n\n// `input` option\nconst handleInput = (spawned, input) => {\n\t// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852\n\t// @todo remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0\n\tif (input === undefined || spawned.stdin === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nconst makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\tif (!stream) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nconst getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise)\n\t\t]);\n\t}\n};\n\nconst validateInputSync = ({input}) => {\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n};\n\nmodule.exports = {\n\thandleInput,\n\tmakeAllStream,\n\tgetSpawnedResult,\n\tvalidateInputSync\n};\n\n","'use strict';\n\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property)\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nconst mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function' ?\n\t\t\t(...args) => Reflect.apply(descriptor.value, promise(), args) :\n\t\t\tdescriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n\n\treturn spawned;\n};\n\n// Use promises instead of `child_process` events\nconst getSpawnedPromise = spawned => {\n\treturn new Promise((resolve, reject) => {\n\t\tspawned.on('exit', (exitCode, signal) => {\n\t\t\tresolve({exitCode, signal});\n\t\t});\n\n\t\tspawned.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\n\t\tif (spawned.stdin) {\n\t\t\tspawned.stdin.on('error', error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t}\n\t});\n};\n\nmodule.exports = {\n\tmergePromise,\n\tgetSpawnedPromise\n};\n\n","'use strict';\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nconst joinCommand = (file, args) => {\n\treturn normalizeArgs(file, args).join(' ');\n};\n\nconst getEscapedCommand = (file, args) => {\n\treturn normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n};\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execa.command()`\nconst parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nmodule.exports = {\n\tjoinCommand,\n\tgetEscapedCommand,\n\tparseCommand\n};\n","'use strict';\nconst os = require('os');\n\nconst homeDirectory = os.homedir();\n\nmodule.exports = pathWithTilde => {\n\tif (typeof pathWithTilde !== 'string') {\n\t\tthrow new TypeError(`Expected a string, got ${typeof pathWithTilde}`);\n\t}\n\n\treturn homeDirectory ? pathWithTilde.replace(/^~(?=$|\\/|\\\\)/, homeDirectory) : pathWithTilde;\n};\n","const os = require(\"os\");\n\n// to detect on with os user had used path.resolve(...)\nconst is_posix_os = (os.platform() !== \"win32\");\nconst version = os.release();\n\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n\nmodule.exports = function (given_path) {\n return (is_posix_os)\n // for posix path, escape is simple\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\n // for windows, it depend of the build\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\n // on major version, no need to escape anymore\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\n ? given_path\n // on older version, replace space with symbol %20\n : given_path.replace(/(\\s+)/g, '%20');\n};",null,"'use strict';\n\nconst WritableStream = require('stream').Writable;\nconst got = require('got');\nconst isOnline = require('is-online');\nconst pkg = require('./package.json');\n\nlet isOnlineCache;\n\nfunction isOnlineAsPromise() {\n // Cache the isOnline() result up to `exports.connectivityCacheDuration` ms\n if (isOnlineCache && isOnlineCache.cachedAt > Date.now() - module.exports.connectivityCacheDuration) {\n return isOnlineCache;\n }\n\n isOnlineCache = new Promise((resolve, reject) => {\n isOnline((err, online) => {\n if (err) {\n delete isOnlineCache.promise; // Do not cache errors\n /* istanbul ignore next */\n reject(err);\n } else {\n resolve(online);\n }\n });\n });\n\n isOnlineCache.cachedAt = Date.now();\n\n return isOnlineCache;\n}\n\nfunction checkConnectivity(requestErr) {\n return isOnlineAsPromise()\n .catch(() => { throw requestErr; })\n .then((online) => {\n if (!online) {\n throw requestErr;\n }\n\n return false;\n });\n}\n\nclass DevNull extends WritableStream {\n _write(chunk, encoding, callback) {\n callback();\n }\n}\n\nfunction tryHead(link, gotOptions) {\n return got.head(link, gotOptions)\n .then(() => true);\n}\n\nfunction tryGet(link, options, gotOptions) {\n return new Promise((resolve, reject) => {\n let stream;\n let req;\n\n try {\n stream = got.stream(link, gotOptions);\n } catch (err) {\n return resolve(false);\n }\n\n stream\n .on('request', (req_) => { req = req_; })\n .on('response', (res) => {\n res.on('error', () => {}); // Swallow any response errors, because we are going to abort the request\n setImmediate(() => req.abort());\n resolve(true);\n })\n .on('error', (err, body, res) => {\n res && res.on('error', () => {}); // Swallow any response errors, because we are going to abort the request\n setImmediate(() => req.abort());\n\n if (err instanceof got.MaxRedirectsError || err instanceof got.HTTPError) {\n return resolve(false);\n }\n\n /* istanbul ignore else */\n if (err instanceof got.RequestError) {\n return resolve(options.checkConnectivity ? checkConnectivity(err) : false);\n }\n\n /* istanbul ignore next */\n reject(err);\n })\n .pipe(new DevNull());\n });\n}\n\n// -------------------------------------------------------------------------\n\nfunction isLinkWorking(link, options) {\n options = Object.assign({\n checkConnectivity: false,\n followRedirect: true,\n timeout: 15000,\n retries: 3,\n agent: null,\n }, options);\n\n const gotOptions = {\n timeout: options.timeout,\n followRedirect: options.followRedirect,\n retries: options.retries,\n agent: options.agent,\n headers: {\n 'user-agent': `is-link-working/${pkg.version} (https://github.com/IndigoUnited/is-link-working)`,\n },\n };\n\n return tryHead(link, gotOptions)\n .catch(() => tryGet(link, options, gotOptions));\n}\n\nmodule.exports = isLinkWorking;\nmodule.exports.connectivityCacheDuration = 5000;\n","'use strict';\n\nvar isStream = module.exports = function (stream) {\n\treturn stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';\n};\n\nisStream.writable = function (stream) {\n\treturn isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';\n};\n\nisStream.readable = function (stream) {\n\treturn isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';\n};\n\nisStream.duplex = function (stream) {\n\treturn isStream.writable(stream) && isStream.readable(stream);\n};\n\nisStream.transform = function (stream) {\n\treturn isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';\n};\n","'use strict';\nconst PassThrough = require('stream').PassThrough;\n\nmodule.exports = opts => {\n\topts = Object.assign({}, opts);\n\n\tconst array = opts.array;\n\tlet encoding = opts.encoding;\n\tconst buffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || buffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (buffer) {\n\t\tencoding = null;\n\t}\n\n\tlet len = 0;\n\tconst ret = [];\n\tconst stream = new PassThrough({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tstream.on('data', chunk => {\n\t\tret.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlen = ret.length;\n\t\t} else {\n\t\t\tlen += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn ret;\n\t\t}\n\n\t\treturn buffer ? Buffer.concat(ret, len) : ret.join('');\n\t};\n\n\tstream.getBufferedLength = () => len;\n\n\treturn stream;\n};\n","'use strict';\n\nmodule.exports = function (req, time) {\n\tif (req.timeoutTimer) {\n\t\treturn req;\n\t}\n\n\tvar delays = isNaN(time) ? time : {socket: time, connect: time};\n\tvar host = req._headers ? (' to ' + req._headers.host) : '';\n\n\tif (delays.connect !== undefined) {\n\t\treq.timeoutTimer = setTimeout(function timeoutHandler() {\n\t\t\treq.abort();\n\t\t\tvar e = new Error('Connection timed out on request' + host);\n\t\t\te.code = 'ETIMEDOUT';\n\t\t\treq.emit('error', e);\n\t\t}, delays.connect);\n\t}\n\n\t// Clear the connection timeout timer once a socket is assigned to the\n\t// request and is connected.\n\treq.on('socket', function assign(socket) {\n\t\t// Socket may come from Agent pool and may be already connected.\n\t\tif (!(socket.connecting || socket._connecting)) {\n\t\t\tconnect();\n\t\t\treturn;\n\t\t}\n\n\t\tsocket.once('connect', connect);\n\t});\n\n\tfunction clear() {\n\t\tif (req.timeoutTimer) {\n\t\t\tclearTimeout(req.timeoutTimer);\n\t\t\treq.timeoutTimer = null;\n\t\t}\n\t}\n\n\tfunction connect() {\n\t\tclear();\n\n\t\tif (delays.socket !== undefined) {\n\t\t\t// Abort the request if there is no activity on the socket for more\n\t\t\t// than `delays.socket` milliseconds.\n\t\t\treq.setTimeout(delays.socket, function socketTimeoutHandler() {\n\t\t\t\treq.abort();\n\t\t\t\tvar e = new Error('Socket timed out on request' + host);\n\t\t\t\te.code = 'ESOCKETTIMEDOUT';\n\t\t\t\treq.emit('error', e);\n\t\t\t});\n\t\t}\n\t}\n\n\treturn req.on('error', clear);\n};\n","'use strict';\nmodule.exports = function (url) {\n\tif (typeof url !== 'string') {\n\t\tthrow new TypeError('Expected a string, got ' + typeof url);\n\t}\n\n\turl = url.trim();\n\n\tif (/^\\.*\\/|^(?!localhost)\\w+:/.test(url)) {\n\t\treturn url;\n\t}\n\n\treturn url.replace(/^(?!(?:\\w+:)?\\/\\/)/, 'http://');\n};\n","'use strict';\nvar url = require('url');\nvar prependHttp = require('prepend-http');\n\nmodule.exports = function (x) {\n\tvar withProtocol = prependHttp(x);\n\tvar parsed = url.parse(withProtocol);\n\n\tif (withProtocol !== x) {\n\t\tparsed.protocol = null;\n\t}\n\n\treturn parsed;\n};\n","'use strict';\nmodule.exports = function (obj) {\n\tvar ret = {};\n\tvar keys = Object.keys(Object(obj));\n\n\tfor (var i = 0; i < keys.length; i++) {\n\t\tret[keys[i].toLowerCase()] = obj[keys[i]];\n\t}\n\n\treturn ret;\n};\n","'use strict';\nmodule.exports = function (x) {\n\tif (typeof x !== 'number') {\n\t\tthrow new TypeError('Expected a number');\n\t}\n\n\treturn x === 300 ||\n\t\tx === 301 ||\n\t\tx === 302 ||\n\t\tx === 303 ||\n\t\tx === 305 ||\n\t\tx === 307 ||\n\t\tx === 308;\n};\n","'use strict';\nconst PassThrough = require('stream').PassThrough;\nconst zlib = require('zlib');\n\nmodule.exports = res => {\n\t// TODO: use Array#includes when targeting Node.js 6\n\tif (['gzip', 'deflate'].indexOf(res.headers['content-encoding']) === -1) {\n\t\treturn res;\n\t}\n\n\tconst unzip = zlib.createUnzip();\n\tconst stream = new PassThrough();\n\n\tstream.httpVersion = res.httpVersion;\n\tstream.headers = res.headers;\n\tstream.rawHeaders = res.rawHeaders;\n\tstream.trailers = res.trailers;\n\tstream.rawTrailers = res.rawTrailers;\n\tstream.setTimeout = res.setTimeout.bind(res);\n\tstream.statusCode = res.statusCode;\n\tstream.statusMessage = res.statusMessage;\n\tstream.socket = res.socket;\n\n\tunzip.on('error', err => {\n\t\tif (err.code === 'Z_BUF_ERROR') {\n\t\t\tstream.end();\n\t\t\treturn;\n\t\t}\n\n\t\tstream.emit('error', err);\n\t});\n\n\tres.pipe(unzip).pipe(stream);\n\n\treturn stream;\n};\n","'use strict';\n\nmodule.exports = Error.captureStackTrace || function (error) {\n\tvar container = new Error();\n\n\tObject.defineProperty(error, 'stack', {\n\t\tconfigurable: true,\n\t\tget: function getStack() {\n\t\t\tvar stack = container.stack;\n\n\t\t\tObject.defineProperty(this, 'stack', {\n\t\t\t\tvalue: stack\n\t\t\t});\n\n\t\t\treturn stack;\n\t\t}\n\t});\n};\n","'use strict';\nvar captureStackTrace = require('capture-stack-trace');\n\nfunction inherits(ctor, superCtor) {\n\tctor.super_ = superCtor;\n\tctor.prototype = Object.create(superCtor.prototype, {\n\t\tconstructor: {\n\t\t\tvalue: ctor,\n\t\t\tenumerable: false,\n\t\t\twritable: true,\n\t\t\tconfigurable: true\n\t\t}\n\t});\n}\n\nmodule.exports = function createErrorClass(className, setup) {\n\tif (typeof className !== 'string') {\n\t\tthrow new TypeError('Expected className to be a string');\n\t}\n\n\tif (/[^0-9a-zA-Z_$]/.test(className)) {\n\t\tthrow new Error('className contains invalid characters');\n\t}\n\n\tsetup = setup || function (message) {\n\t\tthis.message = message;\n\t};\n\n\tvar ErrorClass = function () {\n\t\tObject.defineProperty(this, 'name', {\n\t\t\tconfigurable: true,\n\t\t\tvalue: className,\n\t\t\twritable: true\n\t\t});\n\n\t\tcaptureStackTrace(this, this.constructor);\n\n\t\tsetup.apply(this, arguments);\n\t};\n\n\tinherits(ErrorClass, Error);\n\n\treturn ErrorClass;\n};\n","'use strict';\n\nvar WHITELIST = [\n\t'ETIMEDOUT',\n\t'ECONNRESET',\n\t'EADDRINUSE',\n\t'ESOCKETTIMEDOUT',\n\t'ECONNREFUSED',\n\t'EPIPE',\n\t'EHOSTUNREACH',\n\t'EAI_AGAIN'\n];\n\nvar BLACKLIST = [\n\t'ENOTFOUND',\n\t'ENETUNREACH',\n\n\t// SSL errors from https://github.com/nodejs/node/blob/ed3d8b13ee9a705d89f9e0397d9e96519e7e47ac/src/node_crypto.cc#L1950\n\t'UNABLE_TO_GET_ISSUER_CERT',\n\t'UNABLE_TO_GET_CRL',\n\t'UNABLE_TO_DECRYPT_CERT_SIGNATURE',\n\t'UNABLE_TO_DECRYPT_CRL_SIGNATURE',\n\t'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',\n\t'CERT_SIGNATURE_FAILURE',\n\t'CRL_SIGNATURE_FAILURE',\n\t'CERT_NOT_YET_VALID',\n\t'CERT_HAS_EXPIRED',\n\t'CRL_NOT_YET_VALID',\n\t'CRL_HAS_EXPIRED',\n\t'ERROR_IN_CERT_NOT_BEFORE_FIELD',\n\t'ERROR_IN_CERT_NOT_AFTER_FIELD',\n\t'ERROR_IN_CRL_LAST_UPDATE_FIELD',\n\t'ERROR_IN_CRL_NEXT_UPDATE_FIELD',\n\t'OUT_OF_MEM',\n\t'DEPTH_ZERO_SELF_SIGNED_CERT',\n\t'SELF_SIGNED_CERT_IN_CHAIN',\n\t'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',\n\t'UNABLE_TO_VERIFY_LEAF_SIGNATURE',\n\t'CERT_CHAIN_TOO_LONG',\n\t'CERT_REVOKED',\n\t'INVALID_CA',\n\t'PATH_LENGTH_EXCEEDED',\n\t'INVALID_PURPOSE',\n\t'CERT_UNTRUSTED',\n\t'CERT_REJECTED'\n];\n\nmodule.exports = function (err) {\n\tif (!err || !err.code) {\n\t\treturn true;\n\t}\n\n\tif (WHITELIST.indexOf(err.code) !== -1) {\n\t\treturn true;\n\t}\n\n\tif (BLACKLIST.indexOf(err.code) !== -1) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n","{\n \"name\": \"got\",\n \"version\": \"6.7.1\",\n \"description\": \"Simplified HTTP requests\",\n \"license\": \"MIT\",\n \"repository\": \"sindresorhus/got\",\n \"maintainers\": [\n {\n \"name\": \"Sindre Sorhus\",\n \"email\": \"sindresorhus@gmail.com\",\n \"url\": \"sindresorhus.com\"\n },\n {\n \"name\": \"Vsevolod Strukchinsky\",\n \"email\": \"floatdrop@gmail.com\",\n \"url\": \"github.com/floatdrop\"\n }\n ],\n \"engines\": {\n \"node\": \">=4\"\n },\n \"browser\": {\n \"unzip-response\": false\n },\n \"scripts\": {\n \"test\": \"xo && nyc ava\",\n \"coveralls\": \"nyc report --reporter=text-lcov | coveralls\"\n },\n \"files\": [\n \"index.js\"\n ],\n \"keywords\": [\n \"http\",\n \"https\",\n \"get\",\n \"got\",\n \"url\",\n \"uri\",\n \"request\",\n \"util\",\n \"utility\",\n \"simple\",\n \"curl\",\n \"wget\",\n \"fetch\"\n ],\n \"dependencies\": {\n \"create-error-class\": \"^3.0.0\",\n \"duplexer3\": \"^0.1.4\",\n \"get-stream\": \"^3.0.0\",\n \"is-redirect\": \"^1.0.0\",\n \"is-retry-allowed\": \"^1.0.0\",\n \"is-stream\": \"^1.0.0\",\n \"lowercase-keys\": \"^1.0.0\",\n \"safe-buffer\": \"^5.0.1\",\n \"timed-out\": \"^4.0.0\",\n \"unzip-response\": \"^2.0.1\",\n \"url-parse-lax\": \"^1.0.0\"\n },\n \"devDependencies\": {\n \"ava\": \"^0.17.0\",\n \"coveralls\": \"^2.11.4\",\n \"form-data\": \"^2.1.1\",\n \"get-port\": \"^2.0.0\",\n \"into-stream\": \"^3.0.0\",\n \"nyc\": \"^10.0.0\",\n \"pem\": \"^1.4.4\",\n \"pify\": \"^2.3.0\",\n \"tempfile\": \"^1.1.1\",\n \"xo\": \"*\"\n },\n \"xo\": {\n \"esnext\": true\n },\n \"ava\": {\n \"concurrency\": 4\n }\n}\n","'use strict';\nconst dgram = require('dgram');\nconst dns = require('dns-socket');\nconst got = require('got');\nconst isIp = require('is-ip');\nconst pify = require('pify');\n\nconst defaults = {\n\ttimeout: 5000,\n\thttps: false\n};\n\nconst type = {\n\tv4: {\n\t\tdnsServer: '208.67.222.222',\n\t\tdnsQuestion: {\n\t\t\tname: 'myip.opendns.com',\n\t\t\ttype: 'A'\n\t\t},\n\t\thttpsUrl: 'https://ipv4.icanhazip.com/'\n\t},\n\tv6: {\n\t\tdnsServer: '2620:0:ccc::2',\n\t\tdnsQuestion: {\n\t\t\tname: 'myip.opendns.com',\n\t\t\ttype: 'AAAA'\n\t\t},\n\t\thttpsUrl: 'https://ipv6.icanhazip.com/'\n\t}\n};\n\nconst queryDns = (version, opts) => {\n\tconst data = type[version];\n\n\tconst socket = dns({\n\t\tretries: 0,\n\t\tsocket: dgram.createSocket(version === 'v6' ? 'udp6' : 'udp4'),\n\t\ttimeout: opts.timeout\n\t});\n\n\tconst promise = pify(socket.query.bind(socket))({\n\t\tquestions: [data.dnsQuestion]\n\t}, 53, data.dnsServer).then(res => {\n\t\tsocket.destroy();\n\t\tconst ip = ((res.answers[0] && res.answers[0].data) || '').trim();\n\n\t\tif (!ip || !isIp[version](ip)) {\n\t\t\tthrow new Error('Couldn\\'t find your IP');\n\t\t}\n\n\t\treturn ip;\n\t}).catch(err => {\n\t\tsocket.destroy();\n\t\tthrow err;\n\t});\n\n\tpromise.cancel = () => {\n\t\tsocket.cancel();\n\t};\n\n\treturn promise;\n};\n\nconst queryHttps = (version, opts) => {\n\tconst gotOpts = {\n\t\tfamily: version === 'v6' ? 6 : 4,\n\t\tretries: 0,\n\t\ttimeout: opts.timeout\n\t};\n\n\tconst gotPromise = got(type[version].httpsUrl, gotOpts);\n\n\tconst promise = gotPromise.then(res => {\n\t\tconst ip = (res.body || '').trim();\n\n\t\tif (!ip) {\n\t\t\tthrow new Error('Couldn\\'t find your IP');\n\t\t}\n\n\t\treturn ip;\n\t}).catch(err => {\n\t\t// Don't throw a cancellation error for consistency with DNS\n\t\tif (!(err instanceof got.CancelError)) {\n\t\t\tthrow err;\n\t\t}\n\t});\n\n\tpromise.cancel = gotPromise.cancel;\n\n\treturn promise;\n};\n\nmodule.exports.v4 = opts => {\n\topts = Object.assign({}, defaults, opts);\n\n\tif (opts.https) {\n\t\treturn queryHttps('v4', opts);\n\t}\n\n\treturn queryDns('v4', opts);\n};\n\nmodule.exports.v6 = opts => {\n\topts = Object.assign({}, defaults, opts);\n\n\tif (opts.https) {\n\t\treturn queryHttps('v6', opts);\n\t}\n\n\treturn queryDns('v6', opts);\n};\n","exports.toString = function (type) {\n switch (type) {\n case 1: return 'A'\n case 10: return 'NULL'\n case 28: return 'AAAA'\n case 18: return 'AFSDB'\n case 42: return 'APL'\n case 257: return 'CAA'\n case 60: return 'CDNSKEY'\n case 59: return 'CDS'\n case 37: return 'CERT'\n case 5: return 'CNAME'\n case 49: return 'DHCID'\n case 32769: return 'DLV'\n case 39: return 'DNAME'\n case 48: return 'DNSKEY'\n case 43: return 'DS'\n case 55: return 'HIP'\n case 13: return 'HINFO'\n case 45: return 'IPSECKEY'\n case 25: return 'KEY'\n case 36: return 'KX'\n case 29: return 'LOC'\n case 15: return 'MX'\n case 35: return 'NAPTR'\n case 2: return 'NS'\n case 47: return 'NSEC'\n case 50: return 'NSEC3'\n case 51: return 'NSEC3PARAM'\n case 12: return 'PTR'\n case 46: return 'RRSIG'\n case 17: return 'RP'\n case 24: return 'SIG'\n case 6: return 'SOA'\n case 99: return 'SPF'\n case 33: return 'SRV'\n case 44: return 'SSHFP'\n case 32768: return 'TA'\n case 249: return 'TKEY'\n case 52: return 'TLSA'\n case 250: return 'TSIG'\n case 16: return 'TXT'\n case 252: return 'AXFR'\n case 251: return 'IXFR'\n case 41: return 'OPT'\n case 255: return 'ANY'\n }\n return 'UNKNOWN_' + type\n}\n\nexports.toType = function (name) {\n switch (name.toUpperCase()) {\n case 'A': return 1\n case 'NULL': return 10\n case 'AAAA': return 28\n case 'AFSDB': return 18\n case 'APL': return 42\n case 'CAA': return 257\n case 'CDNSKEY': return 60\n case 'CDS': return 59\n case 'CERT': return 37\n case 'CNAME': return 5\n case 'DHCID': return 49\n case 'DLV': return 32769\n case 'DNAME': return 39\n case 'DNSKEY': return 48\n case 'DS': return 43\n case 'HIP': return 55\n case 'HINFO': return 13\n case 'IPSECKEY': return 45\n case 'KEY': return 25\n case 'KX': return 36\n case 'LOC': return 29\n case 'MX': return 15\n case 'NAPTR': return 35\n case 'NS': return 2\n case 'NSEC': return 47\n case 'NSEC3': return 50\n case 'NSEC3PARAM': return 51\n case 'PTR': return 12\n case 'RRSIG': return 46\n case 'RP': return 17\n case 'SIG': return 24\n case 'SOA': return 6\n case 'SPF': return 99\n case 'SRV': return 33\n case 'SSHFP': return 44\n case 'TA': return 32768\n case 'TKEY': return 249\n case 'TLSA': return 52\n case 'TSIG': return 250\n case 'TXT': return 16\n case 'AXFR': return 252\n case 'IXFR': return 251\n case 'OPT': return 41\n case 'ANY': return 255\n case '*': return 255\n }\n return 0\n}\n","/*\n * Traditional DNS header RCODEs (4-bits) defined by IANA in\n * https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml\n */\n\nexports.toString = function (rcode) {\n switch (rcode) {\n case 0: return 'NOERROR'\n case 1: return 'FORMERR'\n case 2: return 'SERVFAIL'\n case 3: return 'NXDOMAIN'\n case 4: return 'NOTIMP'\n case 5: return 'REFUSED'\n case 6: return 'YXDOMAIN'\n case 7: return 'YXRRSET'\n case 8: return 'NXRRSET'\n case 9: return 'NOTAUTH'\n case 10: return 'NOTZONE'\n case 11: return 'RCODE_11'\n case 12: return 'RCODE_12'\n case 13: return 'RCODE_13'\n case 14: return 'RCODE_14'\n case 15: return 'RCODE_15'\n }\n return 'RCODE_' + rcode\n}\n\nexports.toRcode = function (code) {\n switch (code.toUpperCase()) {\n case 'NOERROR': return 0\n case 'FORMERR': return 1\n case 'SERVFAIL': return 2\n case 'NXDOMAIN': return 3\n case 'NOTIMP': return 4\n case 'REFUSED': return 5\n case 'YXDOMAIN': return 6\n case 'YXRRSET': return 7\n case 'NXRRSET': return 8\n case 'NOTAUTH': return 9\n case 'NOTZONE': return 10\n case 'RCODE_11': return 11\n case 'RCODE_12': return 12\n case 'RCODE_13': return 13\n case 'RCODE_14': return 14\n case 'RCODE_15': return 15\n }\n return 0\n}\n","/*\n * Traditional DNS header OPCODEs (4-bits) defined by IANA in\n * https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-5\n */\n\nexports.toString = function (opcode) {\n switch (opcode) {\n case 0: return 'QUERY'\n case 1: return 'IQUERY'\n case 2: return 'STATUS'\n case 3: return 'OPCODE_3'\n case 4: return 'NOTIFY'\n case 5: return 'UPDATE'\n case 6: return 'OPCODE_6'\n case 7: return 'OPCODE_7'\n case 8: return 'OPCODE_8'\n case 9: return 'OPCODE_9'\n case 10: return 'OPCODE_10'\n case 11: return 'OPCODE_11'\n case 12: return 'OPCODE_12'\n case 13: return 'OPCODE_13'\n case 14: return 'OPCODE_14'\n case 15: return 'OPCODE_15'\n }\n return 'OPCODE_' + opcode\n}\n\nexports.toOpcode = function (code) {\n switch (code.toUpperCase()) {\n case 'QUERY': return 0\n case 'IQUERY': return 1\n case 'STATUS': return 2\n case 'OPCODE_3': return 3\n case 'NOTIFY': return 4\n case 'UPDATE': return 5\n case 'OPCODE_6': return 6\n case 'OPCODE_7': return 7\n case 'OPCODE_8': return 8\n case 'OPCODE_9': return 9\n case 'OPCODE_10': return 10\n case 'OPCODE_11': return 11\n case 'OPCODE_12': return 12\n case 'OPCODE_13': return 13\n case 'OPCODE_14': return 14\n case 'OPCODE_15': return 15\n }\n return 0\n}\n","'use strict';\nmodule.exports = function (str) {\n\treturn encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n\t\treturn '%' + c.charCodeAt(0).toString(16).toUpperCase();\n\t});\n};\n","'use strict';\nmodule.exports = (url, opts) => {\n\tif (typeof url !== 'string') {\n\t\tthrow new TypeError(`Expected \\`url\\` to be of type \\`string\\`, got \\`${typeof url}\\``);\n\t}\n\n\turl = url.trim();\n\topts = Object.assign({https: false}, opts);\n\n\tif (/^\\.*\\/|^(?!localhost)\\w+:/.test(url)) {\n\t\treturn url;\n\t}\n\n\treturn url.replace(/^(?!(?:\\w+:)?\\/\\/)/, opts.https ? 'https://' : 'http://');\n};\n","'use strict';\nvar toString = Object.prototype.toString;\n\nmodule.exports = function (x) {\n\tvar prototype;\n\treturn toString.call(x) === '[object Object]' && (prototype = Object.getPrototypeOf(x), prototype === null || prototype === Object.getPrototypeOf({}));\n};\n","'use strict';\nconst isPlainObj = require('is-plain-obj');\n\nmodule.exports = (obj, opts) => {\n\tif (!isPlainObj(obj)) {\n\t\tthrow new TypeError('Expected a plain object');\n\t}\n\n\topts = opts || {};\n\n\t// DEPRECATED\n\tif (typeof opts === 'function') {\n\t\tthrow new TypeError('Specify the compare function as an option instead');\n\t}\n\n\tconst deep = opts.deep;\n\tconst seenInput = [];\n\tconst seenOutput = [];\n\n\tconst sortKeys = x => {\n\t\tconst seenIndex = seenInput.indexOf(x);\n\n\t\tif (seenIndex !== -1) {\n\t\t\treturn seenOutput[seenIndex];\n\t\t}\n\n\t\tconst ret = {};\n\t\tconst keys = Object.keys(x).sort(opts.compare);\n\n\t\tseenInput.push(x);\n\t\tseenOutput.push(ret);\n\n\t\tfor (let i = 0; i < keys.length; i++) {\n\t\t\tconst key = keys[i];\n\t\t\tconst val = x[key];\n\n\t\t\tif (deep && Array.isArray(val)) {\n\t\t\t\tconst retArr = [];\n\n\t\t\t\tfor (let j = 0; j < val.length; j++) {\n\t\t\t\t\tretArr[j] = isPlainObj(val[j]) ? sortKeys(val[j]) : val[j];\n\t\t\t\t}\n\n\t\t\t\tret[key] = retArr;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tret[key] = deep && isPlainObj(val) ? sortKeys(val) : val;\n\t\t}\n\n\t\treturn ret;\n\t};\n\n\treturn sortKeys(obj);\n};\n","'use strict';\n\nconst Readable = require('stream').Readable;\nconst lowercaseKeys = require('lowercase-keys');\n\nclass Response extends Readable {\n\tconstructor(statusCode, headers, body, url) {\n\t\tif (typeof statusCode !== 'number') {\n\t\t\tthrow new TypeError('Argument `statusCode` should be a number');\n\t\t}\n\t\tif (typeof headers !== 'object') {\n\t\t\tthrow new TypeError('Argument `headers` should be an object');\n\t\t}\n\t\tif (!(body instanceof Buffer)) {\n\t\t\tthrow new TypeError('Argument `body` should be a buffer');\n\t\t}\n\t\tif (typeof url !== 'string') {\n\t\t\tthrow new TypeError('Argument `url` should be a string');\n\t\t}\n\n\t\tsuper();\n\t\tthis.statusCode = statusCode;\n\t\tthis.headers = lowercaseKeys(headers);\n\t\tthis.body = body;\n\t\tthis.url = url;\n\t}\n\n\t_read() {\n\t\tthis.push(this.body);\n\t\tthis.push(null);\n\t}\n}\n\nmodule.exports = Response;\n","'use strict';\nmodule.exports = function (obj) {\n\tvar ret = {};\n\tvar keys = Object.keys(Object(obj));\n\n\tfor (var i = 0; i < keys.length; i++) {\n\t\tret[keys[i].toLowerCase()] = obj[keys[i]];\n\t}\n\n\treturn ret;\n};\n","'use strict';\n\nconst PassThrough = require('stream').PassThrough;\nconst mimicResponse = require('mimic-response');\n\nconst cloneResponse = response => {\n\tif (!(response && response.pipe)) {\n\t\tthrow new TypeError('Parameter `response` must be a response stream.');\n\t}\n\n\tconst clone = new PassThrough();\n\tmimicResponse(response, clone);\n\n\treturn response.pipe(clone);\n};\n\nmodule.exports = cloneResponse;\n","'use strict';\n\n// We define these manually to ensure they're always copied\n// even if they would move up the prototype chain\n// https://nodejs.org/api/http.html#http_class_http_incomingmessage\nconst knownProps = [\n\t'destroy',\n\t'setTimeout',\n\t'socket',\n\t'headers',\n\t'trailers',\n\t'rawHeaders',\n\t'statusCode',\n\t'httpVersion',\n\t'httpVersionMinor',\n\t'httpVersionMajor',\n\t'rawTrailers',\n\t'statusMessage'\n];\n\nmodule.exports = (fromStream, toStream) => {\n\tconst fromProps = new Set(Object.keys(fromStream).concat(knownProps));\n\n\tfor (const prop of fromProps) {\n\t\t// Don't overwrite existing properties\n\t\tif (prop in toStream) {\n\t\t\tcontinue;\n\t\t}\n\n\t\ttoStream[prop] = typeof fromStream[prop] === 'function' ? fromStream[prop].bind(fromStream) : fromStream[prop];\n\t}\n};\n","//TODO: handle reviver/dehydrate function like normal\n//and handle indentation, like normal.\n//if anyone needs this... please send pull request.\n\nexports.stringify = function stringify (o) {\n if('undefined' == typeof o) return o\n\n if(o && Buffer.isBuffer(o))\n return JSON.stringify(':base64:' + o.toString('base64'))\n\n if(o && o.toJSON)\n o = o.toJSON()\n\n if(o && 'object' === typeof o) {\n var s = ''\n var array = Array.isArray(o)\n s = array ? '[' : '{'\n var first = true\n\n for(var k in o) {\n var ignore = 'function' == typeof o[k] || (!array && 'undefined' === typeof o[k])\n if(Object.hasOwnProperty.call(o, k) && !ignore) {\n if(!first)\n s += ','\n first = false\n if (array) {\n if(o[k] == undefined)\n s += 'null'\n else\n s += stringify(o[k])\n } else if (o[k] !== void(0)) {\n s += stringify(k) + ':' + stringify(o[k])\n }\n }\n }\n\n s += array ? ']' : '}'\n\n return s\n } else if ('string' === typeof o) {\n return JSON.stringify(/^:/.test(o) ? ':' + o : o)\n } else if ('undefined' === typeof o) {\n return 'null';\n } else\n return JSON.stringify(o)\n}\n\nexports.parse = function (s) {\n return JSON.parse(s, function (key, value) {\n if('string' === typeof value) {\n if(/^:base64:/.test(value))\n return new Buffer(value.substring(8), 'base64')\n else\n return /^:/.test(value) ? value.substring(1) : value \n }\n return value\n })\n}\n","'use strict';\n\nconst EventEmitter = require('events');\nconst JSONB = require('json-buffer');\n\nconst loadStore = opts => {\n\tconst adapters = {\n\t\tredis: '@keyv/redis',\n\t\tmongodb: '@keyv/mongo',\n\t\tmongo: '@keyv/mongo',\n\t\tsqlite: '@keyv/sqlite',\n\t\tpostgresql: '@keyv/postgres',\n\t\tpostgres: '@keyv/postgres',\n\t\tmysql: '@keyv/mysql'\n\t};\n\tif (opts.adapter || opts.uri) {\n\t\tconst adapter = opts.adapter || /^[^:]*/.exec(opts.uri)[0];\n\t\treturn new (require(adapters[adapter]))(opts);\n\t}\n\treturn new Map();\n};\n\nclass Keyv extends EventEmitter {\n\tconstructor(uri, opts) {\n\t\tsuper();\n\t\tthis.opts = Object.assign(\n\t\t\t{ namespace: 'keyv' },\n\t\t\t(typeof uri === 'string') ? { uri } : uri,\n\t\t\topts\n\t\t);\n\n\t\tif (!this.opts.store) {\n\t\t\tconst adapterOpts = Object.assign({}, this.opts);\n\t\t\tthis.opts.store = loadStore(adapterOpts);\n\t\t}\n\n\t\tif (typeof this.opts.store.on === 'function') {\n\t\t\tthis.opts.store.on('error', err => this.emit('error', err));\n\t\t}\n\n\t\tthis.opts.store.namespace = this.opts.namespace;\n\t}\n\n\t_getKeyPrefix(key) {\n\t\treturn `${this.opts.namespace}:${key}`;\n\t}\n\n\tget(key) {\n\t\tkey = this._getKeyPrefix(key);\n\t\tconst store = this.opts.store;\n\t\treturn Promise.resolve()\n\t\t\t.then(() => store.get(key))\n\t\t\t.then(data => {\n\t\t\t\tdata = (typeof data === 'string') ? JSONB.parse(data) : data;\n\t\t\t\tif (data === undefined) {\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tif (typeof data.expires === 'number' && Date.now() > data.expires) {\n\t\t\t\t\tthis.delete(key);\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\treturn data.value;\n\t\t\t});\n\t}\n\n\tset(key, value, ttl) {\n\t\tkey = this._getKeyPrefix(key);\n\t\tif (typeof ttl === 'undefined') {\n\t\t\tttl = this.opts.ttl;\n\t\t}\n\t\tif (ttl === 0) {\n\t\t\tttl = undefined;\n\t\t}\n\t\tconst store = this.opts.store;\n\n\t\treturn Promise.resolve()\n\t\t\t.then(() => {\n\t\t\t\tconst expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null;\n\t\t\t\tvalue = { value, expires };\n\t\t\t\treturn store.set(key, JSONB.stringify(value), ttl);\n\t\t\t})\n\t\t\t.then(() => true);\n\t}\n\n\tdelete(key) {\n\t\tkey = this._getKeyPrefix(key);\n\t\tconst store = this.opts.store;\n\t\treturn Promise.resolve()\n\t\t\t.then(() => store.delete(key));\n\t}\n\n\tclear() {\n\t\tconst store = this.opts.store;\n\t\treturn Promise.resolve()\n\t\t\t.then(() => store.clear());\n\t}\n}\n\nmodule.exports = Keyv;\n","'use strict';\n\nconst EventEmitter = require('events');\nconst urlLib = require('url');\nconst normalizeUrl = require('normalize-url');\nconst getStream = require('get-stream');\nconst CachePolicy = require('http-cache-semantics');\nconst Response = require('responselike');\nconst lowercaseKeys = require('lowercase-keys');\nconst cloneResponse = require('clone-response');\nconst Keyv = require('keyv');\n\nclass CacheableRequest {\n\tconstructor(request, cacheAdapter) {\n\t\tif (typeof request !== 'function') {\n\t\t\tthrow new TypeError('Parameter `request` must be a function');\n\t\t}\n\n\t\tthis.cache = new Keyv({\n\t\t\turi: typeof cacheAdapter === 'string' && cacheAdapter,\n\t\t\tstore: typeof cacheAdapter !== 'string' && cacheAdapter,\n\t\t\tnamespace: 'cacheable-request'\n\t\t});\n\n\t\treturn this.createCacheableRequest(request);\n\t}\n\n\tcreateCacheableRequest(request) {\n\t\treturn (opts, cb) => {\n\t\t\tif (typeof opts === 'string') {\n\t\t\t\topts = urlLib.parse(opts);\n\t\t\t}\n\t\t\topts = Object.assign({\n\t\t\t\theaders: {},\n\t\t\t\tmethod: 'GET',\n\t\t\t\tcache: true,\n\t\t\t\tstrictTtl: false,\n\t\t\t\tautomaticFailover: false\n\t\t\t}, opts);\n\t\t\topts.headers = lowercaseKeys(opts.headers);\n\n\t\t\tconst ee = new EventEmitter();\n\t\t\tconst url = normalizeUrl(urlLib.format(opts));\n\t\t\tconst key = `${opts.method}:${url}`;\n\t\t\tlet revalidate = false;\n\t\t\tlet madeRequest = false;\n\n\t\t\tconst makeRequest = opts => {\n\t\t\t\tmadeRequest = true;\n\t\t\t\tconst handler = response => {\n\t\t\t\t\tif (revalidate) {\n\t\t\t\t\t\tconst revalidatedPolicy = CachePolicy.fromObject(revalidate.cachePolicy).revalidatedPolicy(opts, response);\n\t\t\t\t\t\tif (!revalidatedPolicy.modified) {\n\t\t\t\t\t\t\tconst headers = revalidatedPolicy.policy.responseHeaders();\n\t\t\t\t\t\t\tresponse = new Response(response.statusCode, headers, revalidate.body, revalidate.url);\n\t\t\t\t\t\t\tresponse.cachePolicy = revalidatedPolicy.policy;\n\t\t\t\t\t\t\tresponse.fromCache = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!response.fromCache) {\n\t\t\t\t\t\tresponse.cachePolicy = new CachePolicy(opts, response);\n\t\t\t\t\t\tresponse.fromCache = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tlet clonedResponse;\n\t\t\t\t\tif (opts.cache && response.cachePolicy.storable()) {\n\t\t\t\t\t\tclonedResponse = cloneResponse(response);\n\t\t\t\t\t\tgetStream.buffer(response)\n\t\t\t\t\t\t\t.then(body => {\n\t\t\t\t\t\t\t\tconst value = {\n\t\t\t\t\t\t\t\t\tcachePolicy: response.cachePolicy.toObject(),\n\t\t\t\t\t\t\t\t\turl: response.url,\n\t\t\t\t\t\t\t\t\tstatusCode: response.fromCache ? revalidate.statusCode : response.statusCode,\n\t\t\t\t\t\t\t\t\tbody\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tconst ttl = opts.strictTtl ? response.cachePolicy.timeToLive() : undefined;\n\t\t\t\t\t\t\t\treturn this.cache.set(key, value, ttl);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.catch(err => ee.emit('error', new CacheableRequest.CacheError(err)));\n\t\t\t\t\t} else if (opts.cache && revalidate) {\n\t\t\t\t\t\tthis.cache.delete(key)\n\t\t\t\t\t\t\t.catch(err => ee.emit('error', new CacheableRequest.CacheError(err)));\n\t\t\t\t\t}\n\n\t\t\t\t\tee.emit('response', clonedResponse || response);\n\t\t\t\t\tif (typeof cb === 'function') {\n\t\t\t\t\t\tcb(clonedResponse || response);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\ttry {\n\t\t\t\t\tconst req = request(opts, handler);\n\t\t\t\t\tee.emit('request', req);\n\t\t\t\t} catch (err) {\n\t\t\t\t\tee.emit('error', new CacheableRequest.RequestError(err));\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tconst get = opts => Promise.resolve()\n\t\t\t\t.then(() => opts.cache ? this.cache.get(key) : undefined)\n\t\t\t\t.then(cacheEntry => {\n\t\t\t\t\tif (typeof cacheEntry === 'undefined') {\n\t\t\t\t\t\treturn makeRequest(opts);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst policy = CachePolicy.fromObject(cacheEntry.cachePolicy);\n\t\t\t\t\tif (policy.satisfiesWithoutRevalidation(opts)) {\n\t\t\t\t\t\tconst headers = policy.responseHeaders();\n\t\t\t\t\t\tconst response = new Response(cacheEntry.statusCode, headers, cacheEntry.body, cacheEntry.url);\n\t\t\t\t\t\tresponse.cachePolicy = policy;\n\t\t\t\t\t\tresponse.fromCache = true;\n\n\t\t\t\t\t\tee.emit('response', response);\n\t\t\t\t\t\tif (typeof cb === 'function') {\n\t\t\t\t\t\t\tcb(response);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\trevalidate = cacheEntry;\n\t\t\t\t\t\topts.headers = policy.revalidationHeaders(opts);\n\t\t\t\t\t\tmakeRequest(opts);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\tthis.cache.on('error', err => ee.emit('error', new CacheableRequest.CacheError(err)));\n\n\t\t\tget(opts).catch(err => {\n\t\t\t\tif (opts.automaticFailover && !madeRequest) {\n\t\t\t\t\tmakeRequest(opts);\n\t\t\t\t}\n\t\t\t\tee.emit('error', new CacheableRequest.CacheError(err));\n\t\t\t});\n\n\t\t\treturn ee;\n\t\t};\n\t}\n}\n\nCacheableRequest.RequestError = class extends Error {\n\tconstructor(err) {\n\t\tsuper(err.message);\n\t\tthis.name = 'RequestError';\n\t\tObject.assign(this, err);\n\t}\n};\n\nCacheableRequest.CacheError = class extends Error {\n\tconstructor(err) {\n\t\tsuper(err.message);\n\t\tthis.name = 'CacheError';\n\t\tObject.assign(this, err);\n\t}\n};\n\nmodule.exports = CacheableRequest;\n","'use strict';\nmodule.exports = x => (\n\tx instanceof Promise ||\n\t(\n\t\tx !== null &&\n\t\ttypeof x === 'object' &&\n\t\ttypeof x.then === 'function' &&\n\t\ttypeof x.catch === 'function'\n\t)\n);\n","'use strict';\nconst from = require('from2');\nconst pIsPromise = require('p-is-promise');\n\nmodule.exports = x => {\n\tif (Array.isArray(x)) {\n\t\tx = x.slice();\n\t}\n\n\tlet promise;\n\tlet iterator;\n\n\tprepare(x);\n\n\tfunction prepare(value) {\n\t\tx = value;\n\t\tpromise = pIsPromise(x) ? x : null;\n\t\t// we don't iterate on strings and buffers since slicing them is ~7x faster\n\t\tconst shouldIterate = !promise && x[Symbol.iterator] && typeof x !== 'string' && !Buffer.isBuffer(x);\n\t\titerator = shouldIterate ? x[Symbol.iterator]() : null;\n\t}\n\n\treturn from(function reader(size, cb) {\n\t\tif (promise) {\n\t\t\tpromise.then(prepare).then(() => reader.call(this, size, cb), cb);\n\t\t\treturn;\n\t\t}\n\n\t\tif (iterator) {\n\t\t\tconst obj = iterator.next();\n\t\t\tsetImmediate(cb, null, obj.done ? null : obj.value);\n\t\t\treturn;\n\t\t}\n\n\t\tif (x.length === 0) {\n\t\t\tsetImmediate(cb, null, null);\n\t\t\treturn;\n\t\t}\n\n\t\tconst chunk = x.slice(0, size);\n\t\tx = x.slice(size);\n\n\t\tsetImmediate(cb, null, chunk);\n\t});\n};\n\nmodule.exports.obj = x => {\n\tif (Array.isArray(x)) {\n\t\tx = x.slice();\n\t}\n\n\tlet promise;\n\tlet iterator;\n\n\tprepare(x);\n\n\tfunction prepare(value) {\n\t\tx = value;\n\t\tpromise = pIsPromise(x) ? x : null;\n\t\titerator = !promise && x[Symbol.iterator] ? x[Symbol.iterator]() : null;\n\t}\n\n\treturn from.obj(function reader(size, cb) {\n\t\tif (promise) {\n\t\t\tpromise.then(prepare).then(() => reader.call(this, size, cb), cb);\n\t\t\treturn;\n\t\t}\n\n\t\tif (iterator) {\n\t\t\tconst obj = iterator.next();\n\t\t\tsetImmediate(cb, null, obj.done ? null : obj.value);\n\t\t\treturn;\n\t\t}\n\n\t\tthis.push(x);\n\n\t\tsetImmediate(cb, null, null);\n\t});\n};\n","'use strict';\nconst url = require('url');\nconst prependHttp = require('prepend-http');\n\nmodule.exports = (input, options) => {\n\tif (typeof input !== 'string') {\n\t\tthrow new TypeError(`Expected \\`url\\` to be of type \\`string\\`, got \\`${typeof input}\\` instead.`);\n\t}\n\n\tconst finalUrl = prependHttp(input, Object.assign({https: true}, options));\n\treturn url.parse(finalUrl);\n};\n","'use strict';\n\n\n\n// Copied from https://github.com/nodejs/node/blob/master/lib/internal/url.js\n\nfunction urlToOptions(url) {\n var options = {\n protocol: url.protocol,\n hostname: url.hostname,\n hash: url.hash,\n search: url.search,\n pathname: url.pathname,\n path: `${url.pathname}${url.search}`,\n href: url.href\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = `${url.username}:${url.password}`;\n }\n return options;\n}\n\n\n\nmodule.exports = urlToOptions;\n","'use strict';\nconst PassThrough = require('stream').PassThrough;\nconst zlib = require('zlib');\nconst mimicResponse = require('mimic-response');\n\nmodule.exports = response => {\n\t// TODO: Use Array#includes when targeting Node.js 6\n\tif (['gzip', 'deflate'].indexOf(response.headers['content-encoding']) === -1) {\n\t\treturn response;\n\t}\n\n\tconst unzip = zlib.createUnzip();\n\tconst stream = new PassThrough();\n\n\tmimicResponse(response, stream);\n\n\tunzip.on('error', err => {\n\t\tif (err.code === 'Z_BUF_ERROR') {\n\t\t\tstream.end();\n\t\t\treturn;\n\t\t}\n\n\t\tstream.emit('error', err);\n\t});\n\n\tresponse.pipe(unzip).pipe(stream);\n\n\treturn stream;\n};\n","/**\n * @file Tests if ES6 @@toStringTag is supported.\n * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag|26.3.1 @@toStringTag}\n * @version 1.4.1\n * @author Xotic750 \n * @copyright Xotic750\n * @license {@link MIT}\n * @module has-to-string-tag-x\n */\n\n'use strict';\n\n/**\n * Indicates if `Symbol.toStringTag`exists and is the correct type.\n * `true`, if it exists and is the correct type, otherwise `false`.\n *\n * @type boolean\n */\nmodule.exports = require('has-symbol-support-x') && typeof Symbol.toStringTag === 'symbol';\n","'use strict';\n\nmodule.exports = function isObject(x) {\n\treturn typeof x === 'object' && x !== null;\n};\n","\"use strict\";\nconst hasToStringTag = require(\"has-to-string-tag-x\");\nconst isObject = require(\"is-object\");\n\nconst toString = Object.prototype.toString;\nconst urlClass = \"[object URL]\";\n\nconst hash = \"hash\";\nconst host = \"host\";\nconst hostname = \"hostname\";\nconst href = \"href\";\nconst password = \"password\";\nconst pathname = \"pathname\";\nconst port = \"port\";\nconst protocol = \"protocol\";\nconst search = \"search\";\nconst username = \"username\";\n\n\n\nconst isURL = (url, supportIncomplete/*=false*/) =>\n{\n\tif (!isObject(url)) return false;\n\n\t// Native implementation in older browsers\n\tif (!hasToStringTag && toString.call(url) === urlClass) return true;\n\n\tif (!(href in url)) return false;\n\tif (!(protocol in url)) return false;\n\tif (!(username in url)) return false;\n\tif (!(password in url)) return false;\n\tif (!(hostname in url)) return false;\n\tif (!(port in url)) return false;\n\tif (!(host in url)) return false;\n\tif (!(pathname in url)) return false;\n\tif (!(search in url)) return false;\n\tif (!(hash in url)) return false;\n\n\tif (supportIncomplete !== true)\n\t{\n\t\tif (!isObject(url.searchParams)) return false;\n\n\t\t// TODO :: write a separate isURLSearchParams ?\n\t}\n\n\treturn true;\n}\n\n\n\nisURL.lenient = url =>\n{\n\treturn isURL(url, true);\n};\n\n\n\nmodule.exports = isURL;\n","'use strict';\n\nclass CancelError extends Error {\n\tconstructor() {\n\t\tsuper('Promise was canceled');\n\t\tthis.name = 'CancelError';\n\t}\n\n\tget isCanceled() {\n\t\treturn true;\n\t}\n}\n\nclass PCancelable {\n\tstatic fn(userFn) {\n\t\treturn function () {\n\t\t\tconst args = [].slice.apply(arguments);\n\t\t\treturn new PCancelable((resolve, reject, onCancel) => {\n\t\t\t\targs.push(onCancel);\n\t\t\t\tuserFn.apply(null, args).then(resolve, reject);\n\t\t\t});\n\t\t};\n\t}\n\n\tconstructor(executor) {\n\t\tthis._cancelHandlers = [];\n\t\tthis._isPending = true;\n\t\tthis._isCanceled = false;\n\n\t\tthis._promise = new Promise((resolve, reject) => {\n\t\t\tthis._reject = reject;\n\n\t\t\treturn executor(\n\t\t\t\tvalue => {\n\t\t\t\t\tthis._isPending = false;\n\t\t\t\t\tresolve(value);\n\t\t\t\t},\n\t\t\t\terror => {\n\t\t\t\t\tthis._isPending = false;\n\t\t\t\t\treject(error);\n\t\t\t\t},\n\t\t\t\thandler => {\n\t\t\t\t\tthis._cancelHandlers.push(handler);\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\tthen(onFulfilled, onRejected) {\n\t\treturn this._promise.then(onFulfilled, onRejected);\n\t}\n\n\tcatch(onRejected) {\n\t\treturn this._promise.catch(onRejected);\n\t}\n\n\tfinally(onFinally) {\n\t\treturn this._promise.finally(onFinally);\n\t}\n\n\tcancel() {\n\t\tif (!this._isPending || this._isCanceled) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cancelHandlers.length > 0) {\n\t\t\ttry {\n\t\t\t\tfor (const handler of this._cancelHandlers) {\n\t\t\t\t\thandler();\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\tthis._reject(err);\n\t\t\t}\n\t\t}\n\n\t\tthis._isCanceled = true;\n\t\tthis._reject(new CancelError());\n\t}\n\n\tget isCanceled() {\n\t\treturn this._isCanceled;\n\t}\n}\n\nObject.setPrototypeOf(PCancelable.prototype, Promise.prototype);\n\nmodule.exports = PCancelable;\nmodule.exports.CancelError = CancelError;\n","'use strict';\nmodule.exports = (promise, onFinally) => {\n\tonFinally = onFinally || (() => {});\n\n\treturn promise.then(\n\t\tval => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => val),\n\t\terr => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => {\n\t\t\tthrow err;\n\t\t})\n\t);\n};\n","'use strict';\nconst pFinally = require('p-finally');\n\nclass TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\nmodule.exports = (promise, ms, fallback) => new Promise((resolve, reject) => {\n\tif (typeof ms !== 'number' || ms < 0) {\n\t\tthrow new TypeError('Expected `ms` to be a positive number');\n\t}\n\n\tconst timer = setTimeout(() => {\n\t\tif (typeof fallback === 'function') {\n\t\t\ttry {\n\t\t\t\tresolve(fallback());\n\t\t\t} catch (err) {\n\t\t\t\treject(err);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst message = typeof fallback === 'string' ? fallback : `Promise timed out after ${ms} milliseconds`;\n\t\tconst err = fallback instanceof Error ? fallback : new TimeoutError(message);\n\n\t\tif (typeof promise.cancel === 'function') {\n\t\t\tpromise.cancel();\n\t\t}\n\n\t\treject(err);\n\t}, ms);\n\n\tpFinally(\n\t\tpromise.then(resolve, reject),\n\t\t() => {\n\t\t\tclearTimeout(timer);\n\t\t}\n\t);\n});\n\nmodule.exports.TimeoutError = TimeoutError;\n","'use strict';\n\nconst processFn = (fn, opts) => function () {\n\tconst P = opts.promiseModule;\n\tconst args = new Array(arguments.length);\n\n\tfor (let i = 0; i < arguments.length; i++) {\n\t\targs[i] = arguments[i];\n\t}\n\n\treturn new P((resolve, reject) => {\n\t\tif (opts.errorFirst) {\n\t\t\targs.push(function (err, result) {\n\t\t\t\tif (opts.multiArgs) {\n\t\t\t\t\tconst results = new Array(arguments.length - 1);\n\n\t\t\t\t\tfor (let i = 1; i < arguments.length; i++) {\n\t\t\t\t\t\tresults[i - 1] = arguments[i];\n\t\t\t\t\t}\n\n\t\t\t\t\tif (err) {\n\t\t\t\t\t\tresults.unshift(err);\n\t\t\t\t\t\treject(results);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresolve(results);\n\t\t\t\t\t}\n\t\t\t\t} else if (err) {\n\t\t\t\t\treject(err);\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\targs.push(function (result) {\n\t\t\t\tif (opts.multiArgs) {\n\t\t\t\t\tconst results = new Array(arguments.length - 1);\n\n\t\t\t\t\tfor (let i = 0; i < arguments.length; i++) {\n\t\t\t\t\t\tresults[i] = arguments[i];\n\t\t\t\t\t}\n\n\t\t\t\t\tresolve(results);\n\t\t\t\t} else {\n\t\t\t\t\tresolve(result);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tfn.apply(this, args);\n\t});\n};\n\nmodule.exports = (obj, opts) => {\n\topts = Object.assign({\n\t\texclude: [/.+(Sync|Stream)$/],\n\t\terrorFirst: true,\n\t\tpromiseModule: Promise\n\t}, opts);\n\n\tconst filter = key => {\n\t\tconst match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key);\n\t\treturn opts.include ? opts.include.some(match) : !opts.exclude.some(match);\n\t};\n\n\tlet ret;\n\tif (typeof obj === 'function') {\n\t\tret = function () {\n\t\t\tif (opts.excludeMain) {\n\t\t\t\treturn obj.apply(this, arguments);\n\t\t\t}\n\n\t\t\treturn processFn(obj, opts).apply(this, arguments);\n\t\t};\n\t} else {\n\t\tret = Object.create(Object.getPrototypeOf(obj));\n\t}\n\n\tfor (const key in obj) { // eslint-disable-line guard-for-in\n\t\tconst x = obj[key];\n\t\tret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x;\n\t}\n\n\treturn ret;\n};\n","{\n\t\"name\": \"got\",\n\t\"version\": \"8.3.2\",\n\t\"description\": \"Simplified HTTP requests\",\n\t\"license\": \"MIT\",\n\t\"repository\": \"sindresorhus/got\",\n\t\"maintainers\": [\n\t\t{\n\t\t\t\"name\": \"Sindre Sorhus\",\n\t\t\t\"email\": \"sindresorhus@gmail.com\",\n\t\t\t\"url\": \"sindresorhus.com\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Vsevolod Strukchinsky\",\n\t\t\t\"email\": \"floatdrop@gmail.com\",\n\t\t\t\"url\": \"github.com/floatdrop\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Alexander Tesfamichael\",\n\t\t\t\"email\": \"alex.tesfamichael@gmail.com\",\n\t\t\t\"url\": \"alextes.me\"\n\t\t}\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=4\"\n\t},\n\t\"scripts\": {\n\t\t\"test\": \"xo && nyc ava\",\n\t\t\"coveralls\": \"nyc report --reporter=text-lcov | coveralls\"\n\t},\n\t\"files\": [\n\t\t\"index.js\",\n\t\t\"errors.js\"\n\t],\n\t\"keywords\": [\n\t\t\"http\",\n\t\t\"https\",\n\t\t\"get\",\n\t\t\"got\",\n\t\t\"url\",\n\t\t\"uri\",\n\t\t\"request\",\n\t\t\"util\",\n\t\t\"utility\",\n\t\t\"simple\",\n\t\t\"curl\",\n\t\t\"wget\",\n\t\t\"fetch\",\n\t\t\"net\",\n\t\t\"network\",\n\t\t\"electron\"\n\t],\n\t\"dependencies\": {\n\t\t\"@sindresorhus/is\": \"^0.7.0\",\n\t\t\"cacheable-request\": \"^2.1.1\",\n\t\t\"decompress-response\": \"^3.3.0\",\n\t\t\"duplexer3\": \"^0.1.4\",\n\t\t\"get-stream\": \"^3.0.0\",\n\t\t\"into-stream\": \"^3.1.0\",\n\t\t\"is-retry-allowed\": \"^1.1.0\",\n\t\t\"isurl\": \"^1.0.0-alpha5\",\n\t\t\"lowercase-keys\": \"^1.0.0\",\n\t\t\"mimic-response\": \"^1.0.0\",\n\t\t\"p-cancelable\": \"^0.4.0\",\n\t\t\"p-timeout\": \"^2.0.1\",\n\t\t\"pify\": \"^3.0.0\",\n\t\t\"safe-buffer\": \"^5.1.1\",\n\t\t\"timed-out\": \"^4.0.1\",\n\t\t\"url-parse-lax\": \"^3.0.0\",\n\t\t\"url-to-options\": \"^1.0.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"ava\": \"^0.25.0\",\n\t\t\"coveralls\": \"^3.0.0\",\n\t\t\"form-data\": \"^2.1.1\",\n\t\t\"get-port\": \"^3.0.0\",\n\t\t\"nyc\": \"^11.0.2\",\n\t\t\"p-event\": \"^1.3.0\",\n\t\t\"pem\": \"^1.4.4\",\n\t\t\"proxyquire\": \"^1.8.0\",\n\t\t\"sinon\": \"^4.0.0\",\n\t\t\"slow-stream\": \"0.0.4\",\n\t\t\"tempfile\": \"^2.0.0\",\n\t\t\"tempy\": \"^0.2.1\",\n\t\t\"universal-url\": \"1.0.0-alpha\",\n\t\t\"xo\": \"^0.20.0\"\n\t},\n\t\"ava\": {\n\t\t\"concurrency\": 4\n\t},\n\t\"browser\": {\n\t\t\"decompress-response\": false,\n\t\t\"electron\": false\n\t}\n}\n","'use strict';\nconst urlLib = require('url');\nconst http = require('http');\nconst PCancelable = require('p-cancelable');\nconst is = require('@sindresorhus/is');\n\nclass GotError extends Error {\n\tconstructor(message, error, opts) {\n\t\tsuper(message);\n\t\tError.captureStackTrace(this, this.constructor);\n\t\tthis.name = 'GotError';\n\n\t\tif (!is.undefined(error.code)) {\n\t\t\tthis.code = error.code;\n\t\t}\n\n\t\tObject.assign(this, {\n\t\t\thost: opts.host,\n\t\t\thostname: opts.hostname,\n\t\t\tmethod: opts.method,\n\t\t\tpath: opts.path,\n\t\t\tprotocol: opts.protocol,\n\t\t\turl: opts.href\n\t\t});\n\t}\n}\n\nmodule.exports.GotError = GotError;\n\nmodule.exports.CacheError = class extends GotError {\n\tconstructor(error, opts) {\n\t\tsuper(error.message, error, opts);\n\t\tthis.name = 'CacheError';\n\t}\n};\n\nmodule.exports.RequestError = class extends GotError {\n\tconstructor(error, opts) {\n\t\tsuper(error.message, error, opts);\n\t\tthis.name = 'RequestError';\n\t}\n};\n\nmodule.exports.ReadError = class extends GotError {\n\tconstructor(error, opts) {\n\t\tsuper(error.message, error, opts);\n\t\tthis.name = 'ReadError';\n\t}\n};\n\nmodule.exports.ParseError = class extends GotError {\n\tconstructor(error, statusCode, opts, data) {\n\t\tsuper(`${error.message} in \"${urlLib.format(opts)}\": \\n${data.slice(0, 77)}...`, error, opts);\n\t\tthis.name = 'ParseError';\n\t\tthis.statusCode = statusCode;\n\t\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\t}\n};\n\nmodule.exports.HTTPError = class extends GotError {\n\tconstructor(statusCode, statusMessage, headers, opts) {\n\t\tif (statusMessage) {\n\t\t\tstatusMessage = statusMessage.replace(/\\r?\\n/g, ' ').trim();\n\t\t} else {\n\t\t\tstatusMessage = http.STATUS_CODES[statusCode];\n\t\t}\n\t\tsuper(`Response code ${statusCode} (${statusMessage})`, {}, opts);\n\t\tthis.name = 'HTTPError';\n\t\tthis.statusCode = statusCode;\n\t\tthis.statusMessage = statusMessage;\n\t\tthis.headers = headers;\n\t}\n};\n\nmodule.exports.MaxRedirectsError = class extends GotError {\n\tconstructor(statusCode, redirectUrls, opts) {\n\t\tsuper('Redirected 10 times. Aborting.', {}, opts);\n\t\tthis.name = 'MaxRedirectsError';\n\t\tthis.statusCode = statusCode;\n\t\tthis.statusMessage = http.STATUS_CODES[this.statusCode];\n\t\tthis.redirectUrls = redirectUrls;\n\t}\n};\n\nmodule.exports.UnsupportedProtocolError = class extends GotError {\n\tconstructor(opts) {\n\t\tsuper(`Unsupported protocol \"${opts.protocol}\"`, {}, opts);\n\t\tthis.name = 'UnsupportedProtocolError';\n\t}\n};\n\nmodule.exports.CancelError = PCancelable.CancelError;\n","'use strict';\n\nconst v4 = '(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}';\n\nconst v6seg = '[0-9a-fA-F]{1,4}';\nconst v6 = `\n(\n(?:${v6seg}:){7}(?:${v6seg}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${v6seg}:){6}(?:${v4}|:${v6seg}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${v6seg}:){5}(?::${v4}|(:${v6seg}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${v6seg}:){4}(?:(:${v6seg}){0,1}:${v4}|(:${v6seg}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${v6seg}:){3}(?:(:${v6seg}){0,2}:${v4}|(:${v6seg}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${v6seg}:){2}(?:(:${v6seg}){0,3}:${v4}|(:${v6seg}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${v6seg}:){1}(?:(:${v6seg}){0,4}:${v4}|(:${v6seg}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${v6seg}){0,5}:${v4}|(?::${v6seg}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\\s*\\/\\/.*$/gm, '').replace(/\\n/g, '').trim();\n\nconst ip = module.exports = opts => opts && opts.exact ?\n\tnew RegExp(`(?:^${v4}$)|(?:^${v6}$)`) :\n\tnew RegExp(`(?:${v4})|(?:${v6})`, 'g');\n\nip.v4 = opts => opts && opts.exact ? new RegExp(`^${v4}$`) : new RegExp(v4, 'g');\nip.v6 = opts => opts && opts.exact ? new RegExp(`^${v6}$`) : new RegExp(v6, 'g');\n","'use strict';\nconst ipRegex = require('ip-regex');\n\nconst isIp = module.exports = x => ipRegex({exact: true}).test(x);\nisIp.v4 = x => ipRegex.v4({exact: true}).test(x);\nisIp.v6 = x => ipRegex.v6({exact: true}).test(x);\n","'use strict';\nmodule.exports = (str, count, opts) => {\n\t// Support older versions: use the third parameter as options.indent\n\t// TODO: Remove the workaround in the next major version\n\tconst options = typeof opts === 'object' ? Object.assign({indent: ' '}, opts) : {indent: opts || ' '};\n\tcount = count === undefined ? 1 : count;\n\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError(`Expected \\`input\\` to be a \\`string\\`, got \\`${typeof str}\\``);\n\t}\n\n\tif (typeof count !== 'number') {\n\t\tthrow new TypeError(`Expected \\`count\\` to be a \\`number\\`, got \\`${typeof count}\\``);\n\t}\n\n\tif (typeof options.indent !== 'string') {\n\t\tthrow new TypeError(`Expected \\`options.indent\\` to be a \\`string\\`, got \\`${typeof options.indent}\\``);\n\t}\n\n\tif (count === 0) {\n\t\treturn str;\n\t}\n\n\tconst regex = options.includeEmptyLines ? /^/mg : /^(?!\\s*$)/mg;\n\treturn str.replace(regex, options.indent.repeat(count));\n}\n;\n","'use strict';\nconst os = require('os');\n\nconst extractPathRegex = /\\s+at.*(?:\\(|\\s)(.*)\\)?/;\nconst pathRegex = /^(?:(?:(?:node|(?:internal\\/[\\w/]*|.*node_modules\\/babel-polyfill\\/.*)?\\w+)\\.js:\\d+:\\d+)|native)/;\nconst homeDir = os.homedir();\n\nmodule.exports = (stack, options) => {\n\toptions = Object.assign({pretty: false}, options);\n\n\treturn stack.replace(/\\\\/g, '/')\n\t\t.split('\\n')\n\t\t.filter(x => {\n\t\t\tconst pathMatches = x.match(extractPathRegex);\n\t\t\tif (pathMatches === null || !pathMatches[1]) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tconst match = pathMatches[1];\n\n\t\t\t// Electron\n\t\t\tif (match.includes('.app/Contents/Resources/electron.asar') ||\n\t\t\t\tmatch.includes('.app/Contents/Resources/default_app.asar')) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn !pathRegex.test(match);\n\t\t})\n\t\t.filter(x => x.trim() !== '')\n\t\t.map(x => {\n\t\t\tif (options.pretty) {\n\t\t\t\treturn x.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, '~')));\n\t\t\t}\n\n\t\t\treturn x;\n\t\t})\n\t\t.join('\\n');\n};\n","'use strict';\nconst indentString = require('indent-string');\nconst cleanStack = require('clean-stack');\n\nconst cleanInternalStack = stack => stack.replace(/\\s+at .*aggregate-error\\/index.js:\\d+:\\d+\\)?/g, '');\n\nclass AggregateError extends Error {\n\tconstructor(errors) {\n\t\t// Even though strings are iterable, we don't allow them to prevent subtle user mistakes\n\t\tif (!errors[Symbol.iterator] || typeof errors === 'string') {\n\t\t\tthrow new TypeError(`Expected input to be iterable, got ${typeof errors}`);\n\t\t}\n\n\t\terrors = Array.from(errors).map(err => err instanceof Error ? err : new Error(err));\n\n\t\tlet message = errors.map(err => cleanInternalStack(cleanStack(err.stack))).join('\\n');\n\t\tmessage = '\\n' + indentString(message, 4);\n\n\t\tsuper(message);\n\t\tthis.name = this.constructor.name;\n\t\tObject.defineProperty(this, '_errors', {value: errors});\n\t}\n\t* [Symbol.iterator]() {\n\t\tfor (const error of this._errors) {\n\t\t\tyield error;\n\t\t}\n\t}\n}\n\nmodule.exports = AggregateError;\n","'use strict';\nconst pSome = require('p-some');\n\nmodule.exports = (iterable, opts) => pSome(iterable, Object.assign({}, opts, {count: 1})).then(values => values[0]);\n\nmodule.exports.AggregateError = pSome.AggregateError;\n","'use strict';\nconst AggregateError = require('aggregate-error');\n\nmodule.exports = (iterable, opts) => new Promise((resolve, reject) => {\n\topts = Object.assign({}, opts);\n\n\tif (!Number.isFinite(opts.count)) {\n\t\tthrow new TypeError(`Expected a finite number, got ${typeof opts.count}`);\n\t}\n\n\tconst values = [];\n\tconst errors = [];\n\tlet elCount = 0;\n\tlet maxErrors = -opts.count + 1;\n\tlet maxFiltered = -opts.count + 1;\n\tlet done = false;\n\n\tconst fulfilled = value => {\n\t\tif (done) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof opts.filter === 'function' && !opts.filter(value)) {\n\t\t\tif (--maxFiltered === 0) {\n\t\t\t\tdone = true;\n\t\t\t\treject(new RangeError(`Not enough values pass the \\`filter\\` option`));\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalues.push(value);\n\n\t\tif (--opts.count === 0) {\n\t\t\tdone = true;\n\t\t\tresolve(values);\n\t\t}\n\t};\n\n\tconst rejected = error => {\n\t\tif (done) {\n\t\t\treturn;\n\t\t}\n\n\t\terrors.push(error);\n\n\t\tif (--maxErrors === 0) {\n\t\t\tdone = true;\n\t\t\treject(new AggregateError(errors));\n\t\t}\n\t};\n\n\tfor (const el of iterable) {\n\t\tmaxErrors++;\n\t\tmaxFiltered++;\n\t\telCount++;\n\t\tPromise.resolve(el).then(fulfilled, rejected);\n\t}\n\n\tif (opts.count > elCount) {\n\t\tthrow new RangeError(`Expected input to contain at least ${opts.count} items, but contains ${elCount} items`);\n\t}\n});\n\nmodule.exports.AggregateError = AggregateError;\n","'use strict';\nconst pFinally = require('p-finally');\n\nclass TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\nmodule.exports = (promise, ms, fallback) => new Promise((resolve, reject) => {\n\tif (typeof ms !== 'number' || ms < 0) {\n\t\tthrow new TypeError('Expected `ms` to be a positive number');\n\t}\n\n\tconst timer = setTimeout(() => {\n\t\tif (typeof fallback === 'function') {\n\t\t\tresolve(fallback());\n\t\t\treturn;\n\t\t}\n\n\t\tconst message = typeof fallback === 'string' ? fallback : `Promise timed out after ${ms} milliseconds`;\n\t\tconst err = fallback instanceof Error ? fallback : new TimeoutError(message);\n\n\t\treject(err);\n\t}, ms);\n\n\tpFinally(\n\t\tpromise.then(resolve, reject),\n\t\t() => {\n\t\t\tclearTimeout(timer);\n\t\t}\n\t);\n});\n\nmodule.exports.TimeoutError = TimeoutError;\n","{\n \"name\": \"is-link-working\",\n \"version\": \"2.2.0\",\n \"description\": \"Checks if a given link is working or broken\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"lint\": \"eslint '{*.js,test/**/*.js}' --ignore-pattern=test/coverage\",\n \"test\": \"mocha --bail\",\n \"test-cov\": \"istanbul cover --dir test/coverage _mocha -- --bail && echo Coverage lies in test/coverage/lcov-report/index.html\",\n \"test-travis\": \"istanbul cover _mocha --report lcovonly -- --bail && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/IndigoUnited/node-is-link-working/issues/\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git://github.com/IndigoUnited/node-is-link-working.git\"\n },\n \"keywords\": [\n \"url\",\n \"link\",\n \"uri\",\n \"working\",\n \"check\",\n \"alive\",\n \"ok\",\n \"broken\"\n ],\n \"author\": \"IndigoUnited (http://indigounited.com)\",\n \"license\": \"MIT\",\n \"dependencies\": {\n \"got\": \"^6.3.0\",\n \"is-online\": \"^7.0.0\"\n },\n \"devDependencies\": {\n \"@satazor/eslint-config\": \"^3.0.0\",\n \"chai\": \"^3.4.1\",\n \"coveralls\": \"^2.11.6\",\n \"eslint\": \"^3.0.0\",\n \"istanbul\": \"^0.4.1\",\n \"mocha\": \"^3.0.2\",\n \"mock-require\": \"^2.0.0\",\n \"nock\": \"^9.0.0\",\n \"promise-delay\": \"^2.1.0\"\n },\n \"engines\": {\n \"node\": \">=4.0.0\"\n }\n}\n",null,null,"\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import execa from \"execa\"\nimport { existsSync } from \"fs\"\nimport { dirname, join } from \"path\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { addShellExtension, addShellHere } from \"extension-tools\"\nimport { notice } from \"../utils/io/io\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { giveUserAccess } from \"user-access\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n setupPacmanPack(\"curl\")\n setupPacmanPack(\"zip\")\n setupPacmanPack(\"unzip\")\n setupPacmanPack(\"tar\")\n setupPacmanPack(\"git\")\n setupPacmanPack(\"pkg-config\")\n } else if (hasDnf()) {\n setupDnfPack(\"curl\")\n setupDnfPack(\"zip\")\n setupDnfPack(\"unzip\")\n setupDnfPack(\"tar\")\n setupDnfPack(\"git\")\n setupDnfPack(\"pkg-config\")\n } else if (isUbuntu()) {\n await setupAptPack(\"curl\")\n await setupAptPack(\"zip\")\n await setupAptPack(\"unzip\")\n await setupAptPack(\"tar\")\n await setupAptPack(\"git\")\n await setupAptPack(\"pkg-config\")\n }\n }\n\n if (!existsSync(join(setupDir, addShellExtension(\"bootstrap-vcpkg\")))) {\n execa.sync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execa.sync(addShellExtension(addShellHere(\"bootstrap-vcpkg\")), { cwd: setupDir, shell: true, stdio: \"inherit\" })\n\n giveUserAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { dirname } from \"path\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { execRootSync } from \"root-tools\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\"\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack(\"nala\", undefined, [], true)\n } else {\n await setupAptPack(\"nala-legacy\", undefined, [], true)\n }\n } catch (err) {\n await setupAptPack(\"nala-legacy\", undefined, [], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n","import { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { execRootSync } from \"root-tools\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n setupDnfPack(\"dnf-plugins-core\", undefined)\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack(\"bazel4\", undefined)\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\"\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack(\"bazel\", version, [], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n await setupPipPack(\"setuptools\", \"\")\n return setupPipPack(\"conan\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"ccache\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"ccache\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"ccache\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"cppcheck\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack(\"make\", version)\n } else if (isUbuntu()) {\n return setupAptPack(\"make\", version)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n"],"names":["$7b9209944aaaa76d$var$isexe","path","options","cb","Promise","TypeError","resolve","reject","er","is","$7b9209944aaaa76d$var$core","code","ignoreErrors","$cf4e1c210ca26295$export$c5eeb9c87a610a0e","_version","_setupDir","_arch","includes","process","platform","$cf4e1c210ca26295$var$binDir","maybeBinDir","$parcel$interopDefault","$ee50b93f35d1d045$exports","sync","nothrow","$gCrli$dirname","$gCrli$execFileSync","stdio","$13876d63a1d769ba$var$resolveCommandAttempt","parsed","withoutPathExt","env","cwd","hasCustomCwd","shouldSwitchCwd","undefined","chdir","disabled","err","resolved","command","$0d499e77a65c6243$exports","pathExt","$gCrli$delimiter","e","$gCrli$resolve","$9653863791c871cf$var$notFoundError","original","syscall","Object","assign","Error","errno","spawnargs","args","$9653863791c871cf$var$verifyENOENT","status","$9653863791c871cf$var$isWin","file","$3d4add3ad29c5f63$var$spawn","$6c97148d68b1e108$exports","spawned","$gCrli$spawn","$9653863791c871cf$exports","hookChildProcess","async","$b66d4b39a4b6d666$var$getStream","inputStream","maxBuffer","Infinity","stream1","$e221f82cbd79e937$exports","rejectPromise","error","getBufferedLength","$b66d4b39a4b6d666$require$BufferConstants","MAX_LENGTH","bufferedData","getBufferedValue","$b66d4b39a4b6d666$var$streamPipelinePromisified","on","$b66d4b39a4b6d666$var$MaxBufferError","$f5d4aa828adcef03$export$316200228f28b8ce","CI","ref","getuid","call","$f5d4aa828adcef03$export$58f152936f209932","program","execOptions","shell","$78a9a46c46452123$exports","commandSync","map","arg","join","$e58590dcd68a5bb4$export$8312d9eeba321950","SUDO_USER","$gCrli$join","$b6801b6bd01e6394$exports","$8c6d8d466be1e003$export$43324456a02f71b0","startupFlags","$8c6d8d466be1e003$var$powershell","maybePwsh","maybePowerShell","$8c6d8d466be1e003$export$4dfdd3964d242d20","$7df98a59b6cda272$export$f63d3080ce25e0fd","name","valGiven","shouldEscapeSpace","val","$4d5f494194aaccf5$exports","$ywN2f","$gF2Jd","exportVariable","$81ovw","$7df98a59b6cda272$var$addEnvSystem","setFailed","$7df98a59b6cda272$export$4c25481b843feb0b","PATH","addPath","$7df98a59b6cda272$var$addPathSystem","info","$7df98a59b6cda272$export$bd1dffd792f43c41","$gCrli$appendFileSync","$7df98a59b6cda272$export$1bbbc3a810c5799d","$7df98a59b6cda272$var$setupCppInProfile_called","source_cpprc_str","$gCrli$existsSync","$gCrli$readFileSync","source_cpprc_string","profile_path","bashrc_path","warning","$8dc48a0df4182e55$export$d73dc343f5abf26","version","repositories","update","apt","$8dc48a0df4182e55$var$getApt","DEBIAN_FRONTEND","$8dc48a0df4182e55$var$didUpdate","$8dc48a0df4182e55$var$updateRepos","$8dc48a0df4182e55$var$didInit","$8dc48a0df4182e55$export$11aa10c05ada0934","$8dc48a0df4182e55$var$initApt","Array","isArray","length","repo","binDir","$8dc48a0df4182e55$var$initGpg","keys","server","fileName","key","$8dc48a0df4182e55$export$7fb1a688af1305f0","url","$8dc48a0df4182e55$export$6fe6436bd9f53d02","$341dc468efaea0e8$export$cfa75578ee2d6e6c","aur","pacman","$341dc468efaea0e8$var$didUpdate","$341dc468efaea0e8$var$didInit","$9c8780e70e45392a$export$ce5d13d8a85cb784","$9c8780e70e45392a$var$hasBrew","$9673de8e5b109fdc$export$b804d731cdad7ef9","$9673de8e5b109fdc$var$binDir","powershell","SystemRoot","chocoPath","ALLUSERSPROFILE","maybeChoco","_ChocolateyInstall","ChocolateyInstall","$ae125dfe1d8c6517$export$9f6912bc890040b2","$ae125dfe1d8c6517$var$hasChoco","TMP","TEMP","Path","extendEnv","message","notice","$0064ffc7a9258f2e$export$d415ddb6702ec3a2","$0064ffc7a9258f2e$var$isArchCache","$d2761e35f27d9347$export$8ce8b4b22331a8c7","$d2761e35f27d9347$var$hasDnfCache","$a985b62b448f1220$export$49d4f9ba8e0dd34f","dnf","$2c51dff9e067076b$export$da8baf1d6c6802b6","$2c51dff9e067076b$var$isUbuntuCache","$521895b306840a5a$export$e88210974180936f","win_ext","unix_ext","$521895b306840a5a$export$eae120f0e5838f32","$8ddba0eda1584d62$export$5fc39629e14c8173","$408e5c7710e3a3ac$export$f9a3d10eb7c735af","$050bf27eb9b74231$var$findAllVersions","toolName","arch","versions","$050bf27eb9b74231$var$os","toolPath","$050bf27eb9b74231$var$path","$050bf27eb9b74231$var$_getCacheDirectory","$050bf27eb9b74231$var$fs","existsSync","children","readdirSync","child","$050bf27eb9b74231$var$isExplicitVersion","fullPath","push","$050bf27eb9b74231$var$_createExtractFolder","dest","$050bf27eb9b74231$var$_getTempDirectory","$050bf27eb9b74231$var$v4_1","default","$050bf27eb9b74231$var$io","mkdirP","$050bf27eb9b74231$var$_createToolPath","tool","folderPath","$050bf27eb9b74231$var$semver","clean","$050bf27eb9b74231$var$core","debug","markerPath","rmRF","$050bf27eb9b74231$var$_completeToolPath","writeFileSync","versionSpec","c","valid","$050bf27eb9b74231$var$evaluateVersions","i","sort","a","b","gt","potential","satisfies","cacheDirectory","$gCrli$ok","tempDirectory","$050bf27eb9b74231$var$_getGlobal","defaultValue","value","$parcel$global","$4806f3517e2790ac$export$eecfe186811d4a20","$4806f3517e2790ac$var$sevenZip","$4806f3517e2790ac$var$getSevenZip","$4806f3517e2790ac$export$7949938b2681a4f0","$4806f3517e2790ac$export$6411c5cbab21135b","$4806f3517e2790ac$export$2ab07ac150064014","flags","$2fNe7","$47eb08dd23d40b94$export$334f77c9844c21f6","getPackageInfo","setupDir","_RUNNER_TEMP","_RUNNER_TOOL_CACHE","RUNNER_TEMP","$gCrli$tmpdir","RUNNER_TOOL_CACHE","binRelativeDir","binFileName","extractedFolderName","extractFunction","dir","$050bf27eb9b74231$exports","find","installDir","binFile","$47eb08dd23d40b94$var$didInit","downloaded","downloadTool","cacheDir","$af41b2eb086f75df$var$getTaskPackageInfo","taskPlatform","$af41b2eb086f75df$var$getTaskPlatform","taskArch","$af41b2eb086f75df$var$getTaskArch","isZip","extension","$846d2db31756a5f1$var$getCmakePackageInfo","semVersion","$3wKw1","isOld","$kNWZ7","osArchStr","folderName","extractTar","$846d2db31756a5f1$export$c28663a621f418ce","$58fb2ba5d4eaabfd$export$2b0b68e9df3d4a02","$58fb2ba5d4eaabfd$export$33cd96f062979ce0","setupActionsPython","parcelRequire","ref1","pythonBinPath","pythonSetupDir","$58fb2ba5d4eaabfd$var$activateWinPython","installInfo","$ccdcf671d9629ea7$var$DuplexWrapper","writable","readable","$gCrli$Duplex","this","read","$gCrli$Readable","wrap","_writable","_readable","_waiting","self","once","end","_read","bubbleErrors","emit","$499444e765d4dfc7$var$getStream","opts","stream","p","$c77953b5c93680d0$exports","pipe","unpipe","then","$1457bd8fb8a0c7e1$var$copyProps","src","dst","$1457bd8fb8a0c7e1$var$SafeBuffer","encodingOrOffset","$1457bd8fb8a0c7e1$var$Buffer","$e316302c587537ee$var$requestAsEventEmitter","opts1","ee","$gCrli$events","requestUrl","href","$gCrli$resolve1","$gCrli$format","redirectUrl","redirectCount","retryCount","get","req","protocol","$gCrli$https","$gCrli$http","request","res","statusCode","$c690fa002c844782$exports","followRedirect","headers","method","resume","$e316302c587537ee$var$got","MaxRedirectsError","bufferString","$e316302c587537ee$require$Buffer","from","location","redirectOpts","$gCrli$parse","setImmediate","response","$8d3c6ef09939c20a$exports","backoff","retries","setTimeout","RequestError","gotTimeout","$61328d2046636641$exports","$e316302c587537ee$var$normalizeArguments","replace","$32d3910e691c4e5f$exports","auth","$88b78c7e82c7d4f8$exports","$adc1383dda65b8f6$exports","query","$gCrli$stringify","split","json","accept","body","$92be3794d8449a75$exports","getBoundary","isBuffer","byteLength","toUpperCase","hostname","matches","exec","socketPath","host","iter","$f0cfd18885c44e1e$exports","Math","random","timeout","encoding","$499444e765d4dfc7$exports","buffer","catch","ReadError","data","limitStatusCode","JSON","parse","ParseError","HTTPError","defineProperty","$e316302c587537ee$var$asPromise","$e316302c587537ee$var$stdError","$68d89ba0619b17d1$var$_normalizeFamily","family","toLowerCase","$c9e1cca4522d9d48$var$encodingLengthList","list","enc","len","encodingLength","$c9e1cca4522d9d48$var$encodeList","buf","offset","encode","bytes","$c9e1cca4522d9d48$var$decodeList","decode","$d6207f4f3fec6328$var$DNS","onlistening","timeSlices","_triesArray","reduce","$d6207f4f3fec6328$var$add","_interval","setInterval","ontimeout","round","_ontimeout","$gCrli$EventEmitter","destroyed","inflight","socket","$gCrli$createSocket","_id","ceil","_ids","_queries","ret","pow","$d6207f4f3fec6328$var$getTriesArray","rinfo","_onmessage","address","port","$d6207f4f3fec6328$var$isListening","$d6207f4f3fec6328$var$noop","$42b4c73da8f33259$var$toObject","$a45e38f579e4aa8c$var$decodeComponents","components","decodeURIComponent","left","slice","right","concat","$a45e38f579e4aa8c$var$decode","input","tokens","match","$a45e38f579e4aa8c$var$singleMatcher","$1e92ba85f9b3feb9$var$encode","strict","$b36990043205fe78$exports","encodeURIComponent","$1e92ba85f9b3feb9$var$keysSorter","$1ce22a6bc4ec9ee8$var$testParameter","filters","some","filter","RegExp","test","$cea9d01146c618c0$var$_classCallCheck","instance","Constructor","$cea9d01146c618c0$var$parseCacheControl","header","cc","parts","trim","_isArray","_iterator","_i","Symbol","iterator","_ref","next","done","_part$split","v","$cea9d01146c618c0$var$formatCacheControl","k","$5f92d92d7f991f40$var$from2","rs","$5f92d92d7f991f40$var$Proto","_from","_","item","shift","$5f92d92d7f991f40$var$noop","$5f92d92d7f991f40$var$ctor","Class","override","_reading","_callback","destroy","hwm","$5f92d92d7f991f40$require$Readable","_readableState","highWaterMark","$5f92d92d7f991f40$var$defaults","$5n7Ld","prototype","size","nextTick","$5c302c960868fd32$var$is","type","function_","Buffer","tagType","$5c302c960868fd32$var$getObjectType","String","Boolean","Number","$b2bb05f914a86e2d$var$requestAsEventEmitter","redirects","agents","$5c302c960868fd32$exports","object","agent","uploadBodySize","uploaded","$b2bb05f914a86e2d$var$got","UnsupportedProtocolError","progressInterval","fn","useElectronNet","electron","net","remote","cacheReq","$db07f91f68d27a79$exports","cache","cacheableRequest","clearInterval","percent","transferred","total","redirectGet","$b2bb05f914a86e2d$var$getMethodRedirectCodes","has","$b2bb05f914a86e2d$var$allMethodRedirectCodes","$b2bb05f914a86e2d$require$Buffer","downloadBodySize","progressStream","$b2bb05f914a86e2d$require$Transform","transform","chunk","callback","flush","$2eadb32f38769ddb$exports","redirectUrls","decompress","function","$a7f8329719cd8e7e$exports","indexOf","$b2bb05f914a86e2d$var$getResponse","CacheError","req1","aborted","connection","onSocketConnect","lastUploaded","headersSize","_header","bytesWritten","connecting","_connecting","string","$b2bb05f914a86e2d$var$isFormData","$12f59630b55cd717$exports","getLength","bind","$gCrli$ReadStream","$gCrli$stat","stat","nodeStream","_buffer","$b2bb05f914a86e2d$var$getBodySize","$b2bb05f914a86e2d$var$asStream","$b2bb05f914a86e2d$require$PassThrough","output","proxy","$ccdcf671d9629ea7$exports","write","clearTimeout","throwHttpErrors","statusMessage","$b2bb05f914a86e2d$var$normalizeArguments","$c998c240f9c8ebdc$exports","$4449ae7618fa216a$exports","lenient","$58bb71599f83dc78$exports","nullOrUndefined","$43d184458f42595b$exports","form","canBodyBeStringified","plainObject","array","stringify","$ee38acc201f118cb$exports","number","normalizedArgs","cancelable","$55b9b5dce1aeaa14$exports","onCancel","cancelOnRequest","abort","null","isCanceled","promise","requestPromise","$331d3121e33b2657$exports","cancel","$b2bb05f914a86e2d$var$asPromise","$d2be50aa9d664841$var$appleCheck","$e316302c587537ee$exports","$790ff57fcb06130d$export$deb1064c8260c54c","semversion","startsWith","reverse","$3677b80f3674c7fd$export$c506eb22e615ba4a","osVersion","$3677b80f3674c7fd$var$useDefault","$3677b80f3674c7fd$var$DefaultUbuntuVersion","osVersionMaj","parseInt","$3677b80f3674c7fd$var$DefaultVersions","$bb1819ad9d8078c5$export$4020cb77ffa3ffac","$bb1819ad9d8078c5$var$python","givenFile","targetVersion","versionRegex","$790ff57fcb06130d$export$d7ab5e2d33b06cd5","givenVersion","execout","$eGKv1","getExecOutput","stdout","stderr","console","$790ff57fcb06130d$export$5b54ecc7386538f","$odmNz","$bb1819ad9d8078c5$var$tried","$bb1819ad9d8078c5$var$binDir","$94f77cc296162005$export$b885bd977caaafb9","$94f77cc296162005$var$activateGraphviz","$09f0776ac5e57c1d$var$getDoxygenPackageInfo","$1bef5d52b7eec4ce$export$28f5fd35e3005b7a","xcrun","sdkroot","$3a6223ec43316a0a$var$getGccPackageInfo","mingwInfo","$3a6223ec43316a0a$var$GccToMingwInfo","mingwArch","exceptionModel","releaseName","fileSuffix","$3a6223ec43316a0a$export$405fab3de79b77b","installationInfo","_ChocolateyInstall1","$3a6223ec43316a0a$var$setupChocoMingw","promises","majorVersion","$ehbTi","matcherPath","$gCrli$path1","$3a6223ec43316a0a$var$__dirname1","$3a6223ec43316a0a$var$addGccLoggingMatcher","all","$3a6223ec43316a0a$var$activateGcc","$b027b2b1c81cdfa5$var$getGitHubUrl","prefix","suffix","$b027b2b1c81cdfa5$var$getReleaseUrl","$b027b2b1c81cdfa5$export$94df0e59ebebf4a7","$b027b2b1c81cdfa5$var$DARWIN_MISSING","$b027b2b1c81cdfa5$var$getDarwinUrl","versionGiven","rc","$b027b2b1c81cdfa5$var$UBUNTU_RC","ubuntu","givenUbuntuVersion","$b027b2b1c81cdfa5$export$aa5307f1aca77413","$b027b2b1c81cdfa5$var$UBUNTU_SUFFIX_MAP","$b027b2b1c81cdfa5$export$ae24f9682a44836b","$b027b2b1c81cdfa5$var$WIN32_MISSING","olderThan9_1","fallback","$f4dd0bc478239002$exports","$b027b2b1c81cdfa5$var$getWin32Url","$b027b2b1c81cdfa5$var$getLLVMPackageInfo","specificVersion","getUrl","setOutput","$b027b2b1c81cdfa5$export$3016de7ae9d14988","$b027b2b1c81cdfa5$var$_setupLLVM","_installDir","directory","$kULaE","coercedVersion","lib","_LD_LIBRARY_PATH","ld","LD_LIBRARY_PATH","_DYLD_LIBRARY_PATH","dyld","DYLD_LIBRARY_PATH","llvmMajor","$b027b2b1c81cdfa5$var$addLLVMLoggingMatcher","$b027b2b1c81cdfa5$export$6238b5ebfd6640e7","$b027b2b1c81cdfa5$var$didInit","$b027b2b1c81cdfa5$export$814ccfc953503728","$b027b2b1c81cdfa5$var$__dirname1","$c112f7dc4a6d1792$var$issueCommand","properties","cmd","$c112f7dc4a6d1792$var$Command","$c112f7dc4a6d1792$var$os","EOL","$0da1435a5673ff4a$var$error","$c112f7dc4a6d1792$exports","issue","$0da1435a5673ff4a$var$startGroup","$0da1435a5673ff4a$var$endGroup","$03fa2bac94687fac$var$vsversion_to_versionnumber","vsversion","values","$03fa2bac94687fac$var$VsYearVersion","$03fa2bac94687fac$var$vsversion_to_year","year","ver","entries","$03fa2bac94687fac$var$findVcvarsall","vsversion_number","version_pattern","upper_bound","path1","pattern","$gCrli$execSync","installationPath","$0da1435a5673ff4a$exports","$03fa2bac94687fac$var$findWithVswhere","years","$03fa2bac94687fac$var$YEARS","prog_files","$03fa2bac94687fac$var$PROGRAM_FILES","ed","$03fa2bac94687fac$var$EDITIONS","$03fa2bac94687fac$var$PROGRAM_FILES_X86","$03fa2bac94687fac$var$isPathVariable","$3bc36fe80bba3989$export$5dcf571c91fc8369","VCTargetsPath","toolset","sdk","uwp","spectre","$03fa2bac94687fac$export$443b8bb890f5027e","$3bc36fe80bba3989$var$getArch","$7039d147efcacce1$export$a91ef0362c1a7298","$03fa2bac94687fac$export$3c7cae5a162b1458","installed","vcvarsall_path","$03fa2bac94687fac$export$a6a3bfb882356813","$7039d147efcacce1$var$__dirname1","$7039d147efcacce1$var$addMSVCLoggingMatcher","$2c8be0433aa63082$var$getNinjaPackageInfo","ninjaPlatform","$2c8be0433aa63082$var$getNinjaPlatform","$2c8be0433aa63082$export$e6190f4bfe2ef71","$aeaaa5f722f62c97$var$toArr","any","$aeaaa5f722f62c97$var$toVal","out","x","old","nxt","boolean","$3b7100cc0a379b6a$var$getDownloadKcovPackageInfo","$3b7100cc0a379b6a$var$getBuildKcovPackageInfo","$3b7100cc0a379b6a$var$buildKcov","cmake","$3b7100cc0a379b6a$var$getCmake","buildDir","$71ec725eca131b9e$export$f22da7240b7add18","ACTIONS_ALLOW_UNSECURE_COMMANDS","$71ec725eca131b9e$export$7300a92932ee17a3","_architecture","help","architecture","_SETUP_CPP_DIR","setupCppDir","SETUP_CPP_DIR","successMessages","errorMessages","timeFormatter","$05e9e6b3660f8f7d$exports","create","autoloadLocales","time1","time2","addLocale","$a3d9ceb2b0adad84$exports","$xu1bL","$02af6f06b93afca7$exports","versionSplitted","$c02e4f88a510f864$exports","getUbuntuVersion","tools","otherTools","i_other","otherTool","tool1","$71ec725eca131b9e$var$tools","Date","now","startGroup","setupFunction","$71ec725eca131b9e$var$setups","$71ec725eca131b9e$var$getSuccessMessage","endGroup","format","maybeCompiler","compiler","$71ec725eca131b9e$export$588248dee5258836","forEach","success","arr","j","idx","alibi","alias","unknown","defaults","splice","charCodeAt","substring","repeat","$71ec725eca131b9e$var$inputs","fromEntries","inp","$71ec725eca131b9e$var$maybeGetInput","h","compilerAndMaybeVersion","maybeVersion","getInput","msg","$c212977669ffc7b9$var$getInput","required","trimWhitespace","$c212977669ffc7b9$var$error","$CzUPq","issueCommand","$7u2Mm","toCommandProperties","$c212977669ffc7b9$var$startGroup","$c212977669ffc7b9$var$endGroup","$c212977669ffc7b9$var$os","$c212977669ffc7b9$var$__importStar","$gCrli$os","$c212977669ffc7b9$var$path","$gCrli$path","$c212977669ffc7b9$var$ExitCode","ExitCode1","module","exports","ExitCode","convertedVal","toCommandValue","delimiter","$a92Us","setSecret","secret","inputPath","getMultilineInput","getBooleanInput","setCommandEcho","enabled","exitCode","Failure","isDebug","group","result","saveState","getState","getIDToken","aud","$aKUUy","OidcClient","enumerable","$f0qw2","summary","markdownSummary","$gzMJ3","toPosixPath","toWin32Path","toPlatformPath","$073f68cfe983618f$var$issueCommand","$073f68cfe983618f$var$Command","$073f68cfe983618f$var$os","$073f68cfe983618f$var$__importStar","constructor","toString","cmdStr","first","hasOwnProperty","s","$073f68cfe983618f$var$escapeData","annotationProperties","title","line","startLine","endLine","col","startColumn","endColumn","$762d007442c364ca$var$fs","$762d007442c364ca$var$__importStar","$gCrli$fs","$762d007442c364ca$var$os","filePath","appendFileSync","$7d4a589cbda69547$var$OidcClient","static","allowRetry","maxRetry","requestOptions","allowRetries","maxRetries","$9kh6d","HttpClient","$bynPH","BearerCredentialHandler","getRequestToken","token","runtimeUrl","id_token_url","httpclient","createHttpClient","getJson","id_token","_a","audience","getIDTokenUrl","getCall","$6ca33ede3d67c352$var$http","$6ca33ede3d67c352$var$__importStar","$6ca33ede3d67c352$var$https","$6ca33ede3d67c352$var$pm","$6ca33ede3d67c352$var$tunnel","$6ca33ede3d67c352$var$HttpCodes","HttpCodes1","$6ca33ede3d67c352$var$Headers","Headers1","$6ca33ede3d67c352$var$MediaTypes","HttpCodes","Headers","MediaTypes","getProxyUrl","serverUrl","proxyUrl","URL","$6ca33ede3d67c352$var$HttpRedirectCodes","MovedPermanently","ResourceMoved","SeeOther","TemporaryRedirect","PermanentRedirect","$6ca33ede3d67c352$var$HttpResponseRetryCodes","BadGateway","ServiceUnavailable","GatewayTimeout","$6ca33ede3d67c352$var$RetryableHttpVerbs","$6ca33ede3d67c352$var$HttpClientError","super","setPrototypeOf","HttpClientError","$6ca33ede3d67c352$var$HttpClientResponse","readBody","$6ca33ede3d67c352$var$__awaiter","alloc","HttpClientResponse","isHttps","userAgent","handlers","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","max","keepAlive","additionalHeaders","del","post","patch","put","head","sendStream","verb","Accept","_getExistingOrDefaultHeader","ApplicationJson","_processResponse","postJson","obj","ContentType","putJson","patchJson","parsedUrl","_prepareRequest","maxTries","numTries","requestRaw","Unauthorized","authenticationHandler","handler","canHandleAuthentication","handleAuthentication","redirectsRemaining","parsedRedirectUrl","_performExponentialBackoff","dispose","_agent","requestRawWithCallback","onResult","handleResult","callbackCalled","httpModule","sock","getAgent","_getAgent","usingSsl","defaultPort","pathname","search","_mergeHeaders","prepareRequest","$6ca33ede3d67c352$var$lowercaseKeys","_default","clientHeader","useProxy","_proxyAgent","maxSockets","globalAgent","agentOptions","username","password","proxyAuth","tunnelAgent","overHttps","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","retryNumber","ms","min","contents","NotFound","deserializeDates","isNaN","valueOf","$d15ca64227d39f30$var$checkBypass","reqUrl","noProxy","reqPort","upperReqHosts","upperNoProxyItem","proxyVar","checkBypass","$3044be9be8a68e81$var$TunnelingAgent","options1","proxyOptions","$gCrli$Agent","defaultMaxSockets","requests","sockets","localAddress","$3044be9be8a68e81$var$toOptions","pending","onSocket","removeSocket","$3044be9be8a68e81$var$createSecureSocket","createSocket","hostHeader","getHeader","tlsOptions","$3044be9be8a68e81$var$mergeOptions","servername","secureSocket","$gCrli$connect","target","arguments","overrides","keyLen","$3044be9be8a68e81$export$25cbd437c61a3835","$3044be9be8a68e81$export$c06e3df7111bae43","$3044be9be8a68e81$export$5d50e36ef656139f","$3044be9be8a68e81$export$212d6605025321cc","$3044be9be8a68e81$export$1c9f709888824e05","$3044be9be8a68e81$var$debug","$gCrli$request","$gCrli$request1","$gCrli$inherits","addRequest","onFree","onCloseOrRemove","removeListener","onConnect","connectReq","removeAllListeners","placeholder","connectOptions","useChunkedEncodingByDefault","upgrade","cause","stack","socket1","pos","BasicCredentialHandler","PersonalAccessTokenCredentialHandler","access","$aecb6c990ae3e90d$var$access","appendFile","$aecb6c990ae3e90d$var$appendFile","writeFile","$aecb6c990ae3e90d$var$writeFile","$gCrli$promises","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","$aecb6c990ae3e90d$var$_summary","_filePath","pathFromEnv","$gCrli$constants","R_OK","W_OK","tag","content","attrs","htmlAttrs","overwrite","writeFunc","emptyBuffer","clear","isEmptyBuffer","addRaw","text","addEOL","$gCrli$EOL","addCodeBlock","lang","element","addList","items","ordered","listItems","addTable","rows","tableBody","row","cells","cell","colspan","rowspan","addDetails","label","addImage","alt","width","height","addHeading","level","allowedTag","addSeparator","addBreak","addQuote","cite","addLink","$031d40df77afb21f$var$path","$031d40df77afb21f$var$__importStar","pth","sep","$03bd9c2eb1055186$var$checkStat","isSymbolicLink","isFile","pathext","PATHEXT","substr","$03bd9c2eb1055186$var$checkPathExt","$03bd9c2eb1055186$var$isexe","$gCrli$statSync","$fddc3ef8185065f0$var$isexe","$fddc3ef8185065f0$var$checkStat","mod","mode","uid","gid","myUid","myGid","getgid","u","g","ug","$fddc3ef8185065f0$var$checkMode","GERRIT_PROJECT","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","BITRISE_IO","BUDDY_WORKSPACE_ID","BUILDKITE","CIRRUS_CI","GITLAB_CI","APPVEYOR","CIRCLECI","SEMAPHORE","DRONE","DSARI","GITHUB_ACTION","TDDIUM","SCREWDRIVER","STRIDER","TASKCLUSTER_ROOT_URL","JENKINS_URL","GO_PIPELINE_NAME","HUDSON_URL","WERCKER","NETLIFY","NOW_GITHUB_DEPLOYMENT","GITLAB_DEPLOYMENT","BITBUCKET_DEPLOYMENT","BITBUCKET_BUILD_NUMBER","NOW_BUILDER","VERCEL_GITHUB_DEPLOYMENT","VERCEL_GITLAB_DEPLOYMENT","VERCEL_BITBUCKET_DEPLOYMENT","VERCEL_URL","MAGNUM","NEVERCODE","RENDER","SAIL_CI","SHIPPABLE","TEAMCITY_VERSION","CI_NAME","NODE","TRAVIS","CODEBUILD_SRC_DIR","BUILDER_OUTPUT","$f76427e29b649494$export$a3bc9b8ed74fc","log","$f76427e29b649494$export$fe7c49d056ea1d88","$f76427e29b649494$export$491112666e282270","$f76427e29b649494$export$b31f6ae88848cf15","$f76427e29b649494$export$a80b3bd66acc52ff","$1a432ae5df7c9fc5$var$rmRF","$1a432ae5df7c9fc5$var$ioUtil","IS_WINDOWS","cmdPath","getCmdPath","isDirectory","$1a432ae5df7c9fc5$var$exec","unlink","err1","isDir","$1a432ae5df7c9fc5$var$execFile","$1a432ae5df7c9fc5$var$mkdirP","fsPath","mkdir","recursive","$1a432ae5df7c9fc5$var$findInPath","extensions","$1a432ae5df7c9fc5$var$path","isRooted","tryGetExecutablePath","directories","$1a432ae5df7c9fc5$var$cpDirRecursive","sourceDir","destDir","currentDepth","force","files","readdir","srcFile","destFile","lstat","$1a432ae5df7c9fc5$var$copyFile","chmod","symlinkFull","readlink","symlink","exists","copyFile","$1a432ae5df7c9fc5$var$childProcess","$1a432ae5df7c9fc5$var$__importStar","$gCrli$child_process","$gCrli$promisify","execFile","cp","source","copySourceDirectory","$1a432ae5df7c9fc5$var$readCopyOptions","destStat","newDest","basename","relative","mv","destExists","dirname","rename","which","$1a432ae5df7c9fc5$var$which","check","findInPath","$002c9b206c81b529$var$isUnixExecutable","stats","$002c9b206c81b529$var$fs","$002c9b206c81b529$var$__importStar","$002c9b206c81b529$var$path","$002c9b206c81b529$var$_a","rmdir","useStat","$002c9b206c81b529$var$normalizeSeparators","upperExt","extname","validExt","originalFilePath","upperName","actualName","_a1","$839618916b261156$var$semver","$839618916b261156$var$__importStar","_findMatch","stable","candidates","archFilter","platFilter","$gCrli$platform","candidate","chk","platform_version","_getOsVersion","plat","lsbContents","_readLinuxVersionFile","lines","lsbReleaseFile","osReleaseFile","$e9hBm","re","t","SEMVER_SPEC_VERSION","SemVer","compareIdentifiers","rcompareIdentifiers","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","eq","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","MAX_SAFE_COMPONENT_LENGTH","R","createToken","isGlobal","index","$36nrx","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","$a4cf8f46fd58533a$require$MAX_SAFE_COMPONENT_LENGTH","COERCE","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","$24241defe03a56e8$var$debug","$4Y6QE","$a933169cf37428ec$var$SemVer","$kQXIc","loose","includePrerelease","$a933169cf37428ec$require$MAX_LENGTH","m","$a933169cf37428ec$require$re","$a933169cf37428ec$require$t","LOOSE","FULL","raw","$a933169cf37428ec$require$MAX_SAFE_INTEGER","id","num","build","other","compareMain","comparePre","$a933169cf37428ec$require$compareIdentifiers","release","identifier","$f2e6fb8416d028ea$var$opts","o","$3e9da70389122fde$var$numeric","$3e9da70389122fde$var$compareIdentifiers","anum","bnum","$ewE0y","$6da50047f029b6ec$require$MAX_LENGTH","$6da50047f029b6ec$require$re","$6da50047f029b6ec$require$t","$9pDo3","version1","version2","$13Au1","v1","v2","hasPre","defaultResult","versionA","versionB","$34MvR","op","$lMg40","$fMkbf","$kdktp","$KbgdS","rtl","$2918713db77b48d4$require$re","$2918713db77b48d4$require$t","COERCERTL","lastIndex","$6fd10eb44bc1053f$var$ANY","$6fd10eb44bc1053f$var$Comparator","ANY","comp","semver","operator","$6fd10eb44bc1053f$require$re","$6fd10eb44bc1053f$require$t","COMPARATORLOOSE","COMPARATOR","$hYtJM","$kEeqW","sameDirectionIncreasing","sameDirectionDecreasing","sameSemVer","differentDirectionsInclusive","oppositeDirectionsLessThan","oppositeDirectionsGreaterThan","$f082bd4895a2884d$var$Range","range","$9Bceq","set","r","parseRange","$f082bd4895a2884d$var$isNullSet","$f082bd4895a2884d$var$isAny","comps","memoKey","cached","$f082bd4895a2884d$var$cache","$f082bd4895a2884d$require$re","$f082bd4895a2884d$require$t","HYPHENRANGELOOSE","HYPHENRANGE","$f082bd4895a2884d$var$hyphenReplace","COMPARATORTRIM","$f082bd4895a2884d$require$comparatorTrimReplace","rangeList","TILDETRIM","$f082bd4895a2884d$require$tildeTrimReplace","CARETTRIM","$f082bd4895a2884d$require$caretTrimReplace","$f082bd4895a2884d$var$parseComparator","$f082bd4895a2884d$var$replaceGTE0","rangeMap","Map","comparators","comp1","delete","thisComparators","$f082bd4895a2884d$var$isSatisfiable","rangeComparators","every","thisComparator","rangeComparator","$f082bd4895a2884d$var$testSet","remainingComparators","testComparator","pop","otherComparator","$f082bd4895a2884d$var$replaceCarets","$f082bd4895a2884d$var$replaceTildes","$f082bd4895a2884d$var$replaceXRanges","$f082bd4895a2884d$var$replaceStars","$f082bd4895a2884d$var$isX","$f082bd4895a2884d$var$replaceTilde","TILDELOOSE","TILDE","M","pr","$f082bd4895a2884d$var$replaceCaret","z","CARETLOOSE","CARET","$f082bd4895a2884d$var$replaceXRange","XRANGELOOSE","XRANGE","gtlt","xM","xm","xp","STAR","GTE0PRE","GTE0","incPr","$0","fM","fm","fp","fpr","fb","to","tM","tm","tp","tpr","tb","allowed","$820f241dd15ba23c$var$perf","performance","$820f241dd15ba23c$var$AC","AbortController","signal","AbortSignal","$820f241dd15ba23c$var$warned","Set","$820f241dd15ba23c$var$deprecatedOption","opt","instead","$820f241dd15ba23c$var$shouldWarn","$820f241dd15ba23c$var$warn","$820f241dd15ba23c$var$LRUCache","$820f241dd15ba23c$var$deprecatedMethod","getOwnPropertyDescriptor","$820f241dd15ba23c$var$emitWarning","emitWarning","what","add","$820f241dd15ba23c$var$isPosInt","n","floor","isFinite","$820f241dd15ba23c$var$getUintArray","$820f241dd15ba23c$var$ZeroArray","Uint32Array","Uint16Array","Uint8Array","fill","$820f241dd15ba23c$var$Stack","UintArray","heap","ttl","ttlResolution","ttlAutopurge","updateAgeOnGet","updateAgeOnHas","allowStale","disposeAfter","noDisposeOnSet","noUpdateTTL","maxSize","sizeCalculation","fetchMethod","maxAge","stale","keyMap","keyList","valList","prev","tail","free","initialFill","disposed","initializeSizeTracking","initializeTTLTracking","getRemainingTTL","ttls","starts","setItemTTL","isStale","unref","updateItemAge","cachedNow","getNow","calculatedSize","sizes","removeItemSize","requireSize","addItemSize","evict","indexes","isValidIndex","rindexes","rentries","rkeys","rvalues","getOptions","thisp","rforEach","prune","purgeStale","deleted","dump","entry","unshift","load","reason","newIndex","oldVal","isBackgroundFetch","__abortController","moveToTail","peek","backgroundFetch","ac","fetchOpts","__staleWhileFetching","fetching","connect","reset","field","$820f241dd15ba23c$var$deprecatedProperty","maxSV","rangeObj","minSV","minver","setMin","comparator","compver","$44984a2886386c55$var$ANY","hilo","gtfn","ltefn","ltfn","ecomp","$fThUd","high","low","$5T7ZF","r1","r2","ranges","simplified","$28e7bcc4b2b66496$var$ANY","$28e7bcc4b2b66496$var$simpleSubset","sub","dom","eqSet","gtltComp","higher","lower","hasDomLT","hasDomGT","$28e7bcc4b2b66496$var$higherGT","$28e7bcc4b2b66496$var$lowerLT","needDomLTPre","needDomGTPre","c1","sawNonNull","OUTER","simpleSub","simpleDom","isSub","$7tyCH","rnds","rng","ii","$cyw4a","$gCrli$randomBytes","$924188b3e0448444$var$byteToHex","$924188b3e0448444$var$i","i1","$ab190eb82299eef6$var$exec","commandLine","commandArgs","$ab190eb82299eef6$var$tr","argStringToArray","ToolRunner","$ab190eb82299eef6$var$__importStar","stdoutDecoder","$gCrli$StringDecoder","stderrDecoder","originalStdoutListener","listeners","originalStdErrListener","_b","$b6b01ca0ac6a61d6$var$os","$b6b01ca0ac6a61d6$var$__importStar","$b6b01ca0ac6a61d6$var$events","$b6b01ca0ac6a61d6$var$child","$b6b01ca0ac6a61d6$var$path","$b6b01ca0ac6a61d6$var$io","$b6b01ca0ac6a61d6$var$ioUtil","$b6b01ca0ac6a61d6$var$IS_WINDOWS","EventEmitter","_debug","_getCommandString","noPrefix","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","strBuffer","onLine","argline","_endsWith","str","endsWith","upperToolPath","_uvQuoteCmdArg","cmdSpecialChars","needsQuotes","char","quoteHit","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","$b6b01ca0ac6a61d6$var$__awaiter","optionsNonNull","state","$b6b01ca0ac6a61d6$var$ExecState","spawn","stdbuffer","stdline","errbuffer","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","argString","append","escaped","inQuotes","charAt","_setResult","$gCrli$setTimeout","HandleTimeout","import","READABLE_STREAM","$gCrli$stream","Readable","Writable","Duplex","Transform","PassThrough","Stream","$f0cab4847afce5ac$var$ReadableState","isDuplex","$f0cab4847afce5ac$var$Duplex","objectMode","readableObjectMode","readableHwm","readableHighWaterMark","$lOpht","pipes","pipesCount","flowing","ended","endEmitted","reading","needReadable","emittedReadable","readableListening","resumeScheduled","defaultEncoding","awaitDrain","readingMore","decoder","$f0cab4847afce5ac$var$StringDecoder","StringDecoder","$f0cab4847afce5ac$var$Readable","_destroy","$jww3r","$f0cab4847afce5ac$var$readableAddChunk","addToFront","skipChunkCheck","$f0cab4847afce5ac$var$emitReadable","$f0cab4847afce5ac$var$onEofChunk","$f0cab4847afce5ac$require$Buffer","$f0cab4847afce5ac$var$OurUint8Array","$f0cab4847afce5ac$var$chunkInvalid","getPrototypeOf","$f0cab4847afce5ac$var$_uint8ArrayToBuffer","$f0cab4847afce5ac$var$addChunk","$f0cab4847afce5ac$var$maybeReadMore","$f0cab4847afce5ac$var$needMoreData","$f0cab4847afce5ac$var$howMuchToRead","$f0cab4847afce5ac$var$MAX_HWM","$f0cab4847afce5ac$var$computeNewHighWaterMark","$f0cab4847afce5ac$var$debug","$W7muo","$f0cab4847afce5ac$var$emitReadable_","$f0cab4847afce5ac$var$flow","$f0cab4847afce5ac$var$maybeReadMore_","$f0cab4847afce5ac$var$nReadingNextTick","$f0cab4847afce5ac$var$resume_","$f0cab4847afce5ac$var$fromList","hasStrings","nb","$f0cab4847afce5ac$var$copyFromBufferString","allocUnsafe","copy","$f0cab4847afce5ac$var$copyFromBuffer","$f0cab4847afce5ac$var$fromListPartial","$f0cab4847afce5ac$var$endReadable","$f0cab4847afce5ac$var$endReadableNT","$f0cab4847afce5ac$var$indexOf","xs","l","ReadableState","$f0cab4847afce5ac$var$EElistenerCount","emitter","$f0cab4847afce5ac$var$util","inherits","$gCrli$util","debuglog","$f0cab4847afce5ac$var$kProxyEvents","$3FvcP","_undestroy","undestroy","isPaused","setEncoding","nOrig","doRead","pipeOpts","onend","ondata","increasedAwaitDrain","cleanedUp","pause","onerror","onclose","onfinish","endFn","onunpipe","unpipeInfo","hasUnpiped","ondrain","_writableState","needDrain","$f0cab4847afce5ac$var$pipeOnDrain","event","prependListener","_events","$d1ADi","$f0cab4847afce5ac$var$prependListener","dests","addListener","ev","$f0cab4847afce5ac$var$resume","_this","paused","apply","n1","_fromList","arg1","arg2","arg3","$97b7c8dab13665d0$var$toString","$7a8ae17d03e0b745$var$copyProps","$7a8ae17d03e0b745$var$SafeBuffer","$7a8ae17d03e0b745$var$Buffer","$gCrli$buffer","allocUnsafeSlow","SlowBuffer","$d81bc03bee6361d6$var$objectToString","$d81bc03bee6361d6$export$43bee75e5e14138e","$d81bc03bee6361d6$export$f9ce7b637dfbe238","$d81bc03bee6361d6$export$630801d484da15df","$d81bc03bee6361d6$export$bedb7023a7733221","$d81bc03bee6361d6$export$7e4aa119212bc614","$d81bc03bee6361d6$export$844ec244b1367d54","$d81bc03bee6361d6$export$a244864fd9645c7f","$d81bc03bee6361d6$export$fce6876652108ab","$d81bc03bee6361d6$export$49841c62b9eff15","$d81bc03bee6361d6$export$a6cdc56e425d0d0a","$d81bc03bee6361d6$export$871608497c498473","$d81bc03bee6361d6$export$e6127cc7fe7395c3","$d81bc03bee6361d6$export$f6e2535fb5126e54","$d81bc03bee6361d6$export$c3825b437cbdea5c","$d81bc03bee6361d6$export$a7884ebc965f8f54","d","$gCrli$Buffer","$3e951ecc28e7c718$var$util","$3e951ecc28e7c718$import$7debb50ef11d5e0b","ctor","superCtor","super_","configurable","TempCtor","BufferList","$fe11e0bcec976ce0$var$_classCallCheck","$fe11e0bcec976ce0$require$Buffer","inspect","custom","$2abd684255a52d6f$var$emitErrorNT","errorEmitted","ending","finished","$4ff656ca456d834d$var$Duplex","$kFJd0","$b6wPb","allowHalfOpen","$4ff656ca456d834d$var$onend","$4ff656ca456d834d$var$onEndNT","$4ff656ca456d834d$var$objectKeys","keys1","$4ff656ca456d834d$var$util","$4ff656ca456d834d$var$keys","$4ff656ca456d834d$var$v","$4ff656ca456d834d$var$method","$8159b78985c2fe1d$var$CorkedRequest","finish","corkReq","pendingcb","$8159b78985c2fe1d$var$onCorkedFinish","corkedRequestsFree","$8159b78985c2fe1d$var$nop","$8159b78985c2fe1d$var$WritableState","$8159b78985c2fe1d$var$Duplex","writableObjectMode","writableHwm","writableHighWaterMark","finalCalled","decodeStrings","writing","corked","bufferProcessing","onwrite","writecb","writelen","$8159b78985c2fe1d$var$onwriteStateUpdate","$8159b78985c2fe1d$var$finishMaybe","$8159b78985c2fe1d$var$onwriteError","$8159b78985c2fe1d$var$needFinish","bufferedRequest","$8159b78985c2fe1d$var$clearBuffer","$8159b78985c2fe1d$var$asyncWrite","$8159b78985c2fe1d$var$afterWrite","$8159b78985c2fe1d$var$onwrite","lastBufferedRequest","prefinished","bufferedRequestCount","$8159b78985c2fe1d$var$Writable","$8159b78985c2fe1d$var$realHasInstance","_write","writev","_writev","final","_final","$8159b78985c2fe1d$var$doWrite","$8159b78985c2fe1d$var$onwriteDrain","holder","count","allBuffers","isBuf","$8159b78985c2fe1d$var$callFinal","need","$8159b78985c2fe1d$var$prefinish","browser","WritableState","$8159b78985c2fe1d$var$util","$8159b78985c2fe1d$var$internalUtil","deprecate","$8159b78985c2fe1d$var$OurUint8Array","getBuffer","current","hasInstance","Function","$8159b78985c2fe1d$require$Buffer","$8159b78985c2fe1d$var$_uint8ArrayToBuffer","$8159b78985c2fe1d$var$writeAfterEnd","$8159b78985c2fe1d$var$validChunk","newChunk","$8159b78985c2fe1d$var$decodeChunk","last","$8159b78985c2fe1d$var$writeOrBuffer","cork","uncork","setDefaultEncoding","$8159b78985c2fe1d$var$endWritable","$gCrli$deprecate","$cb88c16218145f6a$var$StringDecoder","nenc","retried","$cb88c16218145f6a$var$_normalizeEncoding","$cb88c16218145f6a$require$Buffer","isEncoding","$cb88c16218145f6a$var$isEncoding","$cb88c16218145f6a$var$normalizeEncoding","$cb88c16218145f6a$var$utf16Text","$cb88c16218145f6a$var$utf16End","fillLast","$cb88c16218145f6a$var$utf8FillLast","$cb88c16218145f6a$var$base64Text","$cb88c16218145f6a$var$base64End","$cb88c16218145f6a$var$simpleWrite","$cb88c16218145f6a$var$simpleEnd","lastNeed","lastTotal","lastChar","$cb88c16218145f6a$var$utf8CheckByte","byte","$cb88c16218145f6a$var$utf8CheckExtraBytes","$cb88c16218145f6a$export$63a7aa211a91ed69","$cb88c16218145f6a$var$utf8CheckIncomplete","$4eea4e3c2aa09ad6$var$afterTransform","ts","_transformState","transforming","writechunk","$4eea4e3c2aa09ad6$var$Transform","$6RDvy","afterTransform","needTransform","writeencoding","_transform","_flush","$4eea4e3c2aa09ad6$var$prefinish","$4eea4e3c2aa09ad6$var$done","$4eea4e3c2aa09ad6$var$util","_this2","err2","$4fd2cbc66bd9d756$var$PassThrough","$6M3Ye","$4fd2cbc66bd9d756$var$util","$c2590d837d224815$var$addLocale","localeData","$c2590d837d224815$var$locales","$c2590d837d224815$var$pluralize","unit","config","unitTypeData","locale","lookupOrder","unitTypeLookupOrder","unitType","$c2590d837d224815$var$getLocaleDataForUnitType","pluralize","$c2590d837d224815$var$timeUnits","$c2590d837d224815$var$defaultConfig","span","firstDate","secondDate","autoload","$7IZzv","localeId","require","$c2590d837d224815$var$requireLocale","$c2590d837d224815$var$ensureLocaleLoadedOrThrow","difference","results","divider","$c2590d837d224815$var$getDifference","$c2590d837d224815$var$format","variants","checkLocale","locales","hasLocale","$f7e860cde5315f5f$var$__dirname1","requireLocale","moduleDefinition","callable","numerous","node","$ee50b93f35d1d045$var$isWindows","OSTYPE","$ee50b93f35d1d045$var$COLON","TESTING_WINDOWS","$7b9209944aaaa76d$exports","$ee50b93f35d1d045$var$getNotFoundError","$ee50b93f35d1d045$var$getPathInfo","colon","pathEnv","pathExtExe","$ee50b93f35d1d045$var$which","found","step","ppRaw","pathPart","pCmd","subStep","ext","cur","ex","$0d499e77a65c6243$var$pathKey","environment","$7dd3fa4e75bca08d$export$ae50443ffc990749","$7dd3fa4e75bca08d$export$6ea29ee575e3f5ff","$13876d63a1d769ba$exports","$7dd3fa4e75bca08d$var$metaCharsRegExp","doubleEscapeMetaChars","$0d00fbf54931595d$exports","$29c07e94897d7a59$exports","argument","binary","$36323010904bb25a$exports","fd","$gCrli$openSync","$gCrli$readSync","$gCrli$closeSync","$6c97148d68b1e108$var$isWin","$6c97148d68b1e108$var$isExecutableRegExp","$6c97148d68b1e108$var$isCmdShimRegExp","commandFile","shebang","$6c97148d68b1e108$var$detectShebang","needsShell","forceShell","needsDoubleEscapeMetaChars","$gCrli$normalize","shellCommand","comspec","$6c97148d68b1e108$var$parseNonShell","originalEmit","$3d4add3ad29c5f63$exports","$gCrli$spawnSync","verifyENOENTSync","_parse","_enoent","$6c65bf76ed80beb1$exports","CR","$3c40ebeb795180e6$var$npmRunPath","previous","execPath","cwdPath","execPathDir","$3c40ebeb795180e6$exports","$083c094d5f322ea4$var$mimicFn","prop","Reflect","ownKeys","$083c094d5f322ea4$exports","$4744e4dfe63f8573$var$calledFunctions","WeakMap","$4744e4dfe63f8573$var$onetime","returnValue","callCount","functionName","displayName","onetime1","arguments_","throw","$4744e4dfe63f8573$exports","$5ef0bba32a11c1bd$exports","signalsByNumber","signalsByName","$67476999bf5eecc7$exports","getSignals","standard","action","description","forced","getRealtimeSignals","SIGRTMAX","SIGRTMIN","getRealtimeSignal","$ce3780d380f6d6d2$var$SIGRTMAX","realtimeSignals","$ce3780d380f6d6d2$exports","SIGNALS","normalizeSignal","defaultNumber","signals","constantSignal","constants","supported","signalByNameMemo","$5ef0bba32a11c1bd$var$signalsByName","signalsA","signalA","findSignalByNumber","getSignalByNumber","getSignalsByNumber","$5ef0bba32a11c1bd$var$signalsByNumber","$22ce991938258c2c$exports","escapedCommand","timedOut","killed","signalDescription","$22ce991938258c2c$require$signalsByName","errorCode","$22ce991938258c2c$var$getErrorPrefix","execaMessage","isError","shortMessage","originalMessage","failed","$25226dd4913ac96b$var$aliases","$25226dd4913ac96b$var$normalizeStdio","$25226dd4913ac96b$var$hasAlias","$25226dd4913ac96b$exports","$7324ecdc22917825$var$process","$7324ecdc22917825$var$processOk","process1","reallyExit","kill","pid","$7324ecdc22917825$var$emitter","$7324ecdc22917825$var$assert","$gCrli$assert","$7324ecdc22917825$var$signals","$7324ecdc22917825$var$isWin","$7324ecdc22917825$var$EE","__signal_exit_emitter__","emitted","infinite","setMaxListeners","$7324ecdc22917825$exports","equal","$7324ecdc22917825$var$loaded","$7324ecdc22917825$var$load","alwaysLast","$7324ecdc22917825$var$unload","sig","$7324ecdc22917825$var$sigListeners","$7324ecdc22917825$var$originalProcessEmit","$7324ecdc22917825$var$originalProcessReallyExit","unload","$7324ecdc22917825$var$emit","$7324ecdc22917825$var$processEmit","$7324ecdc22917825$var$processReallyExit","$2a9d5cede3e23a86$var$isSigterm","$gCrli$constants1","SIGTERM","$2a9d5cede3e23a86$exports","killResult","forceKillAfterTimeout","$2a9d5cede3e23a86$var$shouldForceKill","$2a9d5cede3e23a86$var$getForceKillAfterTimeout","$2a9d5cede3e23a86$var$setKillTimeout","context","killSignal","spawnedPromise","timeoutId","timeoutPromise","$2a9d5cede3e23a86$var$timeoutKill","safeSpawnedPromise","finally","race","cleanup","detached","timedPromise","removeExitHandler","spawnedKill","spawnedCancel","setupTimeout","validateTimeout","setExitHandler","$444c55d8cc7400c1$var$isStream","duplex","$444c55d8cc7400c1$exports","$gCrli$constants2","$gCrli$PassThrough","$e221f82cbd79e937$require$PassThroughStream","chunks","$b66d4b39a4b6d666$require$promisify","$gCrli$pipeline","$b66d4b39a4b6d666$exports","stream2","stream3","MaxBufferError","$247e371530aaf2c8$exports","sources","remove","isEmpty","it","$247e371530aaf2c8$require$PassThrough","$06125db202b43402$var$getBufferedData","streamPromise","$06125db202b43402$var$getStreamPromise","$06125db202b43402$exports","mixed","processDone","stdoutPromise","stderrPromise","allPromise","handleInput","getSpawnedResult","makeAllStream","validateInputSync","$cd1d4b7bf0a885f7$var$nativePromisePrototype","$cd1d4b7bf0a885f7$var$descriptors","property","$cd1d4b7bf0a885f7$exports","descriptor","mergePromise","getSpawnedPromise","$7f1ae7744e01347b$var$normalizeArgs","$7f1ae7744e01347b$var$NO_ESCAPE_REGEXP","$7f1ae7744e01347b$var$DOUBLE_QUOTES_REGEXP","$7f1ae7744e01347b$var$SPACES_REGEXP","$7f1ae7744e01347b$exports","$7f1ae7744e01347b$var$escapeArg","previousToken","joinCommand","parseCommand","getEscapedCommand","$78a9a46c46452123$var$handleArguments","stripFinalNewline","preferLocal","localDir","windowsHide","envOption","$78a9a46c46452123$var$getEnv","$gCrli$basename","$78a9a46c46452123$var$handleOutput","$78a9a46c46452123$var$execa","$78a9a46c46452123$require$joinCommand","$78a9a46c46452123$require$getEscapedCommand","$78a9a46c46452123$require$validateTimeout","error1","dummySpawned","$gCrli$ChildProcess","errorPromise","$78a9a46c46452123$require$mergePromise","$78a9a46c46452123$require$getSpawnedPromise","$78a9a46c46452123$require$setupTimeout","$78a9a46c46452123$require$setExitHandler","$78a9a46c46452123$require$spawnedKill","$78a9a46c46452123$require$spawnedCancel","handlePromiseOnce","stdoutResult","stderrResult","allResult","$78a9a46c46452123$require$getSpawnedResult","returnedError","$78a9a46c46452123$require$handleInput","$78a9a46c46452123$require$makeAllStream","$78a9a46c46452123$require$validateInputSync","$78a9a46c46452123$require$parseCommand","scriptPath","defaultExecArgv","execArgv","nodePath","nodeOptions","$b6801b6bd01e6394$var$homeDirectory","$gCrli$homedir","pathWithTilde","$4d5f494194aaccf5$var$is_posix_os","$4d5f494194aaccf5$var$version","$gCrli$release","$4d5f494194aaccf5$var$windows_version_regex","given_path","major_release","os_build","$4d5f494194aaccf5$var$should_not_escape","$050bf27eb9b74231$var$__importStar","$050bf27eb9b74231$var$mm","$050bf27eb9b74231$var$httpm","$050bf27eb9b74231$var$stream","$050bf27eb9b74231$var$util","$050bf27eb9b74231$var$__importDefault","$0720ed162241c7ef$var$core","$0720ed162241c7ef$var$__importStar","$0720ed162241c7ef$exports","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","isRetryable","attempt","seconds","getSleepAmount","sleep","$050bf27eb9b74231$var$HTTPError","httpStatusCode","$050bf27eb9b74231$var$IS_WINDOWS","$050bf27eb9b74231$var$IS_MAC","retryHelper","$050bf27eb9b74231$var$__awaiter","http","authorization","pipeline","promisify","readStream","responseMessageFactory","succeeded","createWriteStream","$050bf27eb9b74231$var$downloadToolAttempt","extract7z","_7zPath","originalCwd","$050bf27eb9b74231$var$__dirname1","powershellPath","versionOutput","isGnuTar","destArg","fileArg","extractXar","xarPath","extractZip","escapedFile","escapedDest","pwshPath","$050bf27eb9b74231$var$extractZipWin","unzipPath","$050bf27eb9b74231$var$extractZipNix","statSync","destPath","itemName","cacheFile","sourceFile","targetFile","destFolder","cachePath","findAllVersions","getManifestFromRepo","owner","branch","releases","treeUrl","manifestUrl","tree","versionsRaw","findFromManifest","manifest","isExplicitVersion","evaluateVersions","$gCrli$Writable","reads","DuplexWrapper","$92be3794d8449a75$var$isStream","$c77953b5c93680d0$require$PassThrough","time","timeoutTimer","delays","_headers","$9c5075142846dd3a$exports","withProtocol","unzip","$gCrli$createUnzip","$8d3c6ef09939c20a$require$PassThrough","httpVersion","rawHeaders","trailers","rawTrailers","$41d182c815b0f1e6$exports","captureStackTrace","container","$85dc6253b318f740$exports","className","setup","ErrorClass","$f0cfd18885c44e1e$var$WHITELIST","$f0cfd18885c44e1e$var$BLACKLIST","$1457bd8fb8a0c7e1$exports","$e316302c587537ee$var$helpers","el1","$e316302c587537ee$require$PassThrough","$e316302c587537ee$var$asStream","el","STATUS_CODES","$a89c52add36d4bd5$export$afaf85bc510dd0d6","$a89c52add36d4bd5$export$81ac2a82f65cb090","$c9e1cca4522d9d48$export$c564cdbbe6da493","$c9e1cca4522d9d48$export$2f872c0f2117be69","$c9e1cca4522d9d48$export$cbee51f25f0626d7","$512f74ee9d8b37c4$export$f84e8e69fd4488a5","$512f74ee9d8b37c4$export$2fe53163c7bc4eaf","$850fca6825dc5267$export$f84e8e69fd4488a5","$761290495bfc1111$export$f84e8e69fd4488a5","rcode","opcode","$68d89ba0619b17d1$var$ip","$68d89ba0619b17d1$exports","toBuffer","ip1","buff","isV4Format","$68d89ba0619b17d1$require$Buffer","isV6Format","sections","v4Buffer","argv","word","readUInt16BE","$68d89ba0619b17d1$var$ipv4Regex","$68d89ba0619b17d1$var$ipv6Regex","ip2","ip3","fromPrefixLen","prefixlen","bits","mask","addr","cidr","cidrString","cidrParts","subnet","networkAddress","toLong","maskBuffer","maskLength","octet","numberOfAddresses","fromLong","firstAddress","lastAddress","broadcastAddress","subnetMask","subnetMaskLength","numHosts","contains","cidrSubnet","not","or","isEqual","isPrivate","isPublic","isLoopback","loopback","interfaces","$gCrli$networkInterfaces","details","nic","addresses","ip4","ipl","$c9e1cca4522d9d48$var$name","$c9e1cca4522d9d48$require$Buffer","oldOffset","$c9e1cca4522d9d48$var$string","$c9e1cca4522d9d48$var$header","writeUInt16BE","questions","answers","authorities","additionals","flag_qr","flag_auth","flag_trunc","flag_rd","flag_ra","flag_z","flag_ad","flag_cd","$c9e1cca4522d9d48$var$runknown","$c9e1cca4522d9d48$var$rns","dd","$c9e1cca4522d9d48$var$rsoa","mname","rname","writeUInt32BE","serial","refresh","retry","expire","minimum","readUInt32BE","$c9e1cca4522d9d48$var$rtxt","$c9e1cca4522d9d48$var$rnull","$c9e1cca4522d9d48$var$rhinfo","cpu","os","$c9e1cca4522d9d48$var$rptr","$c9e1cca4522d9d48$var$rcname","$c9e1cca4522d9d48$var$rdname","$c9e1cca4522d9d48$var$rsrv","priority","weight","$c9e1cca4522d9d48$var$rcaa","issuerCritical","ISSUER_CRITICAL","writeUInt8","readUInt8","$c9e1cca4522d9d48$var$ra","$c9e1cca4522d9d48$var$raaaa","$c9e1cca4522d9d48$var$renc","$c9e1cca4522d9d48$var$answer","klass","class","$c9e1cca4522d9d48$var$question","q","allocing","$d6207f4f3fec6328$exports","RECURSION_DESIRED","RECURSION_AVAILABLE","TRUNCATED_RESPONSE","AUTHORITATIVE_ANSWER","AUTHENTIC_DATA","CHECKING_DISABLED","close","tries","send","_trim","setRetries","$d6207f4f3fec6328$var$nextTick","$1e92ba85f9b3feb9$export$98e6a39c04603d36","$1e92ba85f9b3feb9$export$fac44ee5b035f737","$gCrli$Transform","$42b4c73da8f33259$var$getOwnPropertySymbols","getOwnPropertySymbols","$42b4c73da8f33259$var$hasOwnProperty","$42b4c73da8f33259$var$propIsEnumerable","propertyIsEnumerable","$42b4c73da8f33259$exports","test1","getOwnPropertyNames","test2","fromCharCode","test3","letter","$42b4c73da8f33259$var$shouldUseNative","symbols","$a45e38f579e4aa8c$var$multiMatcher","$a45e38f579e4aa8c$exports","encodedURI","replaceMap","$a45e38f579e4aa8c$var$customDecodeURIComponent","formatter","arrayFormat","accumulator","$1e92ba85f9b3feb9$var$parserForArrayFormat","param","$1e92ba85f9b3feb9$var$encoderForArrayFormat","val2","$9dda96e52757bb27$exports","https","$0b8a09cf340a4dc4$var$toString","$0b8a09cf340a4dc4$exports","$5b4553b682abc6f9$exports","deep","seenInput","seenOutput","sortKeys","seenIndex","retArr","$1ce22a6bc4ec9ee8$var$DEFAULT_PORTS","$1ce22a6bc4ec9ee8$var$slashedProtocol","ftp","gopher","$1ce22a6bc4ec9ee8$exports","normalizeProtocol","normalizeHttps","stripFragment","stripWWW","removeQueryParameters","removeTrailingSlash","removeDirectoryIndex","sortQueryParameters","hasRelativeProtocol","urlObj","hash","decodeURI","pathComponents","domain","$gCrli$toUnicode","queryParameters","$cea9d01146c618c0$var$statusCodeCacheableByDefault","$cea9d01146c618c0$var$understoodStatuses","$cea9d01146c618c0$var$hopByHopHeaders","te","trailer","$cea9d01146c618c0$var$excludedFromRevalidationUpdate","$cea9d01146c618c0$exports","CachePolicy","_ref2","shared","cacheHeuristic","immutableMinTimeToLive","ignoreCargoCult","_fromObject","_assertRequestHasHeaders","_responseTime","_isShared","_cacheHeuristic","_immutableMinTtl","_status","_resHeaders","_rescc","_method","_url","_host","_noAuthorization","_reqHeaders","vary","_reqcc","expires","pragma","storable","_hasExplicitExpiration","private","_allowsStoringAuthenticated","public","satisfiesWithoutRevalidation","requestCC","age","timeToLive","_requestMatches","allowHeadMethod","_varyMatches","fields","_isArray2","_iterator2","_i2","_ref3","_copyWithoutHopByHopHeaders","inHeaders","_isArray3","_iterator3","_i3","_ref4","warnings","responseHeaders","date","dateValue","maxClockDrift","ageValue","_ageValue","immutable","defaultMinTtl","lastModified","fromObject","sh","ch","imm","st","resh","rescc","reqh","reqcc","toObject","revalidationHeaders","incomingReq","etag","etags","revalidatedPolicy","policy","modified","newResponse","$8a72fc78139dcd7f$exports","$8a72fc78139dcd7f$require$Readable","$68bc4e6c56b58c5b$exports","$2eadb32f38769ddb$var$knownProps","$a1b1d486324da9c5$export$fac44ee5b035f737","$a1b1d486324da9c5$export$98e6a39c04603d36","fromStream","toStream","fromProps","$95343249191500b4$exports","clone","$95343249191500b4$require$PassThrough","toJSON","ignore","$3036036f44a6fa1d$exports","uri","namespace","store","adapterOpts","adapters","redis","mongodb","mongo","sqlite","postgresql","postgres","mysql","adapter","$3036036f44a6fa1d$var$loadStore","_getKeyPrefix","$db07f91f68d27a79$var$CacheableRequest","cacheAdapter","createCacheableRequest","strictTtl","automaticFailover","revalidate","madeRequest","makeRequest","cachePolicy","fromCache","clonedResponse","cacheEntry","$5f92d92d7f991f40$exports","$f4e72eea3183554f$exports","prepare","shouldIterate","reader","$5c302c960868fd32$var$toString","$5c302c960868fd32$var$isOfType","$5c302c960868fd32$var$isObjectOfType","typeName","is1","isObject","null_","class_","symbol","iterable","generator","nativePromise","hasPromiseAPI","isFunctionOfType","generatorFunction","asyncFunction","boundFunction","regExp","weakMap","weakSet","int8Array","uint8Array","uint8ClampedArray","int16Array","uint16Array","int32Array","uint32Array","float32Array","float64Array","arrayBuffer","sharedArrayBuffer","dataView","directInstanceOf","truthy","falsy","nan","primitiveTypes","primitive","integer","isInteger","safeInteger","isSafeInteger","typedArrayTypes","typedArray","objectType","arrayLike","isValidLength","inRange","$gCrli$inspect","DOM_PROPERTIES_TO_CHECK","domElement","nodeType","nodeName","isAbsoluteMod2","rem","abs","even","odd","empty","isEmptyStringOrArray","isEmptyObject","isEmptyMapOrSet","emptyOrWhitespace","isWhiteSpaceString","predicateOnArray","predicate","defineProperties","finalUrl","$a7f8329719cd8e7e$require$PassThrough","$9589f7ff9348ee9f$exports","toStringTag","$975ce544ff29768a$exports","$4449ae7618fa216a$var$toString","$4449ae7618fa216a$var$isURL","supportIncomplete","searchParams","$55b9b5dce1aeaa14$var$CancelError","$55b9b5dce1aeaa14$var$PCancelable","userFn","executor","_cancelHandlers","_isPending","_isCanceled","_promise","_reject","onFulfilled","onRejected","onFinally","CancelError","$04e1b94244a20848$exports","$331d3121e33b2657$var$TimeoutError","timer","TimeoutError","$12f59630b55cd717$var$processFn","P","promiseModule","errorFirst","multiArgs","exclude","include","excludeMain","key1","$aa12e5d250d6e52e$export$ccda0b5875e8fcd9","$aa12e5d250d6e52e$export$78ff06e91c3de382","$aa12e5d250d6e52e$export$43ee7d0e4f429743","$aa12e5d250d6e52e$export$e5f2fbba71434b55","$aa12e5d250d6e52e$export$f9c837a54db411d","$aa12e5d250d6e52e$export$aa9d629c530f62a7","$aa12e5d250d6e52e$export$a34d7acee3cbcf76","$aa12e5d250d6e52e$export$a4b007ef97cf13ba","$aa12e5d250d6e52e$export$d7f5e52d091a66db","$aa12e5d250d6e52e$var$GotError","$gCrli$STATUS_CODES","$b2bb05f914a86e2d$var$methods","$aa12e5d250d6e52e$exports","$b2bb05f914a86e2d$exports","$2459b21d2ab1a883$var$v4","$2459b21d2ab1a883$var$v6","$2459b21d2ab1a883$var$ip","$2459b21d2ab1a883$exports","exact","v4","v6","$a962e88bf695a578$var$isIp","$a962e88bf695a578$exports","$a89c52add36d4bd5$var$defaults","$a89c52add36d4bd5$var$type","dnsServer","dnsQuestion","httpsUrl","$a89c52add36d4bd5$var$queryDns","ip","$a89c52add36d4bd5$var$queryHttps","gotPromise","$a5a21416d4e75253$exports","indent","includeEmptyLines","$c2c00b96a4683d4f$var$extractPathRegex","$c2c00b96a4683d4f$var$pathRegex","$c2c00b96a4683d4f$var$homeDir","$c2c00b96a4683d4f$exports","pretty","pathMatches","p1","$ff674cc0d7d86c82$var$AggregateError","errors","_errors","$92797c2a558d102c$exports","$01169c1236e9837b$exports","AggregateError","elCount","maxErrors","maxFiltered","fulfilled","RangeError","rejected","$ff674cc0d7d86c82$exports","$01964dbc2b2d5c6e$var$TimeoutError","$01964dbc2b2d5c6e$exports","$d2be50aa9d664841$var$defaults","$f4dd0bc478239002$var$isOnlineCache","$d2be50aa9d664841$exports","$a89c52add36d4bd5$exports","$98337fff116494b5$exports","$f4dd0bc478239002$var$DevNull","$f4dd0bc478239002$require$WritableStream","link","gotOptions","checkConnectivity","$f4dd0bc478239002$var$tryHead","req_","requestErr","cachedAt","connectivityCacheDuration","online","$f4dd0bc478239002$var$tryGet","llvm","clangtidy","clangformat","ninja","gcovr","conan","meson","kcov","task","doxygen","gcc","nala","specific","$c112f7dc4a6d1792$var$__importStar","$7104a8b219ab06be$exports","$c112f7dc4a6d1792$var$escapeData","$419fd15dcc891459$var$fs","$419fd15dcc891459$var$__importStar","$419fd15dcc891459$var$os","$419fd15dcc891459$exports","$0da1435a5673ff4a$var$os","$0da1435a5673ff4a$var$__importStar","$0da1435a5673ff4a$var$path","$0da1435a5673ff4a$var$ExitCode","$gCrli$env","$03fa2bac94687fac$var$VSWHERE_PATH","$gCrli$platform1","arch_aliases","win32","win64","x86_64","vcvars","cmd_output_parts","old_environment","vcvars_output","new_environment","error_messages","old_env_vars","string1","new_value","long","one","months","weeks","days","hours","minutes","narrow","short","exe","$gCrli$execFile","reDistributor","reDescription","reRelease","distributorFound","desc","rel","ss","$afd14d39247c0f30$var$binDir","$ce54bf56b9f5521e$var$hasVCPKG","python","vcpkg","bazel","opencppcoverage","$4072dd4cc3873d73$var$activateOpencppcoverage","choco","brew","ccache","$09f0776ac5e57c1d$var$activateWinDoxygen","graphviz","cppcheck","$758d288127dc92bf$var$activateWinCppcheck","msvc","vcvarsall","versionSplit","installMethod","version_number","make","sevenzip"],"version":3,"file":"setup_cpp.mjs.map","sourceRoot":"../"} \ No newline at end of file diff --git a/package.json b/package.json index 7cce4c24..62a7c7c4 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "exec-powershell": "workspace:*", "execa": "^5.1.1", "extension-tools": "workspace:*", + "is-link-working": "^2.2.0", "mri": "^1.2.0", "msvc-dev-cmd": "github:aminya/msvc-dev-cmd#9f672c1", "numerous": "1.0.3", @@ -122,6 +123,9 @@ "ninja", "meson" ], + "alias": { + "electron": false + }, "pnpm": { "overrides": { "semver": "7.3.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 60eb575b..d42bb301 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,6 +34,7 @@ importers: execa: ^5.1.1 extension-tools: workspace:* gen-readme: ^1.6.0 + is-link-working: ^2.2.0 jest: ^28.1.3 loose-ts-check: ^1.2.0 mri: ^1.2.0 @@ -68,6 +69,7 @@ importers: exec-powershell: link:packages/exec-powershell execa: 5.1.1 extension-tools: link:packages/extension-tools + is-link-working: 2.2.0 mri: 1.2.0 msvc-dev-cmd: github.com/aminya/msvc-dev-cmd/9f672c1 numerous: 1.0.3 @@ -2248,6 +2250,11 @@ packages: engines: {node: '>=6'} dev: true + /@sindresorhus/is/0.7.0: + resolution: {integrity: sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==} + engines: {node: '>=4'} + dev: false + /@sindresorhus/is/5.3.0: resolution: {integrity: sha512-CX6t4SYQ37lzxicAqsBtxA3OseeoVrh9cSJ5PFYam0GksYlupRfy1A+Q4aYD3zvcfECLc0zO2u+ZnR2UYKvCrw==} engines: {node: '>=14.16'} @@ -2409,7 +2416,6 @@ packages: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: '@types/node': 18.6.3 - dev: true /@types/mdast/3.0.10: resolution: {integrity: sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==} @@ -2458,7 +2464,6 @@ packages: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} dependencies: '@types/node': 18.6.3 - dev: true /@types/semver/7.3.10: resolution: {integrity: sha512-zsv3fsC7S84NN6nPK06u79oWgrPVd0NvOyqgghV1haPaFcVxIrP4DLomRwGAXk0ui4HZA7mOcSFL98sMVW9viw==} @@ -2667,6 +2672,14 @@ packages: - supports-color dev: true + /aggregate-error/1.0.0: + resolution: {integrity: sha512-7heCOdGepPfjajU0Hi8wJypLsZIB6AeDN/YzW+Mmy8QU7iaEW579WzA9cWbke3cGYwmBazCVL2Zzdhq+iQ6pBg==} + engines: {node: '>=4'} + dependencies: + clean-stack: 1.3.0 + indent-string: 3.2.0 + dev: false + /aggregate-error/3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} @@ -3119,6 +3132,18 @@ packages: engines: {node: '>=10.6.0'} dev: true + /cacheable-request/2.1.4: + resolution: {integrity: sha512-vag0O2LKZ/najSoUwDbVlnlCFvhBE/7mGTY2B5FgCBDcRD+oVV1HYTOwM6JZfMg/hIcM6IwnTZ1uQQL5/X3xIQ==} + dependencies: + clone-response: 1.0.2 + get-stream: 3.0.0 + http-cache-semantics: 3.8.1 + keyv: 3.0.0 + lowercase-keys: 1.0.0 + normalize-url: 2.0.1 + responselike: 1.0.2 + dev: false + /cacheable-request/6.1.0: resolution: {integrity: sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==} engines: {node: '>=8'} @@ -3188,7 +3213,6 @@ packages: /capture-stack-trace/1.0.1: resolution: {integrity: sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw==} engines: {node: '>=0.10.0'} - dev: true /caxa/2.1.0: resolution: {integrity: sha512-RMenUUAKteG7neQeIZchqLGWa2QkrlO8KUHeefvDiPURASiKAGHCJUXh8CyLHkDCk5NKIz0IdcRyVXXypB+hXQ==} @@ -3268,6 +3292,11 @@ packages: resolution: {integrity: sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==} dev: true + /clean-stack/1.3.0: + resolution: {integrity: sha512-4CCmhqt4yqbQQI9REDKCf+N6U3SToC5o7PoKCq4veHvr30TJ2Vmz1mYYF23VC0E7Z13tf4CXh9jXY0VC+Jtdng==} + engines: {node: '>=4'} + dev: false + /clean-stack/2.2.0: resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} engines: {node: '>=6'} @@ -3338,6 +3367,12 @@ packages: wrap-ansi: 7.0.0 dev: true + /clone-response/1.0.2: + resolution: {integrity: sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q==} + dependencies: + mimic-response: 1.0.1 + dev: false + /clone-response/1.0.3: resolution: {integrity: sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==} dependencies: @@ -3558,7 +3593,6 @@ packages: /core-util-is/1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - dev: true /cosmiconfig/7.0.1: resolution: {integrity: sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==} @@ -3590,7 +3624,6 @@ packages: engines: {node: '>=0.10.0'} dependencies: capture-stack-trace: 1.0.1 - dev: true /cross-env/7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} @@ -3821,12 +3854,16 @@ packages: character-entities: 2.0.2 dev: true + /decode-uri-component/0.2.0: + resolution: {integrity: sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==} + engines: {node: '>=0.10'} + dev: false + /decompress-response/3.3.0: resolution: {integrity: sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==} engines: {node: '>=4'} dependencies: mimic-response: 1.0.1 - dev: true /decompress-response/6.0.0: resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} @@ -3932,6 +3969,19 @@ packages: path-type: 4.0.0 dev: true + /dns-packet/1.3.4: + resolution: {integrity: sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==} + dependencies: + ip: 1.1.8 + safe-buffer: 5.2.1 + dev: false + + /dns-socket/1.6.3: + resolution: {integrity: sha512-/mUy3VGqIP69dAZjh2xxHXcpK9wk2Len1Dxz8mWAdrIgFC8tnR/aQAyU4a+UTXzOcTvEvGBdp1zFiwnpWKaXng==} + dependencies: + dns-packet: 1.3.4 + dev: false + /doctrine/2.1.0: resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} engines: {node: '>=0.10.0'} @@ -4022,7 +4072,6 @@ packages: /duplexer3/0.1.5: resolution: {integrity: sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==} - dev: true /eastasianwidth/0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -4866,6 +4915,13 @@ packages: engines: {node: '>=10'} dev: true + /from2/2.3.0: + resolution: {integrity: sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==} + dependencies: + inherits: 2.0.4 + readable-stream: 2.3.7 + dev: false + /fs-constants/1.0.0: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} dev: true @@ -5003,7 +5059,6 @@ packages: /get-stream/3.0.0: resolution: {integrity: sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==} engines: {node: '>=4'} - dev: true /get-stream/4.1.0: resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==} @@ -5184,7 +5239,31 @@ packages: timed-out: 4.0.1 unzip-response: 2.0.1 url-parse-lax: 1.0.0 - dev: true + + /got/8.3.2: + resolution: {integrity: sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==} + engines: {node: '>=4'} + dependencies: + '@sindresorhus/is': 0.7.0 + '@types/keyv': 3.1.4 + '@types/responselike': 1.0.0 + cacheable-request: 2.1.4 + decompress-response: 3.3.0 + duplexer3: 0.1.5 + get-stream: 3.0.0 + into-stream: 3.1.0 + is-retry-allowed: 1.2.0 + isurl: 1.0.0 + lowercase-keys: 1.0.1 + mimic-response: 1.0.1 + p-cancelable: 0.4.1 + p-timeout: 2.0.1 + pify: 3.0.0 + safe-buffer: 5.2.1 + timed-out: 4.0.1 + url-parse-lax: 3.0.0 + url-to-options: 1.0.1 + dev: false /got/9.6.0: resolution: {integrity: sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==} @@ -5256,11 +5335,21 @@ packages: get-intrinsic: 1.1.2 dev: true + /has-symbol-support-x/1.4.2: + resolution: {integrity: sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==} + dev: false + /has-symbols/1.0.3: resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} engines: {node: '>= 0.4'} dev: true + /has-to-string-tag-x/1.4.1: + resolution: {integrity: sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==} + dependencies: + has-symbol-support-x: 1.4.2 + dev: false + /has-tostringtag/1.0.0: resolution: {integrity: sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==} engines: {node: '>= 0.4'} @@ -5358,6 +5447,10 @@ packages: entities: 3.0.1 dev: true + /http-cache-semantics/3.8.1: + resolution: {integrity: sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==} + dev: false + /http-cache-semantics/4.1.0: resolution: {integrity: sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==} dev: true @@ -5469,6 +5562,11 @@ packages: engines: {node: '>=0.8.19'} dev: true + /indent-string/3.2.0: + resolution: {integrity: sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==} + engines: {node: '>=4'} + dev: false + /indent-string/4.0.0: resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} engines: {node: '>=8'} @@ -5487,7 +5585,6 @@ packages: /inherits/2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - dev: true /ini/1.3.7: resolution: {integrity: sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==} @@ -5535,11 +5632,23 @@ packages: engines: {node: '>= 0.10'} dev: true + /into-stream/3.1.0: + resolution: {integrity: sha512-TcdjPibTksa1NQximqep2r17ISRiNE9fwlfbg3F8ANdvP5/yrFTew86VcO//jk4QTaMlbjypPBq76HN2zaKfZQ==} + engines: {node: '>=4'} + dependencies: + from2: 2.3.0 + p-is-promise: 1.1.0 + dev: false + /ip-regex/2.1.0: resolution: {integrity: sha512-58yWmlHpp7VYfcdTwMTvwMmqx/Elfxjd9RXTDyMsbL7lLWmhMylLEqiYVLKuLzOZqVgiWXD9MfR62Vv89VRxkw==} engines: {node: '>=4'} dev: false + /ip/1.1.8: + resolution: {integrity: sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==} + dev: false + /ip/2.0.0: resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==} dev: true @@ -5637,6 +5746,13 @@ packages: engines: {node: '>=8'} dev: true + /is-ip/2.0.0: + resolution: {integrity: sha512-9MTn0dteHETtyUx8pxqMwg5hMBi3pvlyglJ+b79KOCca0po23337LbVV2Hl4xmMvfw++ljnO0/+5G6G+0Szh6g==} + engines: {node: '>=4'} + dependencies: + ip-regex: 2.1.0 + dev: false + /is-json/2.0.1: resolution: {integrity: sha512-6BEnpVn1rcf3ngfmViLM6vjUjGErbdrL4rwlv+u1NO1XO8kqT4YGL8+19Q+Z/bas8tY90BTWMk2+fW1g6hQjbA==} dev: true @@ -5645,6 +5761,14 @@ packages: resolution: {integrity: sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==} dev: true + /is-link-working/2.2.0: + resolution: {integrity: sha512-QFsUv7BU1dnRwHFx7wCh0P7k3mW7lrbIFvXE3ehOHgJNdQVh1O1KkXp4C+OQ2D+mi1tuLgrvTl4Q8NO94ZZaEw==} + engines: {node: '>=4.0.0'} + dependencies: + got: 6.7.1 + is-online: 7.0.0 + dev: false + /is-negative-zero/2.0.2: resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} engines: {node: '>= 0.4'} @@ -5682,6 +5806,20 @@ packages: engines: {node: '>=8'} dev: true + /is-object/1.0.2: + resolution: {integrity: sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==} + dev: false + + /is-online/7.0.0: + resolution: {integrity: sha512-hYQdZtkfrOvDlypKJ4Euo9rkO2GFMJK++7Pn7ttVU382RCn6QagwUSOKhfUOIxeGK/yhvJzc6o8c9GuBbzHh5Q==} + engines: {node: '>=4'} + dependencies: + got: 6.7.1 + p-any: 1.1.0 + p-timeout: 1.2.1 + public-ip: 2.5.0 + dev: false + /is-path-inside/3.0.3: resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} engines: {node: '>=8'} @@ -5690,7 +5828,6 @@ packages: /is-plain-obj/1.1.0: resolution: {integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==} engines: {node: '>=0.10.0'} - dev: true /is-plain-obj/2.1.0: resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} @@ -5700,7 +5837,6 @@ packages: /is-redirect/1.0.0: resolution: {integrity: sha512-cr/SlUEe5zOGmzvj9bUyC4LVvkNVAXu4GytXLNMr1pny+a65MpQ9IJzFHD5vi7FyJgb4qt27+eS3TuQnqB+RQw==} engines: {node: '>=0.10.0'} - dev: true /is-regex/1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} @@ -5713,7 +5849,6 @@ packages: /is-retry-allowed/1.2.0: resolution: {integrity: sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==} engines: {node: '>=0.10.0'} - dev: true /is-shared-array-buffer/1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} @@ -5724,7 +5859,6 @@ packages: /is-stream/1.1.0: resolution: {integrity: sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==} engines: {node: '>=0.10.0'} - dev: true /is-stream/2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} @@ -5773,7 +5907,6 @@ packages: /isarray/1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} - dev: true /isexe/2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -5824,6 +5957,14 @@ packages: istanbul-lib-report: 3.0.0 dev: true + /isurl/1.0.0: + resolution: {integrity: sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==} + engines: {node: '>= 4'} + dependencies: + has-to-string-tag-x: 1.4.1 + is-object: 1.0.2 + dev: false + /jake/10.8.5: resolution: {integrity: sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==} engines: {node: '>=10'} @@ -6285,7 +6426,6 @@ packages: /json-buffer/3.0.0: resolution: {integrity: sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==} - dev: true /json-buffer/3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} @@ -6360,6 +6500,12 @@ packages: object.assign: 4.1.2 dev: true + /keyv/3.0.0: + resolution: {integrity: sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==} + dependencies: + json-buffer: 3.0.0 + dev: false + /keyv/3.1.0: resolution: {integrity: sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==} dependencies: @@ -6546,10 +6692,14 @@ packages: yargs: 16.2.0 dev: true + /lowercase-keys/1.0.0: + resolution: {integrity: sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A==} + engines: {node: '>=0.10.0'} + dev: false + /lowercase-keys/1.0.1: resolution: {integrity: sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==} engines: {node: '>=0.10.0'} - dev: true /lowercase-keys/2.0.0: resolution: {integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==} @@ -6883,7 +7033,6 @@ packages: /mimic-response/1.0.1: resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==} engines: {node: '>=4'} - dev: true /mimic-response/3.1.0: resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} @@ -7141,6 +7290,15 @@ packages: engines: {node: '>=0.10.0'} dev: true + /normalize-url/2.0.1: + resolution: {integrity: sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==} + engines: {node: '>=4'} + dependencies: + prepend-http: 2.0.0 + query-string: 5.1.1 + sort-keys: 2.0.0 + dev: false + /normalize-url/4.5.1: resolution: {integrity: sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==} engines: {node: '>=8'} @@ -7299,7 +7457,6 @@ packages: /object-assign/4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} - dev: true /object-inspect/1.12.2: resolution: {integrity: sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==} @@ -7401,6 +7558,18 @@ packages: engines: {node: '>=0.10.0'} dev: true + /p-any/1.1.0: + resolution: {integrity: sha512-Ef0tVa4CZ5pTAmKn+Cg3w8ABBXh+hHO1aV8281dKOoUHfX+3tjG2EaFcC+aZyagg9b4EYGsHEjz21DnEE8Og2g==} + engines: {node: '>=4'} + dependencies: + p-some: 2.0.1 + dev: false + + /p-cancelable/0.4.1: + resolution: {integrity: sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==} + engines: {node: '>=4'} + dev: false + /p-cancelable/1.1.0: resolution: {integrity: sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==} engines: {node: '>=6'} @@ -7411,6 +7580,16 @@ packages: engines: {node: '>=12.20'} dev: true + /p-finally/1.0.0: + resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} + engines: {node: '>=4'} + dev: false + + /p-is-promise/1.1.0: + resolution: {integrity: sha512-zL7VE4JVS2IFSkR2GQKDSPEVxkoH43/p7oEnwpdCndKYJO0HVeRB7fA8TJwuLOTBREtK0ea8eHaxdwcpob5dmg==} + engines: {node: '>=4'} + dev: false + /p-limit/1.3.0: resolution: {integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==} engines: {node: '>=4'} @@ -7460,6 +7639,27 @@ packages: aggregate-error: 3.1.0 dev: true + /p-some/2.0.1: + resolution: {integrity: sha512-f9CD3pAecrW6tH59pgqsuDmDNt5Hbb73qTxs1QNvtLuRe8/YyfeMMQ8H9aongmeGe/9pCXuwmupabHpjiEaF3A==} + engines: {node: '>=4'} + dependencies: + aggregate-error: 1.0.0 + dev: false + + /p-timeout/1.2.1: + resolution: {integrity: sha512-gb0ryzr+K2qFqFv6qi3khoeqMZF/+ajxQipEF6NteZVnvz9tzdsfAVj3lYtn1gAXvH5lfLwfxEII799gt/mRIA==} + engines: {node: '>=4'} + dependencies: + p-finally: 1.0.0 + dev: false + + /p-timeout/2.0.1: + resolution: {integrity: sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==} + engines: {node: '>=4'} + dependencies: + p-finally: 1.0.0 + dev: false + /p-try/1.0.0: resolution: {integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==} engines: {node: '>=4'} @@ -7644,6 +7844,11 @@ packages: hasBin: true dev: true + /pify/3.0.0: + resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} + engines: {node: '>=4'} + dev: false + /pinkie-promise/2.0.1: resolution: {integrity: sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==} engines: {node: '>=0.10.0'} @@ -7709,12 +7914,10 @@ packages: /prepend-http/1.0.4: resolution: {integrity: sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==} engines: {node: '>=0.10.0'} - dev: true /prepend-http/2.0.0: resolution: {integrity: sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==} engines: {node: '>=4'} - dev: true /prettier-config-atomic/3.0.10: resolution: {integrity: sha512-W3OO32/gTYbAPRXAzlyH4f6wRTi8Zx1kKRFrp9zmV3ZNsq+mhAZJgPq1hj3ZAj/6SsVPJ0yFF65OMA1pfpMMlQ==} @@ -7773,7 +7976,6 @@ packages: /process-nextick-args/2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} - dev: true /process/0.11.10: resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} @@ -7834,6 +8036,16 @@ packages: resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} dev: false + /public-ip/2.5.0: + resolution: {integrity: sha512-XQdvH0GwYlm/SRf+wSqKf8y/8cjykzQJauU4FqMguZpew/RjItiJX9l4+V6A/ezDmAuT8f1I/WkyWXiL819PhA==} + engines: {node: '>=4'} + dependencies: + dns-socket: 1.6.3 + got: 8.3.2 + is-ip: 2.0.0 + pify: 3.0.0 + dev: false + /pump/3.0.0: resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} dependencies: @@ -7859,6 +8071,15 @@ packages: escape-goat: 4.0.0 dev: true + /query-string/5.1.1: + resolution: {integrity: sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==} + engines: {node: '>=0.10.0'} + dependencies: + decode-uri-component: 0.2.0 + object-assign: 4.1.1 + strict-uri-encode: 1.1.0 + dev: false + /queue-microtask/1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} dev: true @@ -7977,7 +8198,6 @@ packages: safe-buffer: 5.1.2 string_decoder: 1.1.1 util-deprecate: 1.0.2 - dev: true /readable-stream/3.6.0: resolution: {integrity: sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==} @@ -8182,7 +8402,6 @@ packages: resolution: {integrity: sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==} dependencies: lowercase-keys: 1.0.1 - dev: true /responselike/2.0.1: resolution: {integrity: sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==} @@ -8242,11 +8461,9 @@ packages: /safe-buffer/5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} - dev: true /safe-buffer/5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - dev: true /safer-buffer/2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} @@ -8362,6 +8579,13 @@ packages: smart-buffer: 4.2.0 dev: true + /sort-keys/2.0.0: + resolution: {integrity: sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==} + engines: {node: '>=4'} + dependencies: + is-plain-obj: 1.1.0 + dev: false + /sort-object-keys/1.1.3: resolution: {integrity: sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==} dev: true @@ -8447,6 +8671,11 @@ packages: escape-string-regexp: 2.0.0 dev: true + /strict-uri-encode/1.1.0: + resolution: {integrity: sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==} + engines: {node: '>=0.10.0'} + dev: false + /string-length/4.0.2: resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} engines: {node: '>=10'} @@ -8510,7 +8739,6 @@ packages: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} dependencies: safe-buffer: 5.1.2 - dev: true /string_decoder/1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} @@ -8704,7 +8932,6 @@ packages: /timed-out/4.0.1: resolution: {integrity: sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==} engines: {node: '>=0.10.0'} - dev: true /timsort/0.3.0: resolution: {integrity: sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==} @@ -8983,7 +9210,6 @@ packages: /unzip-response/2.0.1: resolution: {integrity: sha512-N0XH6lqDtFH84JxptQoZYmloF4nzrQqqrAymNj+/gW60AO2AZgOcf4O/nUXJcYfyQkqvMo9lSupBZmmgvuVXlw==} engines: {node: '>=4'} - dev: true /upath/1.2.0: resolution: {integrity: sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==} @@ -9051,18 +9277,20 @@ packages: engines: {node: '>=0.10.0'} dependencies: prepend-http: 1.0.4 - dev: true /url-parse-lax/3.0.0: resolution: {integrity: sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==} engines: {node: '>=4'} dependencies: prepend-http: 2.0.0 - dev: true + + /url-to-options/1.0.1: + resolution: {integrity: sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A==} + engines: {node: '>= 4'} + dev: false /util-deprecate/1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - dev: true /utility-types/3.10.0: resolution: {integrity: sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==} diff --git a/src/llvm/__tests__/llvm.test.ts b/src/llvm/__tests__/llvm.test.ts index 5579df69..9aa8af1e 100644 --- a/src/llvm/__tests__/llvm.test.ts +++ b/src/llvm/__tests__/llvm.test.ts @@ -1,6 +1,6 @@ import { setupLLVM, VERSIONS, getUrl, setupClangTools, getLinuxUrl } from "../llvm" import { getSpecificVersionAndUrl } from "../../utils/setup/version" -import { isValidUrl } from "../../utils/http/validate_url" +import isLinkWorking from "is-link-working" import { setupTmpDir, cleanupTmpDir, testBin } from "../../utils/tests/test-helpers" import ciDetect from "@npmcli/ci-detect" import execa from "execa" @@ -14,7 +14,7 @@ jest.setTimeout(400000) async function testUrl(version: string) { const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, process.platform, version, getUrl) - if (!(await isValidUrl(url))) { + if (!(await isLinkWorking(url))) { throw new Error(`Failed to install Version: ${version} => ${specificVersion} \n URL: ${url}`) } } diff --git a/src/llvm/llvm.ts b/src/llvm/llvm.ts index 277a03bb..0b6034fd 100644 --- a/src/llvm/llvm.ts +++ b/src/llvm/llvm.ts @@ -1,7 +1,7 @@ import * as path from "path" import semverLte from "semver/functions/lte" import semverMajor from "semver/functions/major" -import { isValidUrl } from "../utils/http/validate_url" +import isLinkWorking from "is-link-working" import { InstallationInfo, PackageInfo, setupBin } from "../utils/setup/setupBin" import { extractExe, extractTarByExe } from "../utils/setup/extract" import { @@ -231,7 +231,7 @@ async function getWin32Url(version: string): Promise { let fallback = false if (olderThan9_1) { url = getReleaseUrl(version, prefix, suffix) - if (!(await isValidUrl(url))) { + if (!(await isLinkWorking(url))) { fallback = true // fallback to github } } diff --git a/src/types.d.ts b/src/types.d.ts new file mode 100644 index 00000000..6b646b09 --- /dev/null +++ b/src/types.d.ts @@ -0,0 +1,4 @@ +declare module "is-link-working" { + function isLinkWorking(url: string): boolean + export = isLinkWorking +} diff --git a/src/utils/http/validate_url.ts b/src/utils/http/validate_url.ts deleted file mode 100644 index 4848c3cb..00000000 --- a/src/utils/http/validate_url.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as https from "https" - -export function isValidUrl(url: string) { - return new Promise((resolve) => { - https.get(url, (res) => { - if (res.statusCode !== undefined && res.statusCode >= 200 && res.statusCode <= 399) { - resolve(true) - } else { - resolve(false) - } - }) - }) -} diff --git a/src/utils/setup/version.ts b/src/utils/setup/version.ts index df2e3692..f463951b 100644 --- a/src/utils/setup/version.ts +++ b/src/utils/setup/version.ts @@ -1,4 +1,4 @@ -import { isValidUrl } from "../http/validate_url" +import isLinkWorking from "is-link-working" import semverCompare from "semver/functions/compare" import semverCoerce from "semver/functions/coerce" import semverValid from "semver/functions/valid" @@ -42,7 +42,7 @@ export async function getSpecificVersionAndUrl( if (platform === "linux" && version.includes("ubuntu")) { const url = await getUrl(platform, version) // eslint-disable-next-line no-await-in-loop - if (url !== null && (await isValidUrl(url))) { + if (url !== null && (await isLinkWorking(url))) { return [version, url] } } @@ -55,7 +55,7 @@ export async function getSpecificVersionAndUrl( // eslint-disable-next-line no-await-in-loop const url = await getUrl(platform, specificVersion) // eslint-disable-next-line no-await-in-loop - if (url !== null && (await isValidUrl(url))) { + if (url !== null && (await isLinkWorking(url))) { return [specificVersion, url] } }