setup-cpp/dist/setup_cpp.mjs

3 lines
282 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

function e(e,t,r,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<<t)+100*Math.random()}return void 0===t.followRedirect&&(t.followRedirect=!0),t.timeout&&(t.gotTimeout=t.timeout,delete t.timeout),t}function ae(e,t){try{return(e=>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<<t)+100*Math.random()}return Ks.undefined(t.followRedirect)&&(t.followRedirect=!0),t.timeout&&(t.gotTimeout=Ks.number(t.timeout)?{request:t.timeout}:t.timeout,delete t.timeout),t}function ke(e,t){try{const r=Pe(e,t);return r.stream?Ie(r):(e=>{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 <compiler> to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n\n--tool_name\t pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n--llvm\n--gcc\n--vcvarsall\n--cmake\n--ninja\n--vcpkg\n--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}>`:`<${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,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}})(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+"<22>":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<r||-2===o?0:0>(o=i(t[n]))?--n<r||-2===o||0>(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||"<anonymous>",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":"<22><>","%FF%FE":"<22><>"},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"]="<22>";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 <hello@indigounited.com> (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