setup-cpp/dist/setup_cpp.js

3 lines
353 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,s){Object.defineProperty(e,t,{get:r,set:s,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,s){if("function"==typeof t&&(s=t,t={}),!s){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((s,o)=>{r(e,t||{},((e,t)=>{e?o(e):s(t)}))}))}Tt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),s(e,r)}))}function s(e,r,s){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof It)return{binDir:It};const o=t(_t).sync("brew",{nothrow:!0});return null!==o?(It=(0,Je.dirname)(o),{binDir:It}):((0,it.execFileSync)('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),It="/usr/local/bin/",{binDir:It})}function o(e,t){const r=e.options.env||process.env,s=process.cwd(),o=null!=e.options.cwd,n=o&&void 0!==process.chdir&&!process.chdir.disabled;if(n)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=_t.sync(e.command,{path:r[Nt({env:r})],pathExt:t?Je.delimiter:void 0})}catch(e){}finally{n&&process.chdir(s)}return i&&(i=Je.resolve(o?e.options.cwd:"",i)),i}function n(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){return Xt&&1===e&&!t.file?n(t.original,"spawn"):null}function a(e,t,r){const s=Ut(e,t,r),o=it.spawn(s.command,s.args,s.options);return Wt.hookChildProcess(o,s),o}async function c(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,s=Gr(t);return await new Promise(((t,o)=>{const n=e=>{e&&s.getBufferedLength()<=Wr.MAX_LENGTH&&(e.bufferedData=s.getBufferedValue()),o(e)};(async()=>{try{await Yr(e,s),t()}catch(e){n(e)}})(),s.on("data",(()=>{s.getBufferedLength()>r&&n(new Kr)}))})),s.getBufferedValue()}function l(){return(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(_t).sync("sudo",{nothrow:!0});var e}function u(e,r=[],s={stdio:"inherit",shell:!0}){return l()?t($t).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),s):t($t).sync(e,r,s)}function d(e){return l()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,Je.join)("/Users/",process.env.SUDO_USER,e):(0,Je.join)("/home/",process.env.SUDO_USER,e):t(Es)("~/"+e)}function h(e,r=["-NoProfile","-NoLogo","-NonInteractive"],s={stdio:"inherit"}){return t($t)((()=>{if(void 0===Os){const e=t(_t).sync("pwsh",{nothrow:!0});null!==e&&(Os=e);const r=t(_t).sync("powershell",{nothrow:!0});null!==r&&(Os=r)}if(void 0===Os)throw Error("Could not find powershell");return Os})(),[...r,"-c",e],s)}async function p(e,r,s=!1){const o=s?t(Ts)(null!=r?r:""):r;try{if("github-actions"===t(xs)())try{(0,xt.exportVariable)(e,o)}catch(t){(0,Ss.error)(t),await m(e,o)}else await m(e,o)}catch(t){(0,Ss.error)(t),(0,xt.setFailed)(`Failed to export environment variable ${e}=${o}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${Je.delimiter}${process.env.PATH}`;try{if("github-actions"===t(xs)())try{(0,xt.addPath)(e)}catch(t){(0,Ss.error)(t),await y(e)}else await y(e)}catch(t){(0,Ss.error)(t),(0,xt.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}async function m(e,t){const r=null!=t?t:"";switch(process.platform){case"win32":return await h(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void(0,xt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return g(),(0,Qe.appendFileSync)(Ps,`\nexport ${e}="${r}"\n`),void(0,xt.info)(`${e}="${r}" was added to "${Ps}`)}process.env[e]=r}async function y(e){switch(process.platform){case"win32":return await h(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void(0,xt.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return g(),(0,Qe.appendFileSync)(Ps,`\nexport PATH="${e}:$PATH"\n`),void(0,xt.info)(`"${e}" was added to "${Ps}"`);default:return}}function g(){if(Is)return;const e="export SOURCE_CPPRC=0";if((0,Qe.existsSync)(Ps)&&(0,Qe.readFileSync)(Ps,"utf8").includes(e))return;(0,Qe.appendFileSync)(Ps,`\n${e}\n`),(0,xt.info)(`Added ${e} to ${Ps}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${Ps}" ]]; then source "${Ps}"; fi\n`;try{const e=d(".profile");(0,Qe.appendFileSync)(e,t),(0,xt.info)(`${t} was added to ${e}`);const r=d(".bashrc");(0,Qe.appendFileSync)(r,t),(0,xt.info)(`${t} was added to ${r}`)}catch(e){(0,Ss.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}Is=!0}async function v(e,r,s=[],o=!1){const n=(()=>{let e;return e=null!==t(_t).sync("nala",{nothrow:!0})?"nala":"apt-get",e})();if((0,xt.info)(`Installing ${e} ${null!=r?r:""} via ${n}`),process.env.DEBIAN_FRONTEND="noninteractive",ks&&!o||(b(n),ks=!0),$s||(await(async e=>{u(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]),E(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),E(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg"),"nala"===e&&(await p("LANG","C.UTF-8"),await p("LC_ALL","C.UTF-8"))})(n),$s=!0),Array.isArray(s)&&0!==s.length){for(const e of s)u("add-apt-repository",["--update","-y",e]);b(n)}if(void 0!==r&&""!==r)try{u(n,["install","--fix-broken","-y",`${e}=${r}`])}catch{u(n,["install","--fix-broken","-y",`${e}-${r}`])}else u(n,["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 s="/etc/apt/trusted.gpg.d/"+t;if(!(0,Qe.existsSync)(s)){w();for(const t of e)u("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+s,"--keyserver",r,"--recv-keys",t]),u("chmod",["644",s])}return s}async function x(e,t){const r="/etc/apt/trusted.gpg.d/"+e;return(0,Qe.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(xs)()?u("update-alternatives",["--install","/usr/bin/"+e,e,r,"40"]):(g(),(0,Qe.appendFileSync)(Ps,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${r} 40; fi\n`))}function S(e,t,r){(0,Ss.info)(`Installing ${e} ${null!=t?t:""} via pacman`);const s="pacman";if(Ls||(u(s,["-Syuu","--noconfirm"]),Ls=!0),Us||(u(s,["-Sy","--noconfirm","base-devel"]),Us=!0),void 0!==t&&""!==t)try{u(null!=r?r:s,["-S","--noconfirm",`${e}=${t}`])}catch{u(null!=r?r:s,["-S","--noconfirm",`${e}${t}`])}else u(null!=r?r:s,["-S","--noconfirm",e]);return{binDir:"/usr/bin/"}}function O(e,r){return(0,xt.info)(`Installing ${e} ${null!=r?r:""} via brew`),js&&null!==t(_t).sync("brew",{nothrow:!0})||(s(0,0,process),js=!0),t($t).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function T(e,r,s){if("win32"!==process.platform)return;if("string"==typeof Ns)return{binDir:Ns};const o=t(_t).sync("choco",{nothrow:!0});if(null!==o)return Ns=(0,Je.dirname)(o),{binDir:Ns};let n="powershell.exe";const i=t(_t).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==i&&(n=i),t($t).sync(n,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await f(a);const c=t(_t).sync("choco",{nothrow:!0});var l;return Ns=null!==c?(0,Je.dirname)(c):(null!==(l=process.env.ChocolateyInstall)&&void 0!==l?l:"C:/ProgramData/chocolatey")+"/bin",(0,Qe.existsSync)(Ns)?{binDir:Ns}:void 0}async function C(e,r,s=[]){(0,xt.info)(`Installing ${e} ${null!=r?r:""} via chocolatey`),Fs&&null!==t(_t).sync("choco",{nothrow:!0})||(await T(0,0,process),Fs=!0);const o=process.env.PATH,n={...process.env};if(delete n.TMP,delete n.TEMP,delete n.Path,n.PATH=o,void 0!==r&&""!==r)t($t).sync("choco",["install","-y",e,"--version="+r,...s],{env:n,extendEnv:!1,stdio:"inherit"});else try{t($t).sync("choco",["install","-y",e,...s],{env:n,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,Ss.notice)(e+" might require a reboot for the completion of the installation.")}var i;const a=(null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin";return await f(a),{binDir:a}}function A(){return"linux"===process.platform&&(void 0===Ds&&(Ds=null!==t(_t).sync("pacman",{nothrow:!0})),Ds)}function R(){return"linux"===process.platform&&(void 0===Ms&&(Ms=null!==t(_t).sync("dnf",{nothrow:!0})),Ms)}function P(e,t){(0,Ss.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,Ss.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===Bs){const e="apt-get";Bs=null!==t(_t).sync(e,{nothrow:!0})}return Bs}function k(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function $(e,t=".bat",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function L(e,t,r){switch(process.platform){case"win32":return C("7zip",e);case"darwin":return O("p7zip",e);case"linux":if(A())return S("p7zip",e);if(R())return P("p7zip",e),P("p7zip-plugins",e);if(I())return v("p7zip-full",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function U(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 N(e,t){const r=[];t=t||eo.arch();const s=to.join(H(),e);if(Qs.existsSync(s)){const e=Qs.readdirSync(s);for(const o of e)if(B(o)){const e=to.join(s,o,t||"");Qs.existsSync(e)&&Qs.existsSync(e+".complete")&&r.push(o)}}return r}function j(e){return Xs(this,void 0,void 0,(function*(){return e||(e=to.join(q(),io.default())),yield Js.mkdirP(e),e}))}function D(e,t,r){return Xs(this,void 0,void 0,(function*(){const s=to.join(H(),e,so.clean(t)||t,r||"");Ks.debug("destination "+s);const o=s+".complete";return yield Js.rmRF(s),yield Js.rmRF(o),yield Js.mkdirP(s),s}))}function M(e,t,r){const s=to.join(H(),e,so.clean(t)||t,r||"");Qs.writeFileSync(s+".complete",""),Ks.debug("finished caching tool")}function B(e){const t=so.clean(e)||"";Ks.debug("isExplicit: "+t);const r=null!=so.valid(t);return Ks.debug("explicit? "+r),r}function F(e,t){let r="";Ks.debug(`evaluating ${e.length} versions`);for(let s=(e=e.sort(((e,t)=>so.gt(e,t)?1:-1))).length-1;s>=0;s--){const o=e[s];if(so.satisfies(o,t)){r=o;break}}return Ks.debug(r?"matched: "+r:"match not found"),r}function H(){const e=process.env.RUNNER_TOOL_CACHE||"";return ot.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function q(){const e=process.env.RUNNER_TEMP||"";return ot.ok(e,"Expected RUNNER_TEMP to be defined"),e}function z(e,t){const r=vt[e];return void 0!==r?r:t}async function G(e,r){return await t($t)(await(async()=>(void 0===vo&&(null===t(_t).sync("7z",{nothrow:!0})&&await L("",0,process),vo="7z"),vo))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),U(r),r}function V(e,t){return G(e,t)}function W(e,t){return G(e,t)}async function X(e,r,s=["--strip-components=0"]){try{await(0,Hs.mkdirP)(r)}catch{}try{await t($t)("tar",["xf",e,"-C",r,...s],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,Ss.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return U(r),r}async function Y(e,r,s,o,n){var i,a;(0,xt.info)(`Installing ${e} ${r} ${n} via direct downloading`),process.env.RUNNER_TEMP=null!==(i=process.env.RUNNER_TEMP)&&void 0!==i?i:(0,Ke.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:(0,Je.join)((0,Ke.tmpdir)(),"setup-cpp","hostedtoolcache");const{url:c,binRelativeDir:l,binFileName:u,extractedFolderName:d,extractFunction:h}=await s(r,process.platform,n);if("github-actions"===t(xs)())try{const t=(0,qs.find)(e,r);if(t){const s=(0,Je.join)(t,d),o=(0,Je.join)(s,l);if((0,Qe.existsSync)(o)&&(0,Qe.existsSync)((0,Je.join)(o,u)))return(0,xt.info)(`${e} ${r} was found in the cache at ${o}.`),await f(o),{installDir:s,binDir:o}}}catch{}const p=(0,Je.join)(o,d),m=(0,Je.join)(p,l),y=(0,Je.join)(m,u);if(!(0,Qe.existsSync)(m)||!(0,Qe.existsSync)(y)){(0,xt.info)(`Download and extract ${e} ${r}`),bo||("linux"===process.platform&&(A()?(S("unzip"),S("tar"),S("xz")):R()?(P("unzip"),P("tar"),P("xz")):I()&&(await v("unzip"),await v("tar"),await v("xz-utils"))),bo=!0);try{const e=await(0,qs.downloadTool)(c);await(null==h?void 0:h(e,o))}catch(t){throw Error(`Failed to download ${e} ${r} ${n} from ${c}: ${t}`)}}return(0,xt.info)(`Add ${m} to PATH`),await f(m),"github-actions"===t(xs)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,qs.cacheDir)(o,e,r),{installDir:p,binDir:m}}function K(e,t,r){const s=(e=>"win32"===e?"windows":e)(t),o=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),n="win32"===t,i=n?"zip":"tar.gz";return{binRelativeDir:"",binFileName:k("task"),extractedFolderName:"",extractFunction:n?W:X,url:`https://github.com/go-task/task/releases/download/v${e}/task_${s}_${o}.${i}`}}function J(e,r,s){var o;const n=null!==(o=t(Eo)(e))&&void 0!==o?o:e;switch(r){case"win32":{const r=t(wo)(n,"v3.19.6");let o;o=["ia32","x86","i386","x32"].includes(s)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const i=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:k("cmake"),extractedFolderName:i,extractFunction:W,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const r=`cmake-${e}-${t(wo)(n,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:k("cmake"),extractedFolderName:r,extractFunction:qs.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(wo)(n,"v3.19.8");let o;o=["aarch64"].includes(s)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const i=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:k("cmake"),extractedFolderName:i,extractFunction:qs.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function Q(e,t,r){return Y("cmake",e,J,t,r)}async function Z(e,r,s){if("github-actions"!==t(xs)())return ee(e,r);try{(0,Ss.info)("Installing python in GitHub Actions");const{setupActionsPython:t}=await Et("d0ovd");return t(e,r,s)}catch(t){return(0,Ss.warning)(""+t),ee(e,r)}}async function ee(e,r,s){switch(process.platform){case"win32":{var o,n;r?await C("python3",e,["--params=/InstallDir:"+r]):await C("python3",e);const s=null!==(n=null!==(o=t(_t).sync("python3.exe",{nothrow:!0}))&&void 0!==o?o:t(_t).sync("python.exe",{nothrow:!0}))&&void 0!==n?n:(0,Je.join)(r,"python.exe"),i=(0,Je.dirname)(s);return await(async e=>{(0,Ss.info)(`Add ${e} to PATH`),await f(e)})(i),{installDir:i,binDir:i}}case"darwin":return O("python3",e);case"linux":{let t;if(A())t=S("python",e),S("python-pip");else if(R())t=P("python3",e),P("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){let r=0;for(let s=0;e.length>s;s++)r+=t.encodingLength(e[s]);return r}function re(e,t,r,s){for(let o=0;e.length>o;o++)t.encode(e[o],r,s),s+=t.encode.bytes;return s}function se(e,t,r,s){for(let o=0;e.length>o;o++)e[o]=t.decode(r,s),s+=t.decode.bytes;return s}function oe(e){function t(){s._ontimeoutCheck()}function r(){s._interval=setInterval(t,s.timeoutChecks),s.emit("listening")}if(!(this instanceof oe))return new oe(e);e||(e={}),st.EventEmitter.call(this);const s=this;this.retries=void 0!==e.retries?e.retries:5,this.timeout=e.timeout||7500,this.timeoutChecks=e.timeoutChecks||this.timeout/10,this.destroyed=!1,this.inflight=0,this.maxQueries=e.maxQueries||1e4,this.maxRedirects=e.maxRedirects||0,this.socket=e.socket||yt.createSocket("udp4"),this._id=Math.ceil(Math.random()*this.maxQueries),this._queries=Array(this.maxQueries).fill(null),this._interval=null,this.socket.on("error",(e=>{s.emit("EACCES"===e.code||"EADDRINUSE"===e.code?"error":"warning",e)})),this.socket.on("message",((e,t)=>{s._onmessage(e,t)})),(e=>{try{return 0!==e.address().port}catch(e){return!1}})(this.socket)?r():this.socket.on("listening",r),this.socket.on("close",(()=>{s.emit("close")}))}function ne(){}function ie(e){switch(e){case null:return"null";case!0:case!1:return"boolean"}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol"}if(ie.function_(e))return"Function";if(ie.observable(e))return"Observable";if(Array.isArray(e))return"Array";if(Xn(e))return"Buffer";const t=Yn(e);if(t)return t;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,t,r){void 0===r&&(r=t,t=e,e=null),ut.Duplex.call(this,e),"function"!=typeof r.read&&(r=new ut.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var s=this;t.once("finish",(()=>{s.end()})),this.once("finish",(()=>{t.end()})),r.on("readable",(()=>{s._waiting&&(s._waiting=!1,s._read())})),r.once("end",(()=>{s.push(null)})),e&&void 0!==e.bubbleErrors&&!e.bubbleErrors||(t.on("error",(e=>{s.emit("error",e)})),r.on("error",(e=>{s.emit("error",e)})))}function ce(e){const t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function le(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}function ue(e,t){if(!e)return Promise.reject(Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);const{maxBuffer:r}=t;let s;return new Promise(((o,n)=>{const i=e=>{e&&(e.bufferedData=s.getBufferedValue()),n(e)};s=Yi(e,Vi(t),(e=>{e?i(e):o()})),s.on("data",(()=>{s.getBufferedLength()>r&&i(new Ji)}))})).then((()=>s.getBufferedValue()))}function de(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function he(e,t,r=null){if(pe(t,e)){if("linux"===process.platform&&null!==r&&e in ac){const t=r[0];return parseInt(Object.keys(ac[e])[0],10)>t?"":ac[e][t]}return ic[e]}return null!=t?t:""}function pe(e,t){return"true"===e||void 0===e&&t in ic}async function fe(e,r){if((0,xt.info)(`Installing ${e} ${null!=r?r:""} via pip`),void 0===cc){if(null!==t(_t).sync("python3",{nothrow:!0}))cc="python3";else{if(null===t(_t).sync("python",{nothrow:!0})||!await(async(e,r,s=nc)=>{const o=await(async(e,t=nc)=>{try{var r;const s=await(0,ao.getExecOutput)(e,["--version"]);return null===(r=(s.stdout||s.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,s);return"string"==typeof o&&"string"==typeof r&&""!==o&&""!==r&&-1!==t(sc)(o,r)})("python","3.0.0")){if((0,xt.info)("python3 was not found. Installing python"),await Z(he("python",void 0),"",process.arch),uc)throw Error("Failed to install python");return uc=!0,fe(e,r)}cc="python"}"win32"===process.platform?t($t).sync(cc,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(A()?S("python-pip"):R()?P("python3-pip"):I()&&await v("python3-pip")),t($t).sync(cc,["-m","pip","install","-U","wheel"],{stdio:"inherit"})}if(t($t).sync(cc,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===lc){if("linux"===process.platform)lc="/home/runner/.local/bin/";else if("darwin"===process.platform)lc="/usr/local/bin/";else try{lc=(0,Je.join)((await(0,ao.getExecOutput)(cc+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{lc=(0,Je.join)((await(0,ao.getExecOutput)(cc+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}(0,xt.info)(lc+" to PATH"),await f(lc)}return{binDir:lc}}async function me(e,t,r){switch(process.platform){case"win32":return await C("graphviz",e),(async()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await f(e),{binDir:e}}throw Error("Unsupported platform")})();case"darwin":return O("graphviz",e);case"linux":if(A())return S("graphviz",e);if(R())return P("graphviz",e);if(I())return v("graphviz",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function ye(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:k("doxygen"),extractedFolderName:t,extractFunction:qs.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:k("doxygen"),extractedFolderName:t,extractFunction:W,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function ge(){if("darwin"===process.platform)try{const e=await(0,ao.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await p("SDKROOT",t.trim()):(0,Ss.error)("SDKROOT not set")}catch(e){(0,Ss.error)(e)}}function ve(e,t,r){if("win32"===t){const t=pc[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const s="ia32"===r?"i686":"x86_64",o="seh";return{binRelativeDir:"bin/",binFileName:k("g++"),extractedFolderName:"mingw64",extractFunction:G,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${s}-posix-${o}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function be(e,r,s){let o;switch(process.platform){case"win32":"arm"!==s&&"arm64"!==s||await C("gcc-arm-embedded",e);try{o=await Y("g++",e,ve,r,s)}catch(t){(0,Ss.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),o=await(async(e,t)=>{let r;var s,o;return await C("mingw",e),"x64"===t&&(0,Qe.existsSync)("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await f(r)):"ia32"===t&&(0,Qe.existsSync)("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await f(r)):(0,Qe.existsSync)((null!==(s=process.env.ChocolateyInstall)&&void 0!==s?s:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(null!==(o=process.env.ChocolateyInstall)&&void 0!==o?o:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,s)}break;case"darwin":o=O("gcc",e);break;case"linux":"x64"===s?A()?o=S("gcc",e):R()?(o=P("gcc",e),P("gcc-c++",e),P("libstdc++-devel",void 0)):I()&&(await v("gcc",e,["ppa:ubuntu-toolchain-r/test"]),o=await v("g++",e,[])):((0,Ss.info)(`Install g++-multilib because gcc for ${s} was requested`),A()?S("gcc-multilib",e):I()&&await v("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]));break;default:throw Error("Unsupported platform for "+s)}if(void 0!==o)return await(async(e,r)=>{const s=[];if("win32"===process.platform)s.push(p("CC",k(r+"/gcc")),p("CXX",k(r+"/g++")));else{var o;const n=t(dc)(null!==(o=t(Eo)(e))&&void 0!==o?o:e);5>n?(s.push(p("CC",`${r}/gcc-${e}`),p("CXX",`${r}/g++-${e}`)),I()&&(_("cc",`${r}/gcc-${e}`),_("cxx",`${r}/g++-${e}`),_("gcc",`${r}/gcc-${e}`),_("g++",`${r}/g++-${e}`))):(s.push(p("CC",`${r}/gcc-${n}`),p("CXX",`${r}/g++-${n}`)),I()&&(_("cc",`${r}/gcc-${n}`),_("cxx",`${r}/g++-${n}`),_("gcc",`${r}/gcc-${n}`),_("g++",`${r}/g++-${n}`)))}s.push(ge()),"github-actions"===t(xs)()&&(()=>{const e=t(Je).join(hc,"gcc_matcher.json");if(!(0,Qe.existsSync)(e))return(0,Ss.warning)("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Ss.info)("::add-matcher::"+e)})(),await Promise.all(s)})(e,o.binDir),o}function we(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function Ee(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function xe(e,r){switch(e){case"darwin":return(e=>{if(yc.has(e))return null;const r="clang+llvm-",s=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(wo)(e,"9.0.1")?Ee(e,r,s):we(e,r,s)})(r);case"linux":return(e=>{let r=e;const s=gc.get(r);let o;if(void 0!==s&&(r=s),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!mc.has(e))throw Error("Unsupported Ubuntu version: "+e);o=r.replace(e,""),r=de(mc,e)[0]}else""!==r&&r in vc?o=vc[r]:(o=vc["14.0.0"],(0,Ss.warning)(`Falling back to LLVM version 14.0.0 ${o} for the Ubuntu.`));const n="clang+llvm-",i="5.0.0"===r?`-linux-x86_64${o}.tar.xz`:`-x86_64-linux-gnu${o}.tar.xz`;return t(wo)(r,"9.0.1")?Ee(r,n,i):we(r,n,i)})(r);case"win32":return(async e=>{if(bc.has(e))return null;const r="LLVM-",s=t(wo)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=t(wo)(e,"9.0.1");let n,i=!1;return o&&(n=Ee(e,r,s),await t(xo)(n)||(i=!0)),!i&&o||(n=we(e,r,s)),n})(r);default:return null}}async function _e(e,r,s){const[o,n]=await(async(e,r,s,o)=>{if("linux"===r&&s.includes("ubuntu")){const e=await o(r,s);if(null!==e&&await t(xo)(e))return[s,e]}if(!e.has(s))throw Error(`Unsupported target! (platform='${r}', version='${s}')`);for(const n of de(e,s)){const e=await o(r,n);if(null!==e&&await t(xo)(e))return[n,e]}throw Error(`Unsupported target! (platform='${r}', version='${s}')`)})(mc,r,e,xe);return(0,xt.setOutput)("version",o),{url:n,extractedFolderName:"",binRelativeDir:"bin",binFileName:k("clang"),extractFunction:"win32"===r?V:(e,t)=>X(e,t,["--strip-components=1"])}}async function Se(e,r,s){const o=await Oe(e,r,s);var n;return await(async(e,r)=>{const s=(e=>{if(null===t(oc)(e))try{const r=t(Eo)(e);if(null!==r)return(0,Ss.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),o=Je.join(e,"lib");var n;const i=null!==(n=process.env.LD_LIBRARY_PATH)&&void 0!==n?n:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",l=[p("LLVM_PATH",e),p("LD_LIBRARY_PATH",`${o}${Je.delimiter}${i}`),p("DYLD_LIBRARY_PATH",`${o}${Je.delimiter}${c}`),p("LDFLAGS",`-L"${e}/lib"`),p("CPPFLAGS",`-I"${e}/include"`),p("CC",k(e+"/bin/clang")),p("CXX",k(e+"/bin/clang++")),p("LIBRARY_PATH",e+"/lib"),ge()];if("win32"!==process.platform){const r=t(dc)(s);(0,Qe.existsSync)(`${e}/lib/clang/${s}/include`)?l.push(p("CPATH",`${e}/lib/clang/${s}/include`)):(0,Qe.existsSync)(`${e}/lib/clang/${r}/include`)&&l.push(p("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(xs)()&&Ce(),await Promise.all(l)})(null!==(n=o.installDir)&&void 0!==n?n:r,e),o}async function Oe(e,t,r){const s=await Y("llvm",e,_e,t,r);return wc||("linux"===process.platform&&(await be(he("gcc",void 0),"",r),A()||I()&&await v("libtinfo-dev")),wc=!0),s}function Te(e,r,s){return"github-actions"===t(xs)()&&Ce(),Oe(e,r,s)}function Ce(){const e=Je.join(fc,"llvm_matcher.json");if(!(0,Qe.existsSync)(e))return(0,Ss.warning)("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Ss.info)("::add-matcher::"+e)}function Ae(e,t,r){const s=new Ic(e,t,r);process.stdout.write(""+s+Rc.EOL)}function Re(e){Cc.issue("error",e instanceof Error?""+e:e)}function Pe(e){Cc.issue("group",e)}function Ie(){Cc.issue("endgroup")}function ke(e){return Object.values(zc).includes(e)?e:e in zc?zc[e]:e}function $e(e){if(Object.keys(zc).includes(e))return e;for(const[t,r]of Object.entries(zc))if(r===e)return t;return e}function Le(e){const t=ke(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let s=((e,t)=>{try{return(""+it.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){Sc.warning("vswhere failed: "+e)}return null})(0,r);if(s&&Qe.existsSync(s))return Sc.info("Found with vswhere: "+s),s;Sc.info("Not found with vswhere");const o=e?[$e(e)]:qc;for(const e of Fc)for(const t of o)for(const r of Hc)if(s=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,Sc.info("Trying standard location: "+s),Qe.existsSync(s))return Sc.info("Found standard location: "+s),s;if(Sc.info("Not found in standard locations"),s=Bc+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",Qe.existsSync(s))return Sc.info("Found VS 2015: "+s),s;throw Sc.info("Not found in VS 2015 location: "+s),Error("Microsoft Visual Studio not found")}function Ue(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function Ne(e,t,r,s,o,n,i){void 0!==t&&(0,Qe.existsSync)(t)&&((0,Ss.info)(`Adding ${t} to PATH`),await p("VCTargetsPath",t)),_c((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,s,n,i,e)}async function je(e,r,s,o,n,i){if("win32"!==process.platform)return;const a=Ec(e);(0,Ss.info)(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=xc(a);u=!0,(0,Ss.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await C("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 C("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 C("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 C("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):(0,Ss.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,Ss.error)(e)}await Ne(a,l,s,c,o,n,i),"github-actions"===t(xs)()&&(()=>{const e=t(Je).join(Wc,"msvc_matcher.json");if(!(0,Qe.existsSync)(e))return(0,Ss.warning)("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,Ss.info)("::add-matcher::"+e)})()}function De(e,t,r){const s=(e=>{switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`)}})(t);return{binRelativeDir:"",binFileName:k("ninja"),extractedFolderName:"",extractFunction:W,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${s}.zip`}}function Me(e,t,r){return Y("ninja",e,De,t,r)}function Be(e){return null==e?[]:Array.isArray(e)?e:[e]}function Fe(e,t,r,s){var o,n=e[t],i=~s.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~s.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(o=+r)==0?o:r),!!r)):0*(o=+r)==0?o:r;e[t]=null==n?i:Array.isArray(n)?n.concat(i):[n,i]}function He(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:k("kcov"),extractFunction:X}}function qe(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:k("kcov"),extractFunction:ze}}async function ze(e,r){const s=await X(e,r,["--strip-components=1"]),o=await(async()=>{let e=t(_t).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Q(he("cmake",void 0),(0,Je.join)(d(""),"cmake"),"");e=(0,Je.join)(t,"cmake")}return null===t(_t).sync("ninja",{nothrow:!0})&&await Me(he("ninja",void 0),(0,Je.join)(d(""),"ninja"),""),e})();"linux"===process.platform&&(A()?(S("libdwarf"),S("libcurl-openssl")):R()?(P("libdwarf-devel"),P("libcurl-devel")):I()&&(await v("libdw-dev"),await v("libcurl4-openssl-dev")));const n=(0,Je.join)(s,"build");return await t($t)(o,["-S",s,"-B",n,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:s,stdio:"inherit"}),await t($t)(o,["--build",n,"--config","Release"],{cwd:s,stdio:"inherit"}),s}async function Ge(e){"github-actions"!==t(xs)()&&(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=Ve(e);var s;r.help&&(0,Ss.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 o=null!==(s=r.architecture)&&void 0!==s?s:process.arch;var n;const i=null!==(n=process.env.SETUP_CPP_DIR)&&void 0!==n?n:d(""),a=[],c=[],l=Xc.create({autoloadLocales:!0});let u,h;Xc.addLocale(t(Vc)),Yc.addLocale(t(Kc));let f=null;try{f=await(async()=>{if(I()){null===t(_t).sync("lsb_release",{nothrow:!0})&&await v("lsb-release");const e=await(0,Jc.getUbuntuVersion)();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){(0,Ss.warning)(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const s=t.slice(0,r).concat(t.slice(r+1)),o=t[r];if(!pe(e[o],o))for(let t=0;s.length>t;t++){const r=s[t];if(pe(e[r],s[t]))e[r]=e[o];else if(e[o]!==e[s[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return(0,Ss.error)("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of tl){const t=r[e];if(void 0!==t){u=Date.now(),(0,xt.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await Ne(he(e,t,f),void 0,o,void 0,void 0,!1,!1);else{const s=el[e],n=(0,Je.join)(i,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await s(he(e,t,f),n,o)}a.push(Ye(e,r))}catch(t){(0,Ss.error)(t),c.push(e+" failed to install")}(0,xt.endGroup)(),h=Date.now(),(0,Ss.info)("took "+(l.format(u,h)||"0 seconds"))}}const m=r.compiler;u=Date.now();try{if(void 0!==m){const{compiler:e,version:t}=We(m);switch((0,xt.startGroup)(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await Se(he("llvm",t,f),(0,Je.join)(i,"llvm"),o);a.push(Ye("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await be(he("gcc",t,f),(0,Je.join)(i,"gcc"),o);a.push(Ye("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await je(he("msvc",t,f),(0,Je.join)(i,"msvc"),o);a.push(Ye("msvc",e));break}case"appleclang":case"applellvm":(0,xt.notice)("Assuming apple-clang is already installed"),await Promise.all([p("CC","clang"),p("CXX","clang++")]),a.push(Ye("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}(0,xt.endGroup)(),h=Date.now(),(0,Ss.info)("took "+(l.format(u,h)||"0 seconds"))}}catch(e){(0,Ss.error)(e),c.push("Failed to install the "+m),(0,xt.endGroup)(),h=Date.now(),(0,Ss.info)("took "+(l.format(u,h)||"0 seconds"))}if(0===a.length&&0===c.length)return(0,Ss.warning)("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>(0,Ss.success)(e))),c.forEach((e=>(0,Ss.error)(e))),(0,Ss.info)("setup_cpp finished"),"github-actions"!==t(xs)())switch(process.platform){case"win32":(0,Ss.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,Ss.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function Ve(e){return((e,t)=>{var r,s,o,n,i,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;const h=void 0!==(t=t||{}).alias,p=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=Be(t.string),t.boolean=Be(t.boolean),h)for(r in t.alias)for(s=t.alias[r]=Be(t.alias[r]),c=0;s.length>c;c++)(t.alias[s[c]]=s.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(s=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(s[l]);for(c=t.string.length;c-- >0;)for(l=(s=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(s[l]);if(f)for(r in t.default)if(n=typeof t.default[r],s=t.alias[r]=t.alias[r]||[],void 0!==t[n])for(t[n].push(r),c=0;s.length>c;c++)t[n].push(s[c]);const m=p?Object.keys(t.alias):[];for(c=0;d>c;c++){if("--"===(o=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;o.length>l&&45===o.charCodeAt(l);l++);if(0===l)a._.push(o);else if("no-"===o.substring(l,l+3)){if(n=o.substring(l+3),p&&!~m.indexOf(n))return t.unknown(o);a[n]=!1}else{for(u=l+1;o.length>u&&61!==o.charCodeAt(u);u++);for(n=o.substring(l,u),i=o.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],s=2===l?[n]:n,u=0;s.length>u;u++){if(n=s[u],p&&!~m.indexOf(n))return t.unknown("-".repeat(l)+n);Fe(a,n,s.length>u+1||i,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(h)for(r in a)for(s=t.alias[r]||[];s.length>0;)a[s.shift()]=a[r];return a})(e,{string:rl,default:Object.fromEntries(rl.map((e=>[e,Xe(e)]))),alias:{h:"help"},boolean:"help"})}function We(e){const r=e.split("-"),s=r[0];if(1 in r){const e=r[1];return null!==t(oc)(e)||(0,Ss.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:s,version:e}}return{compiler:s,version:void 0}}function Xe(e){const t=(0,xt.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function Ye(e,t){let r=`${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r}var Ke=require("os"),Je=require("path"),Qe=require("fs"),Ze=require("http"),et=require("https"),tt=require("net"),rt=require("tls"),st=require("events"),ot=require("assert"),nt=require("util"),it=require("child_process"),at=require("crypto"),ct=require("string_decoder"),lt=require("timers"),ut=require("stream"),dt=require("url"),ht=require("dns"),pt=require("buffer"),ft=require("zlib"),mt=require("http2"),yt=require("dgram"),gt=require("process"),vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},bt={},wt={},Et=vt.parcelRequire810d;null==Et&&((Et=e=>{if(e in bt)return bt[e].exports;if(e in wt){var t=wt[e];delete wt[e];var r={id:e,exports:{}};return bt[e]=r,t.call(r.exports,r,r.exports),r.exports}var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=(e,t)=>{wt[e]=t},vt.parcelRequire810d=Et),Et.register("04fde",(function(e,t){"use strict";function r(e,t){const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function s(e,t={}){u.issueCommand("error",h.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function n(){u.issue("endgroup")}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var u=Et("2iva8"),d=Et("kCOkT"),h=Et("hGWy4");const p=c(Ke),f=c(Je);var m,y,g=Et("1hWAC");(y=m=e.exports.ExitCode||(e.exports.ExitCode={}))[y.Success=0]="Success",y[y.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=h.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";d.issueCommand("ENV",`${e}<<${t}${p.EOL}${r}${p.EOL}${t}`)}else u.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{u.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?d.issueCommand("PATH",e):u.issueCommand("add-path",{},e),process.env.PATH=`${e}${f.delimiter}${process.env.PATH}`},e.exports.getInput=r,e.exports.getMultilineInput=(e,t)=>r(e,t).split("\n").filter((e=>""!==e)),e.exports.getBooleanInput=(e,t)=>{const s=r(e,t);if(["true","True","TRUE"].includes(s))return!0;if(["false","False","FALSE"].includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{process.stdout.write(p.EOL),u.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=m.Failure,s(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=s,e.exports.warning=(e,t={})=>{u.issueCommand("warning",h.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",h.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+p.EOL)},e.exports.startGroup=o,e.exports.endGroup=n,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{n()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))};var v=Et("hILBc");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return v.summary}}),v=Et("hILBc"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return v.markdownSummary}});var b=Et("39f1T");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return b.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return b.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return b.toPlatformPath}})})),Et.register("2iva8",(function(e,t){"use strict";function r(e,t,r){const s=new c(e,t,r);process.stdout.write(""+s+i.EOL)}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=n(Ke);var a=Et("hGWy4");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const s in this.properties)if(this.properties.hasOwnProperty(s)){const o=this.properties[s];o&&(r?r=!1:e+=",",e+=`${s}=${t=o,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Et.register("hGWy4",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Et.register("kCOkT",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const n=o(Qe),i=o(Ke);var a=Et("hGWy4");e.exports.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!n.existsSync(r))throw Error("Missing file at path: "+r);n.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}})),Et.register("1hWAC",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var s=Et("4z9RF"),o=Et("7v249"),n=Et("04fde");class i{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(i.getRequestToken())],r)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const r=i.createHttpClient(),s=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),o=null===(t=s.result)||void 0===t?void 0:t.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=i.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),n.debug("ID token url is "+t);const r=yield i.getCall(t);return n.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=i})),Et.register("4z9RF",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;const i=o(Ze),a=o(et),c=o(Et("2IaKG")),l=o(Et("bbp3j"));var u,d,h,p,f;(d=u=e.exports.HttpCodes||(e.exports.HttpCodes={}))[d.OK=200]="OK",d[d.MultipleChoices=300]="MultipleChoices",d[d.MovedPermanently=301]="MovedPermanently",d[d.ResourceMoved=302]="ResourceMoved",d[d.SeeOther=303]="SeeOther",d[d.NotModified=304]="NotModified",d[d.UseProxy=305]="UseProxy",d[d.SwitchProxy=306]="SwitchProxy",d[d.TemporaryRedirect=307]="TemporaryRedirect",d[d.PermanentRedirect=308]="PermanentRedirect",d[d.BadRequest=400]="BadRequest",d[d.Unauthorized=401]="Unauthorized",d[d.PaymentRequired=402]="PaymentRequired",d[d.Forbidden=403]="Forbidden",d[d.NotFound=404]="NotFound",d[d.MethodNotAllowed=405]="MethodNotAllowed",d[d.NotAcceptable=406]="NotAcceptable",d[d.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",d[d.RequestTimeout=408]="RequestTimeout",d[d.Conflict=409]="Conflict",d[d.Gone=410]="Gone",d[d.TooManyRequests=429]="TooManyRequests",d[d.InternalServerError=500]="InternalServerError",d[d.NotImplemented=501]="NotImplemented",d[d.BadGateway=502]="BadGateway",d[d.ServiceUnavailable=503]="ServiceUnavailable",d[d.GatewayTimeout=504]="GatewayTimeout",(p=h=e.exports.Headers||(e.exports.Headers={})).Accept="accept",p.ContentType="content-type",(f=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{const t=c.getProxyUrl(new URL(e));return t?t.href:""};const m=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],y=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],g=["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 n(this,void 0,void 0,(function*(){return new Promise((e=>n(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))))}))}}e.exports.HttpClientResponse=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 n(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return n(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return n(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return n(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,s){return n(this,void 0,void 0,(function*(){return this.request(e,t,r,s)}))}getJson(e,t={}){return n(this,void 0,void 0,(function*(){t[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,f.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const o=yield this.post(e,s,r);return this._processResponse(o,this.requestOptions)}))}putJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const o=yield this.put(e,s,r);return this._processResponse(o,this.requestOptions)}))}patchJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);r[h.Accept]=this._getExistingOrDefaultHeader(r,h.Accept,f.ApplicationJson),r[h.ContentType]=this._getExistingOrDefaultHeader(r,h.ContentType,f.ApplicationJson);const o=yield this.patch(e,s,r);return this._processResponse(o,this.requestOptions)}))}request(e,t,r,s){return n(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const o=new URL(t);let n=this._prepareRequest(e,o,s);const i=this._allowRetries&&g.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(n,r),a&&a.message&&a.message.statusCode===u.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,n,r):a}let t=this._maxRedirects;for(;a.message.statusCode&&m.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const i=a.message.headers.location;if(!i)break;const c=new URL(i);if("https:"===o.protocol&&o.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),c.hostname!==o.hostname)for(const e in s)"authorization"===e.toLowerCase()&&delete s[e];n=this._prepareRequest(e,c,s),a=yield this.requestRaw(n,r),t--}if(!a.message.statusCode||!y.includes(a.message.statusCode))return a;c+=1,i>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(i>c);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,s)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?s(e):t?r(t):s(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function s(e,t){o||(o=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1;const n=e.httpModule.request(e.options,(e=>{s(void 0,new b(e))}));let i;n.on("socket",(e=>{i=e})),n.setTimeout(this._socketTimeout||18e4,(()=>{i&&i.end(),s(Error("Request timeout: "+e.options.path))})),n.on("error",(e=>{s(e)})),t&&"string"==typeof t&&n.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{n.end()})),t.pipe(n)):n.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const s={};s.parsedUrl=t;const o="https:"===s.parsedUrl.protocol;s.httpModule=o?a:i;const n=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):n,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{})}_getExistingOrDefaultHeader(e,t,r){let s;return this.requestOptions&&this.requestOptions.headers&&(s=w(this.requestOptions.headers)[t]),e[t]||s||r}_getAgent(e){let t;const r=c.getProxyUrl(e),s=r&&r.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const o="https:"===e.protocol;let n=100;if(this.requestOptions&&(n=this.requestOptions.maxSockets||i.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let s;const i="https:"===r.protocol;s=o?i?l.httpsOverHttps:l.httpsOverHttp:i?l.httpOverHttps:l.httpOverHttp,t=s(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=o?new a.Agent(e):new i.Agent(e),this._agent=t}return t||(t=o?a.globalAgent:i.globalAgent),o&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return n(this,void 0,void 0,(function*(){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,s)=>n(this,void 0,void 0,(function*(){const o=e.message.statusCode||0,n={statusCode:o,result:null,headers:{}};let i,a;o===u.NotFound&&r(n);try{a=yield e.readBody(),a&&a.length>0&&(i=t&&t.deserializeDates?JSON.parse(a,((e,t)=>{if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),n.result=i),n.headers=e.message.headers}catch(e){}if(o>299){let e;e=i&&i.message?i.message:a&&a.length>0?a:`Failed request: (${o})`;const t=new v(e,o);t.result=n.result,s(t)}else r(n)}))))}))}};const w=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),Et.register("2IaKG",((e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=+e.port:"http:"===e.protocol?r=80:"https:"===e.protocol&&(r=443);const s=[e.hostname.toUpperCase()];"number"==typeof r&&s.push(`${s[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(s.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=e=>{const t="https:"===e.protocol;if(r(e))return;const s=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return s?new URL(s):void 0},e.exports.checkBypass=r})),Et.register("bbp3j",((e,t)=>{e.exports=Et("fNJ5J")})),Et.register("fNJ5J",(function(t,r){function s(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||Ze.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,s,o)=>{for(var i=n(r,s,o),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===i.host&&l.port===i.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function o(e,t){var r=this;s.prototype.createSocket.call(r,e,(s=>{var o=e.request.getHeader("host"),n=i({},r.options,{socket:s,servername:o?o.replace(/:.*$/,""):e.host}),a=rt.connect(0,n);r.sockets[r.sockets.indexOf(s)]=a,t(a)}))}function n(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function i(e){for(var t=1,r=arguments.length;r>t;++t){var s=arguments[t];if("object"==typeof s)for(var o=Object.keys(s),n=0,i=o.length;i>n;++n){var a=o[n];void 0!==s[a]&&(e[a]=s[a])}}return e}var a,c,l,u,d,h;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new s(e);return t.request=Ze.request,t},c=e=>{var t=new s(e);return t.request=Ze.request,t.createSocket=o,t.defaultPort=443,t},l=e=>{var t=new s(e);return t.request=et.request,t},u=e=>{var t=new s(e);return t.request=et.request,t.createSocket=o,t.defaultPort=443,t},nt.inherits(s,st.EventEmitter),s.prototype.addRequest=function(e,t,r,s){var o=this,a=i({request:e},o.options,n(t,r,s));this.maxSockets>o.sockets.length?o.createSocket(a,(t=>{function r(){o.emit("free",t,a)}function s(e){o.removeSocket(t),t.removeListener("free",r),t.removeListener("close",s),t.removeListener("agentRemove",s)}t.on("free",r),t.on("close",s),t.on("agentRemove",s),e.onSocket(t)})):o.requests.push(a)},s.prototype.createSocket=function(e,t){function r(r,n,i){var c;return a.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode?(h("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void s.removeSocket(o)):i.length>0?(h("got illegal response body from proxy"),n.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void s.removeSocket(o)):(h("tunneling connection has established"),s.sockets[s.sockets.indexOf(o)]=n,t(n))}var s=this,o={};s.sockets.push(o);var n=i({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),h("making CONNECT request");var a=s.request(n);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,s)=>{process.nextTick((()=>{r(e,t,s)}))})),a.once("connect",r),a.once("error",(t=>{a.removeAllListeners(),h("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),s.removeSocket(o)})),a.end()},s.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,(e=>{r.request.onSocket(e)}))}},d=h=()=>{}})),Et.register("7v249",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.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")}))}}})),Et.register("hILBc",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.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:s,appendFile:o,writeFile:n}=Qe.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const i=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield s(t,Qe.constants.R_OK|Qe.constants.W_OK)}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,r={}){const s=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${s}>${t}</${e}>`:`<${e}${s}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),s=t?n:o;return yield s(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:!0})}))}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(Ke.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),s=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(s).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",s=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(r,s);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:s,rowspan:o}=e,n=t?"th":"td",i=Object.assign(Object.assign({},s&&{colspan:s}),o&&{rowspan:o});return this.wrap(n,r,i)})).join("");return this.wrap("tr",t)})).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:s,height:o}=r||{},n=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),i=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(i).addEOL()}addHeading(e,t){const r="h"+t,s=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t}),s=this.wrap("blockquote",e,r);return this.addRaw(s).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=i,e.exports.summary=i})),Et.register("39f1T",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const n=o(Je);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,n.sep)})),Et.register("ftrAD",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var s=0;r.length>s;s++){var o=r[s].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function s(e,t,s){Qe.stat(e,((o,n)=>{s(o,!o&&r(n,e,t))}))}e.exports=s,s.sync=(e,t)=>r(Qe.statSync(e),e,t)})),Et.register("9yF3I",((e,t)=>{function r(e,t,r){Qe.stat(e,((e,o)=>{r(e,!e&&s(o,t))}))}function s(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,s=e.uid,o=e.gid,n=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&o===i||r&a&&s===n||r&l&&0===n})(e,t)}e.exports=r,r.sync=(e,t)=>s(Qe.statSync(e),t)})),Et.register("bJALw",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")})),Et.register("gmbrv",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTION?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),Et.register("ditiY",((r,s)=>{function o(e){return"github-actions"===t(u)()?l.error(e):console.log(`${e}`)}function n(e){return console.log(`${e}`)}function i(e){return"github-actions"===t(u)()?l.warning(e):console.log(`${e}`)}function a(e){return"github-actions"===t(u)()?l.notice(e):console.log(`${e}`)}function c(e){return"github-actions"===t(u)()?l.info(e):console.log(e)}e(r.exports,"error",(()=>o)),e(r.exports,"success",(()=>n)),e(r.exports,"warning",(()=>i)),e(r.exports,"notice",(()=>a)),e(r.exports,"info",(()=>c));var l=Et("04fde"),u=Et("gmbrv")})),Et.register("fvrnx",(function(e,t){"use strict";function r(e){return u(this,void 0,void 0,(function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=p.getCmdPath();(yield p.isDirectory(e,!0))?yield f(t+' /s /c "rd /s /q "%inputPath%""',{env:{inputPath:e}}):yield f(t+' /s /c "del /f /a "%inputPath%""',{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield p.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield p.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield m("rm",["-rf",""+e]):yield p.unlink(e)}}))}function s(e){return u(this,void 0,void 0,(function*(){ot.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0})}))}function o(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(h.delimiter))e&&t.push(e);if(p.isRooted(e)){const r=yield p.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(h.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(h.delimiter))e&&r.push(e);const s=[];for(const o of r){const r=yield p.tryGetExecutablePath(h.join(o,e),t);r&&s.push(r)}return s}))}function n(e,t,r,o){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield s(t);const a=yield p.readdir(e);for(const s of a){const a=`${e}/${s}`,c=`${t}/${s}`;(yield p.lstat(a)).isDirectory()?yield n(a,c,r,o):yield i(a,c,o)}yield p.chmod(t,(yield p.stat(e)).mode)}))}function i(e,t,r){return u(this,void 0,void 0,(function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t)}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t))}const r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null)}else(yield p.exists(t))&&!r||(yield p.copyFile(e,t))}))}var a=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;const d=l(it),h=l(Je),p=l(Et("2GOko")),f=nt.promisify(d.exec),m=nt.promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:s,recursive:o,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield p.exists(t))?yield p.stat(t):null;if(c&&c.isFile()&&!s)return;const l=c&&c.isDirectory()&&a?h.join(t,h.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(!o)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield n(e,l,0,s)}else{if(""===h.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield i(e,l,s)}}))},e.exports.mv=function(e,t,o={}){return u(this,void 0,void 0,(function*(){if(yield p.exists(t)){let s=!0;if((yield p.isDirectory(t))&&(t=h.join(t,h.basename(e)),s=yield p.exists(t)),s){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield r(t)}}yield s(h.dirname(t)),yield p.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=s,e.exports.which=function e(t,r){return u(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const r=yield e(t,!1);if(!r)throw Error(p.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return r}const s=yield o(t);return s&&s.length>0?s[0]:""}))},e.exports.findInPath=o})),Et.register("2GOko",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var s,o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),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 r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=i(Qe),l=i(Je);e.exports.chmod=(s=c.promises).chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.exists=function(t){return a(this,void 0,void 0,(function*(){try{yield e.exports.stat(t)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.exports.isDirectory=function(t,r=!1){return a(this,void 0,void 0,(function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory()}))},e.exports.isRooted=t=>{if(!(t=(t=>(t=t||"",e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.exports.tryGetExecutablePath=function(t,s){return a(this,void 0,void 0,(function*(){let o;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(s.some((t=>t.toUpperCase()===e)))return t}else if(r(o))return t;const n=t;for(const i of s){t=n+i,o=void 0;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),s=l.basename(t).toUpperCase();for(const o of yield e.exports.readdir(r))if(s===o.toUpperCase()){t=l.join(r,o);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(o))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Et.register("6kHxT",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const i=o(Et("4URNm"));var a=Et("04fde");e.exports._findMatch=function(t,r,s,o){return n(this,void 0,void 0,(function*(){const n=Ke.platform();let c,l,u;for(const c of s){const s=c.version;if(a.debug(`check ${s} satisfies ${t}`),i.satisfies(s,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${n}`);let r=t.arch===o&&t.platform===n;if(r&&t.platform_version){const s=e.exports._getOsVersion();r=s===t.platform_version||i.satisfies(s,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=Ke.platform();let r="";if("darwin"===t)r=""+it.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 Qe.existsSync(e)?r=""+Qe.readFileSync(e):Qe.existsSync(t)&&(r=""+Qe.readFileSync(t)),r}})),Et.register("4URNm",((e,t)=>{var r=Et("bikcG");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Et("bgOMw").SEMVER_SPEC_VERSION,SemVer:Et("7qUJS"),compareIdentifiers:Et("12NXI").compareIdentifiers,rcompareIdentifiers:Et("12NXI").rcompareIdentifiers,parse:Et("gdrva"),valid:Et("fVzwP"),clean:Et("hOYls"),inc:Et("dGcr6"),diff:Et("bBssn"),major:Et("fB2B7"),minor:Et("bye2i"),patch:Et("87ZGF"),prerelease:Et("4agny"),compare:Et("howpO"),rcompare:Et("zcbgY"),compareLoose:Et("iGBo4"),compareBuild:Et("80ezM"),sort:Et("4qmtg"),rsort:Et("4pjXu"),gt:Et("6KPS4"),lt:Et("lr5pz"),eq:Et("jXghC"),neq:Et("fqqGA"),gte:Et("5cRW4"),lte:Et("fwsB7"),cmp:Et("823yM"),coerce:Et("1YYsi"),Comparator:Et("eR6XK"),Range:Et("hvUff"),satisfies:Et("c8FZS"),toComparators:Et("2J2hR"),maxSatisfying:Et("lbfMG"),minSatisfying:Et("5wbuE"),minVersion:Et("hZRNG"),validRange:Et("fqnzG"),outside:Et("77bPN"),gtr:Et("gD8Tz"),ltr:Et("bpPww"),intersects:Et("cHIUn"),simplifyRange:Et("k8aCs"),subset:Et("388OD")}})),Et.register("bikcG",((e,t)=>{var r=Et("bgOMw").MAX_SAFE_COMPONENT_LENGTH,s=Et("jkMsx");const o=(t=e.exports={}).re=[],n=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;s(e,c,t),i[e]=c,n[c]=t,o[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${n[i.NUMERICIDENTIFIER]}|${n[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${n[i.NUMERICIDENTIFIERLOOSE]}|${n[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${n[i.PRERELEASEIDENTIFIER]}(?:\\.${n[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${n[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${n[i.BUILDIDENTIFIER]}(?:\\.${n[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${n[i.MAINVERSION]}${n[i.PRERELEASE]}?${n[i.BUILD]}?`),c("FULL",`^${n[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${n[i.MAINVERSIONLOOSE]}${n[i.PRERELEASELOOSE]}?${n[i.BUILD]}?`),c("LOOSE",`^${n[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",n[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",n[i.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:${n[i.PRERELEASE]})?${n[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:${n[i.PRERELEASELOOSE]})?${n[i.BUILD]}?)?)?`),c("XRANGE",`^${n[i.GTLT]}\\s*${n[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${n[i.GTLT]}\\s*${n[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",n[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${n[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${n[i.LONETILDE]}${n[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${n[i.LONETILDE]}${n[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${n[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${n[i.LONECARET]}${n[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${n[i.LONECARET]}${n[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${n[i.GTLT]}\\s*(${n[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]}|${n[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${n[i.XRANGEPLAIN]})\\s+-\\s+(${n[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${n[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Et.register("bgOMw",((e,t)=>{e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}})),Et.register("jkMsx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Et.register("7qUJS",(function(e,t){var r=Et("jkMsx"),s=Et("bgOMw"),o=s.MAX_LENGTH,n=s.MAX_SAFE_INTEGER,i=Et("bikcG"),a=i.re,c=i.t,l=Et("eUvvN"),u=Et("12NXI").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>n||0>this.major)throw new TypeError("Invalid major version");if(this.minor>n||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>n||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=s[4]?s[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof d)){if("string"==typeof e&&e===this.version)return 0;e=new d(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof d||(e=new d(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const s=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,s,o),void 0===s&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===s)return-1;if(s!==o)return u(s,o)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const s=this.build[t],o=e.build[t];if(r("prerelease compare",t,s,o),void 0===s&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===s)return-1;if(s!==o)return u(s,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=d})),Et.register("eUvvN",((e,t)=>{const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}})),Et.register("12NXI",((e,t)=>{const r=/^[0-9]+$/,s=(e,t)=>{const s=r.test(e),o=r.test(t);return s&&o&&(e=+e,t=+t),e===t?0:s&&!o?-1:o&&!s?1:t>e?-1:1};e.exports={compareIdentifiers:s,rcompareIdentifiers(e,t){return s(t,e)}}})),Et.register("gdrva",((e,t)=>{var r=Et("bgOMw").MAX_LENGTH,s=Et("bikcG"),o=s.re,n=s.t,i=Et("7qUJS"),a=Et("eUvvN");e.exports=(e,t)=>{if(t=a(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[n.LOOSE]:o[n.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),Et.register("fVzwP",((e,t)=>{var r=Et("gdrva");e.exports=(e,t)=>{const s=r(e,t);return s?s.version:null}})),Et.register("hOYls",((e,t)=>{var r=Et("gdrva");e.exports=(e,t)=>{const s=r(e.trim().replace(/^[=v]+/,""),t);return s?s.version:null}})),Et.register("dGcr6",((e,t)=>{var r=Et("7qUJS");e.exports=(e,t,s,o)=>{"string"==typeof s&&(o=s,s=void 0);try{return new r(e instanceof r?e.version:e,s).inc(t,o).version}catch(e){return null}}})),Et.register("bBssn",((e,t)=>{var r=Et("gdrva"),s=Et("jXghC");e.exports=(e,t)=>{if(s(e,t))return null;{const s=r(e),o=r(t),n=s.prerelease.length||o.prerelease.length,i=n?"pre":"",a=n?"prerelease":"";for(const e in s)if(("major"===e||"minor"===e||"patch"===e)&&s[e]!==o[e])return i+e;return a}}})),Et.register("jXghC",((e,t)=>{var r=Et("howpO");e.exports=(e,t,s)=>0===r(e,t,s)})),Et.register("howpO",((e,t)=>{var r=Et("7qUJS");e.exports=(e,t,s)=>new r(e,s).compare(new r(t,s))})),Et.register("fB2B7",((e,t)=>{var r=Et("7qUJS");e.exports=(e,t)=>new r(e,t).major})),Et.register("bye2i",((e,t)=>{var r=Et("7qUJS");e.exports=(e,t)=>new r(e,t).minor})),Et.register("87ZGF",((e,t)=>{var r=Et("7qUJS");e.exports=(e,t)=>new r(e,t).patch})),Et.register("4agny",((e,t)=>{var r=Et("gdrva");e.exports=(e,t)=>{const s=r(e,t);return s&&s.prerelease.length?s.prerelease:null}})),Et.register("zcbgY",((e,t)=>{var r=Et("howpO");e.exports=(e,t,s)=>r(t,e,s)})),Et.register("iGBo4",((e,t)=>{var r=Et("howpO");e.exports=(e,t)=>r(e,t,!0)})),Et.register("80ezM",((e,t)=>{var r=Et("7qUJS");e.exports=(e,t,s)=>{const o=new r(e,s),n=new r(t,s);return o.compare(n)||o.compareBuild(n)}})),Et.register("4qmtg",((e,t)=>{var r=Et("80ezM");e.exports=(e,t)=>e.sort(((e,s)=>r(e,s,t)))})),Et.register("4pjXu",((e,t)=>{var r=Et("80ezM");e.exports=(e,t)=>e.sort(((e,s)=>r(s,e,t)))})),Et.register("6KPS4",((e,t)=>{var r=Et("howpO");e.exports=(e,t,s)=>r(e,t,s)>0})),Et.register("lr5pz",((e,t)=>{var r=Et("howpO");e.exports=(e,t,s)=>0>r(e,t,s)})),Et.register("fqqGA",((e,t)=>{var r=Et("howpO");e.exports=(e,t,s)=>0!==r(e,t,s)})),Et.register("5cRW4",((e,t)=>{var r=Et("howpO");e.exports=(e,t,s)=>r(e,t,s)>=0})),Et.register("fwsB7",((e,t)=>{var r=Et("howpO");e.exports=(e,t,s)=>0>=r(e,t,s)})),Et.register("823yM",((e,t)=>{var r=Et("jXghC"),s=Et("fqqGA"),o=Et("6KPS4"),n=Et("5cRW4"),i=Et("lr5pz"),a=Et("fwsB7");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return s(e,c,l);case">":return o(e,c,l);case">=":return n(e,c,l);case"<":return i(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Et.register("1YYsi",((e,t)=>{var r=Et("7qUJS"),s=Et("gdrva"),o=Et("bikcG"),n=o.re,i=o.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let o=null;if((t=t||{}).rtl){let t;for(;(t=n[i.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&t.index+t[0].length===o.index+o[0].length||(o=t),n[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;n[i.COERCERTL].lastIndex=-1}else o=e.match(n[i.COERCE]);return null===o?null:s(`${o[2]}.${o[3]||"0"}.${o[4]||"0"}`,t)}})),Et.register("eR6XK",(function(e,t){const r=Symbol();class s{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),n=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||n&&i||a||l}}e.exports=s;var o=Et("eUvvN"),n=Et("bikcG"),i=n.re,a=n.t,c=Et("823yM"),l=Et("jkMsx"),u=Et("7qUJS"),d=Et("hvUff")})),Et.register("hvUff",(function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof n)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=s.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],C(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),i("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],h)).replace(l[u.CARETTRIM],p)).split(/\s+/).join(" ")).split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));o&&(a=a.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),i("range list",a);const c=new Map,m=a.map((e=>new n(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const y=[...c.values()];return s.set(t,y),y}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;this.set.length>t;t++)if(A(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const s=new(Et("6MLkQ"))({max:1e3});var o=Et("eUvvN"),n=Et("eR6XK"),i=Et("jkMsx"),a=Et("7qUJS"),c=Et("bikcG"),l=c.re,u=c.t,d=c.comparatorTrimReplace,h=c.tildeTrimReplace,p=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let r=!0;const s=e.slice();let o=s.pop();for(;r&&s.length;)r=s.every((e=>o.intersects(e,t))),o=s.pop();return r},g=(e,t)=>(i("comp",e,t),e=E(e,t),i("caret",e),e=b(e,t),i("tildes",e),e=_(e,t),i("xrange",e),e=O(e,t),i("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,s,o,n)=>{let a;return i("tilde",e,t,r,s,o,n),v(r)?a="":v(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:v(o)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:n?(i("replaceTilde pr",n),a=`>=${r}.${s}.${o}-${n} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${o} <${r}.${+s+1}.0-0`,i("tilde return",a),a})),E=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{i("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,s,o,n,a)=>{let c;return i("caret",e,t,s,o,n,a),v(s)?c="":v(o)?c=`>=${s}.0.0${r} <${+s+1}.0.0-0`:v(n)?c="0"===s?`>=${s}.${o}.0${r} <${s}.${+o+1}.0-0`:`>=${s}.${o}.0${r} <${+s+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===s?"0"===o?`>=${s}.${o}.${n}-${a} <${s}.${o}.${+n+1}-0`:`>=${s}.${o}.${n}-${a} <${s}.${+o+1}.0-0`:`>=${s}.${o}.${n}-${a} <${+s+1}.0.0-0`):(i("no pr"),c="0"===s?"0"===o?`>=${s}.${o}.${n}${r} <${s}.${o}.${+n+1}-0`:`>=${s}.${o}.${n}${r} <${s}.${+o+1}.0-0`:`>=${s}.${o}.${n} <${+s+1}.0.0-0`),i("caret return",c),c}))},_=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,s,o,n,a,c)=>{i("xRange",e,r,s,o,n,a,c);const l=v(o),u=l||v(n),d=u||v(a);return"="===s&&d&&(s=""),c=t.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(u&&(n=0),a=0,">"===s?(s=">=",u?(o=+o+1,n=0,a=0):(n=+n+1,a=0)):"<="===s&&(s="<",u?o=+o+1:n=+n+1),"<"===s&&(c="-0"),r=`${s+o}.${n}.${a}${c}`):u?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:d&&(r=`>=${o}.${n}.0${c} <${o}.${+n+1}.0-0`),i("xRange return",r),r})),O=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),T=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,r,s,o,n,i,a,c,l,u,d,h,p)=>`${r=v(s)?"":v(o)?`>=${s}.0.0${e?"-0":""}`:v(n)?`>=${s}.${o}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${c=v(l)?"":v(u)?`<${+l+1}.0.0-0`:v(d)?`<${l}.${+u+1}.0-0`:h?`<=${l}.${u}.${d}-${h}`:e?`<${l}.${u}.${+d+1}-0`:"<="+c}`.trim(),A=(e,t,r)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;e.length>r;r++)if(i(e[r].semver),e[r].semver!==n.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}})),Et.register("6MLkQ",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new s.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),o=new Set,n=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},i=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:s}=f,{get:o}=Object.getOwnPropertyDescriptor(s,e);l(r,e+" method",`cache.${t}()`,o)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!o.has(e),l=(e,t,r,s)=>{o.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,s)},u=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),d=e=>u(e)?e>256?e>65536?e>4294967296?e>Number.MAX_SAFE_INTEGER?null:h:Uint32Array:Uint16Array:Uint8Array:null;class h extends Array{constructor(e){super(e),this.fill(0)}}class p{constructor(e){if(0===e)return[];const t=d(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class f{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:m,dispose:y,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:b,maxSize:w=0,sizeCalculation:E,fetchMethod:x}=e,{length:_,maxAge:S,stale:O}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const T=t?d(t):Array;if(!T)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=w,this.sizeCalculation=E||_,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=x||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new T(t),this.prev=new T(t),this.head=0,this.tail=0,this.free=new p(t),this.initialFill=1,this.size=0,"function"==typeof y&&(this.dispose=y),"function"==typeof g?(this.disposeAfter=g,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!v,this.noUpdateTTL=!!b,0!==this.maxSize){if(!u(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!O,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!h,this.ttlResolution=u(s)||0===s?s:1,this.ttlAutopurge=!!i,this.ttl=r||S||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";c(e)&&(o.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}O&&n("stale","allowStale"),S&&n("maxAge","ttl"),_&&n("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new h(this.max),this.starts=new h(this.max),this.setItemTTL=(e,t)=>{if(this.starts[e]=0!==t?r.now():0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout((()=>{this.isStale(e)&&this.delete(this.keyList[e])}),t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const r=setTimeout((()=>e=0),this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const s=this.keyMap.get(r);return void 0===s?0:0===this.ttls[s]||0===this.starts[s]?1/0:this.starts[s]+this.ttls[s]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new h(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,r,s)=>{if(!u(r)){if(!s)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(r=s(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,s)=>{this.sizes[e]=s;const o=this.maxSize-this.sizes[e];for(;this.calculatedSize>o;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(0!==this.size){const t=this.keyMap.get(e);void 0!==t&&(this.calculatedSize-=this.sizes[t])}return f.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,s){}requireSize(e,t,r,s){if(r||s)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return i("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes()){const r=this.keyList[t],s={value:this.valList[t]};this.ttls&&(s.ttl=this.ttls[t]),this.sizes&&(s.size=this.sizes[t]),e.unshift([r,s])}return e}load(e){this.clear();for(const[t,r]of e)this.set(t,r.value,r)}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:n=this.sizeCalculation,noUpdateTTL:i=this.noUpdateTTL}={}){o=this.requireSize(e,t,o,n);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,o),i=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():s||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,o)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),i||this.setItemTTL(a,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],s=this.valList[t];return this.isBackgroundFetch(s)?s.__abortController.abort():(this.dispose(s,r,"evict"),this.disposeAfter&&this.disposed.push([s,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){const o=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(o))return o;const n=new s,i={signal:n.signal,options:r},a=Promise.resolve(this.fetchMethod(e,o,i)).then((t=>(n.signal.aborted||this.set(e,t,i.options),t)));return a.__abortController=n,a.__staleWhileFetching=o,void 0===t?(this.set(e,a,i.options),t=this.keyMap.get(e)):this.valList[t]=a,a}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&{}.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:n=0,sizeCalculation:i=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:s,noDisposeOnSet:o,size:n,sizeCalculation:i,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const s=this.valList[l];if(this.isBackgroundFetch(s))return t&&void 0!==s.__staleWhileFetching?s.__staleWhileFetching:s;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),s;const o=this.backgroundFetch(e,l,c);return t&&void 0!==o.__staleWhileFetching?o.__staleWhileFetching:o}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const s=this.keyMap.get(e);if(void 0!==s){const o=this.valList[s],n=this.isBackgroundFetch(o);if(this.isStale(s))return n?t?o.__staleWhileFetching:void 0:(this.delete(e),t?o:void 0);if(n)return;return this.moveToTail(s),r&&this.updateItemAge(s),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return i("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return i("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),Et.register("c8FZS",((e,t)=>{var r=Et("hvUff");e.exports=(e,t,s)=>{try{t=new r(t,s)}catch(e){return!1}return t.test(e)}})),Et.register("2J2hR",((e,t)=>{var r=Et("hvUff");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Et.register("lbfMG",((e,t)=>{var r=Et("7qUJS"),s=Et("hvUff");e.exports=(e,t,o)=>{let n=null,i=null,a=null;try{a=new s(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&-1!==i.compare(e)||(n=e,i=new r(n,o)))})),n}})),Et.register("5wbuE",((e,t)=>{var r=Et("7qUJS"),s=Et("hvUff");e.exports=(e,t,o)=>{let n=null,i=null,a=null;try{a=new s(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&1!==i.compare(e)||(n=e,i=new r(n,o)))})),n}})),Et.register("hZRNG",((e,t)=>{var r=Et("7qUJS"),s=Et("hvUff"),o=Et("6KPS4");e.exports=(e,t)=>{e=new s(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;e.set.length>t;++t){let s=null;e.set[t].forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!o(t,s)||(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!s||n&&!o(n,s)||(n=s)}return n&&e.test(n)?n:null}})),Et.register("fqnzG",((e,t)=>{var r=Et("hvUff");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Et.register("77bPN",((e,t)=>{var r=Et("7qUJS"),s=Et("eR6XK");const{ANY:o}=s;var n=Et("hvUff"),i=Et("c8FZS"),a=Et("6KPS4"),c=Et("lr5pz"),l=Et("fwsB7"),u=Et("5cRW4");e.exports=(e,t,d,h)=>{let p,f,m,y,g;switch(e=new r(e,h),t=new n(t,h),d){case">":p=a,f=l,m=c,y=">",g=">=";break;case"<":p=c,f=u,m=a,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,h))return!1;for(let r=0;t.set.length>r;++r){let n=null,i=null;if(t.set[r].forEach((e=>{e.semver===o&&(e=new s(">=0.0.0")),n=n||e,i=i||e,p(e.semver,n.semver,h)?n=e:m(e.semver,i.semver,h)&&(i=e)})),n.operator===y||n.operator===g)return!1;if((!i.operator||i.operator===y)&&f(e,i.semver))return!1;if(i.operator===g&&m(e,i.semver))return!1}return!0}})),Et.register("gD8Tz",((e,t)=>{var r=Et("77bPN");e.exports=(e,t,s)=>r(e,t,">",s)})),Et.register("bpPww",((e,t)=>{var r=Et("77bPN");e.exports=(e,t,s)=>r(e,t,"<",s)})),Et.register("cHIUn",((e,t)=>{var r=Et("hvUff");e.exports=(e,t,s)=>(e=new r(e,s),t=new r(t,s),e.intersects(t))})),Et.register("k8aCs",((e,t)=>{var r=Et("c8FZS"),s=Et("howpO");e.exports=(e,t,o)=>{const n=[];let i=null,a=null;const c=e.sort(((e,t)=>s(e,t,o)));for(const e of c)r(e,t,o)?(a=e,i||(i=e)):(a&&n.push([i,a]),a=null,i=null);i&&n.push([i,null]);const l=[];for(const[e,t]of n)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Et.register("388OD",((e,t)=>{var r=Et("hvUff"),s=Et("eR6XK");const{ANY:o}=s;var n=Et("c8FZS"),i=Et("howpO");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new s(">=0.0.0-0")]:[new s(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new s(">=0.0.0")]}const a=new Set;let u,d,h,p,f,m,y;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(h=i(u.semver,d.semver,r),h>0)return null;if(0===h&&(">="!==u.operator||"<="!==d.operator))return null}for(const e of a){if(u&&!n(e,u+"",r))return null;if(d&&!n(e,d+"",r))return null;for(const s of t)if(!n(e,s+"",r))return!1;return!0}let g=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,v=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===d.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(p=c(u,e,r),p===e&&p!==u)return!1}else if(">="===u.operator&&!n(u.semver,e+"",r))return!1;if(d)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(f=l(d,e,r),f===e&&f!==d)return!1}else if("<="===d.operator&&!n(d.semver,e+"",r))return!1;if(!e.operator&&(d||u)&&0!==h)return!1}return!(u&&m&&!d&&0!==h||d&&y&&!u&&0!==h||v||g)},c=(e,t,r)=>{if(!e)return t;const s=i(e.semver,t.semver,r);return s>0?e:0>s||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const s=i(e.semver,t.semver,r);return 0>s?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,s={})=>{if(e===t)return!0;e=new r(e,s),t=new r(t,s);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,s);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}})),Et.register("iFKS7",((e,t)=>{var r=Et("joDHm"),s=Et("inTPA");e.exports=(e,t,o)=>{var n=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;16>a;++a)t[n+a]=i[a];return t||s(i)}})),Et.register("joDHm",((e,t)=>{e.exports=()=>at.randomBytes(16)})),Et.register("inTPA",((e,t)=>{for(var r=[],s=0;256>s;++s)r[s]=(s+256).toString(16).substr(1);e.exports=(e,t)=>{var s=t||0;return""+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]}})),Et.register("ca0ts",(function(e,t){"use strict";function r(e,t,r){return i(this,void 0,void 0,(function*(){const s=a.argStringToArray(e);if(0===s.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=s[0];return t=s.slice(1).concat(t||[]),new a.ToolRunner(o,t,r).exec()}))}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return o(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=n(Et("e0fPv"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,s){var o,n;return i(this,void 0,void 0,(function*(){let i="",a="";const c=new ct.StringDecoder("utf8"),l=new ct.StringDecoder("utf8"),u=null===(o=null==s?void 0:s.listeners)||void 0===o?void 0:o.stdout,d=null===(n=null==s?void 0:s.listeners)||void 0===n?void 0:n.stderr,h=Object.assign(Object.assign({},null==s?void 0:s.listeners),{stdout(e){i+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),p=yield r(e,t,Object.assign(Object.assign({},s),{listeners:h}));return i+=c.end(),a+=l.end(),{exitCode:p,stdout:i,stderr:a}}))}})),Et.register("e0fPv",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return s(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=o(Ke),a=o(st),c=o(it),l=o(Je),u=o(Et("fvrnx")),d=o(Et("2GOko")),h="win32"===process.platform;e.exports.ToolRunner=class extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),s=this._getSpawnArgs(e);let o=t?"":"[command]";if(h)if(this._isCmdFile()){o+=r;for(const e of s)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${r}"`;for(const e of s)o+=" "+e}else{o+=this._windowsQuoteCmdArg(r);for(const e of s)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=r;for(const e of s)o+=" "+e}return o}_processLineBuffer(e,t,r){try{let s=t+""+e,o=s.indexOf(i.EOL);for(;o>-1;)r(s.substring(0,o)),s=s.substring(o+i.EOL.length),o=s.indexOf(i.EOL);return s}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return h&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(h&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const s of e)if(t.some((e=>e===s))){r=!0;break}if(!r)return e;let s='"',o=!0;for(let t=e.length;t>0;t--)s+=e[t-1],o&&"\\"===e[t-1]?s+="\\":'"'===e[t-1]?(o=!0,s+='"'):o=!1;return s+='"',s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let s=e.length;s>0;s--)t+=e[s-1],r&&"\\"===e[s-1]?t+="\\":'"'===e[s-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return n(this,void 0,void 0,(function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>n(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+i.EOL);const s=new p(r,this.toolPath);if(s.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),n=c.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));let a="";n.stdout&&n.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(n.stderr&&n.stderr.on("data",(e=>{s.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),n.on("error",(e=>{s.processError=e.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()})),n.on("exit",(e=>{s.processExitCode=e,s.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),s.CheckComplete()})),n.on("close",(e=>{s.processExitCode=e,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()})),s.on("done",((r,s)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),n.removeAllListeners(),r?t(r):e(s)})),this.options.input){if(!n.stdin)throw Error("child process missing stdin");n.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){o&&'"'!==e&&(n+="\\"),n+=e,o=!1}const r=[];let s=!1,o=!1,n="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&s?o=!0:" "!==a||s?t(a):n.length>0&&(r.push(n),n=""):o?t(a):s=!s}return n.length>0&&r.push(n.trim()),r};class p extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=lt.setTimeout(p.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}})),Et.register("d0ovd",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.feac98a0.js")).then((()=>Et("apy8x")))})),Et.register("b7DKQ",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__exportStar||((e,t)=>{for(var s in e)"default"===s||{}.hasOwnProperty.call(t,s)||r(t,e,s)});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.defaultHandler=void 0;var o=Et("cFGlL"),n=Et("kl9p9"),i=Et("3cpJo"),a=Et("359jP"),c=Et("2Ghbw");const l={RequestError:n.RequestError,CacheError:n.CacheError,ReadError:n.ReadError,HTTPError:n.HTTPError,MaxRedirectsError:n.MaxRedirectsError,TimeoutError:n.TimeoutError,ParseError:n.ParseError,CancelError:n.CancelError,UnsupportedProtocolError:n.UnsupportedProtocolError,UploadError:n.UploadError},u=async e=>new Promise((t=>{setTimeout(t,e)})),{normalizeArguments:d}=a.default,h=(...e)=>{let t;for(const r of e)t=d(void 0,r,t);return t},p=e=>e.isStream?new a.default(void 0,e):n.default(e),f=e=>"defaults"in e&&"options"in e.defaults,m=["get","post","put","patch","head","delete"];e.exports.defaultHandler=(e,t)=>t(e);const y=(e,t)=>{if(e)for(const r of e)r(t)},g=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map((e=>(t,r)=>{let s;const o=e(t,(e=>(s=r(e),s)));if(o!==s&&!t.isStream&&s){const e=o,{then:t,catch:r,finally:n}=e;Object.setPrototypeOf(e,Object.getPrototypeOf(s)),Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)),e.then=t,e.catch=r,e.finally=n}return o}));const r=(e,r={},s)=>{var c,l;let u=0;const h=e=>t.handlers[u++](e,u===t.handlers.length?p:h);if(o.default.plainObject(e)){const t={...e,...r};a.setNonEnumerableProperties([e,r],t),r=t,e=void 0}try{let o;try{y(t.options.hooks.init,r),y(null===(c=r.hooks)||void 0===c?void 0:c.init,r)}catch(e){o=e}const i=d(e,r,null!=s?s:t.options);if(i[a.kIsNormalizedAlready]=!0,o)throw new n.RequestError(o.message,o,i);return h(i)}catch(e){if(r.isStream)throw e;return i.default(e,t.options.hooks.beforeError,null===(l=r.hooks)||void 0===l?void 0:l.beforeError)}};r.extend=(...r)=>{const s=[t.options];let o,n=[...t._rawHandlers];for(const e of r)f(e)?(s.push(e.defaults.options),n.push(...e.defaults._rawHandlers),o=e.defaults.mutableDefaults):(s.push(e),"handlers"in e&&n.push(...e.handlers),o=e.mutableDefaults);return n=n.filter((t=>t!==e.exports.defaultHandler)),0===n.length&&n.push(e.exports.defaultHandler),g({options:h(...s),handlers:n,mutableDefaults:!!o})};const s=async function*(e,s){let n=d(e,s,t.options);n.resolveBodyOnly=!1;const i=n.pagination;if(!o.default.object(i))throw new TypeError("`options.pagination` must be implemented");const a=[];let{countLimit:c}=i,l=0;for(;i.requestLimit>l;){0!==l&&await u(i.backoff);const e=await r(void 0,void 0,n),t=await i.transform(e),s=[];for(const e of t)if(i.filter(e,a,s)){if(!i.shouldContinue(e,a,s))return;if(yield e,i.stackAllItems&&a.push(e),s.push(e),0>=--c)return}const o=i.paginate(e,a,s);if(!1===o)return;o===e.request.options?n=e.request.options:void 0!==o&&(n=d(void 0,o,n)),l++}};(r.paginate=s).all=async(e,t)=>{const r=[];for await(const o of s(e,t))r.push(o);return r},r.paginate.each=s,r.stream=(e,t)=>r(e,{...t,isStream:!0});for(const e of m)r[e]=(t,s)=>r(t,{...s,method:e}),r.stream[e]=(t,s)=>r(t,{...s,method:e,isStream:!0});return Object.assign(r,l),Object.defineProperty(r,"defaults",{value:t.mutableDefaults?t:c.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),r.mergeOptions=h,r};e.exports.default=g,s(Et("fvu4j"),e.exports)})),Et.register("cFGlL",((e,t)=>{"use strict";function r(e){return t=>typeof t===e}function s(e){if(null===e)return"null";switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(s.observable(e))return"Observable";if(s.array(e))return"Array";if(s.buffer(e))return"Buffer";const t=c(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}Object.defineProperty(e.exports,"__esModule",{value:!0});const o=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],n=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...o],i=["null","undefined","string","number","bigint","boolean","symbol"],{toString:a}=Object.prototype,c=e=>{const t=a.call(e).slice(8,-1);return/HTML\w+Element/.test(t)&&s.domElement(e)?"HTMLElement":n.includes(t)?t:void 0},l=e=>t=>c(t)===e;s.undefined=r("undefined"),s.string=r("string");const u=r("number");s.number=e=>u(e)&&!s.nan(e),s.bigint=r("bigint"),s.function_=r("function"),s.null_=e=>null===e,s.class_=e=>s.function_(e)&&(""+e).startsWith("class "),s.boolean=e=>!0===e||!1===e,s.symbol=r("symbol"),s.numericString=e=>s.string(e)&&!s.emptyStringOrWhitespace(e)&&!Number.isNaN(+e),s.array=(e,t)=>!!Array.isArray(e)&&(!s.function_(t)||e.every(t)),s.buffer=e=>{var t,r,s,o;return null!==(o=null===(s=null===(r=null===(t=e)||void 0===t?void 0:t.constructor)||void 0===r?void 0:r.isBuffer)||void 0===s?void 0:s.call(r,e))&&void 0!==o&&o},s.blob=e=>l("Blob")(e),s.nullOrUndefined=e=>s.null_(e)||s.undefined(e),s.object=e=>!s.null_(e)&&("object"==typeof e||s.function_(e)),s.iterable=e=>{var t;return s.function_(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},s.asyncIterable=e=>{var t;return s.function_(null===(t=e)||void 0===t?void 0:t[Symbol.asyncIterator])},s.generator=e=>{var t,r;return s.iterable(e)&&s.function_(null===(t=e)||void 0===t?void 0:t.next)&&s.function_(null===(r=e)||void 0===r?void 0:r.throw)},s.asyncGenerator=e=>s.asyncIterable(e)&&s.function_(e.next)&&s.function_(e.throw),s.nativePromise=e=>l("Promise")(e),s.promise=e=>s.nativePromise(e)||(e=>{var t,r;return s.function_(null===(t=e)||void 0===t?void 0:t.then)&&s.function_(null===(r=e)||void 0===r?void 0:r.catch)})(e),s.generatorFunction=l("GeneratorFunction"),s.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===c(e),s.asyncFunction=e=>"AsyncFunction"===c(e),s.boundFunction=e=>s.function_(e)&&!e.hasOwnProperty("prototype"),s.regExp=l("RegExp"),s.date=l("Date"),s.error=l("Error"),s.map=e=>l("Map")(e),s.set=e=>l("Set")(e),s.weakMap=e=>l("WeakMap")(e),s.weakSet=e=>l("WeakSet")(e),s.int8Array=l("Int8Array"),s.uint8Array=l("Uint8Array"),s.uint8ClampedArray=l("Uint8ClampedArray"),s.int16Array=l("Int16Array"),s.uint16Array=l("Uint16Array"),s.int32Array=l("Int32Array"),s.uint32Array=l("Uint32Array"),s.float32Array=l("Float32Array"),s.float64Array=l("Float64Array"),s.bigInt64Array=l("BigInt64Array"),s.bigUint64Array=l("BigUint64Array"),s.arrayBuffer=l("ArrayBuffer"),s.sharedArrayBuffer=l("SharedArrayBuffer"),s.dataView=l("DataView"),s.enumCase=(e,t)=>Object.values(t).includes(e),s.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype,s.urlInstance=e=>l("URL")(e),s.urlString=e=>{if(!s.string(e))return!1;try{return new URL(e),!0}catch(e){return!1}},s.truthy=e=>!!e,s.falsy=e=>!e,s.nan=e=>Number.isNaN(e),s.primitive=e=>s.null_(e)||i.includes(typeof e),s.integer=e=>Number.isInteger(e),s.safeInteger=e=>Number.isSafeInteger(e),s.plainObject=e=>{if("[object Object]"!==a.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},s.typedArray=e=>{return t=c(e),o.includes(t);var t},s.arrayLike=e=>!s.nullOrUndefined(e)&&!s.function_(e)&&(e=>s.safeInteger(e)&&e>=0)(e.length),s.inRange=(e,t)=>{if(s.number(t))return e>=Math.min(0,t)&&Math.max(t,0)>=e;if(s.array(t)&&2===t.length)return e>=Math.min(...t)&&e<=Math.max(...t);throw new TypeError("Invalid range: "+JSON.stringify(t))};const d=["innerHTML","ownerDocument","style","attributes","nodeValue"];s.domElement=e=>s.object(e)&&1===e.nodeType&&s.string(e.nodeName)&&!s.plainObject(e)&&d.every((t=>t in e)),s.observable=e=>{var t,r,s,o;return!!e&&(e===(null===(r=(t=e)[Symbol.observable])||void 0===r?void 0:r.call(t))||e===(null===(o=(s=e)["@@observable"])||void 0===o?void 0:o.call(s)))},s.nodeStream=e=>s.object(e)&&s.function_(e.pipe)&&!s.observable(e),s.infinite=e=>e===1/0||e===-1/0;const h=e=>t=>s.integer(t)&&Math.abs(t%2)===e;s.evenInteger=h(0),s.oddInteger=h(1),s.emptyArray=e=>s.array(e)&&0===e.length,s.nonEmptyArray=e=>s.array(e)&&e.length>0,s.emptyString=e=>s.string(e)&&0===e.length,s.emptyStringOrWhitespace=e=>s.emptyString(e)||(e=>s.string(e)&&!/\S/.test(e))(e),s.nonEmptyString=e=>s.string(e)&&e.length>0,s.nonEmptyStringAndNotWhitespace=e=>s.string(e)&&!s.emptyStringOrWhitespace(e),s.emptyObject=e=>s.object(e)&&!s.map(e)&&!s.set(e)&&0===Object.keys(e).length,s.nonEmptyObject=e=>s.object(e)&&!s.map(e)&&!s.set(e)&&Object.keys(e).length>0,s.emptySet=e=>s.set(e)&&0===e.size,s.nonEmptySet=e=>s.set(e)&&e.size>0,s.emptyMap=e=>s.map(e)&&0===e.size,s.nonEmptyMap=e=>s.map(e)&&e.size>0,s.propertyKey=e=>s.any([s.string,s.number,s.symbol],e),s.formData=e=>l("FormData")(e),s.urlSearchParams=e=>l("URLSearchParams")(e);const p=(e,t,r)=>{if(!s.function_(t))throw new TypeError("Invalid predicate: "+JSON.stringify(t));if(0===r.length)throw new TypeError("Invalid number of values");return e.call(r,t)};s.any=(e,...t)=>(s.array(e)?e:[e]).some((e=>p([].some,e,t))),s.all=(e,...t)=>p([].every,e,t);const f=(e,t,r,o={})=>{if(!e){const{multipleValues:e}=o,n=e?"received values of types "+[...new Set(r.map((e=>`\`${s(e)}\``)))].join(", "):`received value of type \`${s(r)}\``;throw new TypeError(`Expected value which is \`${t}\`, ${n}.`)}};e.exports.assert={undefined(e){return f(s.undefined(e),"undefined",e)},string(e){return f(s.string(e),"string",e)},number(e){return f(s.number(e),"number",e)},bigint(e){return f(s.bigint(e),"bigint",e)},function_(e){return f(s.function_(e),"Function",e)},null_(e){return f(s.null_(e),"null",e)},class_(e){return f(s.class_(e),"Class",e)},boolean(e){return f(s.boolean(e),"boolean",e)},symbol(e){return f(s.symbol(e),"symbol",e)},numericString(e){return f(s.numericString(e),"string with a number",e)},array(e,t){f(s.array(e),"Array",e),t&&e.forEach(t)},buffer(e){return f(s.buffer(e),"Buffer",e)},blob(e){return f(s.blob(e),"Blob",e)},nullOrUndefined(e){return f(s.nullOrUndefined(e),"null or undefined",e)},object(e){return f(s.object(e),"Object",e)},iterable(e){return f(s.iterable(e),"Iterable",e)},asyncIterable(e){return f(s.asyncIterable(e),"AsyncIterable",e)},generator(e){return f(s.generator(e),"Generator",e)},asyncGenerator(e){return f(s.asyncGenerator(e),"AsyncGenerator",e)},nativePromise(e){return f(s.nativePromise(e),"native Promise",e)},promise(e){return f(s.promise(e),"Promise",e)},generatorFunction(e){return f(s.generatorFunction(e),"GeneratorFunction",e)},asyncGeneratorFunction(e){return f(s.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e)},asyncFunction(e){return f(s.asyncFunction(e),"AsyncFunction",e)},boundFunction(e){return f(s.boundFunction(e),"Function",e)},regExp(e){return f(s.regExp(e),"RegExp",e)},date(e){return f(s.date(e),"Date",e)},error(e){return f(s.error(e),"Error",e)},map(e){return f(s.map(e),"Map",e)},set(e){return f(s.set(e),"Set",e)},weakMap(e){return f(s.weakMap(e),"WeakMap",e)},weakSet(e){return f(s.weakSet(e),"WeakSet",e)},int8Array(e){return f(s.int8Array(e),"Int8Array",e)},uint8Array(e){return f(s.uint8Array(e),"Uint8Array",e)},uint8ClampedArray(e){return f(s.uint8ClampedArray(e),"Uint8ClampedArray",e)},int16Array(e){return f(s.int16Array(e),"Int16Array",e)},uint16Array(e){return f(s.uint16Array(e),"Uint16Array",e)},int32Array(e){return f(s.int32Array(e),"Int32Array",e)},uint32Array(e){return f(s.uint32Array(e),"Uint32Array",e)},float32Array(e){return f(s.float32Array(e),"Float32Array",e)},float64Array(e){return f(s.float64Array(e),"Float64Array",e)},bigInt64Array(e){return f(s.bigInt64Array(e),"BigInt64Array",e)},bigUint64Array(e){return f(s.bigUint64Array(e),"BigUint64Array",e)},arrayBuffer(e){return f(s.arrayBuffer(e),"ArrayBuffer",e)},sharedArrayBuffer(e){return f(s.sharedArrayBuffer(e),"SharedArrayBuffer",e)},dataView(e){return f(s.dataView(e),"DataView",e)},enumCase(e,t){return f(s.enumCase(e,t),"EnumCase",e)},urlInstance(e){return f(s.urlInstance(e),"URL",e)},urlString(e){return f(s.urlString(e),"string with a URL",e)},truthy(e){return f(s.truthy(e),"truthy",e)},falsy(e){return f(s.falsy(e),"falsy",e)},nan(e){return f(s.nan(e),"NaN",e)},primitive(e){return f(s.primitive(e),"primitive",e)},integer(e){return f(s.integer(e),"integer",e)},safeInteger(e){return f(s.safeInteger(e),"integer",e)},plainObject(e){return f(s.plainObject(e),"plain object",e)},typedArray(e){return f(s.typedArray(e),"TypedArray",e)},arrayLike(e){return f(s.arrayLike(e),"array-like",e)},domElement(e){return f(s.domElement(e),"HTMLElement",e)},observable(e){return f(s.observable(e),"Observable",e)},nodeStream(e){return f(s.nodeStream(e),"Node.js Stream",e)},infinite(e){return f(s.infinite(e),"infinite number",e)},emptyArray(e){return f(s.emptyArray(e),"empty array",e)},nonEmptyArray(e){return f(s.nonEmptyArray(e),"non-empty array",e)},emptyString(e){return f(s.emptyString(e),"empty string",e)},emptyStringOrWhitespace(e){return f(s.emptyStringOrWhitespace(e),"empty string or whitespace",e)},nonEmptyString(e){return f(s.nonEmptyString(e),"non-empty string",e)},nonEmptyStringAndNotWhitespace(e){return f(s.nonEmptyStringAndNotWhitespace(e),"non-empty string and not whitespace",e)},emptyObject(e){return f(s.emptyObject(e),"empty object",e)},nonEmptyObject(e){return f(s.nonEmptyObject(e),"non-empty object",e)},emptySet(e){return f(s.emptySet(e),"empty set",e)},nonEmptySet(e){return f(s.nonEmptySet(e),"non-empty set",e)},emptyMap(e){return f(s.emptyMap(e),"empty map",e)},nonEmptyMap(e){return f(s.nonEmptyMap(e),"non-empty map",e)},propertyKey(e){return f(s.propertyKey(e),"PropertyKey",e)},formData(e){return f(s.formData(e),"FormData",e)},urlSearchParams(e){return f(s.urlSearchParams(e),"URLSearchParams",e)},evenInteger(e){return f(s.evenInteger(e),"even integer",e)},oddInteger(e){return f(s.oddInteger(e),"odd integer",e)},directInstanceOf(e,t){return f(s.directInstanceOf(e,t),"T",e)},inRange(e,t){return f(s.inRange(e,t),"in range",e)},any(e,...t){return f(s.any(e,...t),"predicate returns truthy for any value",t,{multipleValues:!0})},all(e,...t){return f(s.all(e,...t),"predicate returns truthy for all values",t,{multipleValues:!0})}},Object.defineProperties(s,{class:{value:s.class_},function:{value:s.function_},null:{value:s.null_}}),Object.defineProperties(e.exports.assert,{class:{value:e.exports.assert.class_},function:{value:e.exports.assert.function_},null:{value:e.exports.assert.null_}}),e.exports.default=s,e.exports=s,e.exports.default=s,e.exports.assert=e.exports.assert})),Et.register("kl9p9",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__exportStar||((e,t)=>{for(var s in e)"default"===s||{}.hasOwnProperty.call(t,s)||r(t,e,s)});Object.defineProperty(e.exports,"__esModule",{value:!0});var o=Et("cFGlL"),n=Et("5WFVJ"),i=Et("i2R9y"),a=Et("359jP"),c=Et("1dzx3"),l=Et("gB6MH"),u=Et("eszIE");const d=["request","response","redirect","uploadProgress","downloadProgress"];e.exports.default=function e(t){let r,s;const h=new st.EventEmitter,p=new n(((n,f,m)=>{const y=g=>{const v=new a.default(void 0,t);v.retryCount=g,v._noPipe=!0,m((()=>v.destroy())),m.shouldReject=!1,m((()=>f(new(Et("bXlV6").CancelError)(v)))),r=v,v.once("response",(async t=>{var r;if(t.retryCount=g,t.request.aborted)return;let o;try{o=await l.default(v),t.rawBody=o}catch(e){return}if(v._isAboutToError)return;const c=(null!==(r=t.headers["content-encoding"])&&void 0!==r?r:"").toLowerCase(),d=["gzip","deflate","br"].includes(c),{options:h}=v;if(d&&!h.decompress)t.body=o;else try{t.body=i.default(t,h.responseType,h.parseJson,h.encoding)}catch(e){if(t.body=""+o,u.isResponseOk(t))return void v._beforeError(e)}try{for(const[r,s]of h.hooks.afterResponse.entries())t=await s(t,(async t=>{const s=a.default.normalizeArguments(void 0,{...t,retry:{calculateDelay(){return 0}},throwHttpErrors:!1,resolveBodyOnly:!1},h);s.hooks.afterResponse=s.hooks.afterResponse.slice(0,r);for(const e of s.hooks.beforeRetry)await e(s);const o=e(s);return m((()=>{o.catch((()=>{})),o.cancel()})),o}))}catch(e){return void v._beforeError(new(Et("bXlV6").RequestError)(e.message,e,v))}s=t,u.isResponseOk(t)?n(v.options.resolveBodyOnly?t.body:t):v._beforeError(new(Et("bXlV6").HTTPError)(t))}));const b=e=>{if(p.isCanceled)return;const{options:t}=v;if(e instanceof Et("bXlV6").HTTPError&&!t.throwHttpErrors){const{response:t}=e;n(v.options.resolveBodyOnly?t.body:t)}else f(e)};v.once("error",b);const w=v.options.body;v.once("retry",((e,t)=>{var r,s;w===(null===(r=t.request)||void 0===r?void 0:r.options.body)&&o.default.nodeStream(null===(s=t.request)||void 0===s?void 0:s.options.body)?b(t):y(e)})),c.default(v,h,d)};y(0)}));p.on=(e,t)=>(h.on(e,t),p);const f=e=>{const t=(async()=>{await p;const{options:t}=s.request;return i.default(s,e,t.parseJson,t.encoding)})();return Object.defineProperties(t,Object.getOwnPropertyDescriptors(p)),t};return p.json=()=>{const{headers:e}=r.options;return r.writableFinished||void 0!==e.accept||(e.accept="application/json"),f("json")},p.buffer=()=>f("buffer"),p.text=()=>f("text"),p},s(Et("bXlV6"),e.exports)})),Et.register("5WFVJ",(function(e,t){"use strict";class r extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class s{static fn(e){return(...t)=>new s(((r,s,o)=>{t.push(o),e(...t).then(r,s)}))}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise(((t,r)=>{this._reject=r;const s=e=>{if(!this._isPending)throw Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(e)};return Object.defineProperties(s,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}}),e((e=>{this._isCanceled&&s.shouldReject||(this._isPending=!1,t(e))}),(e=>{this._isPending=!1,r(e)}),s)}))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(this._isPending&&!this._isCanceled){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(const e of this._cancelHandlers)e()}catch(e){return void this._reject(e)}this._rejectOnCancel&&this._reject(new r(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(s.prototype,Promise.prototype),e.exports=s,e.exports.CancelError=r})),Et.register("bXlV6",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__exportStar||((e,t)=>{for(var s in e)"default"===s||{}.hasOwnProperty.call(t,s)||r(t,e,s)});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.CancelError=e.exports.ParseError=void 0;class o extends Et("359jP").RequestError{constructor(e,t){const{options:r}=t.request;super(`${e.message} in "${""+r.url}"`,e,t.request),this.name="ParseError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_BODY_PARSE_FAILURE":this.code}}e.exports.ParseError=o;class n extends Et("359jP").RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}}e.exports.CancelError=n,s(Et("359jP"),e.exports)})),Et.register("359jP",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.UnsupportedProtocolError=e.exports.ReadError=e.exports.TimeoutError=e.exports.UploadError=e.exports.CacheError=e.exports.HTTPError=e.exports.MaxRedirectsError=e.exports.RequestError=e.exports.setNonEnumerableProperties=e.exports.knownHookEvents=e.exports.withoutBody=e.exports.kIsNormalizedAlready=void 0;var r=Et("1pC56"),s=Et("2Tt2I"),o=Et("14xAD"),n=Et("f02vo"),i=Et("41FYB"),a=Et("3WafW"),c=Et("cFGlL"),l=Et("boRph"),u=Et("b0OSB"),d=Et("1dzx3"),h=Et("aka2W"),p=Et("bNXKI"),f=Et("hu0Ei"),m=Et("fVvbs"),y=Et("gB6MH"),g=Et("9Ybjc"),v=Et("eszIE"),b=Et("eIt2E"),w=Et("aLWAj"),E=Et("b9pcy");let x;const _=Symbol(),S=Symbol(),O=Symbol(),T=Symbol(),C=Symbol(),A=Symbol(),R=Symbol(),P=Symbol(),I=Symbol(),k=Symbol(),$=Symbol(),L=Symbol(),U=Symbol(),N=Symbol(),j=Symbol(),D=Symbol(),M=Symbol();e.exports.kIsNormalizedAlready=Symbol();const B=c.default.string(process.versions.brotli);e.exports.withoutBody=new Set(["GET","HEAD"]),e.exports.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];const F=new m.default,H=new Set([300,301,302,303,304,307,308]),q=["context","body","json","form"];e.exports.setNonEnumerableProperties=(e,t)=>{const r={};for(const t of e)if(t)for(const e of q)e in t&&(r[e]={writable:!0,configurable:!0,enumerable:!1,value:t[e]});Object.defineProperties(t,r)};class z extends Error{constructor(e,t,r){var s,o;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=null!==(s=t.code)&&void 0!==s?s:"ERR_GOT_REQUEST_ERROR",r instanceof Z?(Object.defineProperty(this,"request",{enumerable:!1,value:r}),Object.defineProperty(this,"response",{enumerable:!1,value:r[S]}),Object.defineProperty(this,"options",{enumerable:!1,value:r.options})):Object.defineProperty(this,"options",{enumerable:!1,value:r}),this.timings=null===(o=this.request)||void 0===o?void 0:o.timings,c.default.string(t.stack)&&c.default.string(this.stack)){const e=this.stack.indexOf(this.message)+this.message.length,r=this.stack.slice(e).split("\n").reverse(),s=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split("\n").reverse();for(;0!==s.length&&s[0]===r[0];)r.shift();this.stack=`${this.stack.slice(0,e)}${r.reverse().join("\n")}${s.reverse().join("\n")}`}}}e.exports.RequestError=z;class G extends z{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}}e.exports.MaxRedirectsError=G;class V extends z{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}}e.exports.HTTPError=V;class W extends z{constructor(e,t){super(e.message,e,t),this.name="CacheError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_CACHE_ACCESS":this.code}}e.exports.CacheError=W;class X extends z{constructor(e,t){super(e.message,e,t),this.name="UploadError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_UPLOAD":this.code}}e.exports.UploadError=X;class Y extends z{constructor(e,t,r){super(e.message,e,r),this.name="TimeoutError",this.event=e.event,this.timings=t}}e.exports.TimeoutError=Y;class K extends z{constructor(e,t){super(e.message,e,t),this.name="ReadError",this.code="ERR_GOT_REQUEST_ERROR"===this.code?"ERR_READING_RESPONSE_STREAM":this.code}}e.exports.ReadError=K;class J extends z{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}}e.exports.UnsupportedProtocolError=J;const Q=["socket","connect","continue","information","upgrade","timeout"];class Z extends ut.Duplex{constructor(t,r={},s){super({autoDestroy:!1,highWaterMark:0}),this[T]=0,this[A]=0,this.requestInitialized=!1,this[R]=new Set,this.redirects=[],this[L]=!1,this[U]=!1,this[j]=[],this.retryCount=0,this._progressCallbacks=[];const o=()=>this._unlockWrite(),n=()=>this._lockWrite();this.on("pipe",(e=>{e.prependListener("data",o),e.on("data",n),e.prependListener("end",o),e.on("end",n)})),this.on("unpipe",(e=>{e.off("data",o),e.off("data",n),e.off("end",o),e.off("end",n)})),this.on("pipe",(e=>{e instanceof Ze.IncomingMessage&&(this.options.headers={...e.headers,...this.options.headers})}));const{json:i,body:a,form:l}=r;if((i||a||l)&&this._lockWrite(),e.exports.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(t,r,s)}catch(e){return c.default.nodeStream(r.body)&&r.body.destroy(),void this.destroy(e)}(async()=>{var e;try{this.options.body instanceof Qe.ReadStream&&await(async e=>new Promise(((t,r)=>{const s=e=>{r(e)};e.pending||t(),e.once("error",s),e.once("ready",(()=>{e.off("error",s),t()}))})))(this.options.body);const{url:t}=this.options;if(!t)throw new TypeError("Missing `url` property");if(this.requestUrl=""+t,await this._finalizeBody(),await this._makeRequest(),this.destroyed)return void(null===(e=this[_])||void 0===e||e.destroy());for(const e of this[j])e();this[j].length=0,this.requestInitialized=!0}catch(e){if(e instanceof z)return void this._beforeError(e);this.destroyed||this.destroy(e)}})()}static normalizeArguments(t,r,n){var i,l,u,d,h;const p=r;if(c.default.object(t)&&!c.default.urlInstance(t))r={...n,...t,...r};else{if(t&&r&&void 0!==r.url)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},void 0!==t&&(r.url=t),c.default.urlInstance(r.url)&&(r.url=new dt.URL(""+r.url))}if(!1===r.cache&&(r.cache=void 0),!1===r.dnsCache&&(r.dnsCache=void 0),c.assert.any([c.default.string,c.default.undefined],r.method),c.assert.any([c.default.object,c.default.undefined],r.headers),c.assert.any([c.default.string,c.default.urlInstance,c.default.undefined],r.prefixUrl),c.assert.any([c.default.object,c.default.undefined],r.cookieJar),c.assert.any([c.default.object,c.default.string,c.default.undefined],r.searchParams),c.assert.any([c.default.object,c.default.string,c.default.undefined],r.cache),c.assert.any([c.default.object,c.default.number,c.default.undefined],r.timeout),c.assert.any([c.default.object,c.default.undefined],r.context),c.assert.any([c.default.object,c.default.undefined],r.hooks),c.assert.any([c.default.boolean,c.default.undefined],r.decompress),c.assert.any([c.default.boolean,c.default.undefined],r.ignoreInvalidCookies),c.assert.any([c.default.boolean,c.default.undefined],r.followRedirect),c.assert.any([c.default.number,c.default.undefined],r.maxRedirects),c.assert.any([c.default.boolean,c.default.undefined],r.throwHttpErrors),c.assert.any([c.default.boolean,c.default.undefined],r.http2),c.assert.any([c.default.boolean,c.default.undefined],r.allowGetBody),c.assert.any([c.default.string,c.default.undefined],r.localAddress),c.assert.any([g.isDnsLookupIpVersion,c.default.undefined],r.dnsLookupIpVersion),c.assert.any([c.default.object,c.default.undefined],r.https),c.assert.any([c.default.boolean,c.default.undefined],r.rejectUnauthorized),r.https&&(c.assert.any([c.default.boolean,c.default.undefined],r.https.rejectUnauthorized),c.assert.any([c.default.function_,c.default.undefined],r.https.checkServerIdentity),c.assert.any([c.default.string,c.default.object,c.default.array,c.default.undefined],r.https.certificateAuthority),c.assert.any([c.default.string,c.default.object,c.default.array,c.default.undefined],r.https.key),c.assert.any([c.default.string,c.default.object,c.default.array,c.default.undefined],r.https.certificate),c.assert.any([c.default.string,c.default.undefined],r.https.passphrase),c.assert.any([c.default.string,c.default.buffer,c.default.array,c.default.undefined],r.https.pfx)),c.assert.any([c.default.object,c.default.undefined],r.cacheOptions),r.method=c.default.string(r.method)?r.method.toUpperCase():"GET",r.headers=r.headers===(null==n?void 0:n.headers)?{...r.headers}:a({...null==n?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(null==n?void 0:n.searchParams)){let e;if(c.default.string(r.searchParams)||r.searchParams instanceof dt.URLSearchParams)e=new dt.URLSearchParams(r.searchParams);else{(e=>{for(const t in e){const r=e[t];if(!(c.default.string(r)||c.default.number(r)||c.default.boolean(r)||c.default.null_(r)||c.default.undefined(r)))throw new TypeError(`The \`searchParams\` value '${r+""}' must be a string, number, boolean or null`)}})(r.searchParams),e=new dt.URLSearchParams;for(const t in r.searchParams){const s=r.searchParams[t];null===s?e.append(t,""):void 0!==s&&e.append(t,s)}}null===(i=null==n?void 0:n.searchParams)||void 0===i||i.forEach(((t,r)=>{e.has(r)||e.append(r,t)})),r.searchParams=e}if(r.username=null!==(l=r.username)&&void 0!==l?l:"",r.password=null!==(u=r.password)&&void 0!==u?u:"",c.default.undefined(r.prefixUrl)?r.prefixUrl=null!==(d=null==n?void 0:n.prefixUrl)&&void 0!==d?d:"":(r.prefixUrl=""+r.prefixUrl,""===r.prefixUrl||r.prefixUrl.endsWith("/")||(r.prefixUrl+="/")),c.default.string(r.url)){if(r.url.startsWith("/"))throw Error("`input` must not start with a slash when using `prefixUrl`");r.url=f.default(r.prefixUrl+r.url,r)}else(c.default.undefined(r.url)&&""!==r.prefixUrl||r.protocol)&&(r.url=f.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:e}=r;Object.defineProperty(r,"prefixUrl",{set(t){const s=r.url;if(!s.href.startsWith(t))throw Error(`Cannot change \`prefixUrl\` from ${e} to ${t}: ${s.href}`);r.url=new dt.URL(t+s.href.slice(e.length)),e=t},get(){return e}});let{protocol:t}=r.url;if("unix:"===t&&(t="http:",r.url=new dt.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=""+r.searchParams),"http:"!==t&&"https:"!==t)throw new J(r);""===r.username?r.username=r.url.username:r.url.username=r.username,""===r.password?r.password=r.url.password:r.url.password=r.password}const{cookieJar:m}=r;if(m){let{setCookie:e,getCookieString:t}=m;c.assert.function_(e),c.assert.function_(t),4===e.length&&0===t.length&&(e=nt.promisify(e.bind(r.cookieJar)),t=nt.promisify(t.bind(r.cookieJar)),r.cookieJar={setCookie:e,getCookieString:t})}const{cache:y}=r;if(y&&(F.has(y)||F.set(y,new o(((e,t)=>{const r=e[_](e,t);return c.default.promise(r)&&(r.once=(e,t)=>{if("error"===e)r.catch(t);else{if("abort"!==e)throw Error("Unknown HTTP2 promise event: "+e);(async()=>{try{(await r).once("abort",t)}catch(e){}})()}return r}),r}),y))),r.cacheOptions={...r.cacheOptions},!0===r.dnsCache)x||(x=new s.default),r.dnsCache=x;else if(!c.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError("Parameter `dnsCache` must be a CacheableLookup instance or a boolean, got "+c.default(r.dnsCache));r.timeout=c.default.number(r.timeout)?{request:r.timeout}:n&&r.timeout!==n.timeout?{...n.timeout,...r.timeout}:{...r.timeout},r.context||(r.context={});const v=r.hooks===(null==n?void 0:n.hooks);r.hooks={...r.hooks};for(const t of e.exports.knownHookEvents)if(t in r.hooks){if(!c.default.array(r.hooks[t]))throw new TypeError(`Parameter \`${t}\` must be an Array, got ${c.default(r.hooks[t])}`);r.hooks[t]=[...r.hooks[t]]}else r.hooks[t]=[];if(n&&!v)for(const t of e.exports.knownHookEvents)n.hooks[t].length>0&&(r.hooks[t]=[...n.hooks[t],...r.hooks[t]]);if("family"in r&&b.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),(null==n?void 0:n.https)&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&b.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&b.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&b.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&b.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&b.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&b.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&b.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent)for(const e in r.agent)if("http"!==e&&"https"!==e&&"http2"!==e)throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${e}\``);return r.maxRedirects=null!==(h=r.maxRedirects)&&void 0!==h?h:0,e.exports.setNonEnumerableProperties([n,p],r),w.default(r,n)}_lockWrite(){const e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){const{options:t}=this,{headers:r}=t,s=!c.default.undefined(t.form),o=!c.default.undefined(t.json),n=!c.default.undefined(t.body),i=s||o||n,a=e.exports.withoutBody.has(t.method)&&!("GET"===t.method&&t.allowGetBody);if(this._cannotHaveBody=a,i){if(a)throw new TypeError(`The \`${t.method}\` method cannot be used with a body`);if([n,s,o].filter((e=>e)).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(n&&!(t.body instanceof ut.Readable)&&!c.default.string(t.body)&&!c.default.buffer(t.body)&&!u.default(t.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(s&&!c.default.object(t.form))throw new TypeError("The `form` option must be an Object");{const e=!c.default.string(r["content-type"]);n?(u.default(t.body)&&e&&(r["content-type"]="multipart/form-data; boundary="+t.body.getBoundary()),this[N]=t.body):s?(e&&(r["content-type"]="application/x-www-form-urlencoded"),this[N]=""+new dt.URLSearchParams(t.form)):(e&&(r["content-type"]="application/json"),this[N]=t.stringifyJson(t.json));const o=await l.default(this[N],t.headers);c.default.undefined(r["content-length"])&&c.default.undefined(r["transfer-encoding"])&&(a||c.default.undefined(o)||(r["content-length"]=o+""))}}else a?this._lockWrite():this._unlockWrite();this[C]=+r["content-length"]||void 0}async _onResponseBase(e){const{options:t}=this,{url:r}=t;this[D]=e,t.decompress&&(e=n(e));const s=e.statusCode,o=e;o.statusMessage=o.statusMessage?o.statusMessage:Ze.STATUS_CODES[s],o.url=""+t.url,o.requestUrl=this.requestUrl,o.redirectUrls=this.redirects,o.request=this,o.isFromCache=e.fromCache||!1,o.ip=this.ip,o.retryCount=this.retryCount,this[I]=o.isFromCache,this[O]=+e.headers["content-length"]||void 0,this[S]=e,e.once("end",(()=>{this[O]=this[T],this.emit("downloadProgress",this.downloadProgress)})),e.once("error",(t=>{e.destroy(),this._beforeError(new K(t,this))})),e.once("aborted",(()=>{this._beforeError(new K({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))})),this.emit("downloadProgress",this.downloadProgress);const i=e.headers["set-cookie"];if(c.default.object(t.cookieJar)&&i){let a=i.map((async e=>t.cookieJar.setCookie(e,""+r)));t.ignoreInvalidCookies&&(a=a.map((async e=>e.catch((()=>{})))));try{await Promise.all(a)}catch(l){return void this._beforeError(l)}}if(t.followRedirect&&e.headers.location&&H.has(s)){if(e.resume(),this[_]&&(this[k](),delete this[_],this[P]()),!(303===s&&"GET"!==t.method&&"HEAD"!==t.method)&&t.methodRewriting||(t.method="GET","body"in t&&delete t.body,"json"in t&&delete t.json,"form"in t&&delete t.form,this[N]=void 0,delete t.headers["content-length"]),this.redirects.length>=t.maxRedirects)return void this._beforeError(new G(this));try{const u=""+Buffer.from(e.headers.location,"binary"),d=new dt.URL(u,r),h=""+d;function p(e){return"unix:"===e.protocol||"unix"===e.hostname}if(!p(r)&&p(d))return void this._beforeError(new z("Cannot redirect to UNIX socket",{},this));d.hostname!==r.hostname||d.port!==r.port?("host"in t.headers&&delete t.headers.host,"cookie"in t.headers&&delete t.headers.cookie,"authorization"in t.headers&&delete t.headers.authorization,(t.username||t.password)&&(t.username="",t.password="")):(d.username=t.username,d.password=t.password),this.redirects.push(h),t.url=d;for(const f of t.hooks.beforeRedirect)await f(t,o);this.emit("redirect",o,t),await this._makeRequest()}catch(m){return void this._beforeError(m)}}else if(t.isStream&&t.throwHttpErrors&&!v.isResponseOk(o))this._beforeError(new V(o));else{e.on("readable",(()=>{this[U]&&this._read()})),this.on("resume",(()=>{e.resume()})),this.on("pause",(()=>{e.pause()})),e.once("end",(()=>{this.push(null)})),this.emit("response",e);for(const y of this[R])if(!y.headersSent){for(const g in e.headers){const b=e.headers[g];(!t.decompress||"content-encoding"!==g)&&y.setHeader(g,b)}y.statusCode=s}}}async _onResponse(e){try{await this._onResponseBase(e)}catch(e){this._beforeError(e)}}_onRequest(e){const{options:t}=this,{timeout:s,url:o}=t;r.default(e),this[k]=h.default(e,s,o),e.once(t.cache?"cacheableResponse":"response",(e=>{this._onResponse(e)})),e.once("error",(t=>{var r;e.destroy(),null===(r=e.res)||void 0===r||r.removeAllListeners("end"),t=t instanceof h.TimeoutError?new Y(t,this.timings,this):new z(t.message,t,this),this._beforeError(t)})),this[P]=d.default(e,this,Q),this[_]=e,this.emit("uploadProgress",this.uploadProgress);const n=this[N],i=0===this.redirects.length?this:e;c.default.nodeStream(n)?(n.pipe(i),n.once("error",(e=>{this._beforeError(new X(e,this))}))):(this._unlockWrite(),c.default.undefined(n)?(this._cannotHaveBody||this._noPipe)&&(i.end(),this._lockWrite()):(this._writeRequest(n,void 0,(()=>{})),i.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,t){return new Promise(((r,s)=>{let o;Object.assign(t,p.default(e)),delete t.url;const n=F.get(t.cache)(t,(async e=>{e._readableState.autoDestroy=!1,o&&(await o).emit("cacheableResponse",e),r(e)}));t.url=e,n.once("error",s),n.once("request",(async e=>{o=e,r(o)}))}))}async _makeRequest(){var e,t,r,s,n;const{options:a}=this,{headers:l}=a;for(const e in l)if(c.default.undefined(l[e]))delete l[e];else if(c.default.null_(l[e]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${e}\` header`);if(a.decompress&&c.default.undefined(l["accept-encoding"])&&(l["accept-encoding"]=B?"gzip, deflate, br":"gzip, deflate"),a.cookieJar){const e=await a.cookieJar.getCookieString(""+a.url);c.default.nonEmptyString(e)&&(a.headers.cookie=e)}for(const e of a.hooks.beforeRequest){const t=await e(a);if(!c.default.undefined(t)){a.request=()=>t;break}}a.body&&this[N]!==a.body&&(this[N]=a.body);const{agent:u,request:d,timeout:h,url:p}=a;if(a.dnsCache&&!("lookup"in a)&&(a.lookup=a.dnsCache.lookup),"unix"===p.hostname){const e=/(?<socketPath>.+?):(?<path>.+)/.exec(`${p.pathname}${p.search}`);if(null==e?void 0:e.groups){const{socketPath:t,path:r}=e.groups;Object.assign(a,{socketPath:t,path:r,host:""})}}const f="https:"===p.protocol;let m;m=a.http2?i.auto:f?et.request:Ze.request;const y=null!==(e=a.request)&&void 0!==e?e:m,v=a.cache?this._createCacheableRequest:y;u&&!a.http2&&(a.agent=u[f?"https":"http"]),a[_]=y,delete a.request,delete a.timeout;const b=a;if(b.shared=null===(t=a.cacheOptions)||void 0===t?void 0:t.shared,b.cacheHeuristic=null===(r=a.cacheOptions)||void 0===r?void 0:r.cacheHeuristic,b.immutableMinTimeToLive=null===(s=a.cacheOptions)||void 0===s?void 0:s.immutableMinTimeToLive,b.ignoreCargoCult=null===(n=a.cacheOptions)||void 0===n?void 0:n.ignoreCargoCult,void 0!==a.dnsLookupIpVersion)try{b.family=g.dnsLookupIpVersionToFamily(a.dnsLookupIpVersion)}catch(e){throw Error("Invalid `dnsLookupIpVersion` option value")}a.https&&("rejectUnauthorized"in a.https&&(b.rejectUnauthorized=a.https.rejectUnauthorized),a.https.checkServerIdentity&&(b.checkServerIdentity=a.https.checkServerIdentity),a.https.certificateAuthority&&(b.ca=a.https.certificateAuthority),a.https.certificate&&(b.cert=a.https.certificate),a.https.key&&(b.key=a.https.key),a.https.passphrase&&(b.passphrase=a.https.passphrase),a.https.pfx&&(b.pfx=a.https.pfx));try{let e=await v(p,b);c.default.undefined(e)&&(e=m(p,b)),a.request=d,a.timeout=h,a.agent=u,a.https&&("rejectUnauthorized"in a.https&&delete b.rejectUnauthorized,a.https.checkServerIdentity&&delete b.checkServerIdentity,a.https.certificateAuthority&&delete b.ca,a.https.certificate&&delete b.cert,a.https.key&&delete b.key,a.https.passphrase&&delete b.passphrase,a.https.pfx&&delete b.pfx),c.default.object(w=e)&&!("statusCode"in w)?this._onRequest(e):this.writable?(this.once("finish",(()=>{this._onResponse(e)})),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(e)}catch(e){if(e instanceof o.CacheError)throw new W(e,this);throw new z(e.message,e,this)}var w}async _error(e){try{for(const t of this.options.hooks.beforeError)e=await t(e)}catch(t){e=new z(t.message,t,this)}this.destroy(e)}_beforeError(e){if(this[L])return;const{options:t}=this,r=this.retryCount+1;this[L]=!0,e instanceof z||(e=new z(e.message,e,this));const s=e,{response:o}=s;(async()=>{if(o&&!o.body){o.setEncoding(this._readableState.encoding);try{o.rawBody=await y.default(o),o.body=""+o.rawBody}catch(e){}}if(0!==this.listenerCount("retry")){let n;try{let e;o&&"retry-after"in o.headers&&(e=+o.headers["retry-after"],Number.isNaN(e)?(e=Date.parse(o.headers["retry-after"])-Date.now(),e>0||(e=1)):e*=1e3),n=await t.retry.calculateDelay({attemptCount:r,retryOptions:t.retry,error:s,retryAfter:e,computedValue:E.default({attemptCount:r,retryOptions:t.retry,error:s,retryAfter:e,computedValue:0})})}catch(e){return void this._error(new z(e.message,e,this))}if(n)return void(this[M]=setTimeout((async()=>{try{for(const e of this.options.hooks.beforeRetry)await e(this.options,s,r)}catch(t){return void this._error(new z(t.message,e,this))}this.destroyed||(this.destroy(),this.emit("retry",r,e))}),n))}this._error(s)})()}_read(){this[U]=!0;const e=this[S];if(e&&!this[L]){let t;for(e.readableLength&&(this[U]=!1);null!==(t=e.read());){this[T]+=t.length,this[$]=!0;const e=this.downloadProgress;1>e.percent&&this.emit("downloadProgress",e),this.push(t)}}}_write(e,t,r){const s=()=>{this._writeRequest(e,t,r)};this.requestInitialized?s():this[j].push(s)}_writeRequest(e,t,r){this[_].destroyed||(this._progressCallbacks.push((()=>{this[A]+=Buffer.byteLength(e,t);const r=this.uploadProgress;1>r.percent&&this.emit("uploadProgress",r)})),this[_].write(e,t,(e=>{!e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),r(e)})))}_final(e){const t=()=>{for(;0!==this._progressCallbacks.length;)this._progressCallbacks.shift()();_ in this?this[_].destroyed?e():this[_].end((t=>{t||(this[C]=this[A],this.emit("uploadProgress",this.uploadProgress),this[_].emit("upload-complete")),e(t)})):e()};this.requestInitialized?t():this[j].push(t)}_destroy(e,t){var r;this[L]=!0,clearTimeout(this[M]),_ in this&&(this[k](),(null===(r=this[S])||void 0===r?void 0:r.complete)||this[_].destroy()),null===e||c.default.undefined(e)||e instanceof z||(e=new z(e.message,e,this)),t(e)}get _isAboutToError(){return this[L]}get ip(){var e;return null===(e=this.socket)||void 0===e?void 0:e.remoteAddress}get aborted(){var e,t,r;return(null!==(t=null===(e=this[_])||void 0===e?void 0:e.destroyed)&&void 0!==t?t:this.destroyed)&&!(null===(r=this[D])||void 0===r?void 0:r.complete)}get socket(){var e,t;return null!==(t=null===(e=this[_])||void 0===e?void 0:e.socket)&&void 0!==t?t:void 0}get downloadProgress(){let e;return e=this[O]?this[T]/this[O]:this[O]===this[T]?1:0,{percent:e,transferred:this[T],total:this[O]}}get uploadProgress(){let e;return e=this[C]?this[A]/this[C]:this[C]===this[A]?1:0,{percent:e,transferred:this[A],total:this[C]}}get timings(){var e;return null===(e=this[_])||void 0===e?void 0:e.timings}get isFromCache(){return this[I]}pipe(e,t){if(this[$])throw Error("Failed to pipe. The response has been emitted already.");return e instanceof Ze.ServerResponse&&this[R].add(e),super.pipe(e,t)}unpipe(e){return e instanceof Ze.ServerResponse&&this[R].delete(e),super.unpipe(e),this}}e.exports.default=Z})),Et.register("1pC56",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Et("fSh7u");const s=+process.versions.node.split(".")[0],o=e=>{if(e.timings)return e.timings;const t={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};e.timings=t;const o=e=>{const r=e.emit.bind(e);e.emit=(s,...o)=>("error"===s&&(t.error=Date.now(),t.phases.total=t.error-t.start,e.emit=r),r(s,...o))};o(e);const n=()=>{t.abort=Date.now(),t.response&&13>s||(t.phases.total=Date.now()-t.start)};e.prependOnceListener("abort",n);const i=e=>{if(t.socket=Date.now(),t.phases.wait=t.socket-t.start,nt.types.isProxy(e))return;const s=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",s),r.default(e,{connect(){t.connect=Date.now(),void 0===t.lookup&&(e.removeListener("lookup",s),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup},secureConnect(){t.secureConnect=Date.now(),t.phases.tls=t.secureConnect-t.connect}})};e.socket?i(e.socket):e.prependOnceListener("socket",i);const a=()=>{var e;t.upload=Date.now(),t.phases.request=t.upload-(null!==(e=t.secureConnect)&&void 0!==e?e:t.connect)};return("boolean"==typeof e.writableFinished?!e.writableFinished:!e.finished||0!==e.outputSize||e.socket&&0!==e.socket.writableLength)?e.prependOnceListener("finish",a):a(),e.prependOnceListener("response",(e=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,e.timings=t,o(e),e.prependOnceListener("end",(()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start})),e.prependOnceListener("aborted",n)})),t};e.exports.default=o,e.exports=o,e.exports.default=o})),Et.register("fSh7u",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});const r=(e,t)=>{let r;r="function"==typeof t?{connect:t}:t;const s="function"==typeof r.connect,o="function"==typeof r.secureConnect,n="function"==typeof r.close,i=()=>{s&&r.connect(),(e=>e.encrypted)(e)&&o&&(e.authorized?r.secureConnect():e.authorizationError||e.once("secureConnect",r.secureConnect)),n&&e.once("close",r.close)};e.writable&&!e.connecting?i():e.connecting?e.once("connect",i):e.destroyed&&n&&r.close(e._hadError)};e.exports.default=r,e.exports=r,e.exports.default=r})),Et.register("2Tt2I",(function(e,t){"use strict";const{V4MAPPED:r,ADDRCONFIG:s,ALL:o,promises:{Resolver:n},lookup:i}=ht;var a=nt.promisify;const c=Symbol(),l=Symbol(),u=Symbol(),d="number"==typeof o,h=e=>{if(!e||"function"!=typeof e.createConnection)throw Error("Expected an Agent instance as the first argument")},p=()=>{let e=!1,t=!1;for(const r of Object.values(Ke.networkInterfaces()))for(const s of r)if(!s.internal&&("IPv6"===s.family?t=!0:e=!0,e&&t))return{has4:e,has6:t};return{has4:e,has6:t}},f={ttl:!0},m={all:!0};class y{constructor({cache:e=new Map,maxTtl:t=1/0,fallbackDuration:r=3600,errorTtl:s=.15,resolver:o=new n,lookup:c=i}={}){if(this.maxTtl=t,this.errorTtl=s,this._cache=e,this._resolver=o,this._dnsLookup=a(c),this._resolver instanceof n?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=a(this._resolver.resolve4.bind(this._resolver)),this._resolve6=a(this._resolver.resolve6.bind(this._resolver))),this._iface=p(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,1>r)this._fallback=!1;else{this._fallback=!0;const e=setInterval((()=>{this._hostnamesToFallback.clear()}),1e3*r);e.unref&&e.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if("function"==typeof t?(r=t,t={}):"number"==typeof t&&(t={family:t}),!r)throw Error("Callback must be a function.");this.lookupAsync(e,t).then((e=>{t.all?r(null,e):r(null,e.address,e.family,e.expires,e.ttl)}),r)}async lookupAsync(e,t={}){"number"==typeof t&&(t={family:t});let n=await this.query(e);if(6===t.family){const e=n.filter((e=>6===e.family));t.hints&r&&(d&&t.hints&o||0===e.length)?(e=>{for(const t of e)6!==t.family&&(t.address="::ffff:"+t.address,t.family=6)})(n):n=e}else 4===t.family&&(n=n.filter((e=>4===e.family)));if(t.hints&s){const{_iface:e}=this;n=n.filter((t=>6===t.family?e.has6:e.has4))}if(0===n.length){const t=Error("cacheableLookup ENOTFOUND "+e);throw t.code="ENOTFOUND",t.hostname=e,t}return t.all?n:n[0]}async query(e){let t=await this._cache.get(e);if(!t){const r=this._pending[e];if(r)t=await r;else{const r=this.queryAndCache(e);this._pending[e]=r;try{t=await r}finally{delete this._pending[e]}}}return t=t.map((e=>({...e}))),t}async _resolve(e){const[t,r]=await Promise.all([this._resolve4(e,f),this._resolve6(e,f)].map((e=>(async e=>{try{return await e}catch(e){if("ENODATA"===e.code||"ENOTFOUND"===e.code)return[];throw e}})(e))));let s=0,o=0,n=0;const i=Date.now();for(const e of t)e.family=4,e.expires=i+1e3*e.ttl,s=Math.max(s,e.ttl);for(const e of r)e.family=6,e.expires=i+1e3*e.ttl,o=Math.max(o,e.ttl);return n=t.length>0?r.length>0?Math.min(s,o):s:o,{entries:[...t,...r],cacheTtl:n}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch(e){return{entries:[],cacheTtl:0}}}async _set(e,t,r){if(this.maxTtl>0&&r>0){r=1e3*Math.min(r,this.maxTtl),t[u]=Date.now()+r;try{await this._cache.set(e,t,r)}catch(e){this.lookupAsync=async()=>{const t=Error("Cache Error. Please recreate the CacheableLookup instance.");throw t.cause=e,t}}Symbol.iterator in this._cache&&this._tick(r)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,m);let t=await this._resolve(e);0===t.entries.length&&this._fallback&&(t=await this._lookup(e),0!==t.entries.length&&this._hostnamesToFallback.add(e));const r=0===t.entries.length?this.errorTtl:t.cacheTtl;return await this._set(e,t.entries,r),t.entries}_tick(e){const t=this._nextRemovalTime;t&&e>=t||(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout((()=>{this._nextRemovalTime=!1;let e=1/0;const t=Date.now();for(const[r,s]of this._cache){const o=s[u];o>t?e>o&&(e=o):this._cache.delete(r)}e!==1/0&&this._tick(e-t)}),e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(h(e),c in e)throw Error("CacheableLookup has been already installed");e[c]=e.createConnection,e[l]=this,e.createConnection=(t,r)=>("lookup"in t||(t.lookup=this.lookup),e[c](t,r))}uninstall(e){if(h(e),e[c]){if(e[l]!==this)throw Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[c],delete e[c],delete e[l]}}updateInterfaceInfo(){const{_iface:e}=this;this._iface=p(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){e?this._cache.delete(e):this._cache.clear()}}e.exports=y,e.exports.default=y})),Et.register("14xAD",(function(e,t){"use strict";function r(e){const t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function s(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}var o=Et("3W7YG"),n=Et("84wFv"),i=Et("bnCxk"),a=Et("bRt6S"),c=Et("3WafW"),l=Et("gNBNo"),u=Et("aGips");class d{constructor(e,t){if("function"!=typeof e)throw new TypeError("Parameter `request` must be a function");return this.cache=new u({uri:"string"==typeof t&&t,store:"string"!=typeof t&&t,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(t,u)=>{let h;if("string"==typeof t)h=s(dt.parse(t)),t={};else if(t instanceof dt.URL)h=s(dt.parse(""+t)),t={};else{const[e,...r]=(t.path||"").split("?"),o=r.length>0?"?"+r.join("?"):"";h=s({...t,pathname:e,search:o})}(t={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...t,...r(h)}).headers=c(t.headers);const p=new st,f=o(dt.format(h),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),m=`${t.method}:${f}`;let y=!1,g=!1;const v=t=>{g=!0;let r,s=!1;const o=new Promise((e=>{r=()=>{s||(s=!0,e())}})),c=e=>{if(y&&!t.forceRefresh){e.status=e.statusCode;const r=i.fromObject(y.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();(e=new a(y.statusCode,t,y.body,y.url)).cachePolicy=r.policy,e.fromCache=!0}}let r;e.fromCache||(e.cachePolicy=new i(t,e,t),e.fromCache=!1),t.cache&&e.cachePolicy.storable()?(r=l(e),(async()=>{try{const r=n.buffer(e);if(await Promise.race([o,new Promise((t=>e.once("end",t)))]),s)return;const i=await r,a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?y.statusCode:e.statusCode,body:i};let c=t.strictTtl?e.cachePolicy.timeToLive():void 0;t.maxTtl&&(c=c?Math.min(c,t.maxTtl):t.maxTtl),await this.cache.set(m,a,c)}catch(e){p.emit("error",new d.CacheError(e))}})()):t.cache&&y&&(async()=>{try{await this.cache.delete(m)}catch(e){p.emit("error",new d.CacheError(e))}})(),p.emit("response",r||e),"function"==typeof u&&u(r||e)};try{const s=e(t,c);s.once("error",r),s.once("abort",r),p.emit("request",s)}catch(e){p.emit("error",new d.RequestError(e))}};return(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(m):void 0;if(void 0===t)return v(e);const r=i.fromObject(t.cachePolicy);if(r.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=r.responseHeaders(),s=new a(t.statusCode,e,t.body,t.url);s.cachePolicy=r,s.fromCache=!0,p.emit("response",s),"function"==typeof u&&u(s)}else y=t,e.headers=r.revalidationHeaders(e),v(e)},r=e=>p.emit("error",new d.CacheError(e));this.cache.once("error",r),p.on("response",(()=>this.cache.removeListener("error",r)));try{await e(t)}catch(e){t.automaticFailover&&!g&&v(t),p.emit("error",new d.CacheError(e))}})(),p}}}d.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}},d.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}},e.exports=d})),Et.register("3W7YG",((e,t)=>{"use strict";const r=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));e.exports=(e,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{const r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw Error("Invalid URL: "+e);let{type:s,data:o,hash:n}=r.groups;const i=s.split(";");n=t?"":n;let a=!1;"base64"===i[i.length-1]&&(i.pop(),a=!0);const c=(i.shift()||"").toLowerCase(),l=[...i.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(r=r.toLowerCase(),"us-ascii"===r)?"":`${t}${r?"="+r:""}`})).filter(Boolean)];return a&&l.push("base64"),(0!==l.length||c&&"text/plain"!==c)&&l.unshift(c),`data:${l.join(";")},${a?o.trim():o}${n?"#"+n:""}`})(e,t);if(/^view-source:/i.test(e))throw Error("`view-source:` is not supported as it is a non-standard protocol");const s=e.startsWith("//");!s&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const o=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===o.protocol&&(o.protocol="http:"),t.forceHttps&&"http:"===o.protocol&&(o.protocol="https:"),t.stripAuthentication&&(o.username="",o.password=""),t.stripHash?o.hash="":t.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,"")),o.pathname&&(o.pathname=o.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),o.pathname)try{o.pathname=decodeURI(o.pathname)}catch(e){}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split("/");r(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),o.pathname=e.slice(1).join("/")+"/")}if(o.hostname&&(o.hostname=o.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const e of[...o.searchParams.keys()])r(e,t.removeQueryParameters)&&o.searchParams.delete(e);!0===t.removeQueryParameters&&(o.search=""),t.sortQueryParameters&&o.searchParams.sort(),t.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,""));const n=e;return e=""+o,t.removeSingleSlash||"/"!==o.pathname||n.endsWith("/")||""!==o.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===o.pathname)&&""===o.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),s&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}})),Et.register("84wFv",(function(e,t){"use strict";async function r(e,t){if(!e)return Promise.reject(Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:r}=t;let a;return await new Promise(((c,l)=>{const u=e=>{e&&a.getBufferedLength()<=s.MAX_LENGTH&&(e.bufferedData=a.getBufferedValue()),l(e)};a=o(e,n(t),(e=>{e?u(e):c()})),a.on("data",(()=>{a.getBufferedLength()>r&&u(new i)}))})),a.getBufferedValue()}var s=pt.constants,o=Et("bRBQV"),n=Et("g754o");class i extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}e.exports=r,e.exports.default=r,e.exports.buffer=(e,t)=>r(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>r(e,{...t,array:!0}),e.exports.MaxBufferError=i})),Et.register("bRBQV",((e,t)=>{var r=Et("fA7Yz"),s=Et("iu3xS"),o=()=>{},n=/^v?\.0/.test(process.version),i=e=>"function"==typeof e,a=(e,t,a,c)=>{c=r(c);var l=!1;e.on("close",(()=>{l=!0})),s(e,{readable:t,writable:a},(e=>{if(e)return c(e);l=!0,c()}));var u=!1;return t=>{if(!l&&!u)return u=!0,(e=>!!n&&!!Qe&&(e instanceof(Qe.ReadStream||o)||e instanceof(Qe.WriteStream||o))&&i(e.close))(e)?e.close(o):(e=>e.setHeader&&i(e.abort))(e)?e.abort():i(e.destroy)?e.destroy():void c(t||Error("stream was destroyed"))}},c=e=>{e()},l=(e,t)=>e.pipe(t);e.exports=function(){var e,t=[].slice.call(arguments),r=i(t[t.length-1]||o)&&t.pop()||o;if(Array.isArray(t[0])&&(t=t[0]),2>t.length)throw Error("pump requires two streams per minimum");var s=t.map(((o,n)=>{var i=t.length-1>n;return a(o,i,n>0,(t=>{e||(e=t),t&&s.forEach(c),i||(s.forEach(c),r(e))}))}));return t.reduce(l)}})),Et.register("fA7Yz",(function(e,t){function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}var o=Et("4crMY");e.exports=o(r),e.exports.strict=o(s),r.proto=r((function(){Object.defineProperty(Function.prototype,"once",{value(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value(){return s(this)},configurable:!0})}))})),Et.register("4crMY",(function(e,t){e.exports=function e(t,r){function s(){for(var e=Array(arguments.length),r=0;e.length>r;r++)e[r]=arguments[r];var s=t.apply(this,e),o=e[e.length-1];return"function"==typeof s&&s!==o&&Object.keys(o).forEach((e=>{s[e]=o[e]})),s}if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((e=>{s[e]=t[e]})),s}})),Et.register("iu3xS",((e,t)=>{var r=Et("fA7Yz"),s=()=>{},o=(e,t,n)=>{if("function"==typeof t)return o(e,null,t);t||(t={}),n=r(n||s);var i=e._writableState,a=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,u=!1,d=()=>{e.writable||h()},h=()=>{l=!1,c||n.call(e)},p=()=>{c=!1,l||n.call(e)},f=t=>{n.call(e,t?Error("exited with error code: "+t):null)},m=t=>{n.call(e,t)},y=()=>{process.nextTick(g)},g=()=>{if(!u)return(!c||a&&a.ended&&!a.destroyed)&&(!l||i&&i.ended&&!i.destroyed)?void 0:n.call(e,Error("premature close"))},v=()=>{e.req.on("finish",h)};return(e=>e.setHeader&&"function"==typeof e.abort)(e)?(e.on("complete",h),e.on("abort",y),e.req?v():e.on("request",v)):l&&!i&&(e.on("end",d),e.on("close",d)),(e=>e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length)(e)&&e.on("exit",f),e.on("end",p),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",y),()=>{u=!0,e.removeListener("complete",h),e.removeListener("abort",y),e.removeListener("request",v),e.req&&e.req.removeListener("finish",h),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",h),e.removeListener("exit",f),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",y)}};e.exports=o})),Et.register("g754o",((e,t)=>{"use strict";var r=ut.PassThrough;e.exports=e=>{e={...e};const{array:t}=e;let{encoding:s}=e;const o="buffer"===s;let n=!1;t?n=!(s||o):s=s||"utf8",o&&(s=null);const i=new r({objectMode:n});s&&i.setEncoding(s);let a=0;const c=[];return i.on("data",(e=>{c.push(e),n?a=c.length:a+=e.length})),i.getBufferedValue=()=>t?c:o?Buffer.concat(c,a):c.join(""),i.getBufferedLength=()=>a,i}})),Et.register("bnCxk",(function(e,t){"use strict";function r(e){const t=parseInt(e,10);return isFinite(t)?t:0}function s(e){const t={};if(!e)return t;const r=e.trim().split(/\s*,\s*/);for(const e of r){const[r,s]=e.split(/\s*=\s*/,2);t[r]=void 0===s||s.replace(/^"|"$/g,"")}return t}function o(e){let t=[];for(const r in e){const s=e[r];t.push(!0===s?r:r+"="+s)}if(t.length)return t.join(", ")}const n=new Set([200,203,204,206,300,301,404,405,410,414,501]),i=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),a=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},l={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};e.exports=class{constructor(e,t,{shared:r,cacheHeuristic:n,immutableMinTimeToLive:i,ignoreCargoCult:a,_fromObject:c}={}){if(c)this._fromObject(c);else{if(!t||!t.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=!1!==r,this._cacheHeuristic=void 0!==n?n:.1,this._immutableMinTtl=void 0!==i?i:864e5,this._status="status"in t?t.status:200,this._resHeaders=t.headers,this._rescc=s(t.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=t.headers.vary?e.headers:null,this._reqcc=s(e.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":o(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),null==t.headers["cache-control"]&&/no-cache/.test(t.headers.pragma)&&(this._rescc["no-cache"]=!0)}}now(){return Date.now()}storable(){return!(this._reqcc["no-store"]||!("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())||!i.has(this._status)||this._rescc["no-store"]||this._isShared&&this._rescc.private||this._isShared&&!this._noAuthorization&&!this._allowsStoringAuthenticated()||!(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||n.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=s(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)}_requestMatches(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)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if("*"===this._resHeaders.vary)return!1;const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t)if(e.headers[r]!==this._reqHeaders[r])return!1;return!0}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e)c[r]||(t[r]=e[r]);if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r)delete t[e]}if(t.warning){const e=t.warning.split(/,/).filter((e=>!/^\s*1[0-9][0-9]/.test(e)));e.length?t.warning=e.join(",").trim():delete t.warning}return t}responseHeaders(){const 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.date=new Date(this.now()).toUTCString(),e}date(){const e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){return this._ageValue()+(this.now()-this._responseTime)/1e3}_ageValue(){return r(this._resHeaders.age)}maxAge(){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 r(this._rescc["s-maxage"])}if(this._rescc["max-age"])return r(this._rescc["max-age"]);const e=this._rescc.immutable?this._immutableMinTtl:0,t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);return Number.isNaN(r)||t>r?0:Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){const r=Date.parse(this._resHeaders["last-modified"]);if(isFinite(r)&&t>r)return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}return e}timeToLive(){const e=this.maxAge()-this.age(),t=e+r(this._rescc["stale-if-error"]),s=e+r(this._rescc["stale-while-revalidate"]);return 1e3*Math.max(0,e,t,s)}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+r(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+r(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(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}toObject(){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}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const 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"]){const e=t["if-none-match"].split(/,/).filter((e=>!/^\s*W\//.test(e)));e.length?t["if-none-match"]=e.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}revalidatedPolicy(e,t){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&(e=>!e||a.has(e.status))(t))return{modified:!1,matches:!1,policy:this};if(!t||!t.headers)throw Error("Response headers missing");let 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:304!=t.status,matches:!1};const s={};for(const e in this._resHeaders)s[e]=e in t.headers&&!l[e]?t.headers[e]:this._resHeaders[e];const o=Object.assign({},t,{status:this._status,method:this._method,headers:s});return{policy:new this.constructor(e,o,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}})),Et.register("bRt6S",(function(e,t){"use strict";var r=ut.Readable,s=Et("3WafW");e.exports=class extends r{constructor(e,t,r,o){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 o)throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=s(t),this.body=r,this.url=o}_read(){this.push(this.body),this.push(null)}}})),Et.register("3WafW",((e,t)=>{"use strict";e.exports=e=>{const t={};for(const[r,s]of Object.entries(e))t[r.toLowerCase()]=s;return t}})),Et.register("gNBNo",((e,t)=>{"use strict";var r=ut.PassThrough,s=Et("exrd1");e.exports=e=>{if(!e||!e.pipe)throw new TypeError("Parameter `response` must be a response stream.");const t=new r;return s(e,t),e.pipe(t)}})),Et.register("exrd1",((e,t)=>{"use strict";const r=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,t)=>{const s=new Set(Object.keys(e).concat(r));for(const r of s)r in t||(t[r]="function"==typeof e[r]?e[r].bind(e):e[r])}})),Et.register("aGips",(function(e,t){"use strict";var r=Et("fZtKa"),s=Et("jOGIV");const o=["sqlite","postgres","mysql","mongo","redis","tiered"];e.exports=class extends st{constructor(e,{emitErrors:t=!0,...o}={}){if(super(),this.opts={namespace:"keyv",serialize:r.stringify,deserialize:r.parse,..."string"==typeof e?{uri:e}:e,...o},!this.opts.store){const e={...this.opts};this.opts.store=(e=>{const t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){const r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map})(e)}if(this.opts.compress){const e=s(this.opts.compress.opts);this.opts.serialize=async({value:t,expires:r})=>e.serialize({value:await e.compress(t),expires:r}),this.opts.deserialize=async t=>{const{value:r,expires:s}=e.deserialize(t);return{value:await e.decompress(r),expires:s}}}"function"==typeof this.opts.store.on&&t&&this.opts.store.on("error",(e=>this.emit("error",e))),this.opts.store.namespace=this.opts.namespace;const n=e=>async function*(){for await(const[t,r]of"function"==typeof e?e(this.opts.store.namespace):e){const e=this.opts.deserialize(r);this.opts.store.namespace&&!t.includes(this.opts.store.namespace)||("number"==typeof e.expires&&Date.now()>e.expires?this.delete(t):yield[this._getKeyUnprefix(t),e.value])}};"function"==typeof this.opts.store[Symbol.iterator]&&this.opts.store instanceof Map?this.iterator=n(this.opts.store):"function"==typeof this.opts.store.iterator&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return o.includes(this.opts.store.opts.dialect)||o.findIndex((e=>this.opts.store.opts.url.includes(e)))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map((e=>`${this.opts.namespace}:${e}`))}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,t){const{store:r}=this.opts,s=Array.isArray(e),o=s?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(s&&void 0===r.getMany){const e=[];for(const s of o)e.push(Promise.resolve().then((()=>r.get(s))).then((e=>"string"==typeof e?this.opts.deserialize(e):e)).then((e=>{if(null!=e)return"number"==typeof e.expires&&Date.now()>e.expires?this.delete(s).then((()=>{})):t&&t.raw?e:e.value})));return Promise.allSettled(e).then((e=>{const t=[];for(const r of e)t.push(r.value);return t.every((e=>void 0===e))?[]:t}))}return Promise.resolve().then((()=>s?r.getMany(o):r.get(o))).then((e=>"string"==typeof e?this.opts.deserialize(e):e)).then((r=>{if(null!=r){if(s){const s=[];if(0===r.length)return[];for(let o of r)"string"==typeof o&&(o=this.opts.deserialize(o)),null!=o?"number"==typeof o.expires&&Date.now()>o.expires?(this.delete(e).then((()=>{})),s.push(void 0)):s.push(t&&t.raw?o:o.value):s.push(void 0);return s.every((e=>void 0===e))?[]:s}return"number"==typeof r.expires&&Date.now()>r.expires?this.delete(e).then((()=>{})):t&&t.raw?r:r.value}}))}set(e,t,r){const s=this._getKeyPrefix(e);void 0===r&&(r=this.opts.ttl),0===r&&(r=void 0);const{store:o}=this.opts;return Promise.resolve().then((()=>{const e="number"==typeof r?Date.now()+r:null;return"symbol"==typeof t&&this.emit("error","symbol cannot be serialized"),this.opts.serialize(t={value:t,expires:e})})).then((e=>o.set(s,e,r))).then((()=>!0))}delete(e){const{store:t}=this.opts;if(Array.isArray(e)){const r=this._getKeyPrefixArray(e);if(void 0===t.deleteMany){const e=[];for(const s of r)e.push(t.delete(s));return Promise.allSettled(e).then((e=>e.every((e=>!0===e.value))))}return Promise.resolve().then((()=>t.deleteMany(r)))}const r=this._getKeyPrefix(e);return Promise.resolve().then((()=>t.delete(r)))}clear(){const{store:e}=this.opts;return Promise.resolve().then((()=>e.clear()))}has(e){const t=this._getKeyPrefix(e),{store:r}=this.opts;return Promise.resolve().then((async()=>"function"==typeof r.has?r.has(t):void 0!==await r.get(t)))}disconnect(){const{store:e}=this.opts;if("function"==typeof e.disconnect)return e.disconnect()}}})),Et.register("fZtKa",((t,r)=>{var s,o;e(t.exports,"stringify",(()=>s),(e=>s=e)),e(t.exports,"parse",(()=>o),(e=>o=e)),s=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="",s=Array.isArray(t);r=s?"[":"{";var o=!0;for(var n in t){var i="function"==typeof t[n]||!s&&void 0===t[n];Object.hasOwnProperty.call(t,n)&&!i&&(o||(r+=","),o=!1,s?r+=null==t[n]?"null":e(t[n]):void 0!==t[n]&&(r+=e(n)+":"+e(t[n])))}return r+(s?"]":"}")}return"string"==typeof t?JSON.stringify(/^:/.test(t)?":"+t:t):void 0===t?"null":JSON.stringify(t)},o=e=>JSON.parse(e,((e,t)=>"string"==typeof t?/^:base64:/.test(t)?Buffer.from(t.substring(8),"base64"):/^:/.test(t)?t.substring(1):t:t))})),Et.register("jOGIV",((e,t)=>{"use strict";var r=nt.promisify,s=Et("fZtKa"),o=Et("2iUFH");const n=r(ft.brotliCompress),i=r(ft.brotliDecompress),a=e=>e;e.exports=({enable:e=!0,serialize:t=s.stringify,deserialize:r=s.parse,compressOptions:c,decompressOptions:l}={})=>e?{serialize:t,deserialize:r,async compress(e,r={}){if(void 0===e)return e;const s=t(e);return n(s,o(c,r))},async decompress(e,t={}){return void 0===e?e:r(await i(e,o(l,t)))}}:{serialize:t,deserialize:r,decompress:a,compress:a},e.exports.stringify=s.stringify,e.exports.parse=s.parse})),Et.register("2iUFH",((e,t)=>{"use strict";e.exports=(e={},t={})=>{const r={...e.params||{},...t.params||{}};return{...e,...t,...Object.keys(r).length?{params:r}:{}}}})),Et.register("f02vo",((e,t)=>{"use strict";var r=ut.Transform,s=ut.PassThrough,o=Et("cFOhs");e.exports=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t))return e;const n="br"===t;if(n&&"function"!=typeof ft.createBrotliDecompress)return e.destroy(Error("Brotli is not supported on Node.js < 12")),e;let i=!0;const a=new r({transform(e,t,r){i=!1,r(null,e)},flush(e){e()}}),c=new s({autoDestroy:!1,destroy(t,r){e.destroy(),r(t)}}),l=n?ft.createBrotliDecompress():ft.createUnzip();return l.once("error",(t=>{!i||e.readable?c.destroy(t):c.end()})),o(e,c),e.pipe(a).pipe(l).pipe(c),c}})),Et.register("cFOhs",((e,t)=>{"use strict";const r=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,t)=>{if(t._readableState.autoDestroy)throw Error("The second stream must have the `autoDestroy` option set to `false`");const s=new Set(Object.keys(e).concat(r)),o={};for(const r of s)r in t||(o[r]={get(){const t=e[r];return"function"==typeof t?t.bind(e):t},set(t){e[r]=t},enumerable:!0,configurable:!1});return Object.defineProperties(t,o),e.once("aborted",(()=>{t.destroy(),t.emit("aborted")})),e.once("close",(()=>{e.complete&&t.readable?t.once("end",(()=>{t.emit("close")})):t.emit("close")})),t}})),Et.register("41FYB",((e,t)=>{"use strict";var r=Et("9vI7i"),s=Et("8o9OA"),o=Et("flsRF"),n=Et("lkoZN");e.exports={...mt,ClientRequest:s,IncomingMessage:o,...r,request(e,t,r){return new s(e,t,r)},get(e,t,r){const o=new s(e,t,r);return o.end(),o},auto:n}})),Et.register("9vI7i",(function(e,t){"use strict";var r=Et("hDAFT");const s=Symbol(),o=Symbol(),n=Symbol(),i=Symbol(),a=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],c=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams,l=(e,t)=>{for(const r of e)t[n].length>r[n].length&&r[n].every((e=>t[n].includes(e)))&&t.remoteSettings.maxConcurrentStreams>=r[s]+t[s]&&d(r)},u=({agent:e,isFree:t})=>{const r={};for(const s in e.sessions){const o=e.sessions[s].filter((e=>{const r=e.remoteSettings.maxConcurrentStreams>e[h.kCurrentStreamsCount];return t?r:!r}));0!==o.length&&(r[s]=o)}return r},d=e=>{e[i]=!0,0===e[s]&&e.close()};class h extends st{constructor({timeout:e=6e4,maxSessions:t=1/0,maxFreeSessions:s=10,maxCachedTlsSessions:o=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=t,this.maxFreeSessions=s,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new r({maxSize:o})}static normalizeOrigin(e,t){return"string"==typeof e&&(e=new URL(e)),t&&e.hostname!==t&&(e.hostname=t),e.origin}normalizeOptions(e){let t="";if(e)for(const r of a)e[r]&&(t+=":"+e[r]);return t}_tryToCreateNewSession(e,t){if(!(e in this.queue)||!(t in this.queue[e]))return;const r=this.queue[e][t];this.maxSessions>this._sessionsCount&&!r.completed&&(r.completed=!0,r())}getSession(e,t,r){return new Promise(((a,u)=>{Array.isArray(r)?(r=[...r],a()):r=[{resolve:a,reject:u}];const p=this.normalizeOptions(t),f=h.normalizeOrigin(e,t&&t.servername);if(void 0===f){for(const{reject:e}of r)e(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(p in this.sessions){const e=this.sessions[p];let t,o=-1,a=-1;for(const r of e){const e=r.remoteSettings.maxConcurrentStreams;if(o>e)break;if(r[n].includes(f)){const n=r[s];if(n>=e||r[i]||r.destroyed)continue;t||(o=e),n>a&&(t=r,a=n)}}if(t){if(1!==r.length){for(const{reject:e}of r)e(Error(`Expected the length of listeners to be 1, got ${r.length}.\nPlease report this to https://github.com/szmarczak/http2-wrapper/`));return}return void r[0].resolve(t)}}if(p in this.queue){if(f in this.queue[p])return this.queue[p][f].listeners.push(...r),void this._tryToCreateNewSession(p,f)}else this.queue[p]={};const m=()=>{p in this.queue&&this.queue[p][f]===y&&(delete this.queue[p][f],0===Object.keys(this.queue[p]).length&&delete this.queue[p])},y=()=>{const a=`${f}:${p}`;let u=!1;try{const h=mt.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(a),...t});h[s]=0,h[i]=!1;const g=()=>h.remoteSettings.maxConcurrentStreams>h[s];let v=!0;h.socket.once("session",(e=>{this.tlsSessionCache.set(a,e)})),h.once("error",(e=>{for(const{reject:t}of r)t(e);this.tlsSessionCache.delete(a)})),h.setTimeout(this.timeout,(()=>{h.destroy()})),h.once("close",(()=>{if(u){v&&this._freeSessionsCount--,this._sessionsCount--;const e=this.sessions[p];e.splice(e.indexOf(h),1),0===e.length&&delete this.sessions[p]}else{const e=Error("Session closed without receiving a SETTINGS frame");e.code="HTTP2WRAPPER_NOSETTINGS";for(const{reject:t}of r)t(e);m()}this._tryToCreateNewSession(p,f)}));const b=()=>{if(p in this.queue&&g())for(const e of h[n])if(e in this.queue[p]){const{listeners:t}=this.queue[p][e];for(;0!==t.length&&g();)t.shift().resolve(h);const r=this.queue[p];if(0===r[e].listeners.length&&(delete r[e],0===Object.keys(r).length)){delete this.queue[p];break}if(!g())break}};h.on("origin",(()=>{h[n]=h.originSet,g()&&(b(),l(this.sessions[p],h))})),h.once("remoteSettings",(()=>{if(h.ref(),h.unref(),this._sessionsCount++,y.destroyed){const e=Error("Agent has been destroyed");for(const t of r)t.reject(e);h.destroy()}else{h[n]=h.originSet;{const e=this.sessions;if(p in e){const t=e[p];t.splice(((e,t,r)=>{let s=0,o=e.length;for(;o>s;){const n=s+o>>>1;r(e[n],t)?s=n+1:o=n}return s})(t,h,c),0,h)}else e[p]=[h]}this._freeSessionsCount+=1,u=!0,this.emit("session",h),b(),m(),0===h[s]&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),0!==r.length&&(this.getSession(f,t,r),r.length=0),h.on("remoteSettings",(()=>{b(),l(this.sessions[p],h)}))}})),h[o]=h.request,h.request=(e,t)=>{if(h[i])throw Error("The session is gracefully closing. No new streams are allowed.");const r=h[o](e,t);return h.ref(),++h[s],h[s]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,r.once("close",(()=>{if(v=g(),--h[s],!h.destroyed&&!h.closed&&(((e,t)=>{for(const r of e)r[n].length>t[n].length&&t[n].every((e=>r[n].includes(e)))&&r.remoteSettings.maxConcurrentStreams>=t[s]+r[s]&&d(t)})(this.sessions[p],h),g()&&!h.closed)){v||(this._freeSessionsCount++,v=!0);const e=0===h[s];e&&h.unref(),e&&(this._freeSessionsCount>this.maxFreeSessions||h[i])?h.close():(l(this.sessions[p],h),b())}})),r}}catch(e){for(const t of r)t.reject(e);m()}};y.listeners=r,y.completed=!1,y.destroyed=!1,this.queue[p][f]=y,this._tryToCreateNewSession(p,f)}))}request(e,t,r,s){return new Promise(((o,n)=>{this.getSession(e,t,[{reject:n,resolve(e){try{o(e.request(r,s))}catch(e){n(e)}}}])}))}createConnection(e,t){return h.connect(e,t)}static connect(e,t){t.ALPNProtocols=["h2"];const r=e.port||443,s=e.hostname||e.host;return void 0===t.servername&&(t.servername=s),rt.connect(r,s,t)}closeFreeSessions(){for(const e of Object.values(this.sessions))for(const t of e)0===t[s]&&t.close()}destroy(e){for(const t of Object.values(this.sessions))for(const r of t)r.destroy(e);for(const e of Object.values(this.queue))for(const t of Object.values(e))t.destroyed=!0;this.queue={}}get freeSessions(){return u({agent:this,isFree:!0})}get busySessions(){return u({agent:this,isFree:!1})}}h.kCurrentStreamsCount=s,h.kGracefullyClosing=i,e.exports={Agent:h,globalAgent:new h}})),Et.register("hDAFT",(function(e,t){"use strict";class r{constructor(e={}){if(!e.maxSize||0>=e.maxSize)throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){if(this.cache.set(e,t),this._size++,this._size>=this.maxSize){if(this._size=0,"function"==typeof this.onEviction)for(const[e,t]of this.oldCache.entries())this.onEviction(e,t);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){const t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache)yield e;for(const e of this.oldCache){const[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}}e.exports=r})),Et.register("8o9OA",(function(e,t){"use strict";var r=ut.Writable,s=Et("9vI7i"),o=s.Agent,n=s.globalAgent,i=Et("flsRF"),a=Et("6qncK"),c=Et("5hDw5"),l=Et("4721N"),u=Et("gmLmC"),d=u.ERR_INVALID_ARG_TYPE,h=u.ERR_INVALID_PROTOCOL,p=u.ERR_HTTP_HEADERS_SENT,f=u.ERR_INVALID_HTTP_TOKEN,m=u.ERR_HTTP_INVALID_HEADER_VALUE,y=u.ERR_INVALID_CHAR;const{HTTP2_HEADER_STATUS:g,HTTP2_HEADER_METHOD:v,HTTP2_HEADER_PATH:b,HTTP2_METHOD_CONNECT:w}=mt.constants,E=Symbol(),x=Symbol(),_=Symbol(),S=Symbol(),O=Symbol(),T=Symbol(),C=/^[\^`\-\w!#$%&*+.|~]+$/,A=/[^\t\u0020-\u007E\u0080-\u00FF]/;e.exports=class extends r{constructor(e,t,r){super({autoDestroy:!1});const s="string"==typeof e||e instanceof URL;if(s&&(e=a(e instanceof URL?e:new URL(e))),"function"==typeof t||void 0===t?(r=t,t=s?e:{...e}):t={...e,...t},t.h2session)this[_]=t.h2session;else if(!1===t.agent)this.agent=new o({maxFreeSessions:0});else if(null==t.agent)"function"==typeof t.createConnection?(this.agent=new o({maxFreeSessions:0}),this.agent.createConnection=t.createConnection):this.agent=n;else{if("function"!=typeof t.agent.request)throw new d("options.agent",["Agent-like Object","undefined","false"],t.agent);this.agent=t.agent}if(t.protocol&&"https:"!==t.protocol)throw new h(t.protocol,"https:");const i=t.port||t.defaultPort||this.agent&&this.agent.defaultPort||443,c=t.hostname||t.host||"localhost";delete t.hostname,delete t.host,delete t.port;const{timeout:l}=t;if(t.timeout=void 0,this[E]=Object.create(null),this[T]=[],this.socket=null,this.connection=null,this.method=t.method||"GET",this.path=t.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,t.headers)for(const[e,r]of Object.entries(t.headers))this.setHeader(e,r);t.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(t.auth).toString("base64")),t.session=t.tlsSession,t.path=t.socketPath,this[S]=t,443===i?(this[x]="https://"+c,":authority"in this[E]||(this[E][":authority"]=c)):(this[x]=`https://${c}:${i}`,":authority"in this[E]||(this[E][":authority"]=`${c}:${i}`)),l&&this.setTimeout(l),r&&this.once("response",r),this[O]=!1}get method(){return this[E][v]}set method(e){e&&(this[E][v]=e.toUpperCase())}get path(){return this[E][b]}set path(e){e&&(this[E][b]=e)}get _mustNotHaveABody(){return"GET"===this.method||"HEAD"===this.method||"DELETE"===this.method}_write(e,t,r){if(this._mustNotHaveABody)return void r(Error("The GET, HEAD and DELETE methods must NOT have a body"));this.flushHeaders();const s=()=>this._request.write(e,t,r);this._request?s():this[T].push(s)}_final(e){if(this.destroyed)return;this.flushHeaders();const t=()=>{this._mustNotHaveABody?e():this._request.end(e)};this._request?t():this[T].push(t)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick((()=>this.emit("abort"))),this.aborted=!0,this.destroy())}_destroy(e,t){this.res&&this.res._dump(),this._request&&this._request.destroy(),t(e)}async flushHeaders(){if(this[O]||this.destroyed)return;this[O]=!0;const e=this.method===w,t=t=>{if(this._request=t,this.destroyed)return void t.destroy();e||c(t,this,["timeout","continue","close","error"]);const r=e=>(...t)=>{this.writable||this.destroyed?this.once("finish",(()=>{e(...t)})):e(...t)};t.once("response",r(((r,s,o)=>{const n=new i(this.socket,t.readableHighWaterMark);this.res=n,n.req=this,n.statusCode=r[g],n.headers=r,n.rawHeaders=o,n.once("end",(()=>{this.aborted?(n.aborted=!0,n.emit("aborted")):(n.complete=!0,n.socket=null,n.connection=null)})),e?(n.upgrade=!0,this.emit("connect",n,t,Buffer.alloc(0))?this.emit("close"):t.destroy()):(t.on("data",(e=>{n._dumped||n.push(e)||t.pause()})),t.once("end",(()=>{n.push(null)})),this.emit("response",n)||n._dump())}))),t.once("headers",r((e=>this.emit("information",{statusCode:e[g]})))),t.once("trailers",r(((e,t,r)=>{const{res:s}=this;s.trailers=e,s.rawTrailers=r})));const{socket:s}=t.session;this.socket=s,this.connection=s;for(const e of this[T])e();this.emit("socket",this.socket)};if(this[_])try{t(this[_].request(this[E]))}catch(e){this.emit("error",e)}else{this.reusedSocket=!0;try{t(await this.agent.request(this[x],this[S],this[E]))}catch(e){this.emit("error",e)}}}getHeader(e){if("string"!=typeof e)throw new d("name","string",e);return this[E][e.toLowerCase()]}get headersSent(){return this[O]}removeHeader(e){if("string"!=typeof e)throw new d("name","string",e);if(this.headersSent)throw new p("remove");delete this[E][e.toLowerCase()]}setHeader(e,t){if(this.headersSent)throw new p("set");if("string"!=typeof e||!C.test(e)&&!l(e))throw new f("Header name",e);if(void 0===t)throw new m(t,e);if(A.test(t))throw new y("header content",e);this[E][e.toLowerCase()]=t}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,t){const r=()=>this._request.setTimeout(e,t);return this._request?r():this[T].push(r),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}}})),Et.register("flsRF",(function(e,t){"use strict";var r=ut.Readable;e.exports=class extends r{constructor(e,t){super({highWaterMark:t,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,t){return this.req.setTimeout(e,t),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}}})),Et.register("6qncK",((e,t)=>{"use strict";e.exports=e=>{const t={protocol:e.protocol,hostname:"string"==typeof e.hostname&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return"string"==typeof e.port&&0!==e.port.length&&(t.port=+e.port),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}})),Et.register("5hDw5",((e,t)=>{"use strict";e.exports=(e,t,r)=>{for(const s of r)e.on(s,((...e)=>t.emit(s,...e)))}})),Et.register("4721N",((e,t)=>{"use strict";e.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}})),Et.register("gmLmC",(function(e,t){"use strict";const r=(t,r,s)=>{e.exports[r]=class extends t{constructor(...e){super("string"==typeof s?s:s(e)),this.name=`${super.name} [${r}]`,this.code=r}}};r(TypeError,"ERR_INVALID_ARG_TYPE",(e=>{const t=e[0].includes(".")?"property":"argument";let r=e[1];const s=Array.isArray(r);return s&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${e[0]}" ${t} must be ${s?"one of":"of"} type ${r}. Received ${typeof e[2]}`})),r(TypeError,"ERR_INVALID_PROTOCOL",(e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`)),r(Error,"ERR_HTTP_HEADERS_SENT",(e=>`Cannot ${e[0]} headers after they are sent to the client`)),r(TypeError,"ERR_INVALID_HTTP_TOKEN",(e=>`${e[0]} must be a valid HTTP token [${e[1]}]`)),r(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",(e=>`Invalid value "${e[0]} for header "${e[1]}"`)),r(TypeError,"ERR_INVALID_CHAR",(e=>`Invalid character in ${e[0]} [${e[1]}]`))})),Et.register("lkoZN",((e,t)=>{"use strict";var r=Et("cuenQ"),s=Et("hDAFT"),o=Et("8o9OA"),n=Et("iiS3X"),i=Et("6qncK");const a=new s({maxSize:100}),c=new Map,l=(e,t,r)=>{t._httpMessage={shouldKeepAlive:!0};const s=()=>{e.emit("free",t,r)};t.on("free",s);const o=()=>{e.removeSocket(t,r)};t.on("close",o);const n=()=>{e.removeSocket(t,r),t.off("close",o),t.off("free",s),t.off("agentRemove",n)};t.on("agentRemove",n),e.emit("free",t,r)};e.exports=async(e,t,s)=>{if(("string"==typeof e||e instanceof URL)&&(e=i(new URL(e))),"function"==typeof t&&(s=t,t=void 0),t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:!0},!Array.isArray(t.ALPNProtocols)||0===t.ALPNProtocols.length)throw Error("The `ALPNProtocols` option must be an Array with at least one entry");t.protocol=t.protocol||"https:";const u="https:"===t.protocol;t.host=t.hostname||t.host||"localhost",t.session=t.tlsSession,t.servername=t.servername||n(t),t.port=t.port||(u?443:80),t._defaultAgent=u?et.globalAgent:Ze.globalAgent;const d=t.agent;if(d){if(d.addRequest)throw Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");t.agent=d[u?"https":"http"]}if(u){const e=await(async e=>{const t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!a.has(t)){if(c.has(t))return(await c.get(t)).alpnProtocol;const{path:s,agent:o}=e;e.path=e.socketPath;const n=r(e);c.set(t,n);try{const{socket:r,alpnProtocol:i}=await n;if(a.set(t,i),e.path=s,"h2"===i)r.destroy();else{const{globalAgent:t}=et,s=et.Agent.prototype.createConnection;o?o.createConnection===s?l(o,r,e):r.destroy():t.createConnection===s?l(t,r,e):r.destroy()}return c.delete(t),i}catch(e){throw c.delete(t),e}}return a.get(t)})(t);if("h2"===e)return d&&(t.agent=d.http2),new o(t,s)}return Ze.request(t,s)},e.exports.protocolCache=a})),Et.register("cuenQ",((e,t)=>{"use strict";e.exports=(e={},t=rt.connect)=>new Promise(((r,s)=>{let o,n=!1;const i=async()=>{await c,o.off("timeout",a),o.off("error",s),e.resolveSocket?(r({alpnProtocol:o.alpnProtocol,socket:o,timeout:n}),n&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),r({alpnProtocol:o.alpnProtocol,timeout:n}))},a=async()=>{n=!0,i()},c=(async()=>{try{o=await t(e,i),o.on("error",s),o.once("timeout",a)}catch(e){s(e)}})()}))})),Et.register("iiS3X",((e,t)=>{"use strict";e.exports=e=>{let t=e.host;const r=e.headers&&e.headers.host;return r&&(t=r.startsWith("[")?-1===r.indexOf("]")?r:r.slice(1,-1):r.split(":",1)[0]),tt.isIP(t)?"":t}})),Et.register("boRph",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Et("cFGlL"),s=Et("b0OSB");const o=nt.promisify(Qe.stat);e.exports.default=async(e,t)=>{if(t&&"content-length"in t)return+t["content-length"];if(!e)return 0;if(r.default.string(e))return Buffer.byteLength(e);if(r.default.buffer(e))return e.length;if(s.default(e))return nt.promisify(e.getLength.bind(e))();if(e instanceof Qe.ReadStream){const{size:t}=await o(e.path);if(0===t)return;return t}}})),Et.register("b0OSB",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Et("cFGlL");e.exports.default=e=>r.default.nodeStream(e)&&r.default.function_(e.getBoundary)})),Et.register("1dzx3",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=(e,t,r)=>{const s={};for(const o of r)s[o]=(...e)=>{t.emit(o,...e)},e.on(o,s[o]);return()=>{for(const t of r)e.off(t,s[t])}}})),Et.register("aka2W",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.TimeoutError=void 0;var r=Et("5u40K");const s=Symbol(),o=()=>{};class n extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`),this.event=t,this.name="TimeoutError",this.code="ETIMEDOUT"}}e.exports.TimeoutError=n,e.exports.default=(e,t,i)=>{if(s in e)return o;e[s]=!0;const a=[],{once:c,unhandleAll:l}=r.default(),u=(e,t,r)=>{var s;const o=setTimeout(t,e,e,r);null===(s=o.unref)||void 0===s||s.call(o);const n=()=>{clearTimeout(o)};return a.push(n),n},{host:d,hostname:h}=i,p=(t,r)=>{e.destroy(new n(t,r))},f=()=>{for(const e of a)e();l()};if(e.once("error",(t=>{if(f(),0===e.listenerCount("error"))throw t})),e.once("close",f),c(e,"response",(e=>{c(e,"end",f)})),void 0!==t.request&&u(t.request,p,"request"),void 0!==t.socket){const r=()=>{p(t.socket,"socket")};e.setTimeout(t.socket,r),a.push((()=>{e.removeListener("timeout",r)}))}return c(e,"socket",(r=>{var s;const{socketPath:o}=e;if(r.connecting){const e=!!(null!=o?o:0!==tt.isIP(null!==(s=null!=h?h:d)&&void 0!==s?s:""));if(void 0!==t.lookup&&!e&&void 0===r.address().address){const e=u(t.lookup,p,"lookup");c(r,"lookup",e)}if(void 0!==t.connect){const s=()=>u(t.connect,p,"connect");e?c(r,"connect",s()):c(r,"lookup",(e=>{null===e&&c(r,"connect",s())}))}void 0!==t.secureConnect&&"https:"===i.protocol&&c(r,"connect",(()=>{const e=u(t.secureConnect,p,"secureConnect");c(r,"secureConnect",e)}))}if(void 0!==t.send){const s=()=>u(t.send,p,"send");r.connecting?c(r,"connect",(()=>{c(e,"upload-complete",s())})):c(e,"upload-complete",s())}})),void 0!==t.response&&c(e,"upload-complete",(()=>{const r=u(t.response,p,"response");c(e,"response",r)})),f}})),Et.register("5u40K",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=()=>{const e=[];return{once(t,r,s){t.once(r,s),e.push({origin:t,event:r,fn:s})},unhandleAll(){for(const t of e){const{origin:e,event:r,fn:s}=t;e.removeListener(r,s)}e.length=0}}}})),Et.register("bNXKI",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Et("cFGlL");e.exports.default=e=>{const t={protocol:e.protocol,hostname:r.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return r.default.string(e.port)&&e.port.length>0&&(t.port=+e.port),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t}})),Et.register("hu0Ei",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});const r=["protocol","host","hostname","port","pathname","search"];e.exports.default=(e,t)=>{var s,o;if(t.path){if(t.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(t.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(t.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(t.search&&t.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!e){if(!t.protocol)throw new TypeError("No URL protocol specified");e=`${t.protocol}//${null!==(o=null!==(s=t.hostname)&&void 0!==s?s:t.host)&&void 0!==o?o:""}`}const n=new dt.URL(e);if(t.path){const e=t.path.indexOf("?");-1===e?t.pathname=t.path:(t.pathname=t.path.slice(0,e),t.search=t.path.slice(e+1)),delete t.path}for(const e of r)t[e]&&(n[e]=""+t[e]);return n}})),Et.register("fVvbs",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,t){"object"==typeof e?this.weakMap.set(e,t):this.map.set(e,t)}get(e){return"object"==typeof e?this.weakMap.get(e):this.map.get(e)}has(e){return"object"==typeof e?this.weakMap.has(e):this.map.has(e)}}})),Et.register("gB6MH",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=async e=>{const t=[];let r=0;for await(const s of e)t.push(s),r+=Buffer.byteLength(s);return Buffer.isBuffer(t[0])?Buffer.concat(t,r):Buffer.from(t.join(""))}})),Et.register("9Ybjc",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.dnsLookupIpVersionToFamily=e.exports.isDnsLookupIpVersion=void 0;const r={auto:0,ipv4:4,ipv6:6};e.exports.isDnsLookupIpVersion=e=>e in r,e.exports.dnsLookupIpVersionToFamily=t=>{if(e.exports.isDnsLookupIpVersion(t))return r[t];throw Error("Invalid DNS lookup IP version")}})),Et.register("eszIE",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isResponseOk=void 0,e.exports.isResponseOk=e=>{const{statusCode:t}=e;return t>=200&&(e.request.options.followRedirect?299:399)>=t||304===t}})),Et.register("eIt2E",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});const r=new Set;e.exports.default=e=>{r.has(e)||(r.add(e),process.emitWarning("Got: "+e,{type:"DeprecationWarning"}))}})),Et.register("aLWAj",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Et("cFGlL");e.exports.default=(e,t)=>{if(r.default.null_(e.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],e.encoding),r.assert.any([r.default.boolean,r.default.undefined],e.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],e.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],e.isStream),r.assert.any([r.default.string,r.default.undefined],e.responseType),void 0===e.responseType&&(e.responseType="text");const{retry:s}=e;if(e.retry=t?{...t.retry}:{calculateDelay(e){return e.computedValue},limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(s)?(e.retry={...e.retry,...s},e.retry.methods=[...new Set(e.retry.methods.map((e=>e.toUpperCase())))],e.retry.statusCodes=[...new Set(e.retry.statusCodes)],e.retry.errorCodes=[...new Set(e.retry.errorCodes)]):r.default.number(s)&&(e.retry.limit=s),r.default.undefined(e.retry.maxRetryAfter)&&(e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(r.default.number))),r.default.object(e.pagination)){t&&(e.pagination={...t.pagination,...e.pagination});const{pagination:s}=e;if(!r.default.function_(s.transform))throw Error("`options.pagination.transform` must be implemented");if(!r.default.function_(s.shouldContinue))throw Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(s.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(s.paginate))throw Error("`options.pagination.paginate` must be implemented")}return"json"===e.responseType&&void 0===e.headers.accept&&(e.headers.accept="application/json"),e}})),Et.register("b9pcy",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.retryAfterStatusCodes=void 0,e.exports.retryAfterStatusCodes=new Set([413,429,503]),e.exports.default=({attemptCount:e,retryOptions:t,error:r,retryAfter:s})=>{if(e>t.limit)return 0;const o=t.methods.includes(r.options.method),n=t.errorCodes.includes(r.code),i=r.response&&t.statusCodes.includes(r.response.statusCode);if(!o||!n&&!i)return 0;if(r.response){if(s)return void 0===t.maxRetryAfter||s>t.maxRetryAfter?0:s;if(413===r.response.statusCode)return 0}return 2**(e-1)*1e3+100*Math.random()}})),Et.register("i2R9y",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Et("bXlV6");e.exports.default=(e,t,s,o)=>{const{rawBody:n}=e;try{if("text"===t)return n.toString(o);if("json"===t)return 0===n.length?"":s(""+n);if("buffer"===t)return n;throw new r.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(t){throw new r.ParseError(t,e)}}})),Et.register("3cpJo",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Et("bXlV6");e.exports.default=(e,...t)=>{const s=(async()=>{if(e instanceof r.RequestError)try{for(const r of t)if(r)for(const t of r)e=await t(e)}catch(t){e=t}throw e})(),o=()=>s;return s.json=o,s.text=o,s.buffer=o,s.on=o,s}})),Et.register("2Ghbw",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Et("cFGlL");e.exports.default=function e(t){for(const s of Object.values(t))(r.default.plainObject(s)||r.default.array(s))&&e(s);return Object.freeze(t)}})),Et.register("fvu4j",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),Et.register("cReTf",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function s(e,t,r){const s=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let s=null;if(r.some((e=>{if(void 0!==t[e])return s=t[e],!0})),null===s)throw Error("Can not find any unit type data for locale: "+e.locale);return s})(r);return o.pluralize(r.locale,t,s[e]).replace("{0}",t)}var o=Et("5FRs7"),n=Et("3Zbea");const i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],a={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,o,a){return((e,t,o)=>{if(((e,t)=>{const{autoload:s}=t;if(!c[e]){if(!n||!s)throw Error(`Missing locale: ${e}, you must load it manually before using it`);(e=>{try{r(require(`../locales/${e}.js`))}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`)}})(e)}})(o.locale,{autoload:o.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");const a=((e,t)=>{let r=t-e;const s=[];return i.some((e=>{const t=e[0],o=e[1],n=Math.floor(r/o);if(r-=n*o,s.push([t,n]),0>=r)return!0})),s})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(s(t,r,o)),l.length>=o.span)break}return l.join(o.delimiter)})(t,o,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Et.register("5FRs7",((e,t)=>{e.exports=Et("j5MHF")})),Et.register("j5MHF",(function(e,t){var r=Je.resolve(__dirname,"../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){"use strict";function t(e,t,r){if(s(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var n=o[e](t);return void 0!==r[n]?r[n]:null}function s(e){(e=>void 0!==o[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var o={},n={create(e){return s(e),{pluralize(r,s){return t(e,r,s)}}},addLocale(e,t){o[e]=t},pluralize:t};void 0!==e.exports?e.exports=n:this.numerous=n}).call(e.exports)})),Et.register("3Zbea",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),e(module.exports,"main",(()=>Ge)),e(module.exports,"parseArgs",(()=>Ve)),e(module.exports,"getCompilerInfo",(()=>We));var xt=Et("04fde"),_t={};const St="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Ot=St?";":":";var Tt,Ct={};Tt="win32"===process.platform||vt.TESTING_WINDOWS?Et("ftrAD"):Et("9yF3I"),Ct=r,r.sync=(e,t)=>{try{return Tt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const At=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Rt=(e,t)=>{const r=t.colon||Ot,s=e.match(/\//)||St&&e.match(/\\/)?[""]:[...St?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=St?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=St?o.split(r):[""];return St&&-1!==e.indexOf(".")&&""!==n[0]&&n.unshift(""),{pathEnv:s,pathExt:n,pathExtExe:o}},Pt=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:s,pathExt:o,pathExtExe:n}=Rt(e,t),i=[],a=r=>new Promise(((o,n)=>{if(r===s.length)return t.all&&i.length?o(i):n(At(e));const a=s[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Je.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(d,r,0))})),c=(e,r,s)=>new Promise(((l,u)=>{if(s===o.length)return l(a(r+1));const d=o[s];Ct(e+d,{pathExt:n},((o,n)=>{if(!o&&n){if(!t.all)return l(e+d);i.push(e+d)}return l(c(e,r,s+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let It;_t=Pt,Pt.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:s,pathExtExe:o}=Rt(e,t),n=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=Je.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;s.length>e;e++){const r=u+s[e];try{if(Ct.sync(r,{pathExt:o})){if(!t.all)return r;n.push(r)}}catch(e){}}}if(t.all&&n.length)return n;if(t.nothrow)return null;throw At(e)};var kt,$t={},Lt={},Ut={},Nt={};const jt=(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 Dt,Mt;(Nt=jt).default=jt,kt=e=>o(e)||o(e,!0);const Bt=/([()\][%!^"`<>&|;, *?])/g;Dt=e=>e.replace(Bt,"^$1"),Mt=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(Bt,"^$1"),t&&(e=e.replace(Bt,"^$1")),e);var Ft,Ht,qt;Ht=/^#!(.*)/,Ft=(e="")=>{const t=e.match(Ht);if(!t)return null;const[r,s]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?s:s?`${o} ${s}`:o},qt=e=>{const t=Buffer.alloc(150);let r;try{r=Qe.openSync(e,"r"),Qe.readSync(r,t,0,150,0),Qe.closeSync(r)}catch(e){}return Ft(""+t)};const zt="win32"===process.platform,Gt=/\.(?:com|exe)$/i,Vt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Ut=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const s={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?s:(e=>{if(!zt)return e;const t=(e=>{e.file=kt(e);const t=e.file&&qt(e.file);return t?(e.args.unshift(e.file),e.command=t,kt(e)):e.file})(e),r=!Gt.test(t);if(e.options.forceShell||r){const r=Vt.test(t);e.command=Je.normalize(e.command),e.command=Dt(e.command),e.args=e.args.map((e=>Mt(e,r)));const s=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${s}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(s)};var Wt={};const Xt="win32"===process.platform;var Yt;Wt={hookChildProcess(e,t){if(!Xt)return;const r=e.emit;e.emit=function(s,o){if("exit"===s){const s=i(o,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}},verifyENOENT:i,verifyENOENTSync(e,t){return Xt&&1===e&&!t.file?n(t.original,"spawnSync"):null},notFoundError:n},(Lt=a).spawn=a,Lt.sync=(e,t,r)=>{const s=Ut(e,t,r),o=it.spawnSync(s.command,s.args,s.options);return o.error=o.error||Wt.verifyENOENTSync(o.status,s),o},Lt._parse=Ut,Lt._enoent=Wt,Yt=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 Kt={};const Jt=e=>{let t;e={cwd:process.cwd(),path:process.env[Nt()],execPath:process.execPath,...e};let r=Je.resolve(e.cwd);const s=[];for(;t!==r;)s.push(Je.join(r,"node_modules/.bin")),t=r,r=Je.resolve(r,"..");const o=Je.resolve(e.cwd,e.execPath,"..");return s.push(o),s.concat(e.path).join(Je.delimiter)};(Kt=Jt).default=Jt,Kt.env=e=>{const t={...(e={env:process.env,...e}).env},r=Nt({env:t});return e.path=t[r],t[r]=Kt(e),t};var Qt={},Zt={};const er=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(Zt=er).default=er;const tr=new WeakMap,rr=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,s=0;const o=e.displayName||e.name||"<anonymous>",n=function(...i){if(tr.set(n,++s),1===s)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return Zt(n,e),tr.set(n,s),n};(Qt=rr).default=rr,Qt.callCount=e=>{if(!tr.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return tr.get(e)};var sr,or={};Object.defineProperty(or,"__esModule",{value:!0}),or.signalsByNumber=or.signalsByName=void 0;var nr={};Object.defineProperty(nr,"__esModule",{value:!0}),nr.getSignals=void 0;var ir={};Object.defineProperty(ir,"__esModule",{value:!0}),ir.SIGNALS=void 0,ir.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 ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.SIGRTMAX=ar.getRealtimeSignals=void 0,ar.getRealtimeSignals=()=>Array.from({length:ur-lr+1},cr);const cr=(e,t)=>({name:"SIGRT"+(t+1),number:lr+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),lr=34,ur=64;ar.SIGRTMAX=ur,nr.getSignals=()=>{const e=(0,ar.getRealtimeSignals)();return[...ir.SIGNALS,...e].map(dr)};const dr=({name:e,number:t,description:r,action:s,forced:o=!1,standard:n})=>{const{signals:{[e]:i}}=Ke.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:s,forced:o,standard:n}},hr=(0,nr.getSignals)().reduce(((e,{name:t,number:r,description:s,supported:o,action:n,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:s,supported:o,action:n,forced:i,standard:a}})),{});or.signalsByName=hr;const pr=(()=>{const e=(0,nr.getSignals)(),t=Array.from({length:ar.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>Ke.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:s,description:o,supported:n,action:i,forced:a,standard:c}=r;return{[e]:{name:s,number:e,description:o,supported:n,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();or.signalsByNumber=pr;var fr=or.signalsByName;sr=({stdout:e,stderr:t,all:r,error:s,signal:o,exitCode:n,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const h=void 0===(o=null===o?void 0:o)?void 0:fr[o].description,p=(({timedOut:e,timeout:t,errorCode:r,signal:s,signalDescription:o,exitCode:n,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==s?`was killed with ${s} (${o})`:void 0!==n?"failed with exit code "+n:"failed")({timedOut:c,timeout:d,errorCode:s&&s.code,signal:o,signalDescription:h,exitCode:n=null===n?void 0:n,isCanceled:l}),f=`Command ${p}: ${i}`,m="[object Error]"==={}.toString.call(s),y=m?`${f}\n${s.message}`:f,g=[y,t,e].filter(Boolean).join("\n");return m?(s.originalMessage=s.message,s.message=g):s=Error(g),s.shortMessage=y,s.command=i,s.escapedCommand=a,s.exitCode=n,s.signal=o,s.signalDescription=h,s.stdout=e,s.stderr=t,void 0!==r&&(s.all=r),"bufferedData"in s&&delete s.bufferedData,s.failed=!0,s.timedOut=!!c,s.isCanceled=l,s.killed=u&&!c,s};var mr={};const yr=["stdin","stdout","stderr"],gr=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return yr.map((t=>e[t]));if((e=>yr.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+yr.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,yr.length)},((e,r)=>t[r]))};(mr=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 vr,br={},wr=vt.process;const Er=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(Er(wr)){var xr,_r=ot,Sr=Et("bJALw"),Or=/^win/i.test(wr.platform),Tr=st;"function"!=typeof Tr&&(Tr=Tr.EventEmitter),wr.__signal_exit_emitter__?xr=wr.__signal_exit_emitter__:((xr=wr.__signal_exit_emitter__=new Tr).count=0,xr.emitted={}),xr.infinite||(xr.setMaxListeners(1/0),xr.infinite=!0),br=(e,t)=>{if(!Er(vt.process))return()=>{};_r.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Pr&&Ir();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),xr.on(r,e),()=>{xr.removeListener(r,e),0===xr.listeners("exit").length&&0===xr.listeners("afterexit").length&&Cr()}};var Cr=()=>{Pr&&Er(vt.process)&&(Pr=!1,Sr.forEach((e=>{try{wr.removeListener(e,Rr[e])}catch(e){}})),wr.emit=Lr,wr.reallyExit=kr,xr.count-=1)};br.unload=Cr;var Ar=(e,t,r)=>{xr.emitted[e]||(xr.emitted[e]=!0,xr.emit(e,t,r))},Rr={};Sr.forEach((e=>{Rr[e]=()=>{Er(vt.process)&&wr.listeners(e).length===xr.count&&(Cr(),Ar("exit",null,e),Ar("afterexit",null,e),Or&&"SIGHUP"===e&&(e="SIGINT"),wr.kill(wr.pid,e))}})),br.signals=()=>Sr;var Pr=!1,Ir=()=>{!Pr&&Er(vt.process)&&(Pr=!0,xr.count+=1,Sr=Sr.filter((e=>{try{return wr.on(e,Rr[e]),!0}catch(e){return!1}})),wr.emit=Ur,wr.reallyExit=$r)};br.load=Ir;var kr=wr.reallyExit,$r=e=>{Er(vt.process)&&(wr.exitCode=e||0,Ar("exit",wr.exitCode,null),Ar("afterexit",wr.exitCode,null),kr.call(wr,wr.exitCode))},Lr=wr.emit,Ur=function(e,t){if("exit"===e&&Er(vt.process)){void 0!==t&&(wr.exitCode=t);var r=Lr.apply(this,arguments);return Ar("exit",wr.exitCode,null),Ar("afterexit",wr.exitCode,null),r}return Lr.apply(this,arguments)}}else br=()=>()=>{};const Nr=e=>e===Ke.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var jr,Dr=(vr={spawnedKill(e,t="SIGTERM",r={}){const s=e(t);return((e,t,r,s)=>{if(!((e,{forceKillAfterTimeout:t},r)=>Nr(e)&&!1!==t&&r)(t,r,s))return;const o=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),n=setTimeout((()=>{e("SIGKILL")}),o);n.unref&&n.unref()})(e,t,r,s),s},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},s){if(0===t||void 0===t)return s;let o;const n=new Promise(((s,n)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,n)}),t)})),i=s.finally((()=>{clearTimeout(o)}));return Promise.race([n,i])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},s){if(!t||r)return s;const o=br((()=>{e.kill()}));return s.finally((()=>{o()}))}}).spawnedKill,Mr=vr.spawnedCancel,Br=vr.setupTimeout,Fr=vr.validateTimeout,Hr=vr.setExitHandler,qr={};const zr=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;zr.writable=e=>zr(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,zr.readable=e=>zr(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,zr.duplex=e=>zr.writable(e)&&zr.readable(e),zr.transform=e=>zr.duplex(e)&&"function"==typeof e._transform,qr=zr;var Gr,Vr={},Wr=pt.constants,Xr=ut.PassThrough;Gr=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const s="buffer"===r;let o=!1;t?o=!(r||s):r=r||"utf8",s&&(r=null);const n=new Xr({objectMode:o});r&&n.setEncoding(r);let i=0;const a=[];return n.on("data",(e=>{a.push(e),o?i=a.length:i+=e.length})),n.getBufferedValue=()=>t?a:s?Buffer.concat(a,i):a.join(""),n.getBufferedLength=()=>i,n};const Yr=(0,nt.promisify)(ut.pipeline);class Kr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(Vr=c).buffer=(e,t)=>c(e,{...t,encoding:"buffer"}),Vr.array=(e,t)=>c(e,{...t,array:!0}),Vr.MaxBufferError=Kr;var Jr,Qr=ut.PassThrough;Jr=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(s.push(t),t.once("end",r.bind(null,t)),t.once("error",o.emit.bind(o,"error")),t.pipe(o,{end:!1}),this)}function t(){return 0==s.length}function r(e){!(s=s.filter((t=>t!==e))).length&&o.readable&&o.end()}var s=[],o=new Qr({objectMode:!0});return o.setMaxListeners(0),o.add=e,o.isEmpty=t,o.on("unpipe",r),[].slice.call(arguments).forEach(e),o};const Zr=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},es=(e,{encoding:t,buffer:r,maxBuffer:s})=>{if(e&&r)return t?Vr(e,{encoding:t,maxBuffer:s}):Vr.buffer(e,{maxBuffer:s})};var ts,rs=(jr={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(qr(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Jr();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:s,buffer:o,maxBuffer:n},i){const a=es(e,{encoding:s,buffer:o,maxBuffer:n}),c=es(t,{encoding:s,buffer:o,maxBuffer:n}),l=es(r,{encoding:s,buffer:o,maxBuffer:2*n});try{return await Promise.all([i,a,c,l])}catch(s){return Promise.all([{error:s,signal:s.signal,timedOut:s.timedOut},Zr(e,a),Zr(t,c),Zr(r,l)])}},validateInputSync({input:e}){if(qr(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,ss=jr.getSpawnedResult,os=jr.makeAllStream,ns=jr.validateInputSync;const is=(async()=>{})().constructor.prototype,as=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(is,e)]));var cs,ls=(ts={mergePromise(e,t){for(const[r,s]of as){const o="function"==typeof t?(...e)=>Reflect.apply(s.value,t(),e):s.value.bind(t);Reflect.defineProperty(e,r,{...s,value:o})}return e},getSpawnedPromise(e){return new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}}).mergePromise,us=ts.getSpawnedPromise;const ds=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],hs=/^[\w.-]+$/,ps=/"/g,fs=/ +/g;var ms=(cs={joinCommand(e,t){return ds(e,t).join(" ")},getEscapedCommand(e,t){return ds(e,t).map((e=>(e=>"string"!=typeof e||hs.test(e)?e:`"${e.replace(ps,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(fs)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,ys=cs.parseCommand,gs=cs.getEscapedCommand;const vs=(e,t,r={})=>{const s=Lt._parse(e,t,r);return e=s.command,t=s.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=s.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:s,execPath:o})=>{const n=t?{...process.env,...e}:e;return r?Kt.env({env:n,cwd:s,execPath:o}):n})(r),r.stdio=mr(r),"win32"===process.platform&&"cmd"===Je.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:s}},bs=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Yt(t):t:void 0===r?void 0:"",ws=(e,t,r)=>{const s=vs(e,t,r),o=ms(e,t),n=gs(e,t);let i;Fr(s.options);try{i=it.spawn(s.file,s.args,s.options)}catch(e){const t=new it.ChildProcess,r=Promise.reject(sr({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:n,parsed:s,timedOut:!1,isCanceled:!1,killed:!1}));return ls(t,r)}const a=us(i),c=Br(i,s.options,a),l=Hr(i,s.options,c),u={isCanceled:!1};i.kill=Dr.bind(null,i.kill.bind(i)),i.cancel=Mr.bind(null,i,u);const d=Qt((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,h]=await ss(i,s.options,l),p=bs(s.options,c),f=bs(s.options,d),m=bs(s.options,h);if(e||0!==t||null!==r){const c=sr({error:e,exitCode:t,signal:r,stdout:p,stderr:f,all:m,command:o,escapedCommand:n,parsed:s,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!s.options.reject)return c;throw c}return{command:o,escapedCommand:n,exitCode:0,stdout:p,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return rs(i,s.options.input),i.all=os(i,s.options),ls(i,d)};($t=ws).sync=(e,t,r)=>{const s=vs(e,t,r),o=ms(e,t),n=gs(e,t);let i;ns(s.options);try{i=it.spawnSync(s.file,s.args,s.options)}catch(e){throw sr({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:n,parsed:s,timedOut:!1,isCanceled:!1,killed:!1})}const a=bs(s.options,i.stdout,i.error),c=bs(s.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=sr({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:o,escapedCommand:n,parsed:s,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!s.options.reject)return e;throw e}return{command:o,escapedCommand:n,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},$t.command=(e,t)=>{const[r,...s]=ys(e);return ws(r,s,t)},$t.commandSync=(e,t)=>{const[r,...s]=ys(e);return ws.sync(r,s,t)},$t.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const s=mr.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:n=process.execPath,nodeOptions:i=o}=r;return ws(n,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:s,shell:!1})},xt=Et("04fde");var Es,xs=Et("gmbrv");xt=Et("04fde"),xs=Et("gmbrv");const _s=Ke.homedir();Es=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return _s?e.replace(/^~(?=$|\/|\\)/,_s):e};var Ss=Et("ditiY");let Os;var Ts;const Cs="win32"!==Ke.platform(),As=Ke.release(),Rs=/(\d+\.\d+)\.(\d+)/;Ts=e=>Cs?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...Rs.exec(As).splice(1))?e:e.replace(/(\s+)/g,"%20");const Ps=d(".cpprc");let Is=!1,ks=!1,$s=!1;Ss=Et("ditiY");let Ls=!1,Us=!1;xt=Et("04fde");let Ns,js=!1;xt=Et("04fde"),Ss=Et("ditiY");let Ds,Ms,Bs,Fs=!1;Ss=Et("ditiY");var Hs=Et("fvrnx"),qs=(Ss=Et("ditiY"),{}),zs=Je.resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),Gs=qs&&qs.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),Vs=qs&&qs.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Ws=qs&&qs.__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)&&Gs(t,e,r);return Vs(t,e),t}),Xs=qs&&qs.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())}))),Ys=qs&&qs.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(qs,"__esModule",{value:!0}),qs.evaluateVersions=qs.isExplicitVersion=qs.findFromManifest=qs.getManifestFromRepo=qs.findAllVersions=qs.find=qs.cacheFile=qs.cacheDir=qs.extractZip=qs.extractXar=qs.extractTar=qs.extract7z=qs.downloadTool=qs.HTTPError=void 0;const Ks=Ws(Et("04fde")),Js=Ws(Et("fvrnx")),Qs=Ws(Qe),Zs=Ws(Et("6kHxT")),eo=Ws(Ke),to=Ws(Je),ro=Ws(Et("4z9RF")),so=Ws(Et("4URNm")),oo=Ws(ut),no=Ws(nt),io=Ys(Et("iFKS7"));var ao=Et("ca0ts"),co={},lo=co&&co.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),uo=co&&co.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),ho=co&&co.__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)&&lo(t,e,r);return uo(t,e),t}),po=co&&co.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(co,"__esModule",{value:!0}),co.RetryHelper=void 0;const fo=ho(Et("04fde"));co.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 po(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;fo.info(e.message)}const s=this.getSleepAmount();fo.info(`Waiting ${s} seconds before trying again`),yield this.sleep(s),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return po(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class mo extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}qs.HTTPError=mo;const yo="win32"===process.platform,go="darwin"===process.platform;let vo;qs.downloadTool=function(e,t,r,s){return Xs(this,void 0,void 0,(function*(){t=t||to.join(q(),io.default()),yield Js.mkdirP(to.dirname(t)),Ks.debug("Downloading "+e),Ks.debug("Destination "+t);const o=z("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),n=z("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new co.RetryHelper(3,o,n);return yield i.execute((()=>Xs(this,void 0,void 0,(function*(){return yield function(e,t,r,s){return Xs(this,void 0,void 0,(function*(){if(Qs.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new ro.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Ks.debug("set auth"),void 0===s&&(s={}),s.authorization=r);const n=yield o.get(e,s);if(200!==n.message.statusCode){const t=new mo(n.message.statusCode);throw Ks.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),t}const i=no.promisify(oo.pipeline),a=z("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>n.message))();let c=!1;try{return yield i(a,Qs.createWriteStream(t)),Ks.debug("download complete"),c=!0,t}finally{if(!c){Ks.debug("download failed");try{yield Js.rmRF(t)}catch(e){Ks.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,s)}))),(e=>!(e instanceof mo&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},qs.extract7z=function(e,t,r){return Xs(this,void 0,void 0,(function*(){ot.ok(yo,"extract7z() not supported on current OS"),ot.ok(e,'parameter "file" is required'),t=yield j(t);const s=process.cwd();if(process.chdir(t),r)try{const t=["x",Ks.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],o={silent:!0};yield ao.exec(`"${r}"`,t,o)}finally{process.chdir(s)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${to.join(zs,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],o={silent:!0};try{const e=yield Js.which("powershell",!0);yield ao.exec(`"${e}"`,r,o)}finally{process.chdir(s)}}return t}))},qs.extractTar=function(e,t,r="xz"){return Xs(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield j(t),Ks.debug("Checking tar --version");let s="";yield ao.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return s+=""+e},stderr(e){return s+=""+e}}}),Ks.debug(s.trim());const o=s.toUpperCase().includes("GNU TAR");let n;n=r instanceof Array?r:[r],Ks.isDebug()&&!r.includes("v")&&n.push("-v");let i=t,a=e;return yo&&o&&(n.push("--force-local"),i=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",i,"-f",a),yield ao.exec("tar",n),t}))},qs.extractXar=function(e,t,r=[]){return Xs(this,void 0,void 0,(function*(){let s;ot.ok(go,"extractXar() not supported on current OS"),ot.ok(e,'parameter "file" is required'),t=yield j(t),s=r instanceof Array?r:[r],s.push("-x","-C",t,"-f",e),Ks.isDebug()&&s.push("-v");const o=yield Js.which("xar",!0);var n;return yield ao.exec(`"${o}"`,(n=s,Array.from(new Set(n)))),t}))},qs.extractZip=function(e,t){return Xs(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield j(t),yo?yield function(e,t){return Xs(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield Js.which("pwsh",!1);if(o){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${s}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${s}' -Force } else { throw $_ } } ;`].join(" ")];Ks.debug("Using pwsh at path: "+o),yield ao.exec(`"${o}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${s}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${s}', $true) }`].join(" ")],t=yield Js.which("powershell",!0);Ks.debug("Using powershell at path: "+t),yield ao.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return Xs(this,void 0,void 0,(function*(){const r=yield Js.which("unzip",!0),s=[e];Ks.isDebug()||s.unshift("-q"),s.unshift("-o"),yield ao.exec(`"${r}"`,s,{cwd:t})}))}(e,t),t}))},qs.cacheDir=function(e,t,r,s){return Xs(this,void 0,void 0,(function*(){if(r=so.clean(r)||r,s=s||eo.arch(),Ks.debug(`Caching tool ${t} ${r} ${s}`),Ks.debug("source dir: "+e),!Qs.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const o=yield D(t,r,s);for(const t of Qs.readdirSync(e)){const r=to.join(e,t);yield Js.cp(r,o,{recursive:!0})}return M(t,r,s),o}))},qs.cacheFile=function(e,t,r,s,o){return Xs(this,void 0,void 0,(function*(){if(s=so.clean(s)||s,o=o||eo.arch(),Ks.debug(`Caching tool ${r} ${s} ${o}`),Ks.debug("source file: "+e),!Qs.statSync(e).isFile())throw Error("sourceFile is not a file");const n=yield D(r,s,o),i=to.join(n,t);return Ks.debug("destination file "+i),yield Js.cp(e,i),M(r,s,o),n}))},qs.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||eo.arch(),B(t)||(t=F(N(e,r),t));let s="";if(t){t=so.clean(t)||"";const o=to.join(H(),e,t,r);Ks.debug("checking cache: "+o),Qs.existsSync(o)&&Qs.existsSync(o+".complete")?(Ks.debug(`Found tool in cache ${e} ${t} ${r}`),s=o):Ks.debug("not found")}return s},qs.findAllVersions=N,qs.getManifestFromRepo=function(e,t,r,s="master"){return Xs(this,void 0,void 0,(function*(){let o=[];const n=`https://api.github.com/repos/${e}/${t}/git/trees/${s}`,i=new ro.HttpClient("tool-cache"),a={};r&&(Ks.debug("set auth"),a.authorization=r);const c=yield i.getJson(n,a);if(!c.result)return o;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{o=JSON.parse(u)}catch(e){Ks.debug("Invalid json")}}return o}))},qs.findFromManifest=function(e,t,r,s=eo.arch()){return Xs(this,void 0,void 0,(function*(){return yield Zs._findMatch(e,t,r,s)}))},qs.isExplicitVersion=B,qs.evaluateVersions=F,xt=Et("04fde"),xs=Et("gmbrv");let bo=!1;var wo=Et("fwsB7"),Eo=Et("1YYsi"),xo=(ao=Et("ca0ts"),xt=Et("04fde"),xs=Et("gmbrv"),Ss=Et("ditiY"),{}),_o=ut.Writable,So={},Oo=So&&So.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),To=So&&So.__exportStar||((e,t)=>{for(var r in e)"default"===r||{}.hasOwnProperty.call(t,r)||Oo(t,e,r)});Object.defineProperty(So,"__esModule",{value:!0});const Co={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay({computedValue:e}){return e}},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform(e){return"json"===e.request.options.responseType?e.body:JSON.parse(e.body)},paginate(e){if(!Reflect.has(e.headers,"link"))return!1;const t=e.headers.link.split(",");let r;for(const e of t){const t=e.split(";");if(t[1].includes("next")){r=t[0].trimStart().trim(),r=r.slice(1,-1);break}}return!!r&&{url:new dt.URL(r)}},filter(){return!0},shouldContinue(){return!0},countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson(e){return JSON.parse(e)},stringifyJson(e){return JSON.stringify(e)},cacheOptions:{}},handlers:[Et("b7DKQ").defaultHandler],mutableDefaults:!1},Ao=Et("b7DKQ").default(Co);So.default=Ao,(So=Ao).default=Ao,So.__esModule=!0,To(Et("b7DKQ"),So),To(Et("kl9p9"),So);var Ro,Po,Io,ko={};e(ko,"v4",(()=>Ro),(e=>Ro=e)),e(ko,"v6",(()=>Po),(e=>Po=e));var $o,Lo,Uo,No,jo,Do,Mo,Bo,Fo,Ho,qo,zo,Go,Vo=nt.promisify,Wo={},Xo=pt.Buffer;Do=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},Mo=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 e.toUpperCase().startsWith("UNKNOWN_")?parseInt(e.slice(8)):0},Bo=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},Fo=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},Ho=e=>{switch(e){case 1:return"IN";case 2:return"CS";case 3:return"CH";case 4:return"HS";case 255:return"ANY"}return"UNKNOWN_"+e},qo=e=>{switch(e.toUpperCase()){case"IN":return 1;case"CS":return 2;case"CH":return 3;case"HS":return 4;case"ANY":return 255}return 0},zo=e=>{switch(e){case 1:return"LLQ";case 2:return"UL";case 3:return"NSID";case 5:return"DAU";case 6:return"DHU";case 7:return"N3U";case 8:return"CLIENT_SUBNET";case 9:return"EXPIRE";case 10:return"COOKIE";case 11:return"TCP_KEEPALIVE";case 12:return"PADDING";case 13:return"CHAIN";case 14:return"KEY_TAG";case 26946:return"DEVICEID"}return 0>e?null:"OPTION_"+e},Go=e=>{if("number"==typeof e)return e;if(!e)return-1;switch(e.toUpperCase()){case"OPTION_0":return 0;case"LLQ":return 1;case"UL":return 2;case"NSID":return 3;case"OPTION_4":return 4;case"DAU":return 5;case"DHU":return 6;case"N3U":return 7;case"CLIENT_SUBNET":return 8;case"EXPIRE":return 9;case"COOKIE":return 10;case"TCP_KEEPALIVE":return 11;case"PADDING":return 12;case"CHAIN":return 13;case"KEY_TAG":return 14;case"DEVICEID":return 26946;case"OPTION_65535":return 65535}const t=e.match(/_(\d+)$/);return t?parseInt(t[1],10):-1};var Yo={},Ko=(e=>{"use strict";function t(e){if(o.isFormat(e))return o.size;if(n.isFormat(e))return n.size;throw Error("Invalid ip address: "+e)}Object.defineProperty(e,"__esModule",{value:!0}),e.decode=(e,t,r)=>{if(t=~~t,(r=r||e.length-t)===o.size)return o.decode(e,t,r);if(r===n.size)return n.decode(e,t,r);throw Error(`Invalid buffer size needs to be ${o.size} for v4 or ${n.size} for v6.`)},e.encode=(e,r,s)=>{s=~~s;const i=t(e);return"function"==typeof r&&(r=r(s+i)),i===o.size?o.encode(e,r,s):n.encode(e,r,s)},e.familyOf=e=>t(e)===o.size?1:2,e.name=void 0,e.sizeOf=t,e.v6=e.v4=void 0;const r=/^(\d{1,3}\.){3,3}\d{1,3}$/,s=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i,o={name:"v4",size:4,isFormat(e){return r.test(e)},encode(e,t,r){r=~~r,t=t||new Uint8Array(r+4);const s=e.length;let o=0;for(let n=0;s>n;){const s=e.charCodeAt(n++);46===s?(t[r++]=o,o=0):o=10*o+(s-48)}return t[r]=o,t},decode:(e,t)=>(t=~~t,`${e[t++]}.${e[t++]}.${e[t++]}.${e[t]}`)};e.v4=o;const n={name:"v6",size:16,isFormat(e){return e.length>0&&s.test(e)},encode(e,t,r){let s=16+(r=~~r),o=-1,n=0,i=0,a=!0,c=!1;t=t||new Uint8Array(r+16);for(let l=0;e.length>l;l++){let u=e.charCodeAt(l);58===u?(a?-1!==o?(s>r&&(t[r]=0),s-1>r&&(t[r+1]=0),r+=2):s>r&&(o=r):(!0===c?(s>r&&(t[r]=i),r++):(s>r&&(t[r]=n>>8),s-1>r&&(t[r+1]=255&n),r+=2),n=0,i=0),a=!0,c=!1):46===u?(s>r&&(t[r]=i),r++,i=0,n=0,a=!1,c=!0):(a=!1,97>u?65>u?(u-=48,i=10*i+u):u-=55:u-=87,n=(n<<4)+u)}if(!1===a)!0===c?(s>r&&(t[r]=i),r++):(s>r&&(t[r]=n>>8),s-1>r&&(t[r+1]=255&n),r+=2);else if(0===o)s>r&&(t[r]=0),s-1>r&&(t[r+1]=0),r+=2;else if(-1!==o){for(let e=Math.min((r+=2)-1,s-1);e>=o+2;e--)t[e]=t[e-2];t[o]=0,t[o+1]=0,o=r}if(o!==r&&-1!==o)for(r>s-2&&(r=s-2);s>o;)t[--s]=s>r&&r>o?t[--r]:0;else for(;s>r;)t[r++]=0;return t},decode(e,t){t=~~t;let r="";for(let s=0;16>s;s+=2)0!==s&&(r+=":"),r+=(e[t+s]<<8|e[t+s+1]).toString(16);return r.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3").replace(/:{3,4}/,"::")}};return e.v6=n,e.name="ip","default"in e?e.default:e})({});"function"==typeof define&&define.amd?define([],(()=>Ko)):Yo=Ko;const Jo={encode(e,t,r){t||(t=Xo.alloc(Jo.encodingLength(e))),r||(r=0);const s=r,o=e.replace(/^\.|\.$/gm,"");if(o.length){const e=o.split(".");for(let s=0;e.length>s;s++){const o=t.write(e[s],r+1);t[r]=o,r+=o+1}}return t[r++]=0,Jo.encode.bytes=r-s,t}};Jo.encode.bytes=0,Jo.decode=(e,t)=>{t||(t=0);const r=[];let s=t,o=0,n=0,i=!1;for(;;){if(t>=e.length)throw Error("Cannot decode name (buffer overflow)");const a=e[t++];if(n+=i?0:1,0===a)break;if(0==(192&a)){if(t+a>e.length)throw Error("Cannot decode name (buffer overflow)");if(o+=a+1,o>254)throw Error("Cannot decode name (name too long)");r.push(e.toString("utf-8",t,t+a)),t+=a,n+=i?0:a}else{if(192!=(192&a))throw Error("Cannot decode name (bad label)");{if(t+1>e.length)throw Error("Cannot decode name (buffer overflow)");const r=e.readUInt16BE(t-1)-49152;if(r>=s)throw Error("Cannot decode name (bad pointer)");t=r,s=r,n+=i?0:1,i=!0}}}return Jo.decode.bytes=n,0===r.length?".":r.join(".")},Jo.decode.bytes=0,Jo.encodingLength=e=>"."===e||".."===e?1:Xo.byteLength(e.replace(/^\.|\.$/gm,""))+2;const Qo={encode(e,t,r){t||(t=Xo.alloc(Qo.encodingLength(e))),r||(r=0);const s=t.write(e,r+1);return t[r]=s,Qo.encode.bytes=s+1,t}};Qo.encode.bytes=0,Qo.decode=(e,t)=>{t||(t=0);const r=e[t],s=e.toString("utf-8",t+1,t+1+r);return Qo.decode.bytes=r+1,s},Qo.decode.bytes=0,Qo.encodingLength=e=>Xo.byteLength(e)+1;const Zo={encode(e,t,r){t||(t=Zo.encodingLength(e)),r||(r=0);const s=32767&(e.flags||0),o="response"===e.type?32768:0;return t.writeUInt16BE(e.id||0,r),t.writeUInt16BE(s|o,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}};Zo.encode.bytes=12,Zo.decode=(e,t)=>{if(t||(t=0),12>e.length)throw Error("Header must be 12 bytes");const 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:Fo(r>>11&15),flag_aa:1==(r>>10&1),flag_tc: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:Bo(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))}},Zo.decode.bytes=12,Zo.encodingLength=()=>12;const en={encode(e,t,r){return t||(t=Xo.alloc(en.encodingLength(e))),r||(r=0),t.writeUInt16BE(e.length,r),e.copy(t,r+2),en.encode.bytes=e.length+2,t}};en.encode.bytes=0,en.decode=(e,t)=>{t||(t=0);const r=e.readUInt16BE(t),s=e.slice(t+2,t+2+r);return en.decode.bytes=r+2,s},en.decode.bytes=0,en.encodingLength=e=>e.length+2;const tn={encode(e,t,r){return t||(t=Xo.alloc(tn.encodingLength(e))),r||(r=0),Jo.encode(e,t,r+2),t.writeUInt16BE(Jo.encode.bytes,r),tn.encode.bytes=Jo.encode.bytes+2,t}};tn.encode.bytes=0,tn.decode=(e,t)=>{t||(t=0);const r=e.readUInt16BE(t),s=Jo.decode(e,t+2);return tn.decode.bytes=r+2,s},tn.decode.bytes=0,tn.encodingLength=e=>Jo.encodingLength(e)+2;const rn={encode(e,t,r){t||(t=Xo.alloc(rn.encodingLength(e))),r||(r=0);const s=r;return Jo.encode(e.mname,t,r+=2),Jo.encode(e.rname,t,r+=Jo.encode.bytes),t.writeUInt32BE(e.serial||0,r+=Jo.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)-s-2,s),rn.encode.bytes=r-s,t}};rn.encode.bytes=0,rn.decode=(e,t)=>{t||(t=0);const r=t,s={};return s.mname=Jo.decode(e,t+=2),s.rname=Jo.decode(e,t+=Jo.decode.bytes),s.serial=e.readUInt32BE(t+=Jo.decode.bytes),s.refresh=e.readUInt32BE(t+=4),s.retry=e.readUInt32BE(t+=4),s.expire=e.readUInt32BE(t+=4),s.minimum=e.readUInt32BE(t+=4),rn.decode.bytes=(t+=4)-r,s},rn.decode.bytes=0,rn.encodingLength=e=>22+Jo.encodingLength(e.mname)+Jo.encodingLength(e.rname);const sn={encode(e,t,r){Array.isArray(e)||(e=[e]);for(let t=0;e.length>t;t++)if("string"==typeof e[t]&&(e[t]=Xo.from(e[t])),!Xo.isBuffer(e[t]))throw Error("Must be a Buffer");t||(t=Xo.alloc(sn.encodingLength(e))),r||(r=0);const s=r;return r+=2,e.forEach((e=>{t[r++]=e.length,e.copy(t,r,0,e.length),r+=e.length})),t.writeUInt16BE(r-s-2,s),sn.encode.bytes=r-s,t}};sn.encode.bytes=0,sn.decode=(e,t)=>{t||(t=0);const r=t;let s=e.readUInt16BE(t);t+=2;let o=[];for(;s>0;){const r=e[t++];if(--s,r>s)throw Error("Buffer overflow");o.push(e.slice(t,t+r)),t+=r,s-=r}return sn.decode.bytes=t-r,o},sn.decode.bytes=0,sn.encodingLength=e=>{Array.isArray(e)||(e=[e]);let t=2;return e.forEach((e=>{t+="string"==typeof e?Xo.byteLength(e)+1:e.length+1})),t};const on={encode(e,t,r){t||(t=Xo.alloc(on.encodingLength(e))),r||(r=0),"string"==typeof e&&(e=Xo.from(e)),e||(e=Xo.alloc(0));const s=r,o=e.length;return e.copy(t,r+=2,0,o),t.writeUInt16BE((r+=o)-s-2,s),on.encode.bytes=r-s,t}};on.encode.bytes=0,on.decode=(e,t)=>{t||(t=0);const r=t,s=e.readUInt16BE(t),o=e.slice(t+=2,t+s);return on.decode.bytes=(t+=s)-r,o},on.decode.bytes=0,on.encodingLength=e=>e?(Xo.isBuffer(e)?e.length:Xo.byteLength(e))+2:2;const nn={encode(e,t,r){t||(t=Xo.alloc(nn.encodingLength(e))),r||(r=0);const s=r;return Qo.encode(e.cpu,t,r+=2),Qo.encode(e.os,t,r+=Qo.encode.bytes),t.writeUInt16BE((r+=Qo.encode.bytes)-s-2,s),nn.encode.bytes=r-s,t}};nn.encode.bytes=0,nn.decode=(e,t)=>{t||(t=0);const r=t,s={};return s.cpu=Qo.decode(e,t+=2),s.os=Qo.decode(e,t+=Qo.decode.bytes),nn.decode.bytes=(t+=Qo.decode.bytes)-r,s},nn.decode.bytes=0,nn.encodingLength=e=>Qo.encodingLength(e.cpu)+Qo.encodingLength(e.os)+2;const an={},cn=an,ln=an;an.encode=(e,t,r)=>(t||(t=Xo.alloc(an.encodingLength(e))),r||(r=0),Jo.encode(e,t,r+2),t.writeUInt16BE(Jo.encode.bytes,r),an.encode.bytes=Jo.encode.bytes+2,t),an.encode.bytes=0,an.decode=(e,t)=>{t||(t=0);const r=Jo.decode(e,t+2);return an.decode.bytes=Jo.decode.bytes+2,r},an.decode.bytes=0,an.encodingLength=e=>Jo.encodingLength(e)+2;const un={encode(e,t,r){t||(t=Xo.alloc(un.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),Jo.encode(e.target,t,r+8);const s=Jo.encode.bytes+6;return t.writeUInt16BE(s,r),un.encode.bytes=s+2,t}};un.encode.bytes=0,un.decode=(e,t)=>{t||(t=0);const r=e.readUInt16BE(t),s={};return s.priority=e.readUInt16BE(t+2),s.weight=e.readUInt16BE(t+4),s.port=e.readUInt16BE(t+6),s.target=Jo.decode(e,t+8),un.decode.bytes=r+2,s},un.decode.bytes=0,un.encodingLength=e=>8+Jo.encodingLength(e.target);const dn={ISSUER_CRITICAL:128,encode(e,t,r){const s=dn.encodingLength(e);return t||(t=Xo.alloc(dn.encodingLength(e))),r||(r=0),e.issuerCritical&&(e.flags=dn.ISSUER_CRITICAL),t.writeUInt16BE(s-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+=Xo.byteLength(e.value),dn.encode.bytes=s,t}};dn.encode.bytes=0,dn.decode=(e,t)=>{t||(t=0);const r=e.readUInt16BE(t),s=t+=2,o={};return o.flags=e.readUInt8(t),o.tag=Qo.decode(e,t+=1),o.value=e.toString("utf-8",t+=Qo.decode.bytes,s+r),o.issuerCritical=!!(o.flags&dn.ISSUER_CRITICAL),dn.decode.bytes=r+2,o},dn.decode.bytes=0,dn.encodingLength=e=>Qo.encodingLength(e.tag)+Qo.encodingLength(e.value)+2;const hn={encode(e,t,r){t||(t=Xo.alloc(hn.encodingLength(e))),r||(r=0);const s=r;return t.writeUInt16BE(e.preference||0,r+=2),Jo.encode(e.exchange,t,r+=2),t.writeUInt16BE((r+=Jo.encode.bytes)-s-2,s),hn.encode.bytes=r-s,t}};hn.encode.bytes=0,hn.decode=(e,t)=>{t||(t=0);const r=t,s={};return s.preference=e.readUInt16BE(t+=2),s.exchange=Jo.decode(e,t+=2),hn.decode.bytes=(t+=Jo.decode.bytes)-r,s},hn.encodingLength=e=>4+Jo.encodingLength(e.exchange);const pn={encode(e,t,r){return t||(t=Xo.alloc(pn.encodingLength(e))),r||(r=0),t.writeUInt16BE(4,r),Yo.v4.encode(e,t,r+=2),pn.encode.bytes=6,t}};pn.encode.bytes=0,pn.decode=(e,t)=>{t||(t=0);const r=Yo.v4.decode(e,t+=2);return pn.decode.bytes=6,r},pn.decode.bytes=0,pn.encodingLength=()=>6;const fn={encode(e,t,r){return t||(t=Xo.alloc(fn.encodingLength(e))),r||(r=0),t.writeUInt16BE(16,r),Yo.v6.encode(e,t,r+=2),fn.encode.bytes=18,t}};fn.encode.bytes=0,fn.decode=(e,t)=>{t||(t=0);const r=Yo.v6.decode(e,t+=2);return fn.decode.bytes=18,r},fn.decode.bytes=0,fn.encodingLength=()=>18;const mn={encode(e,t,r){t||(t=Xo.alloc(mn.encodingLength(e))),r||(r=0);const s=r,o=Go(e.code);if(t.writeUInt16BE(o,r),r+=2,e.data)t.writeUInt16BE(e.data.length,r),e.data.copy(t,r+=2),r+=e.data.length;else switch(o){case 8:const s=e.sourcePrefixLength||0,o=e.family||Yo.familyOf(e.ip),n=Yo.encode(e.ip,Xo.alloc),i=Math.ceil(s/8);t.writeUInt16BE(i+4,r),t.writeUInt16BE(o,r+=2),r+=2,t.writeUInt8(s,r++),t.writeUInt8(e.scopePrefixLength||0,r++),n.copy(t,r,0,i),r+=i;break;case 11:e.timeout?(t.writeUInt16BE(2,r),t.writeUInt16BE(e.timeout,r+=2),r+=2):(t.writeUInt16BE(0,r),r+=2);break;case 12:const a=e.length||0;t.writeUInt16BE(a,r),t.fill(0,r+=2,r+a),r+=a;break;case 14:t.writeUInt16BE(2*e.tags.length,r),r+=2;for(const s of e.tags)t.writeUInt16BE(s,r),r+=2;break;default:throw Error("Unknown roption code: "+e.code)}return mn.encode.bytes=r-s,t}};mn.encode.bytes=0,mn.decode=(e,t)=>{t||(t=0);const r={};r.code=e.readUInt16BE(t),r.type=zo(r.code);const s=e.readUInt16BE(t+=2);switch(r.data=e.slice(t+=2,t+s),r.code){case 8:r.family=e.readUInt16BE(t),t+=2,r.sourcePrefixLength=e.readUInt8(t++),r.scopePrefixLength=e.readUInt8(t++);const o=Xo.alloc(1===r.family?4:16);e.copy(o,0,t,t+s-4),r.ip=Yo.decode(o);break;case 11:s>0&&(r.timeout=e.readUInt16BE(t),t+=2);break;case 14:r.tags=[];for(let o=0;s>o;o+=2)r.tags.push(e.readUInt16BE(t)),t+=2}return mn.decode.bytes=s+4,r},mn.decode.bytes=0,mn.encodingLength=e=>{if(e.data)return e.data.length+4;switch(Go(e.code)){case 8:return Math.ceil((e.sourcePrefixLength||0)/8)+8;case 11:return"number"==typeof e.timeout?6:4;case 12:return e.length+4;case 14:return 4+2*e.tags.length}throw Error("Unknown roption code: "+e.code)};const yn={encode(e,t,r){t||(t=Xo.alloc(yn.encodingLength(e))),r||(r=0);const s=r,o=te(e,mn);return t.writeUInt16BE(o,r),r=re(e,mn,t,r+2),yn.encode.bytes=r-s,t}};yn.encode.bytes=0,yn.decode=(e,t)=>{t||(t=0);const r=t,s=[];let o=e.readUInt16BE(t);t+=2;let n=0;for(;o>0;)s[n++]=mn.decode(e,t),t+=mn.decode.bytes,o-=mn.decode.bytes;return yn.decode.bytes=t-r,s},yn.decode.bytes=0,yn.encodingLength=e=>2+te(e||[],mn);const gn={PROTOCOL_DNSSEC:3,ZONE_KEY:128,SECURE_ENTRYPOINT:32768,encode(e,t,r){t||(t=Xo.alloc(gn.encodingLength(e))),r||(r=0);const s=r,o=e.key;if(!Xo.isBuffer(o))throw Error("Key must be a Buffer");return t.writeUInt16BE(e.flags,r+=2),t.writeUInt8(gn.PROTOCOL_DNSSEC,r+=2),t.writeUInt8(e.algorithm,r+=1),o.copy(t,r+=1,0,o.length),gn.encode.bytes=(r+=o.length)-s,t.writeUInt16BE(gn.encode.bytes-2,s),t}};gn.encode.bytes=0,gn.decode=(e,t)=>{t||(t=0);const r=t;var s={},o=e.readUInt16BE(t);if(s.flags=e.readUInt16BE(t+=2),e.readUInt8(t+=2)!==gn.PROTOCOL_DNSSEC)throw Error("Protocol must be 3");return s.algorithm=e.readUInt8(t+=1),s.key=e.slice(t+=1,r+o+2),gn.decode.bytes=(t+=s.key.length)-r,s},gn.decode.bytes=0,gn.encodingLength=e=>6+Xo.byteLength(e.key);const vn={encode(e,t,r){t||(t=Xo.alloc(vn.encodingLength(e))),r||(r=0);const s=r,o=e.signature;if(!Xo.isBuffer(o))throw Error("Signature must be a Buffer");return r+=2,t.writeUInt16BE(Mo(e.typeCovered),r),t.writeUInt8(e.algorithm,r+=2),t.writeUInt8(e.labels,r+=1),t.writeUInt32BE(e.originalTTL,r+=1),t.writeUInt32BE(e.expiration,r+=4),t.writeUInt32BE(e.inception,r+=4),t.writeUInt16BE(e.keyTag,r+=4),Jo.encode(e.signersName,t,r+=2),o.copy(t,r+=Jo.encode.bytes,0,o.length),vn.encode.bytes=(r+=o.length)-s,t.writeUInt16BE(vn.encode.bytes-2,s),t}};vn.encode.bytes=0,vn.decode=(e,t)=>{t||(t=0);const r=t;var s={},o=e.readUInt16BE(t);return s.typeCovered=Do(e.readUInt16BE(t+=2)),s.algorithm=e.readUInt8(t+=2),s.labels=e.readUInt8(t+=1),s.originalTTL=e.readUInt32BE(t+=1),s.expiration=e.readUInt32BE(t+=4),s.inception=e.readUInt32BE(t+=4),s.keyTag=e.readUInt16BE(t+=4),s.signersName=Jo.decode(e,t+=2),s.signature=e.slice(t+=Jo.decode.bytes,r+o+2),vn.decode.bytes=(t+=s.signature.length)-r,s},vn.decode.bytes=0,vn.encodingLength=e=>20+Jo.encodingLength(e.signersName)+Xo.byteLength(e.signature);const bn={encode(e,t,r){t||(t=Xo.alloc(bn.encodingLength(e))),r||(r=0);const s=r;return Jo.encode(e.mbox||".",t,r+=2),Jo.encode(e.txt||".",t,r+=Jo.encode.bytes),bn.encode.bytes=(r+=Jo.encode.bytes)-s,t.writeUInt16BE(bn.encode.bytes-2,s),t}};bn.encode.bytes=0,bn.decode=(e,t)=>{t||(t=0);const r=t,s={};return s.mbox=Jo.decode(e,t+=2)||".",s.txt=Jo.decode(e,t+=Jo.decode.bytes)||".",bn.decode.bytes=(t+=Jo.decode.bytes)-r,s},bn.decode.bytes=0,bn.encodingLength=e=>2+Jo.encodingLength(e.mbox||".")+Jo.encodingLength(e.txt||".");const wn={encode(e,t,r){t||(t=Xo.alloc(wn.encodingLength(e))),r||(r=0);const s=r;for(var o=[],n=0;e.length>n;n++){var i=Mo(e[n]);void 0===o[i>>8]&&(o[i>>8]=[]),o[i>>8][i>>3&31]|=1<<7-(7&i)}for(n=0;o.length>n;n++)if(void 0!==o[n]){var a=Xo.from(o[n]);t.writeUInt8(n,r),t.writeUInt8(a.length,r+=1),a.copy(t,r+=1),r+=a.length}return wn.encode.bytes=r-s,t}};wn.encode.bytes=0,wn.decode=(e,t,r)=>{t||(t=0);const s=t;for(var o=[];r>t-s;){var n=e.readUInt8(t),i=e.readUInt8(t+=1);t+=1;for(var a=0;i>a;a++)for(var c=e.readUInt8(t+a),l=0;8>l;l++)if(c&1<<7-l){var u=Do(n<<8|a<<3|l);o.push(u)}t+=i}return wn.decode.bytes=t-s,o},wn.decode.bytes=0,wn.encodingLength=e=>{for(var t=[],r=0;e.length>r;r++){var s=Mo(e[r]);t[s>>8]=Math.max(t[s>>8]||0,255&s)}var o=0;for(r=0;t.length>r;r++)void 0!==t[r]&&(o+=2+Math.ceil((t[r]+1)/8));return o};const En={encode(e,t,r){t||(t=Xo.alloc(En.encodingLength(e))),r||(r=0);const s=r;return Jo.encode(e.nextDomain,t,r+=2),wn.encode(e.rrtypes,t,r+=Jo.encode.bytes),En.encode.bytes=(r+=wn.encode.bytes)-s,t.writeUInt16BE(En.encode.bytes-2,s),t}};En.encode.bytes=0,En.decode=(e,t)=>{t||(t=0);const r=t;var s={},o=e.readUInt16BE(t);return s.nextDomain=Jo.decode(e,t+=2),s.rrtypes=wn.decode(e,t+=Jo.decode.bytes,o-(t-r)),En.decode.bytes=(t+=wn.decode.bytes)-r,s},En.decode.bytes=0,En.encodingLength=e=>2+Jo.encodingLength(e.nextDomain)+wn.encodingLength(e.rrtypes);const xn={encode(e,t,r){t||(t=Xo.alloc(xn.encodingLength(e))),r||(r=0);const s=r,o=e.salt;if(!Xo.isBuffer(o))throw Error("salt must be a Buffer");const n=e.nextDomain;if(!Xo.isBuffer(n))throw Error("nextDomain must be a Buffer");return t.writeUInt8(e.algorithm,r+=2),t.writeUInt8(e.flags,r+=1),t.writeUInt16BE(e.iterations,r+=1),t.writeUInt8(o.length,r+=2),o.copy(t,r+=1,0,o.length),t.writeUInt8(n.length,r+=o.length),n.copy(t,r+=1,0,n.length),wn.encode(e.rrtypes,t,r+=n.length),xn.encode.bytes=(r+=wn.encode.bytes)-s,t.writeUInt16BE(xn.encode.bytes-2,s),t}};xn.encode.bytes=0,xn.decode=(e,t)=>{t||(t=0);const r=t;var s={},o=e.readUInt16BE(t);s.algorithm=e.readUInt8(t+=2),s.flags=e.readUInt8(t+=1),s.iterations=e.readUInt16BE(t+=1);const n=e.readUInt8(t+=2);s.salt=e.slice(t+=1,t+n);const i=e.readUInt8(t+=n);return s.nextDomain=e.slice(t+=1,t+i),s.rrtypes=wn.decode(e,t+=i,o-(t-r)),xn.decode.bytes=(t+=wn.decode.bytes)-r,s},xn.decode.bytes=0,xn.encodingLength=e=>8+e.salt.length+e.nextDomain.length+wn.encodingLength(e.rrtypes);const _n={encode(e,t,r){t||(t=Xo.alloc(_n.encodingLength(e))),r||(r=0);const s=r,o=e.digest;if(!Xo.isBuffer(o))throw Error("Digest must be a Buffer");return t.writeUInt16BE(e.keyTag,r+=2),t.writeUInt8(e.algorithm,r+=2),t.writeUInt8(e.digestType,r+=1),o.copy(t,r+=1,0,o.length),_n.encode.bytes=(r+=o.length)-s,t.writeUInt16BE(_n.encode.bytes-2,s),t}};_n.encode.bytes=0,_n.decode=(e,t)=>{t||(t=0);const r=t;var s={},o=e.readUInt16BE(t);return s.keyTag=e.readUInt16BE(t+=2),s.algorithm=e.readUInt8(t+=2),s.digestType=e.readUInt8(t+=1),s.digest=e.slice(t+=1,r+o+2),_n.decode.bytes=(t+=s.digest.length)-r,s},_n.decode.bytes=0,_n.encodingLength=e=>6+Xo.byteLength(e.digest);const Sn={getFingerprintLengthForHashType(e){switch(e){case 1:return 20;case 2:return 32}},encode(e,t,r){t||(t=Xo.alloc(Sn.encodingLength(e))),r||(r=0);const s=r;t[r+=2]=e.algorithm,t[r+=1]=e.hash,r+=1;const o=Xo.from(e.fingerprint.toUpperCase(),"hex");if(o.length!==Sn.getFingerprintLengthForHashType(e.hash))throw Error("Invalid fingerprint length");return o.copy(t,r),Sn.encode.bytes=(r+=o.byteLength)-s,t.writeUInt16BE(Sn.encode.bytes-2,s),t}};Sn.encode.bytes=0,Sn.decode=(e,t)=>{t||(t=0);const r=t,s={};s.algorithm=e[t+=2],s.hash=e[t+=1],t+=1;const o=Sn.getFingerprintLengthForHashType(s.hash);return s.fingerprint=e.slice(t,t+o).toString("hex").toUpperCase(),Sn.decode.bytes=(t+=o)-r,s},Sn.decode.bytes=0,Sn.encodingLength=e=>4+Xo.from(e.fingerprint,"hex").byteLength;const On=e=>{switch(e.toUpperCase()){case"A":return pn;case"PTR":return an;case"CNAME":return cn;case"DNAME":return ln;case"TXT":return sn;case"NULL":return on;case"AAAA":return fn;case"SRV":return un;case"HINFO":return nn;case"CAA":return dn;case"NS":return tn;case"SOA":return rn;case"MX":return hn;case"OPT":return yn;case"DNSKEY":return gn;case"RRSIG":return vn;case"RP":return bn;case"NSEC":return En;case"NSEC3":return xn;case"SSHFP":return Sn;case"DS":return _n}return en},Tn={encode(e,t,r){t||(t=Xo.alloc(Tn.encodingLength(e))),r||(r=0);const s=r;if(Jo.encode(e.name,t,r),r+=Jo.encode.bytes,t.writeUInt16BE(Mo(e.type),r),"OPT"===e.type.toUpperCase()){if("."!==e.name)throw Error("OPT name must be root.");t.writeUInt16BE(e.udpPayloadSize||4096,r+2),t.writeUInt8(e.extendedRcode||0,r+4),t.writeUInt8(e.ednsVersion||0,r+5),t.writeUInt16BE(e.flags||0,r+6),yn.encode(e.options||[],t,r+=8),r+=yn.encode.bytes}else{let s=qo(void 0===e.class?"IN":e.class);e.flush&&(s|=32768),t.writeUInt16BE(s,r+2),t.writeUInt32BE(e.ttl||0,r+4),r+=8;const o=On(e.type);o.encode(e.data,t,r),r+=o.encode.bytes}return Tn.encode.bytes=r-s,t}};Tn.encode.bytes=0,Tn.decode=(e,t)=>{t||(t=0);const r={},s=t;if(r.name=Jo.decode(e,t),r.type=Do(e.readUInt16BE(t+=Jo.decode.bytes)),"OPT"===r.type)r.udpPayloadSize=e.readUInt16BE(t+2),r.extendedRcode=e.readUInt8(t+4),r.ednsVersion=e.readUInt8(t+5),r.flags=e.readUInt16BE(t+6),r.flag_do=1==(r.flags>>15&1),r.options=yn.decode(e,t+8),t+=8+yn.decode.bytes;else{const s=e.readUInt16BE(t+2);r.ttl=e.readUInt32BE(t+4),r.class=Ho(-32769&s),r.flush=!!(32768&s);const o=On(r.type);r.data=o.decode(e,t+8),t+=8+o.decode.bytes}return Tn.decode.bytes=t-s,r},Tn.decode.bytes=0,Tn.encodingLength=e=>{const t=null!=e.data?e.data:e.options;return Jo.encodingLength(e.name)+8+On(e.type).encodingLength(t)};const Cn={};var An,Rn;Cn.encode=(e,t,r)=>{t||(t=Xo.alloc(Cn.encodingLength(e))),r||(r=0);const s=r;return Jo.encode(e.name,t,r),r+=Jo.encode.bytes,t.writeUInt16BE(Mo(e.type),r),r+=2,t.writeUInt16BE(qo(void 0===e.class?"IN":e.class),r),Cn.encode.bytes=(r+=2)-s,e},Cn.encode.bytes=0,Cn.decode=(e,t)=>{t||(t=0);const r=t,s={};return s.name=Jo.decode(e,t),s.type=Do(e.readUInt16BE(t+=Jo.decode.bytes)),s.class=Ho(e.readUInt16BE(t+=2)),t+=2,!!(32768&s.class)&&(s.class&=-32769),Cn.decode.bytes=t-r,s},Cn.decode.bytes=0,Cn.encodingLength=e=>Jo.encodingLength(e.name)+4,($o=(e,t,r)=>{const s=!t;s&&(t=Xo.alloc(Uo(e))),r||(r=0);const o=r;return e.questions||(e.questions=[]),e.answers||(e.answers=[]),e.authorities||(e.authorities=[]),e.additionals||(e.additionals=[]),Zo.encode(e,t,r),r=re(e.questions,Cn,t,r+=Zo.encode.bytes),r=re(e.answers,Tn,t,r),r=re(e.authorities,Tn,t,r),r=re(e.additionals,Tn,t,r),$o.bytes=r-o,s&&$o.bytes!==t.length?t.slice(0,$o.bytes):t}).bytes=0,(Lo=(e,t)=>{t||(t=0);const r=t,s=Zo.decode(e,t);return t=se(s.questions,Cn,e,t+=Zo.decode.bytes),t=se(s.answers,Tn,e,t),t=se(s.authorities,Tn,e,t),t=se(s.additionals,Tn,e,t),Lo.bytes=t-r,s}).bytes=0,Uo=e=>Zo.encodingLength(e)+te(e.questions||[],Cn)+te(e.answers||[],Tn)+te(e.authorities||[],Tn)+te(e.additionals||[],Tn),(No=e=>{const t=$o(e),r=Xo.alloc(2);r.writeUInt16BE(t.byteLength);const s=Xo.concat([r,t]);return No.bytes=s.byteLength,s}).bytes=0,(jo=e=>{if(e.readUInt16BE(0)+2>e.byteLength)return null;const t=Lo(e.slice(2));return jo.bytes=Lo.bytes,t}).bytes=0,Wo=oe,nt.inherits(oe,st.EventEmitter),oe.RECURSION_DESIRED=oe.prototype.RECURSION_DESIRED=256,oe.RECURSION_AVAILABLE=oe.prototype.RECURSION_AVAILABLE=128,oe.TRUNCATED_RESPONSE=oe.prototype.TRUNCATED_RESPONSE=512,oe.AUTHORITATIVE_ANSWER=oe.prototype.AUTHORITATIVE_ANSWER=1024,oe.AUTHENTIC_DATA=oe.prototype.AUTHENTIC_DATA=32,oe.CHECKING_DISABLED=oe.prototype.CHECKING_DISABLED=16,oe.prototype.address=function(){return this.socket.address()},oe.prototype.bind=function(...e){const t=e.length>0&&e[e.length-1];"function"==typeof t?(this.once("listening",t),this.socket.bind(...e.slice(0,-1))):this.socket.bind(...e)},oe.prototype.destroy=function(e){if(e&&this.once("close",e),!this.destroyed){this.destroyed=!0,clearInterval(this._interval),this.socket.close();for(let e=0;this.maxQueries>e;e++){const t=this._queries[e];t&&(t.callback(Error("Socket destroyed")),this._queries[e]=null)}this.inflight=0}},oe.prototype._ontimeoutCheck=function(){const e=Date.now();for(let t=0;this.maxQueries>t;t++){const r=this._queries[t];r&&e-r.firstTry>=(r.tries+1)*this.timeout&&(r.tries>this.retries?(this._queries[t]=null,this.inflight--,this.emit("timeout",r.query,r.port,r.host),r.callback(Error("Query timed out"))):(r.tries++,this.socket.send(r.buffer,0,r.buffer.length,r.port,Array.isArray(r.host)?r.host[Math.floor(r.host.length*Math.random())]:r.host||"127.0.0.1")))}},oe.prototype._shouldRedirect=function(e,t){if(0>=this.maxRedirects||!e||1!==e.query.questions.length||t.answers.filter((e=>"A"===e.type)).length>0)return!1;if(e.redirects>this.maxRedirects)return!1;const r=t.answers.filter((e=>"CNAME"===e.type));if(0===r.length)return!1;const s=this._getNextEmptyId();return-1===s?(e.callback(Error("Query array is full!")),!0):(e.query={id:s+1,flags:256,questions:[{type:"A",name:r[0].data}]},e.redirects++,e.firstTry=Date.now(),e.tries=0,e.buffer=$o(e.query),this._queries[s]=e,this.socket.send(e.buffer,0,e.buffer.length,e.port,Array.isArray(e.host)?e.host[Math.floor(e.host.length*Math.random())]:e.host||"127.0.0.1"),!0)},oe.prototype._onmessage=function(e,t){let r;try{r=Lo(e)}catch(e){return void this.emit("warning",e)}if("response"===r.type&&r.id){const e=this._queries[r.id-1];e&&(this._queries[r.id-1]=null,this.inflight--,this._shouldRedirect(e,r)||e.callback(null,r))}this.emit(r.type,r,t.port,t.address)},oe.prototype.unref=function(){this.socket.unref()},oe.prototype.ref=function(){this.socket.ref()},oe.prototype.response=function(e,t,r,s){if(this.destroyed)return;t.type="response",t.id=e.id;const o=$o(t);this.socket.send(o,0,o.length,r,s)},oe.prototype.cancel=function(e){const t=this._queries[e];t&&(this._queries[e]=null,this.inflight--,t.callback(Error("Query cancelled")))},oe.prototype.setRetries=function(e,t){const r=this._queries[e];r&&(r.firstTry=r.firstTry-this.timeout*(t-r.retries),r.retries=this.retries-t)},oe.prototype._getNextEmptyId=function(){let e=-1;for(let t=this.maxQueries;t>0;t--){const r=(this._id+t)%this.maxQueries;if(null===this._queries[r]){e=r,this._id=(r+1)%this.maxQueries;break}}return e},oe.prototype.query=function(e,t,r,s){if(this.destroyed)return s(Error("Socket destroyed")),0;this.inflight++,e.type="query",e.flags="number"==typeof e.flags?e.flags:oe.RECURSION_DESIRED;const o=this._getNextEmptyId();if(-1===o)return s(Error("Query array is full!")),0;e.id=o+1;const n=$o(e);return this._queries[o]={callback:s||ne,redirects:0,firstTry:Date.now(),query:e,tries:0,buffer:n,port:t,host:r},this.socket.send(n,0,n.length,t,Array.isArray(r)?r[Math.floor(r.length*Math.random())]:r||"127.0.0.1"),o},Rn=JSON.parse('{"name":"got","version":"9.6.0","description":"Simplified HTTP requests","license":"MIT","repository":"sindresorhus/got","main":"source","engines":{"node":">=8.6"},"scripts":{"test":"xo && nyc ava","release":"np"},"files":["source"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],"dependencies":{"@sindresorhus/is":"^0.14.0","@szmarczak/http-timer":"^1.1.2","cacheable-request":"^6.0.0","decompress-response":"^3.3.0","duplexer3":"^0.1.4","get-stream":"^4.1.0","lowercase-keys":"^1.0.1","mimic-response":"^1.0.1","p-cancelable":"^1.0.0","to-readable-stream":"^1.0.0","url-parse-lax":"^3.0.0"},"devDependencies":{"ava":"^1.1.0","coveralls":"^3.0.0","delay":"^4.1.0","form-data":"^2.3.3","get-port":"^4.0.0","np":"^3.1.0","nyc":"^13.1.0","p-event":"^2.1.0","pem":"^1.13.2","proxyquire":"^2.0.1","sinon":"^7.2.2","slow-stream":"0.0.4","tempfile":"^2.0.0","tempy":"^0.2.1","tough-cookie":"^3.0.0","xo":"^0.24.0"},"ava":{"concurrency":4},"browser":{"decompress-response":false,"electron":false}}');var Pn,In,kn,$n,Ln,Un,Nn,jn,Dn,Mn,Bn={};e(Bn,"GotError",(()=>Pn),(e=>Pn=e)),e(Bn,"CacheError",(()=>In),(e=>In=e)),e(Bn,"RequestError",(()=>kn),(e=>kn=e)),e(Bn,"ReadError",(()=>$n),(e=>$n=e)),e(Bn,"ParseError",(()=>Ln),(e=>Ln=e)),e(Bn,"HTTPError",(()=>Un),(e=>Un=e)),e(Bn,"MaxRedirectsError",(()=>Nn),(e=>Nn=e)),e(Bn,"UnsupportedProtocolError",(()=>jn),(e=>jn=e)),e(Bn,"TimeoutError",(()=>Dn),(e=>Dn=e)),e(Bn,"CancelError",(()=>Mn),(e=>Mn=e));var Fn={};class Hn extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class qn{static fn(e){return(...t)=>new qn(((r,s,o)=>{t.push(o),e(...t).then(r,s)}))}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise(((t,r)=>{this._reject=r;const s=e=>{this._cancelHandlers.push(e)};return Object.defineProperties(s,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}}),e((e=>{this._isPending=!1,t(e)}),(e=>{this._isPending=!1,r(e)}),s)}))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){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._rejectOnCancel&&this._reject(new Hn(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(qn.prototype,Promise.prototype),(Fn=qn).default=qn,Fn.CancelError=Hn;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});const Gn="undefined"==typeof URL?dt.URL:URL,Vn={}.toString,Wn=e=>t=>typeof t===e,Xn=e=>!ie.nullOrUndefined(e)&&!ie.nullOrUndefined(e.constructor)&&ie.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e),Yn=e=>Vn.call(e).slice(8,-1)||null,Kn=e=>t=>Yn(t)===e;(e=>{const t=e=>"object"==typeof e;e.undefined=Wn("undefined"),e.string=Wn("string"),e.number=Wn("number"),e.function_=Wn("function"),e.null_=e=>null===e,e.class_=t=>e.function_(t)&&(""+t).startsWith("class "),e.boolean=e=>!0===e||!1===e,e.symbol=Wn("symbol"),e.numericString=t=>e.string(t)&&t.length>0&&!Number.isNaN(+t),e.array=Array.isArray,e.buffer=Xn,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.asyncIterable=t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]),e.generator=t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw),e.nativePromise=e=>Kn("Promise")(e),e.promise=r=>e.nativePromise(r)||(r=>!e.null_(r)&&t(r)&&e.function_(r.then)&&e.function_(r.catch))(r),e.generatorFunction=Kn("GeneratorFunction"),e.asyncFunction=Kn("AsyncFunction"),e.boundFunction=t=>e.function_(t)&&!t.hasOwnProperty("prototype"),e.regExp=Kn("RegExp"),e.date=Kn("Date"),e.error=Kn("Error"),e.map=e=>Kn("Map")(e),e.set=e=>Kn("Set")(e),e.weakMap=e=>Kn("WeakMap")(e),e.weakSet=e=>Kn("WeakSet")(e),e.int8Array=Kn("Int8Array"),e.uint8Array=Kn("Uint8Array"),e.uint8ClampedArray=Kn("Uint8ClampedArray"),e.int16Array=Kn("Int16Array"),e.uint16Array=Kn("Uint16Array"),e.int32Array=Kn("Int32Array"),e.uint32Array=Kn("Uint32Array"),e.float32Array=Kn("Float32Array"),e.float64Array=Kn("Float64Array"),e.arrayBuffer=Kn("ArrayBuffer"),e.sharedArrayBuffer=Kn("SharedArrayBuffer"),e.dataView=Kn("DataView"),e.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype,e.urlInstance=e=>Kn("URL")(e),e.urlString=t=>{if(!e.string(t))return!1;try{return new Gn(t),!0}catch(e){return!1}},e.truthy=e=>!!e,e.falsy=e=>!e,e.nan=e=>Number.isNaN(e);const r=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=t=>e.null_(t)||r.has(typeof t),e.integer=e=>Number.isInteger(e),e.safeInteger=e=>Number.isSafeInteger(e),e.plainObject=e=>{let t;return"Object"===Yn(e)&&(t=Object.getPrototypeOf(e),null===t||t===Object.getPrototypeOf({}))};const s=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=e=>{const t=Yn(e);return null!==t&&s.has(t)},e.arrayLike=t=>!e.nullOrUndefined(t)&&!e.function_(t)&&(t=>e.safeInteger(t)&&t>-1)(t.length),e.inRange=(t,r)=>{if(e.number(r))return t>=Math.min(0,r)&&Math.max(r,0)>=t;if(e.array(r)&&2===r.length)return t>=Math.min(...r)&&t<=Math.max(...r);throw new TypeError("Invalid range: "+JSON.stringify(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.observable=e=>!(!e||!(e[Symbol.observable]&&e===e[Symbol.observable]()||e["@@observable"]&&e===e["@@observable"]())),e.nodeStream=r=>!e.nullOrUndefined(r)&&t(r)&&e.function_(r.pipe)&&!e.observable(r),e.infinite=e=>e===1/0||e===-1/0;const n=t=>r=>e.integer(r)&&Math.abs(r%2)===t;e.even=n(0),e.odd=n(1),e.emptyArray=t=>e.array(t)&&0===t.length,e.nonEmptyArray=t=>e.array(t)&&t.length>0,e.emptyString=t=>e.string(t)&&0===t.length,e.nonEmptyString=t=>e.string(t)&&t.length>0,e.emptyStringOrWhitespace=t=>e.emptyString(t)||(t=>e.string(t)&&!1===/\S/.test(t))(t),e.emptyObject=t=>e.object(t)&&!e.map(t)&&!e.set(t)&&0===Object.keys(t).length,e.nonEmptyObject=t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0,e.emptySet=t=>e.set(t)&&0===t.size,e.nonEmptySet=t=>e.set(t)&&t.size>0,e.emptyMap=t=>e.map(t)&&0===t.size,e.nonEmptyMap=t=>e.map(t)&&t.size>0;const i=(t,r,s)=>{if(!1===e.function_(r))throw new TypeError("Invalid predicate: "+JSON.stringify(r));if(0===s.length)throw new TypeError("Invalid number of values");return t.call(s,r)};e.any=(e,...t)=>i([].some,e,t),e.all=(e,...t)=>i([].every,e,t)})(ie||(ie={})),Object.defineProperties(ie,{class:{value:ie.class_},function:{value:ie.function_},null:{value:ie.null_}}),zn.default=ie,(zn=ie).default=ie;class Jn extends Error{constructor(e,t,r){super(e),Error.captureStackTrace(this,this.constructor),this.name="GotError",zn.undefined(t.code)||(this.code=t.code),Object.assign(this,{host:r.host,hostname:r.hostname,method:r.method,path:r.path,socketPath:r.socketPath,protocol:r.protocol,url:r.href,gotOptions:r})}}Pn=Jn,In=class extends Jn{constructor(e,t){super(e.message,e,t),this.name="CacheError"}},kn=class extends Jn{constructor(e,t){super(e.message,e,t),this.name="RequestError"}},$n=class extends Jn{constructor(e,t){super(e.message,e,t),this.name="ReadError"}},Ln=class extends Jn{constructor(e,t,r,s){super(`${e.message} in "${dt.format(r)}": \n${s.slice(0,77)}...`,e,r),this.name="ParseError",this.statusCode=t,this.statusMessage=Ze.STATUS_CODES[this.statusCode]}},Un=class extends Jn{constructor(e,t){const{statusCode:r}=e;let{statusMessage:s}=e;s=s?s.replace(/\r?\n/g," ").trim():Ze.STATUS_CODES[r],super(`Response code ${r} (${s})`,{},t),this.name="HTTPError",this.statusCode=r,this.statusMessage=s,this.headers=e.headers,this.body=e.body}},Nn=class extends Jn{constructor(e,t,r){super("Redirected 10 times. Aborting.",{},r),this.name="MaxRedirectsError",this.statusCode=e,this.statusMessage=Ze.STATUS_CODES[this.statusCode],this.redirectUrls=t}},jn=class extends Jn{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e),this.name="UnsupportedProtocolError"}},Dn=class extends Jn{constructor(e,t){super(e.message,{code:"ETIMEDOUT"},t),this.name="TimeoutError",this.event=e.event}},Mn=Fn.CancelError;var Qn,Zn,ei=ut.PassThrough;(ae.prototype=Object.create(ut.Duplex.prototype,{constructor:{value:ae}}))._write=function(e,t,r){this._writable.write(e,t,r)},ae.prototype._read=function(){for(var e,t=0;null!==(e=this._readable.read());)this.push(e),t++;0===t&&(this._waiting=!0)},(Zn=(e,t,r)=>new ae(e,t,r)).DuplexWrapper=ae;var ti,ri=dt.URL,si={},oi={};const ni="undefined"==typeof URL?dt.URL:URL,ii=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e)),ai=(e,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},Reflect.has(t,"normalizeHttps"))throw Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(t,"normalizeHttp"))throw Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(t,"stripFragment"))throw Error("options.stripFragment is renamed to options.stripHash");if(e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{const r=e.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!r)throw Error("Invalid URL: "+e);const s=r[1].split(";"),o=r[2],n=t?"":r[3];let i=!1;"base64"===s[s.length-1]&&(s.pop(),i=!0);const a=(s.shift()||"").toLowerCase(),c=[...s.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(r=r.toLowerCase(),"us-ascii"===r)?"":`${t}${r?"="+r:""}`})).filter(Boolean)];return i&&c.push("base64"),(0!==c.length||a&&"text/plain"!==a)&&c.unshift(a),`data:${c.join(";")},${i?o.trim():o}${n?"#"+n:""}`})(e,t);const r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const s=new ni(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===s.protocol&&(s.protocol="http:"),t.forceHttps&&"http:"===s.protocol&&(s.protocol="https:"),t.stripAuthentication&&(s.username="",s.password=""),t.stripHash&&(s.hash=""),s.pathname&&(s.pathname=s.pathname.replace(/((?!:).|^)\/{2,}/g,((e,t)=>/^(?!\/)/g.test(t)?t+"/":"/"))),s.pathname&&(s.pathname=decodeURI(s.pathname)),!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=s.pathname.split("/");ii(e[e.length-1],t.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),s.pathname=e.slice(1).join("/")+"/")}if(s.hostname&&(s.hostname=s.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(s.hostname)&&(s.hostname=s.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const e of[...s.searchParams.keys()])ii(e,t.removeQueryParameters)&&s.searchParams.delete(e);return t.sortQueryParameters&&s.searchParams.sort(),t.removeTrailingSlash&&(s.pathname=s.pathname.replace(/\/$/,"")),e=""+s,!t.removeTrailingSlash&&"/"!==s.pathname||""!==s.hash||(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};(oi=ai).default=ai;var ci,li,ui=Et("84wFv"),di=Et("bnCxk"),hi=ut.Readable;ci=e=>{for(var t={},r=Object.keys(Object(e)),s=0;r.length>s;s++)t[r[s].toLowerCase()]=e[r[s]];return t},li=class extends hi{constructor(e,t,r,s){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 s)throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=ci(t),this.body=r,this.url=s}_read(){this.push(this.body),this.push(null)}};var pi,fi,mi,yi=Et("3WafW"),gi=Et("gNBNo");pi=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="",s=Array.isArray(t);r=s?"[":"{";var o=!0;for(var n in t){var i="function"==typeof t[n]||!s&&void 0===t[n];Object.hasOwnProperty.call(t,n)&&!i&&(o||(r+=","),o=!1,s?r+=null==t[n]?"null":e(t[n]):void 0!==t[n]&&(r+=e(n)+":"+e(t[n])))}return r+(s?"]":"}")}return"string"==typeof t?JSON.stringify(/^:/.test(t)?":"+t:t):void 0===t?"null":JSON.stringify(t)},fi=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)),mi=class extends st{constructor(e,t){if(super(),this.opts=Object.assign({namespace:"keyv",serialize:pi,deserialize:fi},"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?this.opts.deserialize(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 s=this.opts.store;return Promise.resolve().then((()=>{const o="number"==typeof r?Date.now()+r:null;return s.set(e,this.opts.serialize(t={value:t,expires:o}),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 vi{constructor(e,t){if("function"!=typeof e)throw new TypeError("Parameter `request` must be a function");return this.cache=new mi({uri:"string"==typeof t&&t,store:"string"!=typeof t&&t,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let s;if("string"==typeof t)s=le(dt.parse(t)),t={};else if(t instanceof dt.URL)s=le(dt.parse(""+t)),t={};else{const[e,...r]=(t.path||"").split("?"),o=r.length>0?"?"+r.join("?"):"";s=le({...t,pathname:e,search:o})}(t={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...t,...ce(s)}).headers=yi(t.headers);const o=new st,n=oi(dt.format(s),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),i=`${t.method}:${n}`;let a=!1,c=!1;const l=t=>{c=!0;let s,n=!1;const l=new Promise((e=>{s=()=>{n||(n=!0,e())}})),u=e=>{if(a&&!t.forceRefresh){e.status=e.statusCode;const r=di.fromObject(a.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();(e=new li(a.statusCode,t,a.body,a.url)).cachePolicy=r.policy,e.fromCache=!0}}let s;e.fromCache||(e.cachePolicy=new di(t,e,t),e.fromCache=!1),t.cache&&e.cachePolicy.storable()?(s=gi(e),(async()=>{try{const r=ui.buffer(e);if(await Promise.race([l,new Promise((t=>e.once("end",t)))]),n)return;const s=await r,o={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?a.statusCode:e.statusCode,body:s};let c=t.strictTtl?e.cachePolicy.timeToLive():void 0;t.maxTtl&&(c=c?Math.min(c,t.maxTtl):t.maxTtl),await this.cache.set(i,o,c)}catch(e){o.emit("error",new vi.CacheError(e))}})()):t.cache&&a&&(async()=>{try{await this.cache.delete(i)}catch(e){o.emit("error",new vi.CacheError(e))}})(),o.emit("response",s||e),"function"==typeof r&&r(s||e)};try{const r=e(t,u);r.once("error",s),r.once("abort",s),o.emit("request",r)}catch(e){o.emit("error",new vi.RequestError(e))}};return(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(i):void 0;if(void 0===t)return l(e);const s=di.fromObject(t.cachePolicy);if(s.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=s.responseHeaders(),n=new li(t.statusCode,e,t.body,t.url);n.cachePolicy=s,n.fromCache=!0,o.emit("response",n),"function"==typeof r&&r(n)}else a=t,e.headers=s.revalidationHeaders(e),l(e)},s=e=>o.emit("error",new vi.CacheError(e));this.cache.once("error",s),o.on("response",(()=>this.cache.removeListener("error",s)));try{await e(t)}catch(e){t.automaticFailover&&!c&&l(t),o.emit("error",new vi.CacheError(e))}})(),o}}}vi.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}},vi.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}},si=vi;var bi,wi=ut.Readable;bi=e=>new wi({read(){this.push(e),this.push(null)}});var Ei,xi={};Object.defineProperty(xi,"__esModule",{value:!0});const _i=(e,t)=>{let r;r="function"==typeof t?{connect:t}:t;const s="function"==typeof r.connect,o="function"==typeof r.secureConnect,n="function"==typeof r.close,i=()=>{s&&r.connect(),e instanceof rt.TLSSocket&&o&&(e.authorized?r.secureConnect():e.authorizationError||e.once("secureConnect",r.secureConnect)),n&&e.once("close",r.close)};e.writable&&!e.connecting?i():e.connecting?e.once("connect",i):e.destroyed&&n&&r.close(e._hadError)};var Si;xi.default=_i,(xi=_i).default=_i,Ei=e=>{const t={start:Date.now(),socket:null,lookup:null,connect:null,upload:null,response:null,end:null,error:null,phases:{wait:null,dns:null,tcp:null,request:null,firstByte:null,download:null,total:null}},r=e=>{const r=e.emit.bind(e);e.emit=(s,...o)=>("error"===s&&(t.error=Date.now(),t.phases.total=t.error-t.start,e.emit=r),r(s,...o))};let s=!1;const o=()=>{t.upload=Date.now(),t.phases.request=t.upload-t.connect};return r(e),e.once("socket",(e=>{t.socket=Date.now(),t.phases.wait=t.socket-t.start;const r=()=>{t.lookup=Date.now(),t.phases.dns=t.lookup-t.socket};e.once("lookup",r),xi(e,(()=>{t.connect=Date.now(),null===t.lookup&&(e.removeListener("lookup",r),t.lookup=t.connect,t.phases.dns=t.lookup-t.socket),t.phases.tcp=t.connect-t.lookup,s&&!t.upload&&o()}))})),e.once("finish",(()=>{s=!0,t.connect&&o()})),e.once("response",(e=>{t.response=Date.now(),t.phases.firstByte=t.response-t.upload,r(e),e.once("end",(()=>{t.end=Date.now(),t.phases.download=t.end-t.response,t.phases.total=t.end-t.start}))})),t};class Oi extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`),this.name="TimeoutError",this.code="ETIMEDOUT",this.event=t}}const Ti=Symbol(),Ci=()=>{};var Ai,Ri;(Si=(e,t,r)=>{if(e[Ti])return;e[Ti]=!0;let s=!1;const o=(e,t,...r)=>{if(s)return Ci;let o;const n=setTimeout((()=>{o=setImmediate(t,e,...r),o.unref&&o.unref()}),e);n.unref&&n.unref();const i=()=>{clearTimeout(n),clearImmediate(o)};return c.push(i),i},{host:n,hostname:i}=r,a=(t,r)=>{e.emit("error",new Oi(t,r)),e.once("error",(()=>{})),e.abort()},c=[],l=()=>{s=!0,c.forEach((e=>e()))};if(e.once("error",l),e.once("response",(e=>{e.once("end",l)})),void 0!==t.request&&o(t.request,a,"request"),void 0!==t.socket){const r=()=>{a(t.socket,"socket")};e.setTimeout(t.socket,r),c.push((()=>e.removeListener("timeout",r)))}void 0===t.lookup||e.socketPath||tt.isIP(i||n)||e.once("socket",(e=>{if(e.connecting){const r=o(t.lookup,a,"lookup");e.once("lookup",r)}})),void 0!==t.connect&&e.once("socket",(r=>{if(r.connecting){const s=()=>o(t.connect,a,"connect");e.socketPath||tt.isIP(i||n)?r.once("connect",s()):r.once("lookup",(e=>{null===e&&r.once("connect",s())}))}})),void 0!==t.secureConnect&&"https:"===r.protocol&&e.once("socket",(e=>{e.connecting&&e.once("connect",(()=>{const r=o(t.secureConnect,a,"secureConnect");e.once("secureConnect",r)}))})),void 0!==t.send&&e.once("socket",(r=>{const s=()=>o(t.send,a,"send");r.connecting?r.once("connect",(()=>{e.once("upload-complete",s())})):e.once("upload-complete",s())})),void 0!==t.response&&e.once("upload-complete",(()=>{const r=o(t.response,a,"response");e.once("response",r)}))}).TimeoutError=Oi,Ri=e=>zn.nodeStream(e)&&zn.function(e.getBoundary),Ai=async e=>{const{body:t}=e;if(e.headers["content-length"])return+e.headers["content-length"];if(!t&&!e.stream)return 0;if(zn.string(t))return Buffer.byteLength(t);if(Ri(t))return nt.promisify(t.getLength.bind(t))();if(t instanceof Qe.ReadStream){const{size:e}=await nt.promisify(Qe.stat)(t.path);return e}return null};var Pi,Ii,ki=ut.PassThrough,$i=Et("exrd1");Ii=e=>{if(-1===["gzip","deflate"].indexOf(e.headers["content-encoding"]))return e;const t=ft.createUnzip(),r=new ki;return $i(e,r),t.on("error",(e=>{"Z_BUF_ERROR"!==e.code?r.emit("error",e):r.end()})),e.pipe(t).pipe(r),r},$i=Et("exrd1");var Li={},Ui=ut.Transform;Li={download(e,t,r){let s=0;return new Ui({transform(e,o,n){s+=e.length;const i=r?s/r:0;1>i&&t.emit("downloadProgress",{percent:i,transferred:s,total:r}),n(null,e)},flush(e){t.emit("downloadProgress",{percent:1,transferred:s,total:r}),e()}})},upload(e,t,r){let s,o=0;t.emit("uploadProgress",{percent:0,transferred:0,total:r}),e.once("error",(()=>{clearInterval(s)})),e.once("response",(()=>{clearInterval(s),t.emit("uploadProgress",{percent:1,transferred:o,total:r})})),e.once("socket",(n=>{const i=()=>{s=setInterval((()=>{const s=o,i=e._header?Buffer.byteLength(e._header):0;o=n.bytesWritten-i,o!==s&&o!==r&&t.emit("uploadProgress",{percent:r?o/r:0,transferred:o,total:r})}),150)};n.connecting?n.once("connect",i):n.writable&&i()}))}},Pi=(e,t,r)=>{const s=+e.headers["content-length"]||null,o=Li.download(e,r,s);$i(e,o);const n=!0===t.decompress&&zn.function(Ii)&&"HEAD"!==t.method?Ii(o):o;!t.decompress&&["gzip","deflate"].includes(e.headers["content-encoding"])&&(t.encoding=null),r.emit("response",n),r.emit("downloadProgress",{percent:0,transferred:0,total:s}),e.pipe(o)};var Ni,ji=In,Di=jn,Mi=Nn,Bi=kn,Fi=Dn;Ni=e=>{const t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href};return zn.string(e.port)&&e.port.length>0&&(t.port=+e.port),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t.path=zn.null(e.search)?e.pathname:`${e.pathname}${e.search}`,t};const Hi=new Set([300,301,302,303,304,305,307,308]),qi=new Set([300,303,307,308]);ti=(e,t)=>{const r=new st,s=[];let o,n,i,a,c=0,l=!1;const u=e.cookieJar?nt.promisify(e.cookieJar.setCookie.bind(e.cookieJar)):null,d=e.cookieJar?nt.promisify(e.cookieJar.getCookieString.bind(e.cookieJar)):null,h=zn.object(e.agent)?e.agent:null,p=async t=>{try{for(const r of e.hooks.beforeError)t=await r(t);r.emit("error",t)}catch(e){r.emit("error",e)}},f=async e=>{const m=i||n;if("http:"!==e.protocol&&"https:"!==e.protocol)throw new Di(e);let y,g;if(y=zn.function(e.request)?{request:e.request}:"https:"===e.protocol?et:Ze,h&&(e.agent=h["https:"===e.protocol?"https":"http"]||e.agent),e.useElectronNet&&process.versions.electron){const e=(void 0)("electron");y=e.net||e.remote.net}if(e.cookieJar){const t=await d(m,{});zn.nonEmptyString(t)&&(e.headers.cookie=t)}const v=async t=>{try{e.useElectronNet&&(t=new Proxy(t,{get(e,t){if("trailers"===t||"rawTrailers"===t)return[];const r=e[t];return zn.function(r)?r.bind(e):r}}));const{statusCode:o}=t;t.url=m,t.requestUrl=n,t.retryCount=c,t.timings=g,t.redirectUrls=s,t.request={gotOptions:e};const a=t.headers["set-cookie"];if(e.cookieJar&&a&&await Promise.all(a.map((e=>u(e,t.url)))),e.followRedirect&&"location"in t.headers&&(qi.has(o)||Hi.has(o)&&("GET"===e.method||"HEAD"===e.method))){if(t.resume(),303===o&&(e.method="GET"),s.length>=10)throw new Mi(o,s,e);const n=""+Buffer.from(t.headers.location,"binary"),a=new ri(n,m);i=""+a,s.push(i);const c={...e,...Ni(a)};for(const t of e.hooks.beforeRedirect)await t(c);return r.emit("redirect",t,c),void await f(c)}Pi(t,e,r)}catch(e){p(e)}},b=s=>{if(l)return s.once("error",(()=>{})),void s.abort();o=s,s.once("error",(t=>{s.aborted||(t=t instanceof Si.TimeoutError?new Fi(t,e):new Bi(t,e),!1===r.retry(t)&&p(t))})),g=Ei(s),Li.upload(s,r,a),e.gotTimeout&&Si(s,e.gotTimeout,e),r.emit("request",s);const n=()=>{s.emit("upload-complete")};try{zn.nodeStream(e.body)?(e.body.once("end",n),e.body.pipe(s),e.body=void 0):e.body?s.end(e.body,n):!t||"POST"!==e.method&&"PUT"!==e.method&&"PATCH"!==e.method?s.end(n):(t.once("end",n),t.pipe(s))}catch(t){p(new Bi(t,e))}};if(e.cache){const t=new si(y.request,e.cache)(e,v);t.once("error",(t=>{p(t instanceof si.RequestError?new Bi(t,e):new ji(t,e))})),t.once("request",b)}else try{b(y.request(e,v))}catch(t){p(new Bi(t,e))}};return r.retry=t=>{let r;try{r=e.retry.retries(++c,t)}catch(e){return void p(e)}return!!r&&(setTimeout((async e=>{try{for(const r of e.hooks.beforeRetry)await r(e,t,c);await f(e)}catch(e){p(e)}}),r,{...e,forceRefresh:!0}),!0)},r.abort=()=>{o?(o.once("error",(()=>{})),o.abort()):l=!0},setImmediate((async()=>{try{const{body:t}=e;zn.buffer(t)?(e.body=bi(t),a=t.length):a=await Ai(e),zn.undefined(e.headers["content-length"])&&zn.undefined(e.headers["transfer-encoding"])&&(0>=a&&"PUT"!==e.method||zn.null(a)||(e.headers["content-length"]=a));for(const t of e.hooks.beforeRequest)await t(e);n=e.href||""+new ri(e.path,dt.format(e)),await f(e)}catch(e){p(e)}})),r};var zi=Un,Gi=$n;Qn=e=>{const t=new ei,r=new ei,s=Zn(t,r),o=new Set;let n=!1;e.retry.retries=()=>0,e.body&&(s.write=()=>{throw Error("Got's stream is not writable when the `body` option is used")});const i=ti(e,t);s._destroy=i.abort,i.on("response",(t=>{const{statusCode:i}=t;if(t.on("error",(t=>{s.emit("error",new Gi(t,e))})),e.throwHttpErrors&&304!==i&&(200>i||i>299))s.emit("error",new zi(t,e),null,t);else{n=!0,t.pipe(r);for(const r of o)if(!r.headersSent){for(const[s,o]of Object.entries(t.headers))(!e.decompress||"content-encoding"!==s)&&r.setHeader(s,o);r.statusCode=t.statusCode}s.emit("response",t)}})),["error","request","redirect","uploadProgress","downloadProgress"].forEach((e=>i.on(e,((...t)=>s.emit(e,...t)))));const a=s.pipe.bind(s),c=s.unpipe.bind(s);return s.pipe=(e,t)=>{if(n)throw Error("Failed to pipe. The response has been emitted already.");const r=a(e,t);return Reflect.has(e,"setHeader")&&o.add(e),r},s.unpipe=e=>(o.delete(e),c(e)),s};var Vi,Wi={},Xi={},Yi=Et("bRBQV"),Ki=ut.PassThrough;Vi=e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const s="buffer"===r;let o=!1;t?o=!(r||s):r=r||"utf8",s&&(r=null);let n=0;const i=[],a=new Ki({objectMode:o});return r&&a.setEncoding(r),a.on("data",(e=>{i.push(e),o?n=i.length:n+=e.length})),a.getBufferedValue=()=>t?i:s?Buffer.concat(i,n):i.join(""),a.getBufferedLength=()=>n,a};class Ji extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(Xi=ue).buffer=(e,t)=>ue(e,Object.assign({},t,{encoding:"buffer"})),Xi.array=(e,t)=>ue(e,Object.assign({},t,{array:!0})),Xi.MaxBufferError=Ji;var Qi,Zi=Un,ea=Ln,ta=$n,ra={},sa=dt.URL;Qi=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"];const oa=(e,...t)=>{for(const r of t)for(const[t,s]of Object.entries(r)){if(zn.undefined(s))continue;const r=e[t];e[t]=zn.urlInstance(r)&&(zn.urlInstance(s)||zn.string(s))?new sa(s,r):zn.plainObject(s)?zn.plainObject(r)?oa({},r,s):oa({},s):zn.array(s)?oa([],s):s}return e},na=(...e)=>{e=e.map((e=>e||{}));const t=oa({},...e),r={};for(const e of Qi)r[e]=[];for(const t of e)if(t.hooks)for(const e of Qi)r[e]=r[e].concat(t.hooks[e]);return t.hooks=r,t};(ra=oa).options=na,ra.instances=(e,t)=>{const r=e.map((e=>e.defaults.handler)),s=e.length-1;return{methods:t,options:na(...e.map((e=>e.defaults.options))),handler(e,t){let o=-1;const n=e=>r[++o](e,o===s?t:n);return n(e)}}};var ia,aa,ca=ra.options,la={},ua=dt.URL,da=dt.URLSearchParams;aa=(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://")},ia=(e,t)=>{if("string"!=typeof e)throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`);const r=aa(e,Object.assign({https:!0},t));return dt.parse(r)};const ha=new Set([413,429,503]),pa=(e,t)=>{if(e.headers=zn.nullOrUndefined(e.headers)?{}:ci(e.headers),e.baseUrl&&!(""+e.baseUrl).endsWith("/")&&(e.baseUrl+="/"),e.stream&&(e.json=!1),zn.nullOrUndefined(e.hooks))e.hooks={};else if(!zn.object(e.hooks))throw new TypeError("Parameter `hooks` must be an object, not "+zn(e.hooks));for(const r of Qi)zn.nullOrUndefined(e.hooks[r])&&(e.hooks[r]=t?[...t.hooks[r]]:[]);zn.number(e.timeout)?e.gotTimeout={request:e.timeout}:zn.object(e.timeout)&&(e.gotTimeout=e.timeout),delete e.timeout;const{retry:r}=e;return e.retry={retries:0,methods:[],statusCodes:[],errorCodes:[]},zn.nonEmptyObject(t)&&!1!==r&&(e.retry={...t.retry}),!1!==r&&(zn.number(r)?e.retry.retries=r:e.retry={...e.retry,...r}),e.gotTimeout&&(e.retry.maxRetryAfter=Math.min(...[e.gotTimeout.request,e.gotTimeout.connection].filter((e=>!zn.nullOrUndefined(e))))),zn.array(e.retry.methods)&&(e.retry.methods=new Set(e.retry.methods.map((e=>e.toUpperCase())))),zn.array(e.retry.statusCodes)&&(e.retry.statusCodes=new Set(e.retry.statusCodes)),zn.array(e.retry.errorCodes)&&(e.retry.errorCodes=new Set(e.retry.errorCodes)),e},fa=(e,t,r)=>{if(zn.plainObject(e)&&(e=(t={...e,...t}).url||{},delete t.url),t=r?ra({},r.options,t?pa(t,r.options):{}):ra({},pa(t)),!zn.string(e)&&!zn.object(e))throw new TypeError("Parameter `url` must be a string or object, not "+zn(e));zn.string(e)?t.baseUrl?((""+e).startsWith("/")&&(e=(""+e).slice(1)),e=Ni(new ua(e,t.baseUrl))):(e=e.replace(/^unix:/,"http://$&"),e=ia(e)):"URL"===zn(e)&&(e=Ni(e)),t=ra({path:""},e,{protocol:e.protocol||"https:"},t);for(const e of t.hooks.init){const r=e(t);if(zn.promise(r))throw new TypeError("The `init` hook must be a synchronous function")}const{baseUrl:s}=t;Object.defineProperty(t,"baseUrl",{set(){throw Error("Failed to set baseUrl. Options are normalized already.")},get(){return s}});const{query:o}=t;if((zn.nonEmptyString(o)||zn.nonEmptyObject(o)||o instanceof da)&&(zn.string(o)||(t.query=""+new da(o)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),"unix"===t.hostname){const e=/(.+?):(.+)/.exec(t.path);if(e){const[,r,s]=e;t={...t,socketPath:r,path:s,host:null}}}const{headers:n}=t;for(const[e,t]of Object.entries(n))zn.nullOrUndefined(t)&&delete n[e];t.json&&zn.undefined(n.accept)&&(n.accept="application/json"),t.decompress&&zn.undefined(n["accept-encoding"])&&(n["accept-encoding"]="gzip, deflate");const{body:i}=t;if(zn.nullOrUndefined(i))t.method=t.method?t.method.toUpperCase():"GET";else{const e=zn.object(i)&&!zn.buffer(i)&&!zn.nodeStream(i);if(!(zn.nodeStream(i)||zn.string(i)||zn.buffer(i)||t.form||t.json))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(t.json&&!e&&!zn.array(i))throw new TypeError("The `body` option must be an Object or Array when the `json` option is used");if(t.form&&!e)throw new TypeError("The `body` option must be an Object when the `form` option is used");Ri(i)?n["content-type"]=n["content-type"]||"multipart/form-data; boundary="+i.getBoundary():t.form?(n["content-type"]=n["content-type"]||"application/x-www-form-urlencoded",t.body=""+new da(i)):t.json&&(n["content-type"]=n["content-type"]||"application/json",t.body=JSON.stringify(i)),t.method=t.method?t.method.toUpperCase():"POST"}if(!zn.function(t.retry.retries)){const{retries:e}=t.retry;t.retry.retries=(r,s)=>{if(r>e)return 0;if(!(s&&t.retry.errorCodes.has(s.code)||t.retry.methods.has(s.method)&&t.retry.statusCodes.has(s.statusCode)))return 0;if(Reflect.has(s,"headers")&&Reflect.has(s.headers,"retry-after")&&ha.has(s.statusCode)){let e=+s.headers["retry-after"];return zn.nan(e)?e=Date.parse(s.headers["retry-after"])-Date.now():e*=1e3,e>t.retry.maxRetryAfter?0:e}return 413===s.statusCode?0:2**(r-1)*1e3+100*Math.random()}}return t};(la=fa).preNormalize=pa,la.reNormalize=e=>fa(dt.format(e),e);var ma=la.reNormalize;const ya=e=>{const t=new st,r=new Fn(((r,s,o)=>{const n=ti(e);o(n.abort),n.on("response",(async o=>{t.emit("response",o);const i=zn.null(e.encoding)?Xi.buffer(o):Xi(o,e);let a;try{a=await i}catch(t){return void s(new ta(t,e))}const c=e.followRedirect?299:399;o.body=a;try{for(const[t,r]of Object.entries(e.hooks.afterResponse))o=await r(o,(r=>((r=ma(ca(e,{...r,retry:0,throwHttpErrors:!1}))).hooks.afterResponse=e.hooks.afterResponse.slice(0,t),ya(r))))}catch(e){return void s(e)}const{statusCode:l}=o;if(e.json&&o.body)try{o.body=JSON.parse(o.body)}catch(t){if(l>=200&&300>l){const r=new ea(t,l,e,a);return Object.defineProperty(r,"response",{value:o}),void s(r)}}if(304===l||l>=200&&c>=l)r(o);else{const t=new Zi(o,e);if(Object.defineProperty(t,"response",{value:o}),!1===n.retry(t)){if(e.throwHttpErrors)return void s(t);r(o)}}})),n.once("error",s),["request","redirect","uploadProgress","downloadProgress"].forEach((e=>n.on(e,((...r)=>t.emit(e,...r)))))}));return r.on=(e,s)=>(t.on(e,s),r),r};var ga;Wi=ya,ga=function e(t){for(const[r,s]of Object.entries(t))(zn.plainObject(s)||zn.array(s))&&e(t[r]);return Object.freeze(t)};const va=e=>e.stream?Qn(e):Wi(e),ba=["get","post","put","patch","head","delete"],wa=e=>{function t(t,r){try{return e.handler(la(t,r,e),va)}catch(e){if(r&&r.stream)throw e;return Promise.reject(e)}}e=ra({},e),la.preNormalize(e.options),e.handler||(e.handler=(e,t)=>t(e)),t.create=wa,t.extend=t=>{let r;return t&&Reflect.has(t,"mutableDefaults")?(r=t.mutableDefaults,delete t.mutableDefaults):r=e.mutableDefaults,wa({options:ra.options(e.options,t),handler:e.handler,mutableDefaults:r})},t.mergeInstances=(...e)=>wa(ra.instances(e)),t.stream=(e,r)=>t(e,{...r,stream:!0});for(const e of ba)t[e]=(r,s)=>t(r,{...s,method:e}),t.stream[e]=(r,s)=>t.stream(r,{...s,method:e});return Object.assign(t,{...Bn,mergeOptions:ra.options}),Object.defineProperty(t,"defaults",{value:e.mutableDefaults?e:ga(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:!0}),t};var Ea=(An=wa({options:{retry:{retries:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]},headers:{"user-agent":`${Rn.name}/${Rn.version} (https://github.com/sindresorhus/got)`},hooks:{beforeRequest:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},decompress:!0,throwHttpErrors:!0,followRedirect:!0,stream:!1,form:!1,json:!1,cache:!1,useElectronNet:!1},mutableDefaults:!1})).get,xa=An.CancelError,_a={},Sa={};const Oa=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=[a-fA-F\\d:])|(?<=[a-fA-F\\d:])(?=\\s|$))":"",Ta="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",Ca=`\n(?:\n(?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:[a-fA-F\\d]{1,4}:){6}(?:${Ta}|:[a-fA-F\\d]{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(?:[a-fA-F\\d]{1,4}:){5}(?::${Ta}|(?::[a-fA-F\\d]{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(?:[a-fA-F\\d]{1,4}:){4}(?:(?::[a-fA-F\\d]{1,4}){0,1}:${Ta}|(?::[a-fA-F\\d]{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(?:[a-fA-F\\d]{1,4}:){3}(?:(?::[a-fA-F\\d]{1,4}){0,2}:${Ta}|(?::[a-fA-F\\d]{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(?:[a-fA-F\\d]{1,4}:){2}(?:(?::[a-fA-F\\d]{1,4}){0,3}:${Ta}|(?::[a-fA-F\\d]{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(?:[a-fA-F\\d]{1,4}:){1}(?:(?::[a-fA-F\\d]{1,4}){0,4}:${Ta}|(?::[a-fA-F\\d]{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(?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:${Ta}|(?::[a-fA-F\\d]{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(),Aa=RegExp(`(?:^${Ta}$)|(?:^${Ca}$)`),Ra=RegExp(`^${Ta}$`),Pa=RegExp(`^${Ca}$`),Ia=e=>e&&e.exact?Aa:RegExp(`(?:${Oa(e)}${Ta}${Oa(e)})|(?:${Oa(e)}${Ca}${Oa(e)})`,"g");Ia.v4=e=>e&&e.exact?Ra:RegExp(`${Oa(e)}${Ta}${Oa(e)}`,"g"),Ia.v6=e=>e&&e.exact?Pa:RegExp(`${Oa(e)}${Ca}${Oa(e)}`,"g"),Sa=Ia;const ka=e=>Sa({exact:!0}).test(e);ka.v4=e=>Sa.v4({exact:!0}).test(e),ka.v6=e=>Sa.v6({exact:!0}).test(e),ka.version=e=>ka(e)?ka.v4(e)?4:6:void 0,_a=ka;const $a={timeout:5e3,onlyHttps:!1},La=[{v4:{servers:["208.67.222.222","208.67.220.220","208.67.222.220","208.67.220.222"],name:"myip.opendns.com",type:"A"},v6:{servers:["2620:0:ccc::2","2620:0:ccd::2"],name:"myip.opendns.com",type:"AAAA"}},{v4:{servers:["216.239.32.10","216.239.34.10","216.239.36.10","216.239.38.10"],name:"o-o.myaddr.l.google.com",type:"TXT",transform(e){return e.replace(/"/g,"")}},v6:{servers:["2001:4860:4802:32::a","2001:4860:4802:34::a","2001:4860:4802:36::a","2001:4860:4802:38::a"],name:"o-o.myaddr.l.google.com",type:"TXT",transform(e){return e.replace(/"/g,"")}}}],Ua={v4:{dnsServers:La.map((({v4:{servers:e,...t}})=>({servers:e,question:t}))),httpsUrls:["https://icanhazip.com/","https://api.ipify.org/"]},v6:{dnsServers:La.map((({v6:{servers:e,...t}})=>({servers:e,question:t}))),httpsUrls:["https://icanhazip.com/","https://api6.ipify.org/"]}},Na=(e,t)=>{const r=Ua[e],s=Wo({retries:0,maxQueries:1,socket:yt.createSocket("v6"===e?"udp6":"udp4"),timeout:t.timeout}),o=Vo(s.query.bind(s)),n=(async()=>{for(const t of r.dnsServers){const{servers:r,question:n}=t;for(const t of r){if(s.destroyed)return;try{const{name:r,type:i,transform:a}=n,c=await o({questions:[{name:r,type:i}]},53,t),{answers:{0:{data:l}}}=c,u=("string"==typeof l?l:""+l).trim(),d=a?a(u):u;if(d&&_a[e](d))return s.destroy(),d}catch(e){}}}throw s.destroy(),Error("Couldn't find your IP")})();return n.cancel=()=>{s.destroy()},n},ja=(e,t)=>{let r;const s=(async()=>{try{const s={family:"v6"===e?6:4,retries:0,timeout:t.timeout},o=[].concat.apply(Ua[e].httpsUrls,t.fallbackUrls||[]);for(const t of o)try{const o=Ea(t,s);r=o.cancel;const n=((await o).body||"").trim();if(n&&_a[e](n))return n}catch(e){if(e instanceof xa)throw e}throw Error("Couldn't find your IP")}catch(e){if(!(e instanceof xa))throw e}})();return s.cancel=function(){return r.apply(this)},s},Da=(e,t)=>{let r;const s=(async()=>{let s;const o=Na(e,t);r=o.cancel;try{s=await o}catch(o){const n=ja(e,t);r=n.cancel,s=await n}return s})();return s.cancel=r,s};Ro=e=>(e={...$a,...e}).onlyHttps?e.onlyHttps?ja("v4",e):Na("v4",e):Da("v4",e),Po=e=>(e={...$a,...e}).onlyHttps?e.onlyHttps?ja("v6",e):Na("v6",e):Da("v6",e);var Ma,Ba,Fa,Ha={},qa={};Ba=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"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 r.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);return 0===t?e:e.replace(r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm,r.indent.repeat(t))};const za=/\s+at.*(?:\(|\s)(.*)\)?/,Ga=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,Va=void 0===Ke.homedir?"":Ke.homedir();Fa=(e,t)=>(t=Object.assign({pretty:!1},t),e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(za);if(null===t||!t[1])return!0;const r=t[1];return!r.includes(".app/Contents/Resources/electron.asar")&&!r.includes(".app/Contents/Resources/default_app.asar")&&!Ga.test(r)})).filter((e=>""!==e.trim())).map((e=>t.pretty?e.replace(za,((e,t)=>e.replace(t,t.replace(Va,"~")))):e)).join("\n"));class Wa extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t=(e=[...e].map((e=>e instanceof Error?e:null!==e&&"object"==typeof e?Object.assign(Error(e.message),e):Error(e)))).map((e=>"string"==typeof e.stack?Fa(e.stack).replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""):e+"")).join("\n");t="\n"+Ba(t,4),super(t),this.name="AggregateError",Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors)yield e}}qa=Wa;var Xa=Et("5WFVJ");class Ya extends Error{}(Ha=(e,t)=>new Xa(((r,s,o)=>{const{count:n,filter:i=(()=>!0)}=t;if(!Number.isFinite(n))return void s(new TypeError("Expected a finite number, got "+typeof t.count));const a=[],c=[];let l=0,u=!1;const d=new Set,h=()=>{for(const t of e)d.has(t)||"function"!=typeof t.cancel||t.cancel()};o(h);for(const t of e)l++,(async()=>{try{const e=await t;if(u)return;if(!i(e))throw new Ya("Value does not satisfy filter");a.push(e)}catch(e){c.push(e)}finally{d.add(t),!u&&(a.length===n&&(r(a),u=!0),n>l-c.length&&(s(new qa(c)),u=!0),u)&&h()}})();n>l&&(s(new RangeError(`Expected input to contain at least ${t.count} items, but contains ${l} items`)),h())}))).AggregateError=qa,Ha.FilterError=Ya,Xa=Et("5WFVJ"),(Ma=(e,t)=>{const r=Ha(e,{...t,count:1});return Xa.fn((async e=>{e((()=>{r.cancel()}));const[t]=await r;return t}))()}).AggregateError=Ha.AggregateError;var Ka,Ja={};Ka=(e,t)=>(t=t||(()=>{}),e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e})))));class Qa extends Error{constructor(e){super(e),this.name="TimeoutError"}}const Za=(e,t,r)=>new Promise(((s,o)=>{if("number"!=typeof t||0>t)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0)return void s(e);const n=setTimeout((()=>{if("function"==typeof r){try{s(r())}catch(e){o(e)}return}const n=r instanceof Error?r:new Qa("string"==typeof r?r:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),o(n)}),t);Ka(e.then(s,o),(()=>{clearTimeout(n)}))}));var ec;let tc;(Ja=Za).default=Za,Ja.TimeoutError=Qa,Io=e=>{if(e={timeout:5e3,ipVersion:4,...e},(t=Object.values(Ke.networkInterfaces()),[].concat(...t)).every((({internal:e})=>e)))return Promise.resolve(!1);var t;if(![4,6].includes(e.ipVersion))throw new TypeError("`ipVersion` must be 4 or 6");const r=4===e.ipVersion?"v4":"v6",s=[],o=Ma([(async()=>{const t=ko[r](e);return s.push(t),await t,!0})(),(async()=>{const t=ko[r]({...e,onlyHttps:!0});return s.push(t),await t,!0})(),(async()=>{const t=(e=>{const t=So("https://captive.apple.com/hotspot-detect.html",{timeout:e.timeout,dnsLookupIpVersion:6===e.ipVersion?"ipv6":"ipv4",headers:{"user-agent":"CaptiveNetworkSupport/1.0 wispr"}}),r=(async()=>{try{const{body:e}=await t;if(!e||!e.includes("Success"))throw Error("Apple check failed")}catch(e){if(!(e instanceof So.CancelError))throw e}})();return r.cancel=t.cancel,r})(e);return s.push(t),await t,!0})()]);return Ja(o,e.timeout).catch((()=>{for(const e of s)e.cancel();return!1}))},ec=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 --timeout 10000 --bail","test-cov":"nyc --dir test/coverage _mocha -- --timeout 10000 --bail && echo Coverage lies in test/coverage/lcov-report/index.html","test-travis":"nyc _mocha --report lcovonly -- --timeout 10000 --bail && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"types":"./index.d.ts","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":"^11.8.5","is-online":"^9.0.1"},"devDependencies":{"@satazor/eslint-config":"^3.2.0","chai":"^4.3.6","coveralls":"^3.1.1","eslint":"^8.21.0","mocha":"^10.0.0","mock-require":"^3.0.3","nock":"^13.2.9","nyc":"^15.1.0","promise-delay":"^2.1.0"},"engines":{"node":">=4.0.0"}}');class rc extends _o{_write(e,t,r){r()}}(xo=(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/${ec.version} (https://github.com/IndigoUnited/is-link-working)`}};return((e,t)=>So.head(e,t).then((()=>!0)))(e,r).catch((()=>((e,t,r)=>new Promise(((s,o)=>{let n,i;try{n=So.stream(e,r)}catch(e){return s(!1)}n.on("request",(e=>{i=e})).on("response",(e=>{e.on("error",(()=>{})),setImmediate((()=>i.abort())),s(!0)})).on("error",((e,r,n)=>{return n&&n.on("error",(()=>{})),setImmediate((()=>i.abort())),e instanceof So.MaxRedirectsError||e instanceof So.HTTPError||e instanceof So.UnsupportedProtocolError?s(!1):e instanceof So.RequestError?s(!!t.checkConnectivity&&(a=e,(tc&&tc.cachedAt>Date.now()-xo.connectivityCacheDuration||(tc=new Promise(((e,t)=>{Io(((r,s)=>{r?(delete tc.promise,t(r)):e(s)}))})),tc.cachedAt=Date.now()),tc).catch((()=>{throw a})).then((e=>{if(!e)throw a;return!1})))):void o(e);var a})).pipe(new rc)})))(e,t,r)))}).connectivityCacheDuration=5e3;var sc=Et("howpO"),oc=(Eo=Et("1YYsi"),Et("fVzwP"));ao=Et("ca0ts"),Ss=Et("ditiY");const nc=/v?(\d\S*)/,ic={llvm:"13.0.0",clangtidy:"13.0.0",clangformat:"13.0.0",ninja:"1.11.0",cmake:"3.23.2",gcovr:"5.1",conan:"1.50.0",meson:"0.63.0",kcov:"40",task:"3.14.0",doxygen:A()?"1.9.3-1":"1.9.4",gcc:"11"},ac={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 cc,lc,uc=!1;Ss=Et("ditiY"),wo=Et("fwsB7");var dc=Et("fB2B7"),hc=(ao=Et("ca0ts"),Ss=Et("ditiY"),xt=Et("04fde"),Ss=Et("ditiY"),xs=Et("gmbrv"),dc=Et("fB2B7"),Eo=Et("1YYsi"),Ss=Et("ditiY"),xs=Et("gmbrv"),Je.resolve(__dirname,"../src/gcc"));const pc={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 fc=Je.resolve(__dirname,"../src/llvm");const mc=(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"]),yc=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"]),gc=new Map,vc={"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"},bc=new Set(["10.0.1"]);let wc=!1;var Ec,xc,_c,Sc={},Oc=Sc&&Sc.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((o,n)=>{function i(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())}))),Tc=Sc&&Sc.__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(Sc,"__esModule",{value:!0});var Cc={},Ac=Cc&&Cc.__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(Cc,"__esModule",{value:!0});const Rc=Ac(Ke);var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Cc.issueCommand=Ae,Cc.issue=(e,t="")=>{Ae(e,{},t)};class Ic{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const s in this.properties)if(this.properties.hasOwnProperty(s)){const o=this.properties[s];o&&(r?r=!1:e+=",",e+=`${s}=${t=o,Pc.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Pc.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var kc={},$c=kc&&kc.__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(kc,"__esModule",{value:!0});const Lc=$c(Qe),Uc=$c(Ke);kc.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Lc.existsSync(r))throw Error("Missing file at path: "+r);Lc.appendFileSync(r,`${Pc.toCommandValue(t)}${Uc.EOL}`,{encoding:"utf8"})};const Nc=Tc(Ke),jc=Tc(Je);var Dc,Mc;(Mc=Dc=Sc.ExitCode||(Sc.ExitCode={}))[Mc.Success=0]="Success",Mc[Mc.Failure=1]="Failure",Sc.exportVariable=(e,t)=>{const r=Pc.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";kc.issueCommand("ENV",`${e}<<${t}${Nc.EOL}${r}${Nc.EOL}${t}`)}else Cc.issueCommand("set-env",{name:e},r)},Sc.setSecret=e=>{Cc.issueCommand("add-mask",{},e)},Sc.addPath=e=>{process.env.GITHUB_PATH?kc.issueCommand("PATH",e):Cc.issueCommand("add-path",{},e),process.env.PATH=`${e}${jc.delimiter}${process.env.PATH}`},Sc.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()},Sc.setOutput=(e,t)=>{Cc.issueCommand("set-output",{name:e},t)},Sc.setCommandEcho=e=>{Cc.issue("echo",e?"on":"off")},Sc.setFailed=e=>{process.exitCode=Dc.Failure,Re(e)},Sc.isDebug=()=>"1"===process.env.RUNNER_DEBUG,Sc.debug=e=>{Cc.issueCommand("debug",{},e)},Sc.error=Re,Sc.warning=e=>{Cc.issue("warning",e instanceof Error?""+e:e)},Sc.info=e=>{process.stdout.write(e+Nc.EOL)},Sc.startGroup=Pe,Sc.endGroup=Ie,Sc.group=function(e,t){return Oc(this,void 0,void 0,(function*(){let r;Pe(e);try{r=yield t()}finally{Ie()}return r}))},Sc.saveState=(e,t)=>{Cc.issueCommand("save-state",{name:e},t)},Sc.getState=e=>process.env["STATE_"+e]||"";const Bc=gt.env["ProgramFiles(x86)"],Fc=[gt.env["ProgramFiles(x86)"],gt.env.ProgramFiles],Hc=["Enterprise","Professional","Community"],qc=["2022","2019","2017"],zc={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};Ec=ke;const Gc=Bc+"\\Microsoft Visual Studio\\Installer";xc=Le,_c=(e,t,r,s,o,n)=>{if("win32"!=gt.platform)return void Sc.info("This is not a Windows virtual environment, bye!");gt.env.PATH+=Je.delimiter+Gc;let i={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in i&&(e=i[e.toLowerCase()]);var a=[e];"true"==s&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==o&&a.push("-vcvars_spectre_libs=spectre");const c=`"${Le(n)}" ${a.join(" ")}`;Sc.debug("vcvars command-line: "+c);const l=(""+it.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),d=l[1].split("\r\n"),h=l[2].split("\r\n"),p=d.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(p.length>0)throw Error("invalid parameters\r\n"+p.join("\r\n"));let f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}Sc.startGroup("Environment variables");for(let e of h){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(Sc.info("Setting "+t),Ue(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),Sc.exportVariable(t,r))}Sc.endGroup(),Sc.info("Configured Developer Command Prompt")},Ss=Et("ditiY"),xs=Et("gmbrv"),Ss=Et("ditiY");var Vc,Wc=Je.resolve(__dirname,"../src/msvc"),Xc=(xs=Et("gmbrv"),{});Xc=Et("cReTf"),Vc={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 Yc=Et("5FRs7"),Kc={};Et("j5MHF").addLocale("en",(e=>{var t=Math.floor(Math.abs(e)),r=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r?"one":"other"}));var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.getUbuntuVersion=void 0,Jc.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,s)=>{it.execFile(t,r,{encoding:"utf8",shell:!1},((o,n,i)=>{if(o)return"errno"in o&&"ENOENT"===o.code?void e(null):void s(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${o} (stderr=${i})`));e(n)}))})));var t,r;if(null===e)return[];const s=/^Distributor ID:\s*(.+)$/,o=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,n=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let i=null,a=null,c=!1;for(const t of e.split("\n")){const e=t.match(s);if(null!==e){if("Ubuntu"!==e[1])return[];c=!0}const r=t.match(o);r&&(i=r);const l=t.match(n);if(l&&(a=l),c&&i&&a)break}if(!c)return[];for(const e of[i,a])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},oc=Et("fVzwP"),Ss=Et("ditiY"),Ss=Et("ditiY");let Qc,Zc=!1;Ss=Et("ditiY");const el={async nala(e,r,s){if(!I())return;if("string"==typeof Qc)return{binDir:Qc};const o=t(_t).sync("nala",{nothrow:!0});if(null!==o)return Qc=(0,Je.dirname)(o),{binDir:Qc};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 Qc="/usr/bin",{binDir:Qc}},cmake:Q,ninja:Me,python:Z,async vcpkg(e,r,s){return Zc&&null!==t(_t).sync("vcpkg",{nothrow:!0})?{binDir:(0,Je.dirname)(t(_t).sync("vcpkg"))}:("linux"===process.platform&&(A()?(S("curl"),S("zip"),S("unzip"),S("tar"),S("git"),S("pkg-config")):R()?(P("curl"),P("zip"),P("unzip"),P("tar"),P("git"),P("pkg-config")):I()&&(await v("curl"),await v("zip"),await v("unzip"),await v("tar"),await v("git"),await v("pkg-config"))),(0,Qe.existsSync)((0,Je.join)(r,$("bootstrap-vcpkg")))?(0,Ss.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t($t).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,Je.dirname)(r),stdio:"inherit"}),t($t).sync($((o="bootstrap-vcpkg","win32"===process.platform?o:"./"+o)),{cwd:r,shell:!0,stdio:"inherit"}),U(r),await f(r),Zc=!0,{binDir:r});var o},async bazel(e,t,r){switch(process.platform){case"win32":return C("bazelisk",e);case"darwin":return O("bazelisk",e);case"linux":if(A())throw Error("installing bazel on Arch linux is not supported yet");if(R())return P("dnf-plugins-core",void 0),u("dnf",["copr","enable","vbatts/bazel"]),P("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 fe("setuptools",""),fe("conan",e)},meson(e,t,r){return fe("meson",e)},gcovr(e,t,r){return fe("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await C("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:Se,gcc:be,choco:T,brew:s,ccache(e,t,r){switch(process.platform){case"win32":return C("ccache",e);case"darwin":return O("ccache",e);case"linux":if(A())return S("ccache",e);if(R())return P("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 C("doxygen.install",e);const t={binDir:await(async()=>{if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if((0,Qe.existsSync)((0,Je.join)(e,"doxygen.exe")))return await f(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await me(he("graphviz",void 0)),t}case"darwin":{const e=O("doxygen",void 0);return await me(he("graphviz",void 0)),e}case"linux":{let s;if(""===e||A()||R())if(A())s=S("doxygen",e);else{if(R())return P("doxygen",e);if(!I())throw Error("Unsupported linux distributions");s=await v("doxygen",e)}else{if(!I())throw Error("Unsupported linux distributions");try{s=await Y("doxygen",e,ye,t,r),await v("libclang-cpp9")}catch(e){(0,Ss.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),s=await v("doxygen",void 0)}}return await me(he("graphviz",void 0)),s}default:throw Error("Unsupported platform")}},graphviz:me,async cppcheck(e,t,r){switch(process.platform){case"win32":return await C("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return O("cppcheck",e);case"linux":if(A())return S("cppcheck",e);if(R())return P("ccache",e);if(I())return v("cppcheck",e);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},clangtidy:Te,clangformat:Te,msvc:je,vcvarsall:Ne,async kcov(e,t,r){if("linux"!==process.platform)return void(0,Ss.info)("Kcov is not supported on non-linux");const s=e.split("-");let o=(e=>e.match(/^v/)?e:"v"+e)(s[0]);const n=s[1],i=(e=>parseInt(e.replace(/^v/,""),10))(o);let a;return 38===i&&(o="v38"),"binary"!==n||39>i?(a=await Y("kcov",o,qe,t,r),a):(a=await Y("kcov",o,He,t,r),A()?S("binutils"):R()?P("binutils"):I()&&await v("libbinutils"),a)},async make(e,t,r){switch(process.platform){case"win32":return C("make",e);case"darwin":return O("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(A())return S("make",e);if(R())return P("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:L},tl=["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"],rl=["compiler","architecture",...tl];Ge(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,Ss.error)("main() panicked!"),(0,Ss.error)(e),process.exitCode=1}));
//# sourceMappingURL=setup_cpp.js.map