#!/usr/bin/env node function _classPrivateMethodInitSpec(e,a){_checkPrivateRedeclaration(e,a),a.add(e);}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a);}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object");}function _classPrivateFieldGet(s,a){return s.get(_assertClassBrand(s,a));}function _classPrivateFieldSet(s,a,r){return s.set(_assertClassBrand(s,a),r),r;}function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object");}let e,A,t,r,n,o,i,s;function a(e,A,t,r){Object.defineProperty(e,A,{get:t,set:r,enumerable:!0,configurable:!0});}function l(e){return e&&e.__esModule?e.default:e;}function c(e,A,t){if("function"==typeof A&&(t=A,A={}),!t){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(t,r){c(e,A||{},function(e,A){e?r(e):t(A);});});}tB(e,A||{},function(e,r){e&&("EACCES"===e.code||A&&A.ignoreErrors)&&(e=null,r=!1),t(e,r);});}function g(e,A){let t;let r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd);}catch(e){}try{t=tI.sync(e.command,{path:r[tf({env:r})],pathExt:A?rU.delimiter:void 0});}catch(e){}finally{i&&process.chdir(n);}return t&&(t=rU.resolve(o?e.options.cwd:"",t)),t;}function E(e,A){return Object.assign(Error(`${A} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${A} ${e.command}`,path:e.command,spawnargs:e.args});}function u(e,A){return nF&&1===e&&!A.file?E(A.original,"spawn"):null;}function h(e,A,t){let r=tQ(e,A,t),n=r8.spawn(r.command,r.args,r.options);return tR.hookChildProcess(n,r),n;}function Q(e){let A="string"==typeof e?"\n":"\n".charCodeAt(),t="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===A&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e;}function C(e={}){let{env:A=process.env,platform:t=process.platform}=e;return"win32"!==t?"PATH":Object.keys(A).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function I(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function d(e){return I(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function B(e,A){if(!e)throw Error("Expected a stream");let{maxBuffer:t}=A={maxBuffer:1/0,...A},r=tL(A);return await new Promise((A,n)=>{let o=e=>{e&&r.getBufferedLength()<=tN.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),n(e);};(async()=>{try{await ow(e,r),A();}catch(e){o(e);}})(),r.on("data",()=>{r.getBufferedLength()>t&&o(new ob());});}),r.getBufferedValue();}function f(e,A,t){let r;let n=oK(e,A,t),o=oG(e,A),i=oJ(e,A);oz(i,n.options),oB(n.options);try{r=l(r6).spawn(n.file,n.args,n.options);}catch(A){let e=new(l(r6).ChildProcess)();return oM(e,Promise.reject(n4({error:A,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=o_(r),a=od(r,n.options,s),c=of(r,n.options,a),g={isCanceled:!1};r.kill=og.bind(null,r.kill.bind(r)),r.cancel=oC.bind(null,r,g);let E=tD(async()=>{let[{error:e,exitCode:A,signal:t,timedOut:s},a,l,E]=await oU(r,n.options,c),u=o0(n.options,a),h=o0(n.options,l),Q=o0(n.options,E);if(e||0!==A||null!==t){let a=n4({error:e,exitCode:A,signal:t,stdout:u,stderr:h,all:Q,command:o,escapedCommand:i,parsed:n,timedOut:s,isCanceled:g.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:r.killed});if(!n.options.reject)return a;throw a;}return{command:o,escapedCommand:i,exitCode:0,stdout:u,stderr:h,all:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return ok(r,n.options),r.all=oN(r,n.options),om(r),oM(r,E),r;}function p(e,A,t){let r;let n=oK(e,A,t),o=oG(e,A),i=oJ(e,A);oz(i,n.options);let s=oS(n.options);try{r=l(r6).spawnSync(n.file,n.args,{...n.options,input:s});}catch(e){throw n4({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=o0(n.options,r.stdout,r.error),c=o0(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let e=n4({stdout:a,stderr:c,error:r.error,signal:r.signal,exitCode:r.status,command:o,escapedCommand:i,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return e;throw e;}return{command:o,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function y(){var e,A;return((null===(e=(A=process).getuid)||void 0===e?void 0:e.call(A))===0||!!process.env.CI)&&null!==l(ti).sync("sudo",{nothrow:!0});}function m(e,A=[],t=o4){return y()?function(e,A){let[t,...r]=oH(e);return p(t,r,A);}(b(e,A),t):p(e,R(A),t);}function w(e,A=[],t=o4){return y()?function(e,A){let[t,...r]=oH(e);return f(t,r,A);}(b(e,A),t):f(e,R(A),t);}function b(e,A){return"sudo "+R([e,...A]).join(" ");}function R(e){return e.map(e=>`'${e}'`);}async function D(e){if(("linux"===process.platform||"darwin"===process.platform)&&y()&&void 0!==process.env.SUDO_USER){let A=l(rT).statSync(e).isDirectory();await w("chown",[...(A?["-R"]:[]),process.env.SUDO_USER,e],o4);}}function S(e){let A=function(){if(y()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,rU.join)("/Users/",process.env.SUDO_USER):(0,rU.join)("/home/",process.env.SUDO_USER);{let e=(0,rL.homedir)();if(""===e)return;return e;}}();return void 0===A?e:e.replace(o8,A);}function v(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});}function k(e,A){function t(t){return function(a){return function(t){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,t[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&t[0]?n.return:t[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,t[1])).done)return o;switch(n=0,o&&(t=[2&t[0],o.value]),t[0]){case 0:case 1:o=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,n=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===t[0]||2===t[0])){s=0;continue;}if(3===t[0]&&(!o||t[1]>o[0]&&t[1]"PATH"===e.toUpperCase())||"Path";}function M(e,A,t){let r;let n=iP(e,A,t),o=iL(e,A),i=iU(e,A);iJ(i,n.options),iE(n.options);try{r=l(r6).spawn(n.file,n.args,n.options);}catch(A){let e=new(l(r6).ChildProcess)();return iv(e,Promise.reject(o7({error:A,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=ik(r),a=ig(r,n.options,s),c=iu(r,n.options,a),g={isCanceled:!1};r.kill=ir.bind(null,r.kill.bind(r)),r.cancel=il.bind(null,r,g);let E=tD(async()=>{let[{error:e,exitCode:A,signal:t,timedOut:s},a,l,E]=await iR(r,n.options,c),u=iV(n.options,a),h=iV(n.options,l),Q=iV(n.options,E);if(e||0!==A||null!==t){let a=o7({error:e,exitCode:A,signal:t,stdout:u,stderr:h,all:Q,command:o,escapedCommand:i,parsed:n,timedOut:s,isCanceled:g.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:r.killed});if(!n.options.reject)return a;throw a;}return{command:o,escapedCommand:i,exitCode:0,stdout:u,stderr:h,all:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return iy(r,n.options),r.all=im(r,n.options),iC(r),iv(r,E),r;}function _(A,t=["-NoProfile","-NoLogo","-NonInteractive"],r={stdio:"inherit"}){return M(function(){if(void 0===e){let A=l(ti).sync("pwsh",{nothrow:!0});null!==A&&(e=A);let t=l(ti).sync("powershell",{nothrow:!0});null!==t&&(e=t);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...t,"-c",A],r);}async function O(e,A,t=ij){let r={...ij,...t},n=function(e,A=!1){let t=A?l(t9)(e):e;return l(t3)(t,'"',"\\");}(null!=A?A:"",r.shouldEscapeSpace);try{if(te.GITHUB_ACTIONS)try{if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,t2.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,t2.exportVariable)(e,n);}catch(A){(0,tA.error)(A),await G(e,n,r);}else await G(e,n,r);}catch(A){(0,tA.error)(A),(0,t2.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function Y(e){if(!function(e){if(i$.some(A=>A.test(e))){var A,t;return(null!==(t=null===(A=process.env.PATH)||void 0===A?void 0:A.split(rU.delimiter))&&void 0!==t?t:[]).includes(e);}return!1;}(e)){process.env.PATH=`${e}${rU.delimiter}${process.env.PATH}`;try{if(te.GITHUB_ACTIONS)try{(0,t2.addPath)(e);}catch(A){(0,tA.error)(A),await J(e);}else await J(e);}catch(A){(0,tA.error)(A),(0,t2.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,A,t){let r=null!=A?A:"";switch(process.platform){case"win32":if(t.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,t2.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await _(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),(0,t2.info)(`${e}='${r}' was set in the environment.`);return;case"linux":case"darwin":await H(),t.shouldAddOnlyIfNotDefined?(await(0,ta.appendFile)(iX,` if [ -z "\${${e}}" ]; then export ${e}="${r}"; fi `),(0,t2.info)(`if not defined ${e} then ${e}="${r}" was added to "${iX}`)):(await(0,ta.appendFile)(iX,` export ${e}="${r}" `),(0,t2.info)(`${e}="${r}" was added to "${iX}`));return;}process.env[e]=r;}async function J(e){switch(process.platform){case"win32":await _(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,t2.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),await(0,ta.appendFile)(iX,` export PATH="${e}:$PATH" `),(0,t2.info)(`"${e}" was added to "${iX}"`);return;default:return;}}async function H(){if(iz)return;let e=` # source .cpprc if SOURCE_CPPRC is not set to 0 if [[ "$SOURCE_CPPRC" != 0 && -f "${iX}" ]]; then source "${iX}"; fi `;try{await Promise.all([P(),q(e),V(e)]);}catch(A){(0,tA.warning)(`Failed to add ${e} to .profile or .bashrc. You should add it manually: ${A}`);}iz=!0;}async function P(){let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,t8.pathExists)(iX))&&!(await(0,ta.readFile)(iX,"utf8")).includes(e)&&(await(0,ta.appendFile)(iX,` ${e} `),(0,t2.info)(`Added ${e} to ${iX}`));}async function V(e){let A=S("~/.bashrc");(await(0,t8.pathExists)(A))&&!(await(0,ta.readFile)(A,"utf-8")).includes(e)&&(await(0,ta.appendFile)(A,e),(0,t2.info)(`${e} was added to ${A}`));}async function q(e){let A=S("~/.profile");(await(0,t8.pathExists)(A))&&!(await(0,ta.readFile)(A,"utf-8")).includes(e)&&(await(0,ta.appendFile)(A,e),(0,t2.info)(`${e} was added to ${A}`));}async function W(){if(await(0,t8.pathExists)(iX)){let e=[...new Set((await(0,ta.readFile)(iX,"utf-8")).split("\n").reverse())].reverse();await(0,ta.writeFile)(iX,e.join("\n")),await D(iX);}}async function j(e,A=!1){let t;let r=z()?"nala":"apt-get";for(let{name:A,version:t}of e)(0,tA.info)(`Installing ${A} ${null!=t?t:""} via ${r}`);process.env.DEBIAN_FRONTEND="noninteractive",(!iZ||A)&&(Z(r),iZ=!0),iK||(await K(r),iK=!0);let n=[...new Set(e.flatMap(e=>{var A;return null!==(A=e.repositories)&&void 0!==A?A:[];}))];if(0!==n.length){for(let e of n)m("add-apt-repository",["-y",e]);Z(r);}let o=await Promise.all(e.map(e=>X(e.name,e.version)));try{m(r,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let A=e.stderr;i0.some(e=>A.includes(e))&&((0,tA.warning)(`Failed to install packages ${o}. Retrying...`),m(r,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function $(e,A){if(void 0!==A&&""!==A){let{stdout:t}=await f("apt-cache",["search","--names-only",`^${(0,t4.default)(e)}-${(0,t4.default)(A)}$`]);if(""!==t.trim())return 0;try{let{stdout:t}=await f("apt-cache",["show",`${e}=${A}`]);if(""===t.trim())return 1;}catch{}}try{let{stdout:A}=await f("apt-cache",["show",e]);if(""!==A.trim())return 2;}catch{}return 3;}async function X(e,A){switch(await $(e,A)){case 0:return`${e}-${A}`;case 1:return`${e}=${A}`;case 2:return e;default:throw Error(`Could not find package ${e} ${null!=A?A:""}`);}}function z(){return null!==l(ti).sync("nala",{nothrow:!0});}function Z(e){m(e,"nala"!==e?["update","-y"]:["update"]);}async function K(e){m(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let A=[eA(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),eA(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&A.push(O("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),O("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(A);}function ee(){m("gpg",["-k"]);}async function eA(e,A,t="keyserver.ubuntu.com"){try{let r="/etc/apt/trusted.gpg.d/"+A;return(await(0,t8.pathExists)(r))||(ee(),await Promise.all(e.map(async e=>{await w("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--keyserver",t,"--recv-keys",e]),await w("chmod",["644",r]);}))),r;}catch(e){(0,tA.warning)(`Failed to add apt key via server ${t}: ${e}`);return;}}async function et(e,A){let t="/etc/apt/trusted.gpg.d/"+e;return(await(0,t8.pathExists)(t))||(ee(),await j([{name:"curl"},{name:"ca-certificates"}],void 0),await f("curl",["-s",A,"-o","/tmp/"+e]),m("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+t,"--import","/tmp/"+e]),m("chmod",["644",t])),t;}async function er(e,A,t=40){te.GITHUB_ACTIONS?await w("update-alternatives",["--install","/usr/bin/"+e,e,A,t.toString()]):(await H(),await(0,ta.appendFile)(iX,` if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${A} ${t}; fi `));}async function en(e){try{let{stdout:A}=await f("dpkg",["-l",e]);if("string"!=typeof A)return!1;return A.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function eo(e,t,r){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof A)return{binDir:A};let n=l(ti).sync("brew",{nothrow:!0});if(null!==n)return{binDir:A=(0,t6.dirname)(n)};let o=l(rU).join((0,rL.tmpdir)(),"setup-cpp","brew");await(0,t7.mkdirP)(o),p("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let i=(0,rU.join)(o,"install.sh");return"linux"===process.platform&&(await(0,ta.readFile)(i,"utf-8")).replace("#!/bin/bash",""),p("/bin/bash",[i],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),A=ei(),await Y(A),{binDir:A};}function ei(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function es(e,A,t=[]){(0,t2.info)(`Installing ${e} ${null!=A?A:""} via brew`),i1&&null!==l(ti).sync("brew",{nothrow:!0})||(await eo("","",process.arch),i1=!0);let r=ei();return p((0,t6.join)(r,"brew"),["install",void 0!==A&&""!==A?`${e}@${A}`:e,...t],{stdio:"inherit"}),{binDir:r};}async function ea(e,A,r){var n;if("win32"!==process.platform)return;if("string"==typeof t)return{binDir:t};let o=l(ti).sync("choco",{nothrow:!0});if(null!==o)return{binDir:t=(0,t6.dirname)(o)};let i="powershell.exe",s=l(ti).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(i=s),p(i,["-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"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await Y(a);let c=l(ti).sync("choco",{nothrow:!0});if(t=null!==c?(0,t6.dirname)(c):`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`,await(0,t8.pathExists)(t))return{binDir:t};}async function el(e,A,t=[]){var r;(0,tA.info)(`Installing ${e} ${null!=A?A:""} via chocolatey`),i2&&null!==l(ti).sync("choco",{nothrow:!0})||(await ea("","",process.arch),i2=!0);let n=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=n,void 0!==A&&""!==A)p("choco",["install","-y",e,"--version="+A,...t],{env:o,extendEnv:!1,stdio:"inherit"});else try{p("choco",["install","-y",e,...t],{env:o,extendEnv:!1,stdio:"inherit"});}catch(A){if(A.message.includes("exit code 3010"))(0,tA.info)(`${e} might require a reboot for the completion of the installation.`);else throw A;}let i=`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin`;return await Y(i),{binDir:i};}async function ec(e){for(let{name:A,version:t}of e)(0,tA.info)(`Installing ${A} ${null!=t?t:""} via dnf`);return m("dnf",["-y","install",...(await Promise.all(e.map(e=>eg(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function eg(e,A){if(void 0!==A&&""!==A){let{stdout:t}=await f("dnf",["search","-q",`${e}-${A}`]);if(""!==t.trim())return`${e}-${A}`;{let{stdout:t}=await f("dnf",["search","-q",`${e}${A}`]);if(""!==t.trim())return`${e}${A}`;(0,tA.warning)(`Failed to install ${e} ${A} via dnf, trying without version`);}}return e;}async function eE(e,A,t){switch(process.platform){case"win32":return el("bazelisk",e);case"darwin":return es("bazelisk",e);case"linux":if(U())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await ec([{name:"dnf-plugins-core"}]),m("dnf",["copr","enable","vbatts/bazel"]),ec([{name:"bazel4"}]);if(T()){let A=await et("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return m("bash",["-c",`echo "deb [arch=amd64 signed-by=${A}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),j([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eu(e,A,t){(0,tA.info)(`Installing ${e} ${null!=A?A:""} via pacman`);let r="pacman";if("yay"===t&&null===l(ti).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);i4||"yay"===t||(m(r,["-Sy","--noconfirm"]),i4=!0),i8||"yay"===t||(m(r,["-S","--noconfirm","base-devel"]),i8=!0);let n=e=>"yay"===t?p(t,["-S","--noconfirm",e]):m(null!=t?t:r,["-S","--noconfirm",e]);if(void 0!==A&&""!==A){if((await eh(r,e)).includes(A))try{n(`${e}=${A}`);}catch{n(`${e}${A}`);}else(0,tA.info)(`Failed to install ${e} ${A} via pacman, trying without version`),n(e);}else n(e);return{binDir:"/usr/bin/"};}async function eh(e,A){let t=[];try{let{stdout:r}=await f(e,["-Si",A]);for(let e of r.matchAll(i9))t.push(e[1]);}catch(e){(0,tA.warning)(`Failed to get available versions for ${A}: ${e}`);}return t;}function eQ(e,A){let t=[];A=A||se.arch();let r=sA.join(ep(),e);if(i6.existsSync(r)){for(let e of i6.readdirSync(r))if(eB(e)){let n=sA.join(r,e,A||"");i6.existsSync(n)&&i6.existsSync(`${n}.complete`)&&t.push(e);}}return t;}function eC(e){return ro(this,void 0,void 0,function*(){return e||(e=sA.join(ey(),si.default())),yield i5.mkdirP(e),e;});}function eI(e,A,t){return ro(this,void 0,void 0,function*(){let r=sA.join(ep(),e,sr.clean(A)||A,t||"");i3.debug("destination "+r);let n=`${r}.complete`;return yield i5.rmRF(r),yield i5.rmRF(n),yield i5.mkdirP(r),r;});}function ed(e,A,t){let r=sA.join(ep(),e,sr.clean(A)||A,t||""),n=`${r}.complete`;i6.writeFileSync(n,""),i3.debug("finished caching tool");}function eB(e){let A=sr.clean(e)||"";i3.debug("isExplicit: "+A);let t=null!=sr.valid(A);return i3.debug("explicit? "+t),t;}function ef(e,A){let t="";i3.debug(`evaluating ${e.length} versions`),e=e.sort((e,A)=>sr.gt(e,A)?1:-1);for(let r=e.length-1;r>=0;r--){let n=e[r];if(sr.satisfies(n,A)){t=n;break;}}return t?i3.debug("matched: "+t):i3.debug("match not found"),t;}function ep(){let e=process.env.RUNNER_TOOL_CACHE||"";return rJ.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function ey(){let e=process.env.RUNNER_TEMP||"";return rJ.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function em(e,A){let t=nr[e];return void 0!==t?t:A;}function ew(e,A,t){switch(process.platform){case"win32":return el("7zip",e);case"darwin":return es("p7zip",e);case"linux":if(U())return eu("p7zip",e);if(L())return ec([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(T())return j([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eb(e,A){return await f(await eR(),["x",e,"-o"+A,"-y"],{stdio:"inherit"}),await D(A),A;}async function eR(){return void 0===r&&(null===l(ti).sync("7z",{nothrow:!0})&&(await ew("","",process.arch)),r="7z"),r;}function eD(e,A){return eb(e,A);}function eS(e,A){return eb(e,A);}async function ev(e,A,t=["--strip-components=0"]){try{await(0,t7.mkdirP)(A);}catch{}try{await f("tar",["xf",e,"-C",A,...t],{stdio:"inherit"});}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,tA.warning)(`Failed to extract symlink ${e} to ${A}. Ignoring this symlink.`);}return await D(A),A;}function ek(e,A){if(!e||!A)throw Error("retry-as-promised must be passed a callback and a options set");let t={$current:"$current"in(A="number"==typeof A?{max:A}:A)?A.$current:1,max:A.max,timeout:A.timeout||void 0,match:A.match?Array.isArray(A.match)?A.match:[A.match]:[],backoffBase:void 0===A.backoffBase?100:A.backoffBase,backoffExponent:A.backoffExponent||1.1,report:A.report,name:A.name||e.name||"unknown"};return t.match&&!Array.isArray(t.match)&&(t.match=[t.match]),t.report&&t.report("Trying "+t.name+" #"+t.$current+" at "+new Date().toLocaleTimeString(),t),new Promise(function(A,r){let n,o,i;t.timeout&&(n=setTimeout(function(){o&&clearTimeout(o),r(new sg(t.name+" timed out",i));},t.timeout)),Promise.resolve(e({current:t.$current})).then(A).then(function(){n&&clearTimeout(n),o&&clearTimeout(o);}).catch(function(s){n&&clearTimeout(n),o&&clearTimeout(o),i=s,t.report&&t.report(s&&s.toString()||s,t,s);var a=t.$current(0,re.downloadTool)(s),{name:s,max:4,backoffBase:2e3,report:e=>(0,tA.info)(e)});sE||((0,tA.info)("Installing extraction dependencies"),"linux"===process.platform&&(U()?await Promise.all([eu("unzip"),eu("tar"),eu("xz")]):L()?await ec([{name:"unzip"},{name:"tar"},{name:"xz"}]):T()&&(await j([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),sE=!0),(0,tA.info)(`Extracting ${t} to ${r}`),await(null==E?void 0:E(t,r));}catch(t){throw Error(`Failed to download ${e} ${A} ${n} from ${s}: ${t}`);}return(0,tA.info)(`Add ${h} to PATH`),await Y(h),te.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,re.cacheDir)(r,e,A)),{installDir:u,binDir:h};}function eF(e,A,t){var r;let n=null!==(r=l(ru)(e))&&void 0!==r?r:e;switch(A){case"win32":{let A;let r=l(rh)(n,"v3.19.6");A=["ia32","x86","i386","x32"].includes(t)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${A}`;return{binRelativeDir:"bin/",binFileName:(0,t6.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eS,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let A=l(rh)(n,"v3.19.1"),t=`cmake-${e}-${A?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,t6.addExeExt)("cmake"),extractedFolderName:t,extractFunction:re.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`};}case"linux":{let A;let r=l(rh)(n,"v3.19.8");A=["aarch64"].includes(t)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${A}`;return{binRelativeDir:"bin/",binFileName:(0,t6.addExeExt)("cmake"),extractedFolderName:o,extractFunction:re.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${A}'`);}}function eL(e,A,t){return eN("cmake",e,eF,A,t);}function eU(e){var A=e.length;return A?1===A?[e[0]]:2===A?[e[0],e[1]]:3===A?[e[0],e[1],e[2]]:rI.call(e,0):[];}function eT(e,A){return e===A||e!=e&&A!=A;}function ex(e,A){var t={};for(var r in e)t[r]=e[r];for(var r in A)t[r]=A[r];return t;}function eM(e,A){if(void 0===A&&(A={}),"function"==typeof e&&e.isMemoized)return eM(e.fn,ex(e.options,A));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var t=A.isEqual,r=A.isMatchingKey,n=A.isPromise,o=void 0!==n&&n,i=A.maxSize,s=A.onCacheAdd,a=A.onCacheChange,l=A.onCacheHit,c=A.transformKey,g=ex({isEqual:void 0===t?eT:t,isMatchingKey:r,isPromise:o,maxSize:void 0===i?1:i,onCacheAdd:s,onCacheChange:a,onCacheHit:l,transformKey:c},function(e){var A={};for(var t in e)rC[t]||(A[t]=e[t]);return A;}(A)),E=new rd(g),u=E.keys,h=E.values,Q=E.canTransformKey,C=E.shouldCloneArguments,I=E.shouldUpdateOnAdd,d=E.shouldUpdateOnChange,B=E.shouldUpdateOnHit,f=function(){var A=C?eU(arguments):arguments;Q&&(A=c(A));var t=u.length?E.getKeyIndex(A):-1;if(-1!==t)B&&l(E,g,f),t&&(E.orderByLru(u[t],h[t],t),d&&a(E,g,f));else{var r=e.apply(this,arguments),n=C?A:eU(arguments);E.orderByLru(n,r,u.length),o&&E.updateAsyncCache(f),I&&s(E,g,f),d&&a(E,g,f);}return h[0];};return f.cache=E,f.fn=e,f.isMemoized=!0,f.options=g,f;}function e_(e,A){return new Promise(t=>{try{let r=(0,r_.request)(e,{method:A},e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});r.on("error",e=>{t(!1);}),r.end();}catch{t(!1);}});}function eO(e,A){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(A)).sort((e,A)=>{try{return l(rp)(e,A);}catch(t){return e.localeCompare(A);}}).reverse();}async function eY(e,A,t,r){if("linux"===A&&t.includes("ubuntu")){let e=await r(A,t);if(null!==e&&(await rf(e)))return[t,e];}if(!e.has(t))throw Error(`Unsupported target! (platform='${A}', version='${t}'). Try one of the following: ${JSON.stringify(e)}`);let n=[];for(let o of eO(e,t)){let e=await r(A,o);if(null!==e){if(await rf(e))return[o,e];n.push(e);}}throw Error(`Unsupported target! (platform='${A}', version='${t}'). Try one of the following: ${JSON.stringify(e)}`);}async function eG(e,A=sS){try{var t,r;let n=await(0,rs.getExecOutput)(e,["--version"]),o=n.stdout||n.stderr||"",i=null===(t=o.trim().match(A))||void 0===t?void 0:t[1];return null!==(r=l(ru)(i))&&void 0!==r?r:void 0;}catch(e){console.error(e);return;}}async function eJ(e,A,t=sS){let r=await eG(e,t);return void 0!==r&&""!==A&&-1!==l(rp)(r,A);}function eH(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eP(e,A,t){let r=await eW(e,A,t);l(rJ)(void 0!==r.bin);let n=r.bin;if(void 0===(await ez(n)))throw Error("pip was not installed correctly");return await eV(n),await eq(n),r;}async function eV(e){try{if(!(await Ae(e)))try{await e7(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===Ai("pipx",!1))throw Error("pipx was not installed correctly "+e);}await f(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e7(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,tA.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eq(e){try{await e7(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e7(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,tA.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eW(e,A,t){let r;let n=await e$(A);if(void 0!==n){let e=(0,t6.dirname)(n);r={bin:n,installDir:e,binDir:e};}else{if(te.GITHUB_ACTIONS)try{(0,tA.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await ni("7dFvC");await o(e,A,t),n=await e$(A);let i=(0,t6.dirname)(n);r={bin:n,installDir:i,binDir:i};}catch(e){(0,tA.warning)(e.toString());}void 0===r&&(r=await ej(A,e));}return(void 0===n||void 0===r.bin)&&(n=await e$(A),r.bin=n),r;}async function ej(e,A){let t;switch(process.platform){case"win32":{e?await el("python3",A,["--params=/InstallDir:"+e]):await el("python3",A);let r=await e$(e),n=(0,t6.dirname)(r);await Y(n),t={installDir:n,binDir:n,bin:r};break;}case"darwin":{t=await es("python3",A);let e=await f("brew",["--prefix","python"],{stdio:"pipe"}),r=(0,t6.join)(e.stdout,"libexec","bin");await Y(r);break;}case"linux":if(U())t=await eu("python",A);else if(L())t=await ec([{name:"python3",version:A}]);else if(T())t=await j([{name:"python3",version:A},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return t;}async function e$(e){for(let A of["python3","python"]){let t=await eX(A,e);if(void 0!==t)return t;}}async function eX(e,A){try{var t;if(void 0!==A){let t=(0,t6.join)(A,(0,t6.addExeExt)(e));if((await(0,t8.pathExists)(t))&&(await eJ(t,sk.python)))return t;}for(let A of null!==(t=await l(ti)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(await eJ(A,sk.python))return A;}catch{}}async function ez(e){let A=await eZ();return void 0===A?((0,tA.info)("pip was not found. Installing pip"),await e0(e),eZ()):A;}async function eZ(){for(let e of["pip3","pip"]){let A=await eK(e);if(void 0!==A)return A;}}async function eK(e){try{var A;for(let t of null!==(A=await l(ti)(e,{nothrow:!0,all:!0}))&&void 0!==A?A:[])if(await eJ(t,sk.pip))return t;}catch{}}async function e0(e){(await e1(e))||(await Ai("pip"),await e1(e));}async function e1(e){try{return await f(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(A){(0,tA.info)(A.toString());try{return await f(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,tA.info)(e.toString());}}return!1;}async function e2(e){let A=[];"linux"===process.platform?A.push("/home/runner/.local/bin/"):"darwin"===process.platform&&A.push("/usr/local/bin/");let t=(await(0,rs.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return A.push((0,t6.join)(t,"Scripts"),(0,t6.join)(t,"Scripts","bin"),(0,t6.join)(t,"bin")),[...new Set(A)];}function e4(e,A,t=null){return e8(A)&&"linux"===process.platform&&null!==t&&e in sN?function(e,A){let t=e[0],r=Object.keys(A).map(e=>Number.parseInt(e,10)).sort((e,A)=>A-e).find(e=>t>=e);return void 0===r?"":A[r];}(t,sN[e]):e8(A)&&e in sv?sv[e]:"true"===A?"":null!=A?A:"";}function e8(e){return"true"===e||void 0===e;}async function e9(){var e,A;if("linux"!==process.platform)return[];let t=await(e="lsb_release",A=["-a"],new Promise((t,r)=>{r8.execFile(e,A,{encoding:"utf8",shell:!1},(n,o,i)=>{if(n){if("errno"in n&&"ENOENT"===n.code){t(null);return;}r(Error(`Could not execute \`${e} ${A.join(" ")}\`: ${n} (stderr=${i})`));return;}t(o);});}));if(null===t)return[];let r=null,n=null,o=!1;for(let e of t.split("\n")){let A=e.match(/^Distributor ID:\s*(.+)$/);if(null!==A){if("Ubuntu"!==A[1])return[];o=!0;}let t=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);t&&(r=t);let i=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(i&&(n=i),o&&r&&n)break;}if(!o)return[];for(let e of[r,n])if(e){let A=[e[1],e[2]];return e[3]&&A.push(e[3]),A.map(e=>parseInt(e,10));}return[];}async function e3(){try{if(!T())return null;{try{null===l(ti).sync("lsb_release",{nothrow:!0})&&(await j([{name:"lsb-release"}]));}catch{return e5();}let e=await(0,rm.getUbuntuVersion)();if(0===e.length)return e5();return e;}}catch(e){return(0,tA.warning)(e.toString()),null;}}function e5(){if(!("version"in l(rL)&&"function"==typeof l(rL).version))return null;let e=l(rL).version().split("."),A=Number.parseInt(e[0].replace("#",""),10);return[A,Number.parseInt(e[1].replace("~",""),10),Number.parseInt(e[2].split("-")[0],10)];}async function e6(e,A,t={}){return e7(await sx(),e,A,t);}async function e7(e,A,t,r={}){let{usePipx:n=!0,user:o=!0,upgrade:i=!1,isLibrary:s=!1}=r,a=n&&!s&&(await Ae(e)),l=a?"pipx":"pip";if(await An(e,A))try{(0,t2.info)(`Installing ${A} ${null!=t?t:""} via ${l}`);let r=void 0!==t&&""!==t?`${A}==${t}`:A,n=process.env;a&&o&&(n.PIPX_HOME=await sU(),n.PIPX_BIN_DIR=await sT()),p(e,["-m",l,...(i?a?["upgrade"]:["install","--upgrade"]:["install"]),...(!a&&o?["--user"]:[]),r],{stdio:"inherit",env:n});}catch(e){if((0,t2.info)(`Failed to install ${A} via ${l}: ${e}.`),(await Ai(A))===null)throw Error(`Failed to install ${A} via ${l}: ${e}.`);}else if((await Ai(A))===null)throw Error(`Failed to install ${A} as it was not found via ${l} or the system package manager`);let c=await sF(e),g=await Ao(c,A);return await Y(g),{binDir:g};}async function Ae(e){return 0===(await f(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function AA(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let A=S("~/.local/pipx");if(await(0,t8.pathExists)(A))return A;switch(process.platform){case"win32":e=S("~/AppData/Local/pipx");break;case"darwin":e=S("~/Library/Application Support/pipx");break;default:e=S("~/.local/share/pipx");}return await sD(e),await sD((0,t6.join)(e,"trash")),await sD((0,t6.join)(e,"shared")),await sD((0,t6.join)(e,"venv")),e;}async function At(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=S("~/.local/bin");return await Y(e),await sD(e),e;}async function Ar(){let e=(await eP(e4("python",void 0,await sL()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function An(e,A){return 0===(await f(e,["-m","pip","-qq","index","versions",A],{stdio:"ignore",reject:!1})).exitCode;}async function Ao(e,A){let t=(await Promise.all(e.map(e=>(0,t8.pathExists)((0,t6.join)(e,(0,t6.addExeExt)(A)))))).findIndex(e=>e);if(-1!==t)return e[t];let r=l(ti).sync((0,t6.addExeExt)(A),{nothrow:!0});return null!==r?(0,t6.dirname)(r):e[e.length-1];}function Ai(e,A=!0){if("linux"===process.platform){if((0,t2.info)(`Installing ${e} via the system package manager`),U())return eu(A?"python-"+e:e);if(L())return ec([{name:A?"python3-"+e:e}]);if(T())return j([{name:A?"python3-"+e:e}]);}return null;}async function As(e,A,t){switch(process.platform){case"win32":return await el("cppcheck",e),{binDir:await Aa()};case"darwin":return es("cppcheck",e);case"linux":if(U())return eu("cppcheck",e);if(L())return ec([{name:"ccache",version:e}]);if(T())return j([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Aa(){let e="C:/Program Files/Cppcheck";return await Y(e),e;}async function Al(e,A,t){switch(process.platform){case"win32":return await el("graphviz",e),Ac();case"darwin":return es("graphviz",e);case"linux":if(U())return eu("graphviz",e);if(L())return ec([{name:"graphviz",version:e}]);if(T())return j([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Ac(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await Y(e),{binDir:e};}throw Error("Unsupported platform");}async function Ag(e,A){let{ArchiveHdi:t}=await ni("3l48W"),r=new t(e);await r.read(async e=>{await e.extract((0,rU.join)(A,e.path));});}function AE(e,A,t){switch(A){case"linux":{let A="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,t6.addExeExt)("doxygen"),extractedFolderName:A,extractFunction:re.extractTar,url:`https://www.doxygen.nl/files/${A}.linux.bin.tar.gz`};}case"win32":{let A="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,t6.addExeExt)("doxygen"),extractedFolderName:A,extractFunction:eS,url:`https://www.doxygen.nl/files/${A}.windows.x64.bin.zip`};}case"darwin":{let A="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,t6.addExeExt)("doxygen"),extractedFolderName:A,extractFunction:Ag,url:`https://doxygen.nl/files/${A}.dmg`};}default:throw Error(`Unsupported platform '${A}'`);}}async function Au(e,A,t){switch(process.platform){case"win32":{await l(rQ)(()=>el("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,tA.info)(e)});let A=await Ah();return await Al(e4("graphviz",void 0),"",t),{binDir:A};}case"darwin":{let e=await es("doxygen",void 0);return s_()[0]>11&&(await Al(e4("graphviz",void 0),"",t)),e;}case"linux":{let r;if(""===e||U()||L()){if(U())r=await eu("doxygen",e);else if(L())return ec([{name:"doxygen",version:e}]);else if(T())r=await j([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(T())try{r=await eN("doxygen",e,AE,A,t);try{await j([{name:"libclang-cpp9"}]);}catch(e){(0,tA.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,tA.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),r=await j([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await Al(e4("graphviz",void 0,await sL()),"",t),r;}default:throw Error("Unsupported platform");}}async function Ah(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,t8.pathExists)((0,t6.join)(e,"doxygen.exe")))return await Y(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function AQ(){if("darwin"===process.platform)try{let e=await(0,rs.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),A=e.stdout||e.stderr;A?await O("SDKROOT",A.trim()):(0,tA.error)("SDKROOT not set");}catch(e){(0,tA.error)(e);}}function AC(e,A,t){if("win32"===A){let A=sO[e];if(void 0===A)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,t6.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eb,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${A.releaseName}/winlibs-${"ia32"===t?"i686":"x86_64"}-posix-seh-gcc-${A.fileSuffix}.7z`};}throw Error(`Unsupported platform '${A}'`);}async function AI(e,A,t,r=40){let n;switch(process.platform){case"win32":("arm"===t||"arm64"===t)&&(await el("gcc-arm-embedded",e));try{n=await eN("g++",e,AC,A,t);}catch(A){(0,tA.info)(`Failed to download g++ binary. ${A}. Falling back to chocolatey.`),n=await AB(e,t);}break;case"darwin":n=await es("gcc",e);break;case"linux":"x64"===t?U()?n=await eu("gcc",e):L()?n=await ec([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):T()&&(n=await j([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,tA.info)(`Install g++-multilib because gcc for ${t} was requested`),U()?await eu("gcc-multilib",e):T()&&(await j([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+t);}if(void 0!==n)return await Af(e,n.binDir,r),n;}async function Ad(e,A,t){let r;switch(process.platform){case"win32":case"darwin":return AI(e,A,t);case"linux":U()?r=await eu("mingw-w64-gcc",e):L()?r=await ec([{name:"mingw64-gcc",version:e}]):T()&&(r=await j([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+t);}if(void 0!==r)return r;}async function AB(e,A){var t,r;let n;if(await el("mingw",e),"x64"===A&&(await(0,t8.pathExists)("C:/tools/mingw64/bin"))?(n="C:/tools/mingw64/bin",await Y(n)):"ia32"===A&&(await(0,t8.pathExists)("C:/tools/mingw32/bin"))?(n="C:/tools/mingw32/bin",await Y(n)):(await(0,t8.pathExists)(`${null!==(t=process.env.ChocolateyInstall)&&void 0!==t?t:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(n=`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin`),void 0!==n)return{binDir:n};}async function Af(e,A,t=40){let r=[];if("win32"===process.platform)r.push(O("CC",(0,t6.addExeExt)(`${A}/gcc`)),O("CXX",(0,t6.addExeExt)(`${A}/g++`)));else{var n;let o=l(rw)(null!==(n=l(ru)(e))&&void 0!==n?n:e);o>=5?(r.push(O("CC",`${A}/gcc-${o}`),O("CXX",`${A}/g++-${o}`)),T()&&r.push(er("cc",`${A}/gcc-${o}`,t),er("cxx",`${A}/g++-${o}`,t),er("gcc",`${A}/gcc-${o}`,t),er("g++",`${A}/g++-${o}`,t))):(r.push(O("CC",`${A}/gcc-${e}`),O("CXX",`${A}/g++-${e}`)),T()&&r.push(er("cc",`${A}/gcc-${e}`,t),er("cxx",`${A}/g++-${e}`,t),er("gcc",`${A}/gcc-${e}`,t),er("g++",`${A}/g++-${e}`,t)));}r.push(AQ()),te.GITHUB_ACTIONS&&(await Ap()),await Promise.all(r);}async function Ap(){let e=(0,t6.join)(rb,"gcc_matcher.json");if(!(await(0,t8.pathExists)(e)))return(0,tA.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,tA.info)("::add-matcher::"+e);}function Ay(e,A,t){let r=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(A);return{binRelativeDir:"",binFileName:(0,t6.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eS,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`};}function Am(e,A,t){return eN("ninja",e,Ay,A,t);}function Aw(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,t6.addExeExt)("kcov"),extractFunction:ev};}function Ab(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,t6.addExeExt)("kcov"),extractFunction:AR};}async function AR(e,A){let t=await ev(e,A,["--strip-components=1"]),r=await AD();"linux"===process.platform&&(U()?await Promise.all([eu("libdwarf"),eu("libcurl-openssl")]):L()?await ec([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):T()&&(await j([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==l(ti).sync("patch",{nothrow:!0})){let e=(0,t6.join)(rR,"gcc13.patch");await f("patch",["-N","-p1","-i",e],{cwd:t,stdio:"inherit"});}else(0,tA.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let n=(0,t6.join)(t,"build");return await f(r,["-S",t,"-B",n,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:t,stdio:"inherit"}),await f(r,["--build",n,"--config","Release"],{cwd:t,stdio:"inherit"}),t;}async function AD(){let e=l(ti).sync("cmake",{nothrow:!0});if(null===e){let{binDir:A}=await eL(e4("cmake",void 0,await sL()),(0,t6.join)(S("~"),"cmake"),"");e=(0,t6.join)(A,"cmake");}return null===l(ti).sync("ninja",{nothrow:!0})&&(await Am(e4("ninja",void 0,await sL()),(0,t6.join)(S("~"),"ninja"),"")),e;}async function AS(e,A,t){var r;let n;if("linux"!==process.platform){(0,tA.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),i=(r=o[0]).match(/^v/)?r:"v"+r,s=o[1],a=Number.parseInt(i.replace(/^v/,""),10);return 38===a&&(i="v38"),"binary"===s&&a>=39?(n=await eN("kcov",i,Aw,A,t),U()?await eu("binutils"):L()?await ec([{name:"binutils"}]):T()&&(await j([{name:"libbinutils"}]))):n=await eN("kcov",i,Ab,A,t),n;}function Av(e){if(Object.values(sj).includes(e));else if(e in sj)return sj[e];return e;}function Ak(e){let A;let t=Av(e);if(t){let e=t.split(".")[0]+".9";A=`-version "${t},${e}"`;}else A="-latest";let r=function(e,A){try{return r8.execSync(`vswhere -products * ${A} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){t2.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",A);if(r&&rT.existsSync(r))return t2.info("Found with vswhere: "+r),r;t2.info("Not found with vswhere");let n=e?[function(e){if(Object.keys(sj).includes(e));else for(let[A,t]of Object.entries(sj))if(t===e)return A;return e;}(e)]:sW;for(let e of sV)for(let A of n)for(let t of sq)if(r=`${e}\\Microsoft Visual Studio\\${A}\\${t}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,t2.info("Trying standard location: "+r),rT.existsSync(r))return t2.info("Found standard location: "+r),r;if(t2.info("Not found in standard locations"),r=`${sP}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,rT.existsSync(r))return t2.info("Found VS 2015: "+r),r;throw t2.info("Not found in VS 2015 location: "+r),Error("Microsoft Visual Studio not found");}async function AN(e,A,t,r,n,o,i){void 0!==A&&(await(0,t8.pathExists)(A))&&((0,tA.info)(`Adding ${A} to PATH`),await O("VCTargetsPath",A)),await rv(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(t),n,r,o,i,e);}async function AF(e,A,t,r,n,o,i,s=sX){(0,t2.startGroup)(`Installing ${e} ${A}`);let a=!1;try{a=await function(e,A){let t;let{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout:setTimeout,clearTimeout:clearTimeout}}=A,s=new Promise((s,a)=>{if("number"!=typeof r||1!==Math.sign(r))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(A.signal){let{signal:e}=A;e.aborted&&a(sH(e)),e.addEventListener("abort",()=>{a(sH(e));});}if(r===Number.POSITIVE_INFINITY){e.then(s,a);return;}let l=new sY();t=i.setTimeout.call(void 0,()=>{if(n){try{s(n());}catch(e){a(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?s():o instanceof Error?a(o):(l.message=null!=o?o:`Promise timed out after ${r} milliseconds`,a(l));},r),(async()=>{try{s(await e);}catch(e){a(e);}})();}).finally(()=>{s.clear();});return s.clear=()=>{i.clearTimeout.call(void 0,t),t=void 0;},s;}(AL(e,A,t,r,n,o),{milliseconds:s,message:`Timeout while installing ${e} ${A}. You can increase the timeout from options`});}catch(A){(0,tA.error)(A),i.push(`${e} failed to install`);}return(0,t2.endGroup)(),a;}async function AL(e,A,t,r,n,o){let i;let s=["llvm","clangformat","clangtidy"].includes(e);if("vcvarsall"===e)await AN(e4(e,A,t),void 0,r,void 0,void 0,!1,!1);else{let o=s5[e],a=(0,t6.join)(n,s?"llvm":e);i=await o(e4(e,A,t),a,r);}return o.push(A8(e,i)),s;}async function AU(e,A=0){let t="/usr/lib/llvm-"+e;await j([{name:"curl"}]),await f("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let r=await AT("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,A);return await j(r),await(0,ta.chmod)("/tmp/llvm-setup-cpp.sh","755"),await w("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===A?["all"]:[])],{stdio:"inherit",shell:!0,timeout:sX}),await Y(`${t}/bin`),{installDir:""+t,binDir:`${t}/bin`,bin:`${t}/bin/clang++`};}async function AT(e,A,t,r){var n,o,i,s,a;let l=await(0,ta.readFile)(e,"utf-8");return o=r,i=l=(n=l,l="1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?n.replace(/set -eux/g,"set -eu"):n).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),s=t,l=1===o?i.replace(/ -y \$PKG/g," -y clang-format-"+s):i,a=l=await Ax(l),l=z()?a.replace(/apt-get/g,"nala"):a,await(0,ta.writeFile)(A,l),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function Ax(e){let A=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let t=e.replace("$LLVM_VERSION","*");(await en(t))&&((0,rK.info)("Removing conflicting package "+t),A=A.replace(e,""));})),A;}function AM(e,A,t){let r=`${A}${e}${t}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${r}`;}function A_(e,A,t){let r=`${A}${e}${t}`;return`https://releases.llvm.org/${e}/${r}`;}async function AO(e){let A;if(sZ.has(e))return null;let t="LLVM-",r=l(rh)(e,"3.7.0")?"-win32.exe":"-win64.exe",n=l(rh)(e,"9.0.1"),o=!1;return n&&(A=A_(e,t,r),(await rf(A))||(o=!0)),(o||!n)&&(A=AM(e,t,r)),A;}function AY(e,A){switch(e){case"darwin":return function(e){if(sK.has(e))return null;let A="9.0.0"===e?"-darwin-apple":"-apple-darwin",t="clang+llvm-",r=`-x86_64${A}.tar.xz`;return l(rh)(e,"9.0.1")?A_(e,t,r):AM(e,t,r);}(A);case"linux":return function(e){let A,t,r=e,n=s0.get(r);if(void 0!==n&&(r=n),r.includes("ubuntu")){let e=r.replace(/-ubuntu-.*/,"");if(!sz.has(e))throw Error("Unsupported Ubuntu version: "+e);A=r.replace(e,""),r=eO(sz,e)[0];}else""!==r&&r in s1?A=s1[r]:(A=s1[s2],(0,tA.warning)(`Falling back to LLVM version ${s2} ${A} for the Ubuntu.`));let o="clang+llvm-";return(t="5.0.0"===r?`-linux-x86_64${A}.tar.xz`:A.includes("-rhel86")?`-x86_64-unknown-linux-gnu${A}.tar.xz`:`-x86_64-linux-gnu${A}.tar.xz`,l(rh)(r,"9.0.1"))?A_(r,o,t):AM(r,o,t);}(A);case"win32":return AO(A);default:return null;}}async function AG(e,A,t){let[r,n]=await eY(sz,A,e,AY);return(0,tA.info)("specific llvm version: "+r),{url:n,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,t6.addExeExt)("clang"),extractFunction:"win32"===A?eD:(e,A)=>ev(e,A,["--strip-components=1"])};}async function AJ(e,A,t){var r;let n=await s4(e,A,t);return await AW(null!==(r=n.installDir)&&void 0!==r?r:A),n;}async function AH(e,A,t){let[r,n,o]=await Promise.all([AP(e,A,t),s9(t),Aj()]);return r;}async function AP(e,A,t,r=rk.All){let n=Number.parseInt(function(e){if(null===l(ry)(e))try{let A=l(ru)(e);if(null!==A)return(0,tA.info)(`Coerced version '${e}' to '${A}'`),A.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(T())return await AU(n,r);}catch(e){(0,tA.info)("Failed to install llvm via system package manager "+e);}let o=await eN("llvm",e,AG,A,t);return await s8(n),o;}async function AV(e){T()&&(e<=10?await j([{name:"libtinfo5"}]):await j([{name:"libtinfo-dev"}]));}async function Aq(e){"linux"===process.platform&&(await AI(e4("gcc",void 0,await sL()),"",e,40));}async function AW(e){var A,t;let r=null!==(A=process.env.LD_LIBRARY_PATH)&&void 0!==A?A:"",n=null!==(t=process.env.DYLD_LIBRARY_PATH)&&void 0!==t?t:"",o=[O("LLVM_PATH",e),O("LD_LIBRARY_PATH",`${e}/lib${rU.delimiter}${r}`),O("DYLD_LIBRARY_PATH",`${e}/lib${rU.delimiter}${n}`),O("LDFLAGS",`-L"${e}/lib"`),O("CPPFLAGS",`-I"${e}/include"`),O("CC",(0,t6.addExeExt)(`${e}/bin/clang`)),O("CXX",(0,t6.addExeExt)(`${e}/bin/clang++`)),O("LIBRARY_PATH",`${e}/lib`),AQ()];T()&&o.push(er("cc",`${e}/bin/clang`,60),er("cxx",`${e}/bin/clang++`,60),er("clang",`${e}/bin/clang`),er("clang++",`${e}/bin/clang++`),er("lld",`${e}/bin/lld`),er("ld.lld",`${e}/bin/ld.lld`),er("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(o);}async function Aj(){if(te.GITHUB_ACTIONS){let e=(0,t6.join)(rN,"llvm_matcher.json");if(!(await(0,t8.pathExists)(e)))return(0,tA.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,tA.info)("::add-matcher::"+e);}}async function A$(e,A,t){switch(process.platform){case"win32":return el("make",e);case"darwin":return await es("make",e),await Y("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(U())return eu("make",e);if(L())return ec([{name:"make",version:e}]);if(T())return j([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function AX(e,A,t,r,n,o){let i,s;if("win32"!==process.platform)return;let a=rD(e);(0,tA.info)(`Checking if MSVC ${a} is already installed`);let l=!1;try{let e=rS(a);l=!0,(0,tA.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!l)try{"14.0"===a?(i="14.0",await el("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),s="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(i="14.16",await el("visualstudio2017buildtools","15.9.41.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(i="14.29",await el("visualstudio2019buildtools","16.11.7.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(i=void 0,await el("visualstudio2022buildtools","117.0.5.0",[]),s=void 0):(0,tA.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,tA.error)(e);}await AN(a,s,t,i,r,n,o),te.GITHUB_ACTIONS&&(await Az());}async function Az(){let e=(0,t6.join)(rF,"msvc_matcher.json");if(!(await(0,t8.pathExists)(e)))return(0,tA.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,tA.info)("::add-matcher::"+e);}async function AZ(e,A,t){if(!T())return;if("string"==typeof n)return{binDir:n};let r=l(ti).sync("nala",{nothrow:!0});if(null!==r)return{binDir:n=(0,t6.dirname)(r)};let o=await et("volian-archive-nala.gpg","https://deb.volian.org/volian/nala.key");m("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ nala main" | tee /etc/apt/sources.list.d/volian-archive-nala.list`]);try{"legacy"!==e?await j([{name:"nala"}],!0):await j([{name:"nala-legacy"}],!0);}catch(e){await j([{name:"nala-legacy"}],!0);}return{binDir:n="/usr/bin"};}async function AK(e,A,t){if("win32"===process.platform)return await el("opencppcoverage",e),{binDir:await A0()};}async function A0(){let e="C:/Program Files/OpenCppCoverage";return await Y(e),e;}async function A1(e,A,t){switch(process.platform){case"win32":{await el("powershell-core",e);let A="C:/Program Files/PowerShell/7";return await Y(A),{binDir:A};}case"darwin":return es("powershell",e,["--cask"]);case"linux":if(U())return eu("powershell-bin",e,"yay");if(L())return await ec([{name:"curl"}]),m("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ec([{name:"powershell",version:e}]);if(T()){await j([{name:"curl"}]);let A=await sL(),t=`${A[0]}.0${A[1]}`;return m("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t}/packages-microsoft-prod.deb`]),m("dpkg",["-i","packages-microsoft-prod.deb"]),j([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function A2(e,A,t){var r;let n="win32"===(r=A)?"windows":r,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(t),i="win32"===A;return{binRelativeDir:"",binFileName:(0,t6.addExeExt)("task"),extractedFolderName:"",extractFunction:i?eS:ev,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${o}.${i?"zip":"tar.gz"}`};}async function A4(e,A,t){return s3&&null!==l(ti).sync("vcpkg",{nothrow:!0})?{binDir:(0,t6.dirname)(l(ti).sync("vcpkg"))}:("linux"===process.platform&&(U()?await Promise.all([eu("curl"),eu("zip"),eu("unzip"),eu("tar"),eu("git"),eu("pkg-config")]):L()?await ec([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):T()&&(await j([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,t8.pathExists)((0,t6.join)(A,(0,t6.addShExt)("bootstrap-vcpkg",".bat"))))?(0,tA.notice)(`Vcpkg folder already exists at ${A}. This might mean that ~/vcpkg is restored from the cache.`):p("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,t6.dirname)(A),stdio:"inherit"}),p((0,t6.addShExt)((0,t6.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:A,shell:!0,stdio:"inherit"}),await D(A),await Y(A),s3=!0,{binDir:A});}function A8(e,A){let t=`\u{2705} ${e} was installed successfully:`;return void 0===A||("installDir"in A&&(t+="\n- The installation directory is "+A.installDir),""!==A.binDir&&(t+="\n- The binary directory is "+A.binDir)),t;}async function A9(e,A,t,r,n,o,i){try{let{compiler:s,version:a}=function(e){let A=e.split("-"),t=A[0];if(1 in A){let e=A[1];return null!==l(ry)(e)||(0,tA.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:t,version:e};}return{compiler:t,version:void 0};}(e);switch((0,t2.startGroup)(`Installing ${s} ${null!=a?a:""}`),s){case"llvm":case"clang":case"clang++":{let e=await AJ(e4("llvm",a,A),(0,rU.join)(t,"llvm"),r);await O("GCOV","llvm-cov gcov"),n.push(A8("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===s?e4("mingw",a,A):e4("gcc",a,A),i="mingw"===s?await Ad(e,(0,rU.join)(t,"gcc"),r):await AI(e,(0,rU.join)(t,"gcc"),r);o&&(await O("CPPFLAGS","")),await function(e){let A=l(ry)(e),t=null!==A?l(rw)(A):e;return O("GCOV",""!==t?"gcov-"+t:"gcov");}(e),n.push(A8("gcc",i));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await AX(e4("msvc",a,A),(0,rU.join)(t,"msvc"),r);o&&(await O("CPPFLAGS","")),n.push(A8("msvc",e));break;}case"appleclang":case"applellvm":(0,t2.notice)("Assuming apple-clang is already installed"),await Promise.all([O("CC","clang"),O("CXX","clang++")]),n.push(A8("apple-clang",void 0));break;default:i.push("Unsupported compiler "+s);}}catch(A){(0,tA.error)(A),i.push("Failed to install the "+e);}(0,t2.endGroup)();}async function A3(e){var A,t,r;let n,o,i=Promise.resolve();te.GITHUB_ACTIONS||(i=N(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let s=function(e,A){A=A||{};var t,r,n,o,i,s={_:[]},a=0,l=0,c=0,g=(e=e||[]).length;let E=void 0!==A.alias,u=void 0!==A.unknown,h=void 0!==A.default;if(A.alias=A.alias||{},A.string=F(A.string),A.boolean=F(A.boolean),E)for(t in A.alias)for(a=0,r=A.alias[t]=F(A.alias[t]);a0;)for(l=(r=A.alias[A.boolean[a]]||[]).length;l-->0;)A.boolean.push(r[l]);for(a=A.string.length;a-->0;)for(l=(r=A.alias[A.string[a]]||[]).length;l-->0;)A.string.push(r[l]);if(h){for(t in A.default)if(o=typeof A.default[t],r=A.alias[t]=A.alias[t]||[],void 0!==A[o])for(A[o].push(t),a=0;aa;a++){if("--"===(n=e[a])){s._=s._.concat(e.slice(++a));break;}for(l=0;l0;)s[r.shift()]=s[t];return s;}(e,{string:[...s7,"timeout"],default:Object.fromEntries(s7.map(e=>[e,function(e){let A=(0,t2.getInput)(e.toLowerCase());if("false"!==A&&""!==A)return A;}(e)])),alias:{h:"help"},boolean:"help"});s.help&&((0,tA.info)(` setup-cpp [options] setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true Install all the tools required for building and testing C++/C projects. --architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture. --timeout the timeout for the installation of each tool in minutes. By default it is 10 minutes. --compiler the to install. You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0' --$tool_name pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1" All the available tools: `),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(A=s.architecture)&&void 0!==A?A:process.arch,c=null!==(t=process.env.SETUP_CPP_DIR)&&void 0!==t?t:S("~"),g=[],E=[],u=tn.create({autoloadLocales:!0});tn.addLocale(l(to)),tt.addLocale(l(tr));let h=await sL();if(!function(e,A){let t=A.filter(A=>void 0!==e[A]),r=t.filter(A=>!e8(e[A])),n=r.length>=1?e[r[0]]:"true";if(r.some(A=>e[A]!==n))return!1;for(let A of t)e[A]=n;return!0;}(s,["llvm","clangtidy","clangformat"]))return(0,tA.error)("The same version must be used for llvm, clangformat and clangtidy"),1;U()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,tA.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eu("python-pygments"));let Q=!1,C=!1;for(let e of s6){if(te.isCI&&0!==E.length){C=!0;break;}let A=s[e];void 0!==A&&(n=Date.now(),Q=await AF(e,A,h,a,c,g,E,6e4*Number.parseFloat(null!==(r=s.timeout)&&void 0!==r?r:"20")),o=Date.now(),(0,tA.info)("took "+(u.format(n,o)||"0 seconds")));}if(!C){let e=s.compiler;if(void 0!==e){let A=Date.now();await A9(e,h,c,a,g,Q,E);let t=Date.now();(0,tA.info)("took "+(u.format(A,t)||"0 seconds"));}}if(await W(),0===g.length&&0===E.length)return(0,tA.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of g)(0,tA.success)(e);for(let e of E)(0,tA.error)(e);if((0,tA.info)("setup-cpp finished"),!te.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,tA.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,tA.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await i,0===E.length?0:1;}var A5,A6,A7,te,tA,tt,tr,tn,to,ti,ts,ta,tl,tc,tg,tE,tu,th,tQ,tC,tI,td,tB,tf,tp,ty,tm,tw,tb,tR,tD,tS,tv,tk,tN,tF,tL,tU,tT,tx,tM,t_,tO,tY,tG,tJ,tH,tP,tV,tq,tW,tj,t$,tX,tz,tZ,tK,t0,t1,t2,t4,t8,t9,t3,t5,t6,t7,re,rA,rt,rr,rn,ro,ri,rs,ra,rl,rc,rg,rE,ru,rh,rQ,rC,rI,rd,rB,rf,rp,ry,rm,rw,rb,rR,rD,rS,rv,rk,rN,rF,rL=require("os"),rU=require("path"),rT=require("fs"),rx=require("crypto"),rM=require("http"),r_=require("https"),rO=require("net"),rY=require("tls"),rG=require("events"),rJ=require("assert"),rH=require("util"),rP=require("stream"),rV=require("buffer"),rq=require("querystring"),rW=require("stream"),rj=require("util"),r$=require("events"),rX=require("perf_hooks"),rz=require("worker_threads"),rZ=require("async_hooks"),rK=require("console"),r0=require("url"),r1=require("zlib"),r2=require("string_decoder"),r4=require("fs"),r8=require("child_process"),r9=require("timers"),r3=require("buffer"),r5=require("path"),r6=require("child_process"),r7=require("process"),ne=require("url"),nA=require("os"),nt=require("process"),nr=globalThis,nn={},no={},ni=nr.parcelRequire810d;null==ni&&((ni=function(e){if(e in nn)return nn[e].exports;if(e in no){var A=no[e];delete no[e];var t={id:e,exports:{}};return nn[e]=t,A.call(t.exports,t,t.exports),t.exports;}var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r;}).register=function(e,A){no[e]=A;},nr.parcelRequire810d=ni),(A7=ni.register)("jj6Ot",function(e,A){var t;function r(e){return"string"==typeof e?!!n[e]:"env"in e?n[e.env]&&n[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!n[e];}):Object.keys(e).every(function(A){return n[A]===e[A];});}t=ni("7S3Ee");let n=process.env;Object.defineProperty(e.exports,"_vendors",{value:t.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,t.forEach(function(A){let t=(Array.isArray(A.env)?A.env:[A.env]).every(function(e){return r(e);});if(e.exports[A.constant]=t,t)switch(e.exports.name=A.name,typeof A.pr){case"string":e.exports.isPR=!!n[A.pr];break;case"object":"env"in A.pr?e.exports.isPR=A.pr.env in n&&n[A.pr.env]!==A.pr.ne:"any"in A.pr?e.exports.isPR=A.pr.any.some(function(e){return!!n[e];}):e.exports.isPR=r(A.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==n.CI&&(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.exports.name));}),A7("7S3Ee",function(e,A){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),A7("pcnv8",function(e,A){var t,r;function n(e){return r.GITHUB_ACTIONS?t.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function i(e){return r.GITHUB_ACTIONS?t.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function s(e){return r.GITHUB_ACTIONS?t.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function l(e){return r.GITHUB_ACTIONS?t.info(e):console.log(e);}a(e.exports,"error",()=>n),a(e.exports,"success",()=>o),a(e.exports,"warning",()=>i),a(e.exports,"notice",()=>s),a(e.exports,"info",()=>l),t=ni("d1q4F"),r=ni("jj6Ot");}),A7("d1q4F",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u;function h(e,A){let t=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(A&&A.required&&!t)throw Error("Input required and not supplied: "+e);return A&&!1===A.trimWhitespace?t:t.trim();}function Q(e,A={}){i.issueCommand("error",a.toCommandProperties(A),e instanceof Error?e.toString():e);}function C(e){i.issue("group",e);}function I(){i.issue("endgroup");}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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,i=ni("h5ivc"),s=ni("4pB6l"),a=ni("fLT2x");let d=n(rL),B=n(rU);l=ni("171OM"),(u=c=e.exports.ExitCode||(e.exports.ExitCode={}))[u.Success=0]="Success",u[u.Failure=1]="Failure",e.exports.exportVariable=function(e,A){let t=a.toCommandValue(A);if(process.env[e]=t,process.env.GITHUB_ENV)return s.issueFileCommand("ENV",s.prepareKeyValueMessage(e,A));i.issueCommand("set-env",{name:e},t);},e.exports.setSecret=function(e){i.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?s.issueFileCommand("PATH",e):i.issueCommand("add-path",{},e),process.env.PATH=`${e}${B.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,A){let t=h(e,A).split("\n").filter(e=>""!==e);return A&&!1===A.trimWhitespace?t:t.map(e=>e.trim());},e.exports.getBooleanInput=function(e,A){let t=h(e,A);if(["true","True","TRUE"].includes(t))return!0;if(["false","False","FALSE"].includes(t))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,A){if(process.env.GITHUB_OUTPUT)return s.issueFileCommand("OUTPUT",s.prepareKeyValueMessage(e,A));process.stdout.write(d.EOL),i.issueCommand("set-output",{name:e},a.toCommandValue(A));},e.exports.setCommandEcho=function(e){i.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=c.Failure,Q(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){i.issueCommand("debug",{},e);},e.exports.error=Q,e.exports.warning=function(e,A={}){i.issueCommand("warning",a.toCommandProperties(A),e instanceof Error?e.toString():e);},e.exports.notice=function(e,A={}){i.issueCommand("notice",a.toCommandProperties(A),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+d.EOL);},e.exports.startGroup=C,e.exports.endGroup=I,e.exports.group=function(e,A){return o(this,void 0,void 0,function*(){let t;C(e);try{t=yield A();}finally{I();}return t;});},e.exports.saveState=function(e,A){if(process.env.GITHUB_STATE)return s.issueFileCommand("STATE",s.prepareKeyValueMessage(e,A));i.issueCommand("save-state",{name:e},a.toCommandValue(A));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield l.OidcClient.getIDToken(e);});},g=ni("ehDLE"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return g.summary;}}),g=ni("ehDLE"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return g.markdownSummary;}}),E=ni("a0kJ6"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return E.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return E.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return E.toPlatformPath;}});}),A7("h5ivc",function(e,A){var t,r,n,o;function i(e,A,t){let r=new a(e,A,t);process.stdout.write(r.toString()+s.EOL);}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let s=n(rL);o=ni("fLT2x"),e.exports.issueCommand=i,e.exports.issue=function(e,A=""){i(e,{},A);};class a{constructor(e,A,t){e||(e="missing.command"),this.command=e,this.properties=A,this.message=t;}toString(){var e;let A="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let e=!0;for(let t in this.properties)if(this.properties.hasOwnProperty(t)){let r=this.properties[t];r&&(e?e=!1:A+=",",A+=`${t}=${o.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return A+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),A7("fLT2x",function(e,A){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),A7("4pB6l",function(e,A){var t,r,n,o,i;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let s=n(rT),a=n(rL);o=ni("gwwkV"),i=ni("fLT2x"),e.exports.issueFileCommand=function(e,A){let t=process.env["GITHUB_"+e];if(!t)throw Error("Unable to find environment variable for file command "+e);if(!s.existsSync(t))throw Error("Missing file at path: "+t);s.appendFileSync(t,`${i.toCommandValue(A)}${a.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,A){let t="ghadelimiter_"+o.default(),r=i.toCommandValue(A);if(e.includes(t))throw Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw Error(`Unexpected input: value should not contain the delimiter "${t}"`);return`${e}<<${t}${a.EOL}${r}${a.EOL}${t}`;};}),A7("gwwkV",function(e,A){var t,r,n;a(e.exports,"default",()=>n),t=ni("9KrHT"),r=ni("7gFsJ"),n=function(e,A,n){let o=(e=e||{}).random||(e.rng||(0,t.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,A){n=n||0;for(let e=0;e<16;++e)A[n+e]=o[e];return A;}return(0,r.default)(o);};}),A7("9KrHT",function(e,A){function t(){return n>r.length-16&&(l(rx).randomFillSync(r),n=0),r.slice(n,n+=16);}a(e.exports,"default",()=>t);let r=new Uint8Array(256),n=r.length;}),A7("7gFsJ",function(e,A){var t,r;a(e.exports,"default",()=>r),t=ni("h9I0W");let n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).substr(1));r=function(e,A=0){let r=(n[e[A+0]]+n[e[A+1]]+n[e[A+2]]+n[e[A+3]]+"-"+n[e[A+4]]+n[e[A+5]]+"-"+n[e[A+6]]+n[e[A+7]]+"-"+n[e[A+8]]+n[e[A+9]]+"-"+n[e[A+10]]+n[e[A+11]]+n[e[A+12]]+n[e[A+13]]+n[e[A+14]]+n[e[A+15]]).toLowerCase();if(!(0,t.default)(r))throw TypeError("Stringified UUID is invalid");return r;};}),A7("h9I0W",function(e,A){var t,r;a(e.exports,"default",()=>r),t=ni("3M1uk"),r=function(e){return"string"==typeof e&&(0,t.default).test(e);};}),A7("3M1uk",function(e,A){a(e.exports,"default",()=>t);var t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),A7("171OM",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var r=ni("jdbFC"),n=ni("5OCZt"),o=ni("d1q4F");class i{static createHttpClient(e=!0,A=10){return new r.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],{allowRetries:e,maxRetries:A});}static getRequestToken(){let 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(){let 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 A;return t(this,void 0,void 0,function*(){let t=i.createHttpClient(),r=null===(A=(yield t.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} Error Message: ${e.message}`);})).result)||void 0===A?void 0:A.value;if(!r)throw Error("Response json body do not have ID Token field");return r;});}static getIDToken(e){return t(this,void 0,void 0,function*(){try{let A=i.getIDTokenUrl();if(e){let t=encodeURIComponent(e);A=`${A}&audience=${t}`;}o.debug("ID token url is "+A);let t=yield i.getCall(A);return o.setSecret(t),t;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=i;}),A7("jdbFC",function(e,A){var t,r,n,o,i,s,a,l,c,g;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(A,t);(!n||("get"in n?!A.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return A[t];}}),Object.defineProperty(e,r,n);}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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;let E=n(rM),u=n(r_),h=n(ni("hFsVR")),Q=n(ni("7r7u9"));i=ni("gYyeU"),(c=s||(e.exports.HttpCodes=s={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(g=a||(e.exports.Headers=a={})).Accept="accept",g.ContentType="content-type",(l||(e.exports.MediaTypes=l={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let A=h.getProxyUrl(new URL(e));return A?A.href:"";};let C=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],I=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class B extends Error{constructor(e,A){super(e),this.name="HttpClientError",this.statusCode=A,Object.setPrototypeOf(this,B.prototype);}}e.exports.HttpClientError=B;class f{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let A=Buffer.alloc(0);this.message.on("data",e=>{A=Buffer.concat([A,e]);}),this.message.on("end",()=>{e(A.toString());});}));});}readBodyBuffer(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let A=[];this.message.on("data",e=>{A.push(e);}),this.message.on("end",()=>{e(Buffer.concat(A));});}));});}}e.exports.HttpClientResponse=f,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,A,t){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=A||[],this.requestOptions=t,t&&(null!=t.ignoreSslError&&(this._ignoreSslError=t.ignoreSslError),this._socketTimeout=t.socketTimeout,null!=t.allowRedirects&&(this._allowRedirects=t.allowRedirects),null!=t.allowRedirectDowngrade&&(this._allowRedirectDowngrade=t.allowRedirectDowngrade),null!=t.maxRedirects&&(this._maxRedirects=Math.max(t.maxRedirects,0)),null!=t.keepAlive&&(this._keepAlive=t.keepAlive),null!=t.allowRetries&&(this._allowRetries=t.allowRetries),null!=t.maxRetries&&(this._maxRetries=t.maxRetries));}options(e,A){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,A||{});});}get(e,A){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,A||{});});}del(e,A){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,A||{});});}post(e,A,t){return o(this,void 0,void 0,function*(){return this.request("POST",e,A,t||{});});}patch(e,A,t){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,A,t||{});});}put(e,A,t){return o(this,void 0,void 0,function*(){return this.request("PUT",e,A,t||{});});}head(e,A){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,A||{});});}sendStream(e,A,t,r){return o(this,void 0,void 0,function*(){return this.request(e,A,t,r);});}getJson(e,A={}){return o(this,void 0,void 0,function*(){A[a.Accept]=this._getExistingOrDefaultHeader(A,a.Accept,l.ApplicationJson);let t=yield this.get(e,A);return this._processResponse(t,this.requestOptions);});}postJson(e,A,t={}){return o(this,void 0,void 0,function*(){let r=JSON.stringify(A,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.post(e,r,t);return this._processResponse(n,this.requestOptions);});}putJson(e,A,t={}){return o(this,void 0,void 0,function*(){let r=JSON.stringify(A,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.put(e,r,t);return this._processResponse(n,this.requestOptions);});}patchJson(e,A,t={}){return o(this,void 0,void 0,function*(){let r=JSON.stringify(A,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.patch(e,r,t);return this._processResponse(n,this.requestOptions);});}request(e,A,t,r){return o(this,void 0,void 0,function*(){let n;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(A),i=this._prepareRequest(e,o,r),a=this._allowRetries&&d.includes(e)?this._maxRetries+1:1,l=0;do{if((n=yield this.requestRaw(i,t))&&n.message&&n.message.statusCode===s.Unauthorized){let e;for(let A of this.handlers)if(A.canHandleAuthentication(n)){e=A;break;}if(e)return e.handleAuthentication(this,i,t);break;}let A=this._maxRedirects;for(;n.message.statusCode&&C.includes(n.message.statusCode)&&this._allowRedirects&&A>0;){let s=n.message.headers.location;if(!s)break;let a=new URL(s);if("https:"===o.protocol&&o.protocol!==a.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 n.readBody(),a.hostname!==o.hostname)for(let e in r)"authorization"===e.toLowerCase()&&delete r[e];i=this._prepareRequest(e,a,r),n=yield this.requestRaw(i,t),A--;}if(!n.message.statusCode||!I.includes(n.message.statusCode))break;(l+=1){this.requestRawWithCallback(e,A,function(e,A){e?r(e):A?t(A):r(Error("Unknown error"));});});});}requestRawWithCallback(e,A,t){let r;function n(e,A){o||(o=!0,t(e,A));}"string"==typeof A&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(A,"utf8"));let o=!1,i=e.httpModule.request(e.options,e=>{n(void 0,new f(e));});i.on("socket",e=>{r=e;}),i.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),n(Error("Request timeout: "+e.options.path));}),i.on("error",function(e){n(e);}),A&&"string"==typeof A&&i.write(A,"utf8"),A&&"string"!=typeof A?(A.on("close",function(){i.end();}),A.pipe(i)):i.end();}getAgent(e){let A=new URL(e);return this._getAgent(A);}getAgentDispatcher(e){let A=new URL(e),t=h.getProxyUrl(A);if(t&&t.hostname)return this._getProxyAgentDispatcher(A,t);}_prepareRequest(e,A,t){let r={};r.parsedUrl=A;let n="https:"===r.parsedUrl.protocol;if(r.httpModule=n?u:E,r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):n?443:80,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(t),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},p(this.requestOptions.headers),p(e||{})):p(e||{});}_getExistingOrDefaultHeader(e,A,t){let r;return this.requestOptions&&this.requestOptions.headers&&(r=p(this.requestOptions.headers)[A]),e[A]||r||t;}_getAgent(e){let A;let t=h.getProxyUrl(e),r=t&&t.hostname;if(this._keepAlive&&r&&(A=this._proxyAgent),r||(A=this._agent),A)return A;let n="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||E.globalAgent.maxSockets),t&&t.hostname){let e;let r={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(t.username||t.password)&&{proxyAuth:`${t.username}:${t.password}`}),{host:t.hostname,port:t.port})},i="https:"===t.protocol;A=(n?i?Q.httpsOverHttps:Q.httpsOverHttp:i?Q.httpOverHttps:Q.httpOverHttp)(r),this._proxyAgent=A;}if(!A){let e={keepAlive:this._keepAlive,maxSockets:o};A=n?new u.Agent(e):new E.Agent(e),this._agent=A;}return n&&this._ignoreSslError&&(A.options=Object.assign(A.options||{},{rejectUnauthorized:!1})),A;}_getProxyAgentDispatcher(e,A){let t;if(this._keepAlive&&(t=this._proxyAgentDispatcher),t)return t;let r="https:"===e.protocol;return t=new i.ProxyAgent(Object.assign({uri:A.href,pipelining:this._keepAlive?1:0},(A.username||A.password)&&{token:`${A.username}:${A.password}`})),this._proxyAgentDispatcher=t,r&&this._ignoreSslError&&(t.options=Object.assign(t.options.requestTls||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let A=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),A));});}_processResponse(e,A){return o(this,void 0,void 0,function*(){return new Promise((t,r)=>o(this,void 0,void 0,function*(){let n,o;let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===s.NotFound&&t(a);try{(o=yield e.readBody())&&o.length>0&&(n=A&&A.deserializeDates?JSON.parse(o,function(e,A){if("string"==typeof A){let e=new Date(A);if(!isNaN(e.valueOf()))return e;}return A;}):JSON.parse(o),a.result=n),a.headers=e.message.headers;}catch(e){}if(i>299){let e;let A=new B(n&&n.message?n.message:o&&o.length>0?o:`Failed request: (${i})`,i);A.result=a.result,r(A);}else t(a);}));});}};let p=e=>Object.keys(e).reduce((A,t)=>(A[t.toLowerCase()]=e[t],A),{});}),A7("hFsVR",function(e,A){function t(e){let A;if(!e.hostname)return!1;if(function(e){let A=e.toLowerCase();return"localhost"===A||A.startsWith("127.")||A.startsWith("[::1]")||A.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;e.port?A=+e.port:"http:"===e.protocol?A=80:"https:"===e.protocol&&(A=443);let r=[e.hostname.toUpperCase()];for(let e of("number"==typeof A&&r.push(`${r[0]}:${A}`),t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||r.some(A=>A===e||A.endsWith("."+e)||e.startsWith(".")&&A.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let A="https:"===e.protocol;if(t(e))return;let r=A?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new URL(r);}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new URL("http://"+r);}},e.exports.checkBypass=t;}),A7("7r7u9",function(e,A){e.exports=ni("4bd8K");}),A7("4bd8K",function(e,A){var t,r,n,o,i,s;function l(e){var A=this;A.options=e||{},A.proxyOptions=A.options.proxy||{},A.maxSockets=A.options.maxSockets||rM.Agent.defaultMaxSockets,A.requests=[],A.sockets=[],A.on("free",function(e,t,r,n){for(var o=g(t,r,n),i=0,s=A.requests.length;s>i;++i){var a=A.requests[i];if(a.host===o.host&&a.port===o.port){A.requests.splice(i,1),a.request.onSocket(e);return;}}e.destroy(),A.removeSocket(e);});}function c(e,A){var t=this;l.prototype.createSocket.call(t,e,function(r){var n=e.request.getHeader("host"),o=E({},t.options,{socket:r,servername:n?n.replace(/:.*$/,""):e.host}),i=rY.connect(0,o);t.sockets[t.sockets.indexOf(r)]=i,A(i);});}function g(e,A,t){return"string"==typeof e?{host:e,port:A,localAddress:t}:e;}function E(e){for(var A=1,t=arguments.length;t>A;++A){var r=arguments[A];if("object"==typeof r)for(var n=Object.keys(r),o=0,i=n.length;i>o;++o){var s=n[o];void 0!==r[s]&&(e[s]=r[s]);}}return e;}a(e.exports,"httpOverHttp",()=>t,e=>t=e),a(e.exports,"httpsOverHttp",()=>r,e=>r=e),a(e.exports,"httpOverHttps",()=>n,e=>n=e),a(e.exports,"httpsOverHttps",()=>o,e=>o=e),a(e.exports,"debug",()=>i,e=>i=e),t=function(e){var A=new l(e);return A.request=rM.request,A;},r=function(e){var A=new l(e);return A.request=rM.request,A.createSocket=c,A.defaultPort=443,A;},n=function(e){var A=new l(e);return A.request=r_.request,A;},o=function(e){var A=new l(e);return A.request=r_.request,A.createSocket=c,A.defaultPort=443,A;},rH.inherits(l,rG.EventEmitter),l.prototype.addRequest=function(e,A,t,r){var n=this,o=E({request:e},n.options,g(A,t,r));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return;}n.createSocket(o,function(A){function t(){n.emit("free",A,o);}function r(e){n.removeSocket(A),A.removeListener("free",t),A.removeListener("close",r),A.removeListener("agentRemove",r);}A.on("free",t),A.on("close",r),A.on("agentRemove",r),e.onSocket(A);});},l.prototype.createSocket=function(e,A){function t(t,r,a){if(n.removeAllListeners(),r.removeAllListeners(),200!==t.statusCode){s("tunneling socket could not be established, statusCode=%d",t.statusCode),r.destroy();var l=Error("tunneling socket could not be established, statusCode="+t.statusCode);l.code="ECONNRESET",e.request.emit("error",l),o.removeSocket(i);return;}if(a.length>0){s("got illegal response body from proxy"),r.destroy();var l=Error("got illegal response body from proxy");l.code="ECONNRESET",e.request.emit("error",l),o.removeSocket(i);return;}return s("tunneling connection has established"),o.sockets[o.sockets.indexOf(i)]=r,A(r);}var r,n,o=this,i={};o.sockets.push(i),r=E({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(r.localAddress=e.localAddress),r.proxyAuth&&(r.headers=r.headers||{},r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")),s("making CONNECT request"),(n=o.request(r)).useChunkedEncodingByDefault=!1,n.once("response",function(e){e.upgrade=!0;}),n.once("upgrade",function(e,A,r){process.nextTick(function(){t(e,A,r);});}),n.once("connect",t),n.once("error",function(A){n.removeAllListeners(),s("tunneling socket could not be established, cause=%s\n",A.message,A.stack);var t=Error("tunneling socket could not be established, cause="+A.message);t.code="ECONNRESET",e.request.emit("error",t),o.removeSocket(i);}),n.end();},l.prototype.removeSocket=function(e){var A=this.sockets.indexOf(e);if(-1!==A){this.sockets.splice(A,1);var t=this.requests.shift();t&&this.createSocket(t,function(e){t.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?s=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:s=function(){},i=s;}),A7("gYyeU",function(e,A){var t,r,n,o,i,s,l,c;let g;function E(e){return(A,t,r)=>{if("function"==typeof t&&(r=t,t=null),!A||"string"!=typeof A&&"object"!=typeof A&&!(A instanceof URL))throw new u("invalid url");if(null!=t&&"object"!=typeof t)throw new u("invalid opts");if(t&&null!=t.path){if("string"!=typeof t.path)throw new u("invalid opts.path");let e=t.path;t.path.startsWith("/")||(e="/"+e),A=new URL(o.parseOrigin(A).origin+e);}else t||(t="object"==typeof A?A:{}),A=o.parseURL(A);let{agent:n,dispatcher:i=c()}=t;if(n)throw new u("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...t,origin:A.origin,path:A.search?`${A.pathname}${A.search}`:A.pathname,method:t.method||(t.body?"PUT":"GET")},r);};}a(e.exports,"ProxyAgent",()=>t,e=>t=e),ni("2hBIk"),r=ni("4MNSY"),n=ni("03MxY"),ni("3xMRG"),ni("5PIC0"),ni("4UFSJ"),o=ni("c7jgd");let{InvalidArgumentError:u}=n;i=ni("1r8Ui"),ni("d4IVt"),ni("8uThA"),ni("6JGY1"),ni("9zXtN"),ni("3Tq4d"),s=ni("l978m"),ni("kovwN"),c=(l=ni("655rh")).getGlobalDispatcher,l.setGlobalDispatcher,ni("g4tYp"),ni("aAOM0"),ni("bHAsD");try{$c5bccf2a0667c094$import$ddd3d8d4c32dbb7f,g=!0;}catch{g=!1;}if(Object.assign(r.prototype,i),t=s,o.nodeMajor>16||16===o.nodeMajor&&o.nodeMinor>=8){ni("5AMIu").Headers,ni("eHlZn").Response,ni("drJZA").Request,ni("ltfpn").FormData,ni("5JU9i").File,ni("irzcX").FileReader;let{setGlobalOrigin:e,getGlobalOrigin:A}=ni("lLVSA"),{CacheStorage:t}=ni("7LQt9"),{kConstruct:r}=ni("4Hdrt");new t(r);}if(o.nodeMajor>=16){let{deleteCookie:e,getCookies:A,getSetCookies:t,setCookie:r}=ni("bkPeE"),{parseMIMEType:n,serializeAMimeType:o}=ni("ldxmf");}if(o.nodeMajor>=18&&g){let{WebSocket:e}=ni("7zLJz");}E(i.request),E(i.stream),E(i.pipeline),E(i.connect),E(i.upgrade);}),A7("2hBIk",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,T,x,M,_,O,Y,G,J,H,P,V,q,W,j,$,X,z,Z,K,ee,eA,et,er,en,eo,ei,es,ea,el,ec,eg,eE,eu,eh,eQ,eC,eI,ed;let eB;function ef(e){rJ("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),this[q][P]=e,eS(this[b],e);}function ep(e,A,t){let r=new Q(`HTTP/2: "frameError" received - type ${e}, code ${A}`);0===t&&(this[q][P]=r,eS(this[b],r));}function ey(){r.destroy(this,new h("other side closed")),r.destroy(this[q],new h("other side closed"));}function em(e){let A=this[b],t=new Q('HTTP/2: "GOAWAY" frame received with code '+e);if(A[q]=null,A[eE]=null,A.destroyed){rJ(0===this[F]);let e=A[T].splice(A[H]);for(let A=0;A0){let e=A[T][A[H]];A[T][A[H]++]=null,e_(A,e,t);}A[J]=A[H],rJ(0===A[N]),A.emit("disconnect",A[y],[A],t),eL(A);}async function ew(){let e;let A=process.env.JEST_WORKER_ID?ni("emiWM"):void 0;try{e=await WebAssembly.compile(Buffer.from(ni("60dNn"),"base64"));}catch(t){e=await WebAssembly.compile(Buffer.from(A||ni("emiWM"),"base64"));}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(e,A,t)=>0,wasm_on_status(e,A,t){rJ.strictEqual(eK.ptr,e);let r=A-e2+e0.byteOffset;return eK.onStatus(new eW(e0.buffer,r,t))||0;},wasm_on_message_begin:e=>(rJ.strictEqual(eK.ptr,e),eK.onMessageBegin()||0),wasm_on_header_field(e,A,t){rJ.strictEqual(eK.ptr,e);let r=A-e2+e0.byteOffset;return eK.onHeaderField(new eW(e0.buffer,r,t))||0;},wasm_on_header_value(e,A,t){rJ.strictEqual(eK.ptr,e);let r=A-e2+e0.byteOffset;return eK.onHeaderValue(new eW(e0.buffer,r,t))||0;},wasm_on_headers_complete:(e,A,t,r)=>(rJ.strictEqual(eK.ptr,e),eK.onHeadersComplete(A,!!t,!!r)||0),wasm_on_body(e,A,t){rJ.strictEqual(eK.ptr,e);let r=A-e2+e0.byteOffset;return eK.onBody(new eW(e0.buffer,r,t))||0;},wasm_on_message_complete:e=>(rJ.strictEqual(eK.ptr,e),eK.onMessageComplete()||0)}});}function eb(e){let{socket:A,timeoutType:t,client:n}=e;t===e4?(!A[U]||A.writableNeedDrain||n[N]>1)&&(rJ(!e.paused,"cannot be paused while waiting for headers"),r.destroy(A,new E())):t===e8?e.paused||r.destroy(A,new C()):t===e9&&(rJ(0===n[N]&&n[W]),r.destroy(A,new Q("socket idle timeout")));}function eR(){let{[D]:e}=this;e&&e.readMore();}function eD(e){let{[b]:A,[D]:t}=this;if(rJ("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),"h2"!==A[ec]&&"ECONNRESET"===e.code&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return;}this[P]=e,eS(this[b],e);}function eS(e,A){if(0===e[N]&&"UND_ERR_INFO"!==A.code&&"UND_ERR_SOCKET"!==A.code){rJ(e[J]===e[H]);let t=e[T].splice(e[H]);for(let r=0;r0&&"UND_ERR_INFO"!==t.code){let A=e[T][e[H]];e[T][e[H]++]=null,e_(e,A,t);}e[J]=e[H],rJ(0===e[N]),e.emit("disconnect",e[y],[e],t),eL(e);}async function eN(e){rJ(!e[M]),rJ(!e[q]);let{host:A,hostname:t,protocol:n,port:o}=e[y];if("["===t[0]){let e=t.indexOf("]");rJ(-1!==e);let A=t.substring(1,e);rJ(rO.isIP(A)),t=A;}e[M]=!0,e$.beforeConnect.hasSubscribers&&e$.beforeConnect.publish({connectParams:{host:A,hostname:t,protocol:n,port:o,servername:e[w],localAddress:e[ea]},connector:e[ee]});try{let i=await new Promise((r,i)=>{e[ee]({host:A,hostname:t,protocol:n,port:o,servername:e[w],localAddress:e[ea]},(e,A)=>{e?i(e):r(A);});});if(e.destroyed){r.destroy(i.on("error",()=>{}),new B());return;}if(e[M]=!1,rJ(i),"h2"===i.alpnProtocol){eq||(eq=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let A=eB.connect(e[y],{createConnection:()=>i,peerMaxConcurrentStreams:e[eu].maxConcurrentStreams});e[ec]="h2",A[b]=e,A[q]=i,A.on("error",ef),A.on("frameError",ep),A.on("end",ey),A.on("goaway",em),A.on("close",ek),A.unref(),e[eE]=A,i[eE]=A;}else ez||(ez=await eZ,eZ=null),i[O]=!1,i[U]=!1,i[m]=!1,i[v]=!1,i[D]=new e3(e,i,ez);i[er]=0,i[et]=e[et],i[b]=e,i[P]=null,i.on("error",eD).on("readable",eR).on("end",ev).on("close",ek),e[q]=i,e$.connected.hasSubscribers&&e$.connected.publish({connectParams:{host:A,hostname:t,protocol:n,port:o,servername:e[w],localAddress:e[ea]},connector:e[ee],socket:i}),e.emit("connect",e[y],[e]);}catch(r){if(e.destroyed)return;if(e[M]=!1,e$.connectError.hasSubscribers&&e$.connectError.publish({connectParams:{host:A,hostname:t,protocol:n,port:o,servername:e[w],localAddress:e[ea]},connector:e[ee],error:r}),"ERR_TLS_CERT_ALTNAME_INVALID"===r.code)for(rJ(0===e[N]);e[F]>0&&e[T][e[J]].servername===e[w];){let A=e[T][e[J]++];e_(e,A,r);}else eS(e,r);e.emit("connectionError",e[y],[e],r);}eL(e);}function eF(e){e[_]=0,e.emit("drain",e[y],[e]);}function eL(e,A){2!==e[k]&&(e[k]=2,function(e,A){for(;;){if(e.destroyed){rJ(0===e[F]);return;}if(e[ej]&&!e[L]){e[ej](),e[ej]=null;return;}let t=e[q];if(t&&!t.destroyed&&"h2"!==t.alpnProtocol){if(0===e[L]?!t[O]&&t.unref&&(t.unref(),t[O]=!0):t[O]&&t.ref&&(t.ref(),t[O]=!1),0===e[L])t[D].timeoutType!==e9&&t[D].setTimeout(e[W],e9);else if(e[N]>0&&t[D].statusCode<200&&t[D].timeoutType!==e4){let A=e[T][e[H]],r=null!=A.headersTimeout?A.headersTimeout:e[z];t[D].setTimeout(r,e4);}}if(e[R])e[_]=2;else if(2===e[_]){A?(e[_]=1,process.nextTick(eF,e)):eF(e);continue;}if(0===e[F]||e[N]>=(e[V]||1))return;let n=e[T][e[J]];if("https:"===e[y].protocol&&e[w]!==n.servername){if(e[N]>0)return;if(e[w]=n.servername,t&&t.servername!==n.servername){r.destroy(t,new Q("servername changed"));return;}}if(e[M])return;if(!t&&!e[eE]){eN(e);return;}if(t.destroyed||t[U]||t[m]||t[v]||e[N]>0&&!n.idempotent||e[N]>0&&(n.upgrade||"CONNECT"===n.method)||e[N]>0&&0!==r.bodyLength(n.body)&&(r.isStream(n.body)||r.isAsyncIterable(n.body)))return;!n.aborted&&function(e,A){if("h2"===e[ec]){(function(e,A,t){let n,i;function s(){l?r.isBuffer(l)?(rJ(p===l.byteLength,"buffer body must have content length"),i.cork(),i.write(l),i.uncork(),i.end(),t.onBodySent(l),t.onRequestSent()):r.isBlobLike(l)?"function"==typeof l.stream?eM({client:e,request:t,contentLength:p,h2stream:i,expectsPayload:f,body:l.stream(),socket:e[q],header:""}):ex({body:l,client:e,request:t,contentLength:p,expectsPayload:f,h2stream:i,header:"",socket:e[q]}):r.isStream(l)?eT({body:l,client:e,request:t,contentLength:p,expectsPayload:f,socket:e[q],h2stream:i,header:""}):r.isIterable(l)?eM({body:l,client:e,request:t,contentLength:p,expectsPayload:f,header:"",h2stream:i,socket:e[q]}):rJ(!1):t.onRequestSent();}let{body:l,method:c,path:E,host:u,upgrade:h,expectContinue:C,signal:I,headers:d}=t;if(n="string"==typeof d?o[eQ](d.trim()):d,h)return e_(e,t,Error("Upgrade not supported for H2"));try{t.onConnect(A=>{t.aborted||t.completed||e_(e,t,A||new g());});}catch(A){e_(e,t,A);}if(t.aborted)return;let B=e[eu];if(n[eO]=u||e[eg],n[eY]=c,"CONNECT"===c)return A.ref(),(i=A.request(n,{endStream:!1,signal:I})).id&&!i.pending?(t.onUpgrade(null,null,i),++B.openStreams):i.once("ready",()=>{t.onUpgrade(null,null,i),++B.openStreams;}),i.once("close",()=>{B.openStreams-=1,0===B.openStreams&&A.unref();});n[eG]=E,n[eJ]="https";let f="PUT"===c||"POST"===c||"PATCH"===c;l&&"function"==typeof l.read&&l.read(0);let p=r.bodyLength(l);if(null==p&&(p=t.contentLength),0!==p&&f||(p=null),eU(c)&&p>0&&null!=t.contentLength&&t.contentLength!==p){if(e[K])return e_(e,t,new a());process.emitWarning(new a());}null!=p&&(rJ(l,"no body must not have content length"),n[eH]=""+p),A.ref();let y="GET"===c||"HEAD"===c;C?(n[eP]="100-continue",(i=A.request(n,{endStream:y,signal:I})).once("continue",s)):(i=A.request(n,{endStream:y,signal:I}),s()),++B.openStreams,i.once("response",e=>{let{[eV]:A,...r}=e;!1===t.onHeaders(+A,r,i.resume.bind(i),"")&&i.pause();}),i.once("end",()=>{t.onComplete([]);}),i.on("data",e=>{!1===t.onData(e)&&i.pause();}),i.once("close",()=>{B.openStreams-=1,0===B.openStreams&&A.unref();}),i.once("error",function(A){!e[eE]||e[eE].destroyed||this.closed||this.destroyed||(B.streams-=1,r.destroy(i,A));}),i.once("frameError",(A,n)=>{let o=new Q(`HTTP/2: "frameError" received - type ${A}, code ${n}`);e_(e,t,o),!e[eE]||e[eE].destroyed||this.closed||this.destroyed||(B.streams-=1,r.destroy(i,o));});})(e,e[eE],A);return;}let{body:t,method:n,path:i,host:s,upgrade:l,headers:c,blocking:E,reset:u}=A,h="PUT"===n||"POST"===n||"PATCH"===n;t&&"function"==typeof t.read&&t.read(0);let C=r.bodyLength(t),I=C;if(null===I&&(I=A.contentLength),0!==I||h||(I=null),eU(n)&&I>0&&null!==A.contentLength&&A.contentLength!==I){if(e[K])return e_(e,A,new a()),!1;process.emitWarning(new a());}let d=e[q];try{A.onConnect(t=>{A.aborted||A.completed||(e_(e,A,t||new g()),r.destroy(d,new Q("aborted")));});}catch(t){e_(e,A,t);}if(A.aborted)return!1;"HEAD"===n&&(d[m]=!0),(l||"CONNECT"===n)&&(d[m]=!0),null!=u&&(d[m]=u),e[et]&&d[er]++>=e[et]&&(d[m]=!0),E&&(d[v]=!0);let B=`${n} ${i} HTTP/1.1\r `;return"string"==typeof s?B+=`host: ${s}\r `:B+=e[G],l?B+=`connection: upgrade\r upgrade: ${l}\r `:e[V]&&!d[m]?B+="connection: keep-alive\r\n":B+="connection: close\r\n",c&&(B+=c),e$.sendHeaders.hasSubscribers&&e$.sendHeaders.publish({request:A,headers:B,socket:d}),t&&0!==C?r.isBuffer(t)?(rJ(I===t.byteLength,"buffer body must have content length"),d.cork(),d.write(`${B}content-length: ${I}\r \r `,"latin1"),d.write(t),d.uncork(),A.onBodySent(t),A.onRequestSent(),h||(d[m]=!0)):r.isBlobLike(t)?"function"==typeof t.stream?eM({body:t.stream(),client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):ex({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):r.isStream(t)?eT({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):r.isIterable(t)?eM({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):rJ(!1):(0===I?d.write(`${B}content-length: 0\r \r `,"latin1"):(rJ(null===I,"no body must not have content length"),d.write(`${B}\r `,"latin1")),A.onRequestSent()),!0;}(e,n)?e[J]++:e[T].splice(e[J],1);}}(e,A),e[k]=0,e[H]>256&&(e[T].splice(0,e[H]),e[J]-=e[H],e[H]=0));}function eU(e){return"GET"!==e&&"HEAD"!==e&&"OPTIONS"!==e&&"TRACE"!==e&&"CONNECT"!==e;}function eT({h2stream:e,body:A,client:n,request:o,socket:i,contentLength:s,header:a,expectsPayload:l}){if(rJ(0!==s||0===n[N],"stream body cannot be pipelined"),"h2"===n[ec]){function c(e){o.onBodySent(e);}let n=t(A,e,t=>{t?(r.destroy(A,t),r.destroy(e,t)):o.onRequestSent();});n.on("data",c),n.once("end",()=>{n.removeListener("data",c),r.destroy(n);});return;}let E=!1,u=new e5({socket:i,request:o,contentLength:s,client:n,expectsPayload:l,header:a}),h=function(e){if(!E)try{!u.write(e)&&this.pause&&this.pause();}catch(e){r.destroy(this,e);}},Q=function(){!E&&A.resume&&A.resume();},C=function(){if(E)return;let e=new g();queueMicrotask(()=>I(e));},I=function(e){if(!E){if(E=!0,rJ(i.destroyed||i[U]&&n[N]<=1),i.off("drain",Q).off("error",I),A.removeListener("data",h).removeListener("end",I).removeListener("error",I).removeListener("close",C),!e)try{u.end();}catch(A){e=A;}u.destroy(e),e&&("UND_ERR_INFO"!==e.code||"reset"!==e.message)?r.destroy(A,e):r.destroy(A);}};A.on("data",h).on("end",I).on("error",I).on("close",C),A.resume&&A.resume(),i.on("drain",Q).on("error",I);}async function ex({h2stream:e,body:A,client:t,request:n,socket:o,contentLength:i,header:s,expectsPayload:l}){rJ(i===A.size,"blob body must have content length");let c="h2"===t[ec];try{if(null!=i&&i!==A.size)throw new a();let r=Buffer.from(await A.arrayBuffer());c?(e.cork(),e.write(r),e.uncork()):(o.cork(),o.write(`${s}content-length: ${i}\r \r `,"latin1"),o.write(r),o.uncork()),n.onBodySent(r),n.onRequestSent(),l||(o[m]=!0),eL(t);}catch(A){r.destroy(c?e:o,A);}}async function eM({h2stream:e,body:A,client:t,request:r,socket:n,contentLength:o,header:i,expectsPayload:s}){function a(){if(l){let e=l;l=null,e();}}rJ(0!==o||0===t[N],"iterator body cannot be pipelined");let l=null,c=()=>new Promise((e,A)=>{rJ(null===l),n[P]?A(n[P]):l=e;});if("h2"===t[ec]){e.on("close",a).on("drain",a);try{for await(let t of A){if(n[P])throw n[P];let A=e.write(t);r.onBodySent(t),A||(await c());}}catch(A){e.destroy(A);}finally{r.onRequestSent(),e.end(),e.off("close",a).off("drain",a);}return;}n.on("close",a).on("drain",a);let g=new e5({socket:n,request:r,contentLength:o,client:t,expectsPayload:s,header:i});try{for await(let e of A){if(n[P])throw n[P];g.write(e)||(await c());}g.end();}catch(e){g.destroy(e);}finally{n.off("close",a).off("drain",a);}}function e_(e,A,t){try{A.onError(t),rJ(A.aborted);}catch(A){e.emit("error",A);}}t=rP.pipeline,r=ni("c7jgd"),n=ni("fsDW2"),o=ni("cEHE4"),i=ni("k3HYk"),a=(s=ni("03MxY")).RequestContentLengthMismatchError,l=s.ResponseContentLengthMismatchError,c=s.InvalidArgumentError,g=s.RequestAbortedError,E=s.HeadersTimeoutError,u=s.HeadersOverflowError,h=s.SocketError,Q=s.InformationalError,C=s.BodyTimeoutError,I=s.HTTPParserError,d=s.ResponseExceededMaxSizeError,B=s.ClientDestroyedError,f=ni("d4IVt"),y=(p=ni("J3IVZ")).kUrl,m=p.kReset,w=p.kServerName,b=p.kClient,R=p.kBusy,D=p.kParser,S=p.kConnect,v=p.kBlocking,k=p.kResuming,N=p.kRunning,F=p.kPending,L=p.kSize,U=p.kWriting,T=p.kQueue,x=p.kConnected,M=p.kConnecting,_=p.kNeedDrain,O=p.kNoRef,Y=p.kKeepAliveDefaultTimeout,G=p.kHostHeader,J=p.kPendingIdx,H=p.kRunningIdx,P=p.kError,V=p.kPipelining,q=p.kSocket,W=p.kKeepAliveTimeoutValue,j=p.kMaxHeadersSize,$=p.kKeepAliveMaxTimeout,X=p.kKeepAliveTimeoutThreshold,z=p.kHeadersTimeout,Z=p.kBodyTimeout,K=p.kStrictContentLength,ee=p.kConnector,eA=p.kMaxRedirections,et=p.kMaxRequests,er=p.kCounter,en=p.kClose,eo=p.kDestroy,ei=p.kDispatch,es=p.kInterceptors,ea=p.kLocalAddress,el=p.kMaxResponseSize,ec=p.kHTTPConnVersion,eg=p.kHost,eE=p.kHTTP2Session,eu=p.kHTTP2SessionState,eh=p.kHTTP2BuildRequest,eQ=p.kHTTP2CopyHeaders,eC=p.kHTTP1BuildRequest;try{eB=$1a9a6c83d93b5ec4$import$dc5c58500bc5a0ce;}catch{eB={constants:{}};}let{constants:{HTTP2_HEADER_AUTHORITY:eO,HTTP2_HEADER_METHOD:eY,HTTP2_HEADER_PATH:eG,HTTP2_HEADER_SCHEME:eJ,HTTP2_HEADER_CONTENT_LENGTH:eH,HTTP2_HEADER_EXPECT:eP,HTTP2_HEADER_STATUS:eV}}=eB,eq=!1,eW=Buffer[Symbol.species],ej=Symbol(),e$={};try{let e=ni("aNCRb");e$.sendHeaders=e.channel("undici:client:sendHeaders"),e$.beforeConnect=e.channel("undici:client:beforeConnect"),e$.connectError=e.channel("undici:client:connectError"),e$.connected=e.channel("undici:client:connected");}catch{e$.sendHeaders={hasSubscribers:!1},e$.beforeConnect={hasSubscribers:!1},e$.connectError={hasSubscribers:!1},e$.connected={hasSubscribers:!1};}eI=ni("azzFq"),ed=ni("bHAsD");let eX=Buffer.alloc(0),ez=null,eZ=ew();eZ.catch();let eK=null,e0=null,e1=0,e2=null,e4=1,e8=2,e9=3;class e3{constructor(e,A,{exports:t}){rJ(Number.isFinite(e[j])&&e[j]>0),this.llhttp=t,this.ptr=this.llhttp.llhttp_alloc(eI.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[j],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[el];}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(n.clearTimeout(this.timeout),e?(this.timeout=n.setTimeout(eb,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh();}resume(){!this.socket.destroyed&&this.paused&&(rJ(null!=this.ptr),rJ(null==eK),this.llhttp.llhttp_resume(this.ptr),rJ(this.timeoutType===e8),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||eX),this.readMore());}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(null===e)break;this.execute(e);}}execute(e){rJ(null!=this.ptr),rJ(null==eK),rJ(!this.paused);let{socket:A,llhttp:t}=this;e.length>e1&&(e2&&t.free(e2),e1=4096*Math.ceil(e.length/4096),e2=t.malloc(e1)),new Uint8Array(t.memory.buffer,e2,e1).set(e);try{let r;try{e0=e,eK=this,r=t.llhttp_execute(this.ptr,e2,e.length);}catch(e){throw e;}finally{eK=null,e0=null;}let n=t.llhttp_get_error_pos(this.ptr)-e2;if(r===eI.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(r===eI.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));else if(r!==eI.ERROR.OK){let A=t.llhttp_get_error_reason(this.ptr),o="";if(A){let e=new Uint8Array(t.memory.buffer,A).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(t.memory.buffer,A,e).toString()+")";}throw new I(o,eI.ERROR[r],e.slice(n));}}catch(e){r.destroy(A,e);}}destroy(){rJ(null!=this.ptr),rJ(null==eK),this.llhttp.llhttp_free(this.ptr),this.ptr=null,n.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1;}onStatus(e){this.statusText=e.toString();}onMessageBegin(){let{socket:e,client:A}=this;if(e.destroyed||!A[T][A[H]])return-1;}onHeaderField(e){let A=this.headers.length;(1&A)==0?this.headers.push(e):this.headers[A-1]=Buffer.concat([this.headers[A-1],e]),this.trackHeader(e.length);}onHeaderValue(e){let A=this.headers.length;(1&A)==1?(this.headers.push(e),A+=1):this.headers[A-1]=Buffer.concat([this.headers[A-1],e]);let t=this.headers[A-2];10===t.length&&"keep-alive"===t.toString().toLowerCase()?this.keepAlive+=e.toString():10===t.length&&"connection"===t.toString().toLowerCase()?this.connection+=e.toString():14===t.length&&"content-length"===t.toString().toLowerCase()&&(this.contentLength+=e.toString()),this.trackHeader(e.length);}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&r.destroy(this.socket,new u());}onUpgrade(e){let{upgrade:A,client:t,socket:n,headers:o,statusCode:i}=this;rJ(A);let s=t[T][t[H]];rJ(s),rJ(!n.destroyed),rJ(n===t[q]),rJ(!this.paused),rJ(s.upgrade||"CONNECT"===s.method),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,rJ(this.headers.length%2==0),this.headers=[],this.headersSize=0,n.unshift(e),n[D].destroy(),n[D]=null,n[b]=null,n[P]=null,n.removeListener("error",eD).removeListener("readable",eR).removeListener("end",ev).removeListener("close",ek),t[q]=null,t[T][t[H]++]=null,t.emit("disconnect",t[y],[t],new Q("upgrade"));try{s.onUpgrade(i,o,n);}catch(e){r.destroy(n,e);}eL(t);}onHeadersComplete(e,A,t){let{client:n,socket:o,headers:i,statusText:s}=this;if(o.destroyed)return-1;let a=n[T][n[H]];if(!a)return-1;if(rJ(!this.upgrade),rJ(this.statusCode<200),100===e)return r.destroy(o,new h("bad response",r.getSocketInfo(o))),-1;if(A&&!a.upgrade)return r.destroy(o,new h("bad upgrade",r.getSocketInfo(o))),-1;if(rJ.strictEqual(this.timeoutType,e4),this.statusCode=e,this.shouldKeepAlive=t||"HEAD"===a.method&&!o[m]&&"keep-alive"===this.connection.toLowerCase(),this.statusCode>=200){let e=null!=a.bodyTimeout?a.bodyTimeout:n[Z];this.setTimeout(e,e8);}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if("CONNECT"===a.method||A)return rJ(1===n[N]),this.upgrade=!0,2;if(rJ(this.headers.length%2==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&n[V]){let e=this.keepAlive?r.parseKeepAliveTimeout(this.keepAlive):null;if(null!=e){let A=Math.min(e-n[X],n[$]);A<=0?o[m]=!0:n[W]=A;}else n[W]=n[Y];}else o[m]=!0;let l=!1===a.onHeaders(e,i,this.resume,s);return a.aborted?-1:"HEAD"===a.method||e<200?1:(o[v]&&(o[v]=!1,eL(n)),l?eI.ERROR.PAUSED:0);}onBody(e){let{client:A,socket:t,statusCode:n,maxResponseSize:o}=this;if(t.destroyed)return-1;let i=A[T][A[H]];return(rJ(i),rJ.strictEqual(this.timeoutType,e8),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),rJ(n>=200),o>-1&&this.bytesRead+e.length>o)?(r.destroy(t,new d()),-1):(this.bytesRead+=e.length,!1===i.onData(e))?eI.ERROR.PAUSED:void 0;}onMessageComplete(){let{client:e,socket:A,statusCode:t,upgrade:n,headers:o,contentLength:i,bytesRead:s,shouldKeepAlive:a}=this;if(A.destroyed&&(!t||a))return-1;if(n)return;let c=e[T][e[H]];if(rJ(c),rJ(t>=100),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",rJ(this.headers.length%2==0),this.headers=[],this.headersSize=0,!(t<200)){if("HEAD"!==c.method&&i&&s!==parseInt(i,10))return r.destroy(A,new l()),-1;if(c.onComplete(o),e[T][e[H]++]=null,A[U])return rJ.strictEqual(e[N],0),r.destroy(A,new Q("reset")),eI.ERROR.PAUSED;if(!a)return r.destroy(A,new Q("reset")),eI.ERROR.PAUSED;if(A[m]&&0===e[N])return r.destroy(A,new Q("reset")),eI.ERROR.PAUSED;1===e[V]?setImmediate(eL,e):eL(e);}}}class e5{constructor({socket:e,request:A,contentLength:t,client:r,expectsPayload:n,header:o}){this.socket=e,this.request=A,this.contentLength=t,this.client=r,this.bytesWritten=0,this.expectsPayload=n,this.header=o,e[U]=!0;}write(e){let{socket:A,request:t,contentLength:r,client:n,bytesWritten:o,expectsPayload:i,header:s}=this;if(A[P])throw A[P];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(null!==r&&o+l>r){if(n[K])throw new a();process.emitWarning(new a());}A.cork(),0===o&&(i||(A[m]=!0),null===r?A.write(`${s}transfer-encoding: chunked\r `,"latin1"):A.write(`${s}content-length: ${r}\r \r `,"latin1")),null===r&&A.write(`\r ${l.toString(16)}\r `,"latin1"),this.bytesWritten+=l;let c=A.write(e);return A.uncork(),t.onBodySent(e),!c&&A[D].timeout&&A[D].timeoutType===e4&&A[D].timeout.refresh&&A[D].timeout.refresh(),c;}end(){let{socket:e,contentLength:A,client:t,bytesWritten:r,expectsPayload:n,header:o,request:i}=this;if(i.onRequestSent(),e[U]=!1,e[P])throw e[P];if(!e.destroyed){if(0===r?n?e.write(`${o}content-length: 0\r \r `,"latin1"):e.write(`${o}\r `,"latin1"):null===A&&e.write("\r\n0\r\n\r\n","latin1"),null!==A&&r!==A){if(t[K])throw new a();process.emitWarning(new a());}e[D].timeout&&e[D].timeoutType===e4&&e[D].timeout.refresh&&e[D].timeout.refresh(),eL(t);}}destroy(e){let{socket:A,client:t}=this;A[U]=!1,e&&(rJ(t[N]<=1,"pipeline should only contain this request"),r.destroy(A,e));}}e.exports=class extends i{constructor(e,{interceptors:A,maxHeaderSize:t,headersTimeout:n,socketTimeout:o,requestTimeout:i,connectTimeout:s,bodyTimeout:a,idleTimeout:l,keepAlive:g,keepAliveTimeout:E,maxKeepAliveTimeout:u,keepAliveMaxTimeout:h,keepAliveTimeoutThreshold:Q,socketPath:C,pipelining:I,tls:d,strictContentLength:B,maxCachedSessions:p,maxRedirections:m,connect:b,maxRequestsPerClient:R,localAddress:D,maxResponseSize:S,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:N,allowH2:F,maxConcurrentStreams:L}={}){if(super(),void 0!==g)throw new c("unsupported keepAlive, use pipelining=0 instead");if(void 0!==o)throw new c("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==i)throw new c("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==l)throw new c("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==u)throw new c("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=t&&!Number.isFinite(t))throw new c("invalid maxHeaderSize");if(null!=C&&"string"!=typeof C)throw new c("invalid socketPath");if(null!=s&&(!Number.isFinite(s)||s<0))throw new c("invalid connectTimeout");if(null!=E&&(!Number.isFinite(E)||E<=0))throw new c("invalid keepAliveTimeout");if(null!=h&&(!Number.isFinite(h)||h<=0))throw new c("invalid keepAliveMaxTimeout");if(null!=Q&&!Number.isFinite(Q))throw new c("invalid keepAliveTimeoutThreshold");if(null!=n&&(!Number.isInteger(n)||n<0))throw new c("headersTimeout must be a positive integer or zero");if(null!=a&&(!Number.isInteger(a)||a<0))throw new c("bodyTimeout must be a positive integer or zero");if(null!=b&&"function"!=typeof b&&"object"!=typeof b)throw new c("connect must be a function or an object");if(null!=m&&(!Number.isInteger(m)||m<0))throw new c("maxRedirections must be a positive number");if(null!=R&&(!Number.isInteger(R)||R<0))throw new c("maxRequestsPerClient must be a positive number");if(null!=D&&("string"!=typeof D||0===rO.isIP(D)))throw new c("localAddress must be valid string IP address");if(null!=S&&(!Number.isInteger(S)||S<-1))throw new c("maxResponseSize must be a positive number");if(null!=N&&(!Number.isInteger(N)||N<-1))throw new c("autoSelectFamilyAttemptTimeout must be a positive number");if(null!=F&&"boolean"!=typeof F)throw new c("allowH2 must be a valid boolean value");if(null!=L&&("number"!=typeof L||L<1))throw new c("maxConcurrentStreams must be a possitive integer, greater than 0");"function"!=typeof b&&(b=f({...d,maxCachedSessions:p,allowH2:F,socketPath:C,timeout:s,...(r.nodeHasAutoSelectFamily&&v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:N}:void 0),...b})),this[es]=A&&A.Client&&Array.isArray(A.Client)?A.Client:[ed({maxRedirections:m})],this[y]=r.parseOrigin(e),this[ee]=b,this[q]=null,this[V]=null!=I?I:1,this[j]=t||rM.maxHeaderSize,this[Y]=null==E?4e3:E,this[$]=null==h?6e5:h,this[X]=null==Q?1e3:Q,this[W]=this[Y],this[w]=null,this[ea]=null!=D?D:null,this[k]=0,this[_]=0,this[G]=`host: ${this[y].hostname}${this[y].port?":"+this[y].port:""}\r `,this[Z]=null!=a?a:3e5,this[z]=null!=n?n:3e5,this[K]=null==B||B,this[eA]=m,this[et]=R,this[ej]=null,this[el]=S>-1?S:-1,this[ec]="h1",this[eE]=null,this[eu]=F?{openStreams:0,maxConcurrentStreams:null!=L?L:100}:null,this[eg]=`${this[y].hostname}${this[y].port?":"+this[y].port:""}`,this[T]=[],this[H]=0,this[J]=0;}get pipelining(){return this[V];}set pipelining(e){this[V]=e,eL(this,!0);}get[F](){return this[T].length-this[J];}get[N](){return this[J]-this[H];}get[L](){return this[T].length-this[H];}get[x](){return!!this[q]&&!this[M]&&!this[q].destroyed;}get[R](){let e=this[q];return e&&(e[m]||e[U]||e[v])||this[L]>=(this[V]||1)||this[F]>0;}[S](e){eN(this),this.once("connect",e);}[ei](e,A){let t=e.origin||this[y].origin,n="h2"===this[ec]?o[eh](t,e,A):o[eC](t,e,A);return this[T].push(n),this[k]||(null==r.bodyLength(n.body)&&r.isIterable(n.body)?(this[k]=1,process.nextTick(eL,this)):eL(this,!0)),this[k]&&2!==this[_]&&this[R]&&(this[_]=2),this[_]<2;}async[en](){return new Promise(e=>{this[L]?this[ej]=e:e(null);});}async[eo](e){return new Promise(A=>{let t=this[T].splice(this[J]);for(let A=0;A{this[ej]&&(this[ej](),this[ej]=null),A();};null!=this[eE]&&(r.destroy(this[eE],e),this[eE]=null,this[eu]=null),this[q]?r.destroy(this[q].on("close",n),e):queueMicrotask(n),eL(this);});}};}),A7("c7jgd",function(e,A){var t,r,n,o,i,s,a,l;let c;function g(e){return e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on;}function E(e){return s&&e instanceof s||e&&"object"==typeof e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]);}function u(e){if("string"==typeof e){if(e=new URL(e),!/^https?:/.test(e.origin||e.protocol))throw new i("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e;}if(!e||"object"!=typeof e)throw new i("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(e.origin||e.protocol))throw new i("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(e instanceof URL)){if(null!=e.port&&""!==e.port&&!Number.isFinite(parseInt(e.port)))throw new i("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=e.path&&"string"!=typeof e.path)throw new i("Invalid URL path: the path must be a string or null/undefined.");if(null!=e.pathname&&"string"!=typeof e.pathname)throw new i("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=e.hostname&&"string"!=typeof e.hostname)throw new i("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=e.origin&&"string"!=typeof e.origin)throw new i("Invalid URL origin: the origin must be a string or null/undefined.");let A=null!=e.port?e.port:"https:"===e.protocol?443:80,t=null!=e.origin?e.origin:`${e.protocol}//${e.hostname}:${A}`,r=null!=e.path?e.path:`${e.pathname||""}${e.search||""}`;t.endsWith("/")&&(t=t.substring(0,t.length-1)),r&&!r.startsWith("/")&&(r="/"+r),e=new URL(t+r);}return e;}function h(e){return!e||!!(e.destroyed||e[r]);}function Q(e){let A=e&&e._readableState;return h(e)&&A&&!A.endEmitted;}function C(e){return e instanceof Uint8Array||Buffer.isBuffer(e);}async function*I(e){for await(let A of e)yield Buffer.isBuffer(A)?A:Buffer.from(A);}r=(t=ni("J3IVZ")).kDestroyed,n=t.kBodyUsed,o=rM.IncomingMessage,i=ni("03MxY").InvalidArgumentError,s=rV.Blob,a=rq.stringify,l=ni("iM175").headerNameLowerCasedRecord;let[d,B]=process.versions.node.split(".").map(e=>+e),f=!!String.prototype.toWellFormed,p=Object.create(null);p.enumerable=!0,e.exports={kEnumerableProperty:p,nop:function(){},isDisturbed:function(e){return!!(e&&(rP.isDisturbed?rP.isDisturbed(e)||e[n]:e[n]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||Q(e)));},isErrored:function(e){return!!(e&&(rP.isErrored?rP.isErrored(e):/state: 'errored'/.test(rH.inspect(e))));},isReadable:function(e){return!!(e&&(rP.isReadable?rP.isReadable(e):/state: 'readable'/.test(rH.inspect(e))));},toUSVString:function(e){return f?(""+e).toWellFormed():rH.toUSVString?rH.toUSVString(e):""+e;},isReadableAborted:Q,isBlobLike:E,parseOrigin:function(e){if("/"!==(e=u(e)).pathname||e.search||e.hash)throw new i("invalid url");return e;},parseURL:u,getServerName:function(e){if(!e)return null;rJ.strictEqual(typeof e,"string");let A=function(e){if("["===e[0]){let A=e.indexOf("]");return rJ(-1!==A),e.substring(1,A);}let A=e.indexOf(":");return-1===A?e:e.substring(0,A);}(e);return rO.isIP(A)?"":A;},isStream:g,isIterable:function(e){return!!(null!=e&&("function"==typeof e[Symbol.iterator]||"function"==typeof e[Symbol.asyncIterator]));},isAsyncIterable:function(e){return!!(null!=e&&"function"==typeof e[Symbol.asyncIterator]);},isDestroyed:h,headerNameToString:function(e){return l[e]||e.toLowerCase();},parseRawHeaders:function(e){let A=[],t=!1,r=-1;for(let n=0;ne.toString("utf8")):A[r]=e[t+1].toString("utf8");}return"content-length"in A&&"content-disposition"in A&&(A["content-disposition"]=Buffer.from(A["content-disposition"]).toString("latin1")),A;},parseKeepAliveTimeout:function(e){let A=e.toString().match(/timeout=(\d+)/);return A?1e3*parseInt(A[1],10):null;},destroy:function(e,A){null==e||!g(e)||h(e)||("function"==typeof e.destroy?(Object.getPrototypeOf(e).constructor===o&&(e.socket=null),e.destroy(A)):A&&process.nextTick((e,A)=>{e.emit("error",A);},e,A),!0===e.destroyed||(e[r]=!0));},bodyLength:function(e){if(null==e)return 0;if(g(e)){let A=e._readableState;return A&&!1===A.objectMode&&!0===A.ended&&Number.isFinite(A.length)?A.length:null;}return E(e)?null!=e.size?e.size:null:C(e)?e.byteLength:null;},deepClone:function(e){return JSON.parse(JSON.stringify(e));},ReadableStreamFrom:function(e){let A;return(c||(c=ni("9UQbL").ReadableStream),c.from)?c.from(I(e)):new c({async start(){A=e[Symbol.asyncIterator]();},async pull(e){let{done:t,value:r}=await A.next();if(t)queueMicrotask(()=>{e.close();});else{let A=Buffer.isBuffer(r)?r:Buffer.from(r);e.enqueue(new Uint8Array(A));}return e.desiredSize>0;},async cancel(e){await A.return();}},0);},isBuffer:C,validateHandler:function(e,A,t){if(!e||"object"!=typeof e)throw new i("handler must be an object");if("function"!=typeof e.onConnect)throw new i("invalid onConnect method");if("function"!=typeof e.onError)throw new i("invalid onError method");if("function"!=typeof e.onBodySent&&void 0!==e.onBodySent)throw new i("invalid onBodySent method");if(t||"CONNECT"===A){if("function"!=typeof e.onUpgrade)throw new i("invalid onUpgrade method");}else{if("function"!=typeof e.onHeaders)throw new i("invalid onHeaders method");if("function"!=typeof e.onData)throw new i("invalid onData method");if("function"!=typeof e.onComplete)throw new i("invalid onComplete method");}},getSocketInfo:function(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead};},isFormDataLike:function(e){return e&&"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&"FormData"===e[Symbol.toStringTag];},buildURL:function(e,A){if(e.includes("?")||e.includes("#"))throw Error('Query params cannot be passed when url already contains "?" or "#".');let t=a(A);return t&&(e+="?"+t),e;},throwIfAborted:function(e){if(e){if("function"==typeof e.throwIfAborted)e.throwIfAborted();else if(e.aborted){let e=Error("The operation was aborted");throw e.name="AbortError",e;}}},addAbortListener:function(e,A){return"addEventListener"in e?(e.addEventListener("abort",A,{once:!0}),()=>e.removeEventListener("abort",A)):(e.addListener("abort",A),()=>e.removeListener("abort",A));},parseRangeHeader:function(e){if(null==e||""===e)return{start:0,end:null,size:null};let A=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return A?{start:parseInt(A[1]),end:A[2]?parseInt(A[2]):null,size:A[3]?parseInt(A[3]):null}:null;},nodeMajor:d,nodeMinor:B,nodeHasAutoSelectFamily:d>18||18===d&&B>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]};}),A7("J3IVZ",function(e,A){e.exports={kClose:Symbol(),kDestroy:Symbol(),kDispatch:Symbol(),kUrl:Symbol(),kWriting:Symbol(),kResuming:Symbol(),kQueue:Symbol(),kConnect:Symbol(),kConnecting:Symbol(),kHeadersList:Symbol(),kKeepAliveDefaultTimeout:Symbol(),kKeepAliveMaxTimeout:Symbol(),kKeepAliveTimeoutThreshold:Symbol(),kKeepAliveTimeoutValue:Symbol(),kKeepAlive:Symbol(),kHeadersTimeout:Symbol(),kBodyTimeout:Symbol(),kServerName:Symbol(),kLocalAddress:Symbol(),kHost:Symbol(),kNoRef:Symbol(),kBodyUsed:Symbol(),kRunning:Symbol(),kBlocking:Symbol(),kPending:Symbol(),kSize:Symbol(),kBusy:Symbol(),kQueued:Symbol(),kFree:Symbol(),kConnected:Symbol(),kClosed:Symbol(),kNeedDrain:Symbol(),kReset:Symbol(),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol(),kRunningIdx:Symbol(),kPendingIdx:Symbol(),kError:Symbol(),kClients:Symbol(),kClient:Symbol(),kParser:Symbol(),kOnDestroyed:Symbol(),kPipelining:Symbol(),kSocket:Symbol(),kHostHeader:Symbol(),kConnector:Symbol(),kStrictContentLength:Symbol(),kMaxRedirections:Symbol(),kMaxRequests:Symbol(),kProxy:Symbol(),kCounter:Symbol(),kInterceptors:Symbol(),kMaxResponseSize:Symbol(),kHTTP2Session:Symbol(),kHTTP2SessionState:Symbol(),kHTTP2BuildRequest:Symbol(),kHTTP1BuildRequest:Symbol(),kHTTP2CopyHeaders:Symbol(),kHTTPConnVersion:Symbol(),kRetryHandlerDefaultRetry:Symbol(),kConstruct:Symbol()};}),A7("03MxY",function(e,A){class t extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR";}}class r extends t{constructor(e){super(e),Error.captureStackTrace(this,r),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT";}}class n extends t{constructor(e){super(e),Error.captureStackTrace(this,n),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT";}}class o extends t{constructor(e){super(e),Error.captureStackTrace(this,o),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW";}}class i extends t{constructor(e){super(e),Error.captureStackTrace(this,i),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT";}}class s extends t{constructor(e,A,t,r){super(e),Error.captureStackTrace(this,s),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=r,this.status=A,this.statusCode=A,this.headers=t;}}class a extends t{constructor(e){super(e),Error.captureStackTrace(this,a),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG";}}class l extends t{constructor(e){super(e),Error.captureStackTrace(this,l),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE";}}class c extends t{constructor(e){super(e),Error.captureStackTrace(this,c),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED";}}class g extends t{constructor(e){super(e),Error.captureStackTrace(this,g),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO";}}class E extends t{constructor(e){super(e),Error.captureStackTrace(this,E),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH";}}class u extends t{constructor(e){super(e),Error.captureStackTrace(this,u),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH";}}class h extends t{constructor(e){super(e),Error.captureStackTrace(this,h),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED";}}class Q extends t{constructor(e){super(e),Error.captureStackTrace(this,Q),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED";}}class C extends t{constructor(e,A){super(e),Error.captureStackTrace(this,C),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=A;}}class I extends t{constructor(e){super(e),Error.captureStackTrace(this,I),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED";}}class d extends Error{constructor(e,A,t){super(e),Error.captureStackTrace(this,d),this.name="HTTPParserError",this.code=A?"HPE_"+A:void 0,this.data=t?t.toString():void 0;}}class B extends t{constructor(e){super(e),Error.captureStackTrace(this,B),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE";}}class f extends t{constructor(e,A,{headers:t,data:r}){super(e),Error.captureStackTrace(this,f),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=A,this.data=r,this.headers=t;}}e.exports={HTTPParserError:d,UndiciError:t,HeadersTimeoutError:n,HeadersOverflowError:o,BodyTimeoutError:i,RequestContentLengthMismatchError:E,ConnectTimeoutError:r,ResponseStatusCodeError:s,InvalidArgumentError:a,InvalidReturnValueError:l,RequestAbortedError:c,ClientDestroyedError:h,ClientClosedError:Q,InformationalError:g,SocketError:C,NotSupportedError:I,ResponseContentLengthMismatchError:u,BalancedPoolMissingUpstreamError:class extends t{constructor(e){super(e),Error.captureStackTrace(this,I),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM";}},ResponseExceededMaxSizeError:B,RequestRetryError:f};}),A7("iM175",function(e,A){let t={},r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;eA(e));}function g(e,A,t){return Az.call(e,A,t);}function E(e,A,t){g(g(e,A,t),void 0,Aj);}function u(e,A){E(e,void 0,A);}function h(e){g(e,void 0,Aj);}function Q(e,A,t){if("function"!=typeof e)throw TypeError("Argument is not a function");return Function.prototype.apply.call(e,A,t);}function C(e,A,t){try{return c(Q(e,A,t));}catch(e){return AZ(e);}}function I(e,A){var t,r;e._ownerReadableStream=A,A._reader=e,"readable"===A._state?p(e):"closed"===A._state?(p(e),m(e)):(t=e,r=A._storedError,p(t),y(t,r));}function d(e,A){return AR(e._ownerReadableStream,A);}function B(e){var A,t;let r=e._ownerReadableStream;"readable"===r._state?y(e,TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):(A=e,t=TypeError("Reader was released and can no longer be used to monitor the stream's closedness"),p(A),y(A,t)),r._readableStreamController[A3](),r._reader=void 0,e._ownerReadableStream=void 0;}function f(e){return TypeError("Cannot "+e+" a stream using a released reader");}function p(e){e._closedPromise=l((A,t)=>{e._closedPromise_resolve=A,e._closedPromise_reject=t;});}function y(e,A){void 0!==e._closedPromise_reject&&(h(e._closedPromise),e._closedPromise_reject(A),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0);}function m(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0);}function w(e,A){var t;if(void 0!==e&&"object"!=typeof(t=e)&&"function"!=typeof t)throw TypeError(`${A} is not an object.`);}function b(e,A){if("function"!=typeof e)throw TypeError(`${A} is not a function.`);}function R(e,A){if(!("object"==typeof e&&null!==e||"function"==typeof e))throw TypeError(`${A} is not an object.`);}function D(e,A,t){if(void 0===e)throw TypeError(`Parameter ${A} is required in '${t}'.`);}function S(e,A,t){if(void 0===e)throw TypeError(`${A} is required in '${t}'.`);}function v(e,A){var t,r;let n=Number.MAX_SAFE_INTEGER,o=+e;if(!A5(o=0===(t=o)?0:t))throw TypeError(`${A} is not a finite number`);if((o=0===(r=A6(o))?0:r)<0||o>n)throw TypeError(`${A} is outside the accepted range of 0 to ${n}, inclusive`);return A5(o)&&0!==o?o:0;}function k(e,A){if(!Aw(e))throw TypeError(`${A} is not a ReadableStream.`);}function N(e){return new A7(e);}function F(e,A){e._reader._readRequests.push(A);}function L(e,A,t){let r=e._reader._readRequests.shift();t?r._closeSteps():r._chunkSteps(A);}function U(e){return e._reader._readRequests.length;}function T(e){let A=e._reader;return void 0!==A&&!!x(A);}function x(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof A7;}function M(e,A){let t=e._ownerReadableStream;t._disturbed=!0,"closed"===t._state?A._closeSteps():"errored"===t._state?A._errorSteps(t._storedError):t._readableStreamController[A9](A);}function _(e,A){let t=e._readRequests;e._readRequests=new A1(),t.forEach(e=>{e._errorSteps(A);});}function O(e){return TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`);}function Y(e){return e.slice();}function G(e,A,t,r,n){new Uint8Array(e).set(new Uint8Array(t,r,n),A);}function J(e,A,t){if(e.slice)return e.slice(A,t);let r=t-A,n=new ArrayBuffer(r);return G(n,0,e,A,r),n;}function H(e,A){let t=e[A];if(null!=t){if("function"!=typeof t)throw TypeError(`${A+""} is not a function`);return t;}}function P(e){try{let A=e.done,t=e.value;return g(AK(t),e=>({done:A,value:e}));}catch(e){return AZ(e);}}function V(e){let A=Q(e.nextMethod,e.iterator,[]);if(!i(A))throw TypeError("The iterator.next() method must return an object");return A;}function q(e){if(!i(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof tr;}catch(e){return!1;}}function W(e){return TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`);}function j(e){return new Uint8Array(J(e.buffer,e.byteOffset,e.byteOffset+e.byteLength));}function $(e){let A=e._queue.shift();return e._queueTotalSize-=A.size,e._queueTotalSize<0&&(e._queueTotalSize=0),A.value;}function X(e,A,t){if("number"!=typeof t||to(t)||t<0||t===1/0)throw RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:A,size:t}),e._queueTotalSize+=t;}function z(e){e._queue=new A1(),e._queueTotalSize=0;}function Z(e){return e===DataView;}function K(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof ts;}function ee(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof ti;}function eA(e){if(function(e){let A=e._controlledReadableByteStream;return"readable"===A._state&&!e._closeRequested&&!!e._started&&!!(T(A)&&U(A)>0||ev(A)&&eS(A)>0||ep(e)>0);}(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,E(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,eA(e)),null),A=>(ed(e,A),null));}}function et(e){eg(e),e._pendingPullIntos=new A1();}function er(e,A){let t=!1;"closed"===e._state&&(t=!0);let r=en(A);"default"===A.readerType?L(e,r,t):function(e,A,t){let r=e._reader._readIntoRequests.shift();t?r._closeSteps(A):r._chunkSteps(A);}(e,r,t);}function en(e){let A=e.bytesFilled,t=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,A/t);}function eo(e,A,t,r){e._queue.push({buffer:A,byteOffset:t,byteLength:r}),e._queueTotalSize+=r;}function ei(e,A,t,r){let n;try{n=J(A,t,t+r);}catch(A){throw ed(e,A),A;}eo(e,n,0,r);}function es(e,A){A.bytesFilled>0&&ei(e,A.buffer,A.byteOffset,A.bytesFilled),eh(e);}function ea(e,A){let t=Math.min(e._queueTotalSize,A.byteLength-A.bytesFilled),r=A.bytesFilled+t,n=t,o=!1,i=r-r%A.elementSize;i>=A.minimumFill&&(n=i-A.bytesFilled,o=!0);let s=e._queue;for(;n>0;){let t=s.peek(),r=Math.min(n,t.byteLength),o=A.byteOffset+A.bytesFilled;G(A.buffer,o,t.buffer,t.byteOffset,r),t.byteLength===r?s.shift():(t.byteOffset+=r,t.byteLength-=r),e._queueTotalSize-=r,el(e,r,A),n-=r;}return o;}function el(e,A,t){t.bytesFilled+=A;}function ec(e){0===e._queueTotalSize&&e._closeRequested?(eQ(e),AD(e._controlledReadableByteStream)):eA(e);}function eg(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null);}function eE(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;let A=e._pendingPullIntos.peek();ea(e,A)&&(eh(e),er(e._controlledReadableByteStream,A));}}function eu(e,A){let t=e._pendingPullIntos.peek();eg(e),"closed"===e._controlledReadableByteStream._state?function(e,A){"none"===A.readerType&&eh(e);let t=e._controlledReadableByteStream;if(ev(t))for(;eS(t)>0;)er(t,eh(e));}(e,t):function(e,A,t){if(el(0,A,t),"none"===t.readerType)return es(e,t),void eE(e);if(t.bytesFilled0){let A=t.byteOffset+t.bytesFilled;ei(e,t.buffer,A-r,r);}t.bytesFilled-=r,er(e._controlledReadableByteStream,t),eE(e);}(e,A,t),eA(e);}function eh(e){return e._pendingPullIntos.shift();}function eQ(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0;}function eC(e){let A=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===A._state){if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){let A=e._pendingPullIntos.peek();if(A.bytesFilled%A.elementSize!=0){let A=TypeError("Insufficient bytes to fill elements in the given buffer");throw ed(e,A),A;}}eQ(e),AD(A);}}}function eI(e,A){let t=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==t._state)return;let{buffer:r,byteOffset:n,byteLength:o}=A;if(tA(r))throw TypeError("chunk's buffer is detached and so cannot be enqueued");let i=te(r);if(e._pendingPullIntos.length>0){let A=e._pendingPullIntos.peek();if(tA(A.buffer))throw TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");eg(e),A.buffer=te(A.buffer),"none"===A.readerType&&es(e,A);}T(t)?(function(e){let A=e._controlledReadableByteStream._reader;for(;A._readRequests.length>0;){if(0===e._queueTotalSize)return;eB(e,A._readRequests.shift());}}(e),0===U(t))?eo(e,i,n,o):(e._pendingPullIntos.length>0&&eh(e),L(t,new Uint8Array(i,n,o),!1)):ev(t)?(eo(e,i,n,o),eE(e)):eo(e,i,n,o),eA(e);}function ed(e,A){let t=e._controlledReadableByteStream;"readable"===t._state&&(et(e),z(e),eQ(e),AS(t,A));}function eB(e,A){let t=e._queue.shift();e._queueTotalSize-=t.byteLength,ec(e);let r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);A._chunkSteps(r);}function ef(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){let A=e._pendingPullIntos.peek(),t=new Uint8Array(A.buffer,A.byteOffset+A.bytesFilled,A.byteLength-A.bytesFilled),r=Object.create(ti.prototype);r._associatedReadableByteStreamController=e,r._view=t,e._byobRequest=r;}return e._byobRequest;}function ep(e){let A=e._controlledReadableByteStream._state;return"errored"===A?null:"closed"===A?0:e._strategyHWM-e._queueTotalSize;}function ey(e,A){let t=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==A)throw TypeError("bytesWritten must be 0 when calling respond() on a closed stream");}else{if(0===A)throw TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(t.bytesFilled+A>t.byteLength)throw RangeError("bytesWritten out of range");}t.buffer=te(t.buffer),eu(e,A);}function em(e,A){let t=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==A.byteLength)throw TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");}else if(0===A.byteLength)throw TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(t.byteOffset+t.bytesFilled!==A.byteOffset)throw RangeError("The region specified by view does not match byobRequest");if(t.bufferByteLength!==A.buffer.byteLength)throw RangeError("The buffer of view has different capacity than byobRequest");if(t.bytesFilled+A.byteLength>t.byteLength)throw RangeError("The region specified by view is larger than byobRequest");let r=A.byteLength;t.buffer=te(A.buffer),eu(e,r);}function ew(e,A,t,r,n,o,i){A._controlledReadableByteStream=e,A._pullAgain=!1,A._pulling=!1,A._byobRequest=null,A._queue=A._queueTotalSize=void 0,z(A),A._closeRequested=!1,A._started=!1,A._strategyHWM=o,A._pullAlgorithm=r,A._cancelAlgorithm=n,A._autoAllocateChunkSize=i,A._pendingPullIntos=new A1(),e._readableStreamController=A,E(c(t()),()=>(A._started=!0,eA(A),null),e=>(ed(A,e),null));}function eb(e){return TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`);}function eR(e){return TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`);}function eD(e,A){e._reader._readIntoRequests.push(A);}function eS(e){return e._reader._readIntoRequests.length;}function ev(e){let A=e._reader;return void 0!==A&&!!ek(A);}function ek(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof ta;}function eN(e,A,t,r){let n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):function(e,A,t,r){let n;let o=e._controlledReadableByteStream,i=A.constructor,s=Z(i)?1:i.BYTES_PER_ELEMENT,{byteOffset:a,byteLength:l}=A;try{n=te(A.buffer);}catch(e){return void r._errorSteps(e);}let c={buffer:n,bufferByteLength:n.byteLength,byteOffset:a,byteLength:l,bytesFilled:0,minimumFill:t*s,elementSize:s,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(c),void eD(o,r);if("closed"!==o._state){if(e._queueTotalSize>0){if(ea(e,c)){let A=en(c);return ec(e),void r._chunkSteps(A);}if(e._closeRequested){let A=TypeError("Insufficient bytes to fill elements in the given buffer");return ed(e,A),void r._errorSteps(A);}}e._pendingPullIntos.push(c),eD(o,r),eA(e);}else{let e=new i(c.buffer,c.byteOffset,0);r._closeSteps(e);}}(n._readableStreamController,A,t,r);}function eF(e,A){let t=e._readIntoRequests;e._readIntoRequests=new A1(),t.forEach(e=>{e._errorSteps(A);});}function eL(e){return TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`);}function eU(e,A){let{highWaterMark:t}=e;if(void 0===t)return A;if(to(t)||t<0)throw RangeError("Invalid highWaterMark");return t;}function eT(e){let{size:A}=e;return A||(()=>1);}function ex(e,A){var t;w(e,A);let r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:+r,size:void 0===n?void 0:(b(t=n,`${A} has member 'size' that`),e=>+t(e))};}function eM(e,A){if(!eO(e))throw TypeError(`${A} is not a WritableStream.`);}function e_(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new A1(),e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1;}function eO(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof tc;}function eY(e){return void 0!==e._writer;}function eG(e,A){var t;if("closed"===e._state||"errored"===e._state)return c(void 0);e._writableStreamController._abortReason=A,null===(t=e._writableStreamController._abortController)||void 0===t||t.abort(A);let r=e._state;if("closed"===r||"errored"===r)return c(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;"erroring"===r&&(n=!0,A=void 0);let o=l((t,r)=>{e._pendingAbortRequest={_promise:void 0,_resolve:t,_reject:r,_reason:A,_wasAlreadyErroring:n};});return e._pendingAbortRequest._promise=o,n||eP(e,A),o;}function eJ(e){var A;let t=e._state;if("closed"===t||"errored"===t)return AZ(TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));let r=l((A,t)=>{e._closeRequest={_resolve:A,_reject:t};}),n=e._writer;return void 0!==n&&e._backpressure&&"writable"===t&&As(n),X(A=e._writableStreamController,tE,0),e8(A),r;}function eH(e,A){"writable"!==e._state?eV(e):eP(e,A);}function eP(e,A){let t=e._writableStreamController;e._state="erroring",e._storedError=A;let r=e._writer;void 0!==r&&ez(r,A),!(void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest)&&t._started&&eV(e);}function eV(e){e._state="errored",e._writableStreamController[A4]();let A=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(A);}),e._writeRequests=new A1(),void 0===e._pendingAbortRequest)return void eW(e);let t=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,t._wasAlreadyErroring)return t._reject(A),void eW(e);E(e._writableStreamController[A2](t._reason),()=>(t._resolve(),eW(e),null),A=>(t._reject(A),eW(e),null));}function eq(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest;}function eW(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);let A=e._writer;void 0!==A&&At(A,e._storedError);}function ej(e,A){let t=e._writer;void 0!==t&&A!==e._backpressure&&(A?An(t):As(t)),e._backpressure=A;}function e$(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof tg;}function eX(e){return eJ(e._ownerWritableStream);}function ez(e,A){"pending"===e._readyPromiseState?Ai(e,A):Ao(e,A);}function eZ(e){var A,t,r,n;let o=e._ownerWritableStream,i=TypeError("Writer was released and can no longer be used to monitor the stream's closedness");ez(e,i),A=e,t=i,"pending"===A._closedPromiseState?At(A,t):(r=A,n=t,AA(r),At(r,n)),o._writer=void 0,e._ownerWritableStream=void 0;}function eK(e,A){let t=e._ownerWritableStream,r=t._writableStreamController,n=function(e,A){try{return e._strategySizeAlgorithm(A);}catch(A){return e9(e,A),1;}}(r,A);if(t!==e._ownerWritableStream)return AZ(Ae("write to"));let o=t._state;if("errored"===o)return AZ(t._storedError);if(eq(t)||"closed"===o)return AZ(TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return AZ(t._storedError);let i=l((e,A)=>{t._writeRequests.push({_resolve:e,_reject:A});});return function(e,A,t){try{X(e,A,t);}catch(A){return void e9(e,A);}let r=e._controlledWritableStream;eq(r)||"writable"!==r._state||ej(r,0>=e4(e)),e8(e);}(r,A,n),i;}function e0(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof tu;}function e1(e,A,t,r,n,o,i,s){A._controlledWritableStream=e,e._writableStreamController=A,A._queue=void 0,A._queueTotalSize=void 0,z(A),A._abortReason=void 0,A._abortController=function(){if(tl)return new AbortController();}(),A._started=!1,A._strategySizeAlgorithm=s,A._strategyHWM=i,A._writeAlgorithm=r,A._closeAlgorithm=n,A._abortAlgorithm=o,ej(e,0>=e4(A)),E(c(t()),()=>(A._started=!0,e8(A),null),t=>(A._started=!0,eH(e,t),null));}function e2(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0;}function e4(e){return e._strategyHWM-e._queueTotalSize;}function e8(e){let A=e._controlledWritableStream;if(!e._started||void 0!==A._inFlightWriteRequest)return;if("erroring"===A._state)return void eV(A);if(0===e._queue.length)return;let t=e._queue.peek().value;t===tE?function(e){let A=e._controlledWritableStream;A._inFlightCloseRequest=A._closeRequest,A._closeRequest=void 0,$(e);let t=e._closeAlgorithm();e2(e),E(t,()=>(function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";let A=e._writer;void 0!==A&&Ar(A);}(A),null),e=>(A._inFlightCloseRequest._reject(e),A._inFlightCloseRequest=void 0,void 0!==A._pendingAbortRequest&&(A._pendingAbortRequest._reject(e),A._pendingAbortRequest=void 0),eH(A,e),null));}(e):function(e,A){let t=e._controlledWritableStream;t._inFlightWriteRequest=t._writeRequests.shift(),E(e._writeAlgorithm(A),()=>{t._inFlightWriteRequest._resolve(void 0),t._inFlightWriteRequest=void 0;let A=t._state;return $(e),eq(t)||"writable"!==A||ej(t,0>=e4(e)),e8(e),null;},A=>("writable"===t._state&&e2(e),t._inFlightWriteRequest._reject(A),t._inFlightWriteRequest=void 0,eH(t,A),null));}(e,t);}function e9(e,A){"writable"===e._controlledWritableStream._state&&e3(e,A);}function e3(e,A){let t=e._controlledWritableStream;e2(e),eP(t,A);}function e5(e){return TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`);}function e6(e){return TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`);}function e7(e){return TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`);}function Ae(e){return TypeError("Cannot "+e+" a stream using a released writer");}function AA(e){e._closedPromise=l((A,t)=>{e._closedPromise_resolve=A,e._closedPromise_reject=t,e._closedPromiseState="pending";});}function At(e,A){void 0!==e._closedPromise_reject&&(h(e._closedPromise),e._closedPromise_reject(A),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected");}function Ar(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved");}function An(e){e._readyPromise=l((A,t)=>{e._readyPromise_resolve=A,e._readyPromise_reject=t;}),e._readyPromiseState="pending";}function Ao(e,A){An(e),Ai(e,A);}function Ai(e,A){void 0!==e._readyPromise_reject&&(h(e._readyPromise),e._readyPromise_reject(A),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected");}function As(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled");}function Aa(e,A,t,r,n,i){let s=N(e),a=new tg(A);e._disturbed=!0;let Q=!1,C=c(void 0);return l((I,d)=>{var f,p;let y;function m(){let e=C;return g(C,()=>e!==C?m():void 0);}function w(e,A,t){"errored"===e._state?t(e._storedError):u(A,t);}function b(e,t,r){function n(){return E(e(),()=>D(t,r),e=>D(!0,e)),null;}Q||(Q=!0,"writable"!==A._state||eq(A)?n():E(m(),n));}function R(e,t){Q||(Q=!0,"writable"!==A._state||eq(A)?D(e,t):E(m(),()=>D(e,t)));}function D(e,A){return eZ(a),B(s),void 0!==i&&i.removeEventListener("abort",y),e?d(A):I(void 0),null;}if(void 0!==i){if(y=()=>{let t=void 0!==i.reason?i.reason:new tQ("Aborted","AbortError"),o=[];r||o.push(()=>"writable"===A._state?eG(A,t):c(void 0)),n||o.push(()=>"readable"===e._state?AR(e,t):c(void 0)),b(()=>Promise.all(o.map(e=>e())),!0,t);},i.aborted)return void y();i.addEventListener("abort",y);}if(w(e,s._closedPromise,e=>(r?R(!0,e):b(()=>eG(A,e),!0,e),null)),w(A,a._closedPromise,A=>(n?R(!0,A):b(()=>AR(e,A),!0,A),null)),f=s._closedPromise,p=()=>(t?R():b(()=>function(e){let A=e._ownerWritableStream,t=A._state;return eq(A)||"closed"===t?c(void 0):"errored"===t?AZ(A._storedError):eX(e);}(a)),null),"closed"===e._state?p():E(f,p),eq(A)||"closed"===A._state){let A=TypeError("the destination writable stream closed before all data could be piped to it");n?R(!0,A):b(()=>AR(e,A),!0,A);}h(l((e,A)=>{!function t(r){r?e():g(Q?c(!0):g(a._readyPromise,()=>l((e,A)=>{M(s,{_chunkSteps(A){C=g(eK(a,A),void 0,o),e(!1);},_closeSteps:()=>e(!0),_errorSteps:A});})),t,A);}(!1);}));});}function Al(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof tC;}function Ac(e){if(Ag(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,E(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Ac(e)),null),A=>(AQ(e,A),null));}}function Ag(e){let A=e._controlledReadableStream;return!!AI(e)&&!!e._started&&(!!(Ab(A)&&U(A)>0)||AC(e)>0);}function AE(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0;}function Au(e){if(!AI(e))return;let A=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(AE(e),AD(A));}function Ah(e,A){if(!AI(e))return;let t=e._controlledReadableStream;if(Ab(t)&&U(t)>0)L(t,A,!1);else{let t;try{t=e._strategySizeAlgorithm(A);}catch(A){throw AQ(e,A),A;}try{X(e,A,t);}catch(A){throw AQ(e,A),A;}}Ac(e);}function AQ(e,A){let t=e._controlledReadableStream;"readable"===t._state&&(z(e),AE(e),AS(t,A));}function AC(e){let A=e._controlledReadableStream._state;return"errored"===A?null:"closed"===A?0:e._strategyHWM-e._queueTotalSize;}function AI(e){let A=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===A;}function Ad(e,A,t,r,n,o,i){A._controlledReadableStream=e,A._queue=void 0,A._queueTotalSize=void 0,z(A),A._started=!1,A._closeRequested=!1,A._pullAgain=!1,A._pulling=!1,A._strategySizeAlgorithm=i,A._strategyHWM=o,A._pullAlgorithm=r,A._cancelAlgorithm=n,e._readableStreamController=A,E(c(t()),()=>(A._started=!0,Ac(A),null),e=>(AQ(A,e),null));}function AB(e){return TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`);}function Af(e,A){w(e,A);let t=null==e?void 0:e.preventAbort,r=null==e?void 0:e.preventCancel,n=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,A){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted;}catch(e){return!1;}}(e))throw TypeError(`${A} is not an AbortSignal.`);}(o,`${A} has member 'signal' that`),{preventAbort:!!t,preventCancel:!!r,preventClose:!!n,signal:o};}function Ap(e,A,t,r=1,n=()=>1){let o=Object.create(tI.prototype);return Am(o),Ad(o,Object.create(tC.prototype),e,A,t,r,n),o;}function Ay(e,A,t){let r=Object.create(tI.prototype);return Am(r),ew(r,Object.create(ts.prototype),e,A,t,0,void 0),r;}function Am(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1;}function Aw(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof tI;}function Ab(e){return void 0!==e._reader;}function AR(e,A){if(e._disturbed=!0,"closed"===e._state)return c(void 0);if("errored"===e._state)return AZ(e._storedError);AD(e);let t=e._reader;if(void 0!==t&&ek(t)){let e=t._readIntoRequests;t._readIntoRequests=new A1(),e.forEach(e=>{e._closeSteps(void 0);});}return g(e._readableStreamController[A8](A),o,void 0);}function AD(e){e._state="closed";let A=e._reader;if(void 0!==A&&(m(A),x(A))){let e=A._readRequests;A._readRequests=new A1(),e.forEach(e=>{e._closeSteps();});}}function AS(e,A){e._state="errored",e._storedError=A;let t=e._reader;void 0!==t&&(y(t,A),x(t)?_(t,A):eF(t,A));}function Av(e){return TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`);}function Ak(e,A){w(e,A);let t=null==e?void 0:e.highWaterMark;return S(t,"highWaterMark","QueuingStrategyInit"),{highWaterMark:+t};}function AN(e){return TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`);}function AF(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof tB;}function AL(e){return TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`);}function AU(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof tp;}function AT(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof ty;}function Ax(e,A){AQ(e._readable._readableStreamController,A),AM(e,A);}function AM(e,A){AG(e._transformStreamController),e9(e._writable._writableStreamController,A),A_(e);}function A_(e){e._backpressure&&AO(e,!1);}function AO(e,A){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=l(A=>{e._backpressureChangePromise_resolve=A;}),e._backpressure=A;}function AY(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof tm;}function AG(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0;}function AJ(e,A){let t=e._controlledTransformStream,r=t._readable._readableStreamController;if(!AI(r))throw TypeError("Readable side is not in a state that permits enqueue");try{Ah(r,A);}catch(e){throw AM(t,e),t._readable._storedError;}!Ag(r)!==t._backpressure&&AO(t,!0);}function AH(e,A){return g(e._transformAlgorithm(A),void 0,A=>{throw Ax(e._controlledTransformStream,A),A;});}function AP(e){return TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`);}function AV(e){void 0!==e._finishPromise_resolve&&(e._finishPromise_resolve(),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0);}function Aq(e,A){void 0!==e._finishPromise_reject&&(h(e._finishPromise),e._finishPromise_reject(A),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0);}function AW(e){return TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`);}a(e.exports,"ReadableStream",()=>tI),a(e.exports,"TransformStream",()=>ty);let Aj=o,A$=Promise,AX=Promise.resolve.bind(A$),Az=Promise.prototype.then,AZ=Promise.reject.bind(A$),AK=AX,A0=e=>{if("function"==typeof queueMicrotask)A0=queueMicrotask;else{let e=c(void 0);A0=A=>g(e,A);}return A0(e);};class A1{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0;}get length(){return this._size;}push(e){let A=this._back,t=A;16383===A._elements.length&&(t={_elements:[],_next:void 0}),A._elements.push(e),t!==A&&(this._back=t,A._next=t),++this._size;}shift(){let e=this._front,A=e,t=this._cursor,r=t+1,n=e._elements,o=n[t];return 16384===r&&(A=e._next,r=0),--this._size,this._cursor=r,e!==A&&(this._front=A),n[t]=void 0,o;}forEach(e){let A=this._cursor,t=this._front,r=t._elements;for(;!(A===r.length&&void 0===t._next||A===r.length&&(r=(t=t._next)._elements,A=0,0===r.length));)e(r[A]),++A;}peek(){let e=this._front,A=this._cursor;return e._elements[A];}}let A2=Symbol(),A4=Symbol(),A8=Symbol(),A9=Symbol(),A3=Symbol(),A5=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e);},A6=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e);};class A7{constructor(e){if(D(e,1,"ReadableStreamDefaultReader"),k(e,"First parameter"),Ab(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");I(this,e),this._readRequests=new A1();}get closed(){return x(this)?this._closedPromise:AZ(O("closed"));}cancel(e){return x(this)?void 0===this._ownerReadableStream?AZ(f("cancel")):d(this,e):AZ(O("cancel"));}read(){let e,A;if(!x(this))return AZ(O("read"));if(void 0===this._ownerReadableStream)return AZ(f("read from"));let t=l((t,r)=>{e=t,A=r;});return M(this,{_chunkSteps:A=>e({value:A,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>A(e)}),t;}releaseLock(){if(!x(this))throw O("releaseLock");void 0!==this._ownerReadableStream&&(B(this),_(this,TypeError("Reader was released")));}}Object.defineProperties(A7.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),s(A7.prototype.cancel,"cancel"),s(A7.prototype.read,"read"),s(A7.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(A7.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let te=e=>(te="function"==typeof e.transfer?e=>e.transfer():"function"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e)(e),tA=e=>(tA="boolean"==typeof e.detached?e=>e.detached:e=>0===e.byteLength)(e),tt=null!==(n=null!==(t=Symbol.asyncIterator)&&void 0!==t?t:null===(r=Symbol.for)||void 0===r?void 0:r.call(Symbol,"Symbol.asyncIterator"))&&void 0!==n?n:"@@asyncIterator";class tr{constructor(e,A){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=A;}next(){let e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?g(this._ongoingPromise,e,e):e(),this._ongoingPromise;}return(e){let A=()=>this._returnSteps(e);return this._ongoingPromise?g(this._ongoingPromise,A,A):A();}_nextSteps(){let e,A;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let t=this._reader,r=l((t,r)=>{e=t,A=r;});return M(t,{_chunkSteps:A=>{this._ongoingPromise=void 0,A0(()=>e({value:A,done:!1}));},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,B(t),e({value:void 0,done:!0});},_errorSteps:e=>{this._ongoingPromise=void 0,this._isFinished=!0,B(t),A(e);}}),r;}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;let A=this._reader;if(!this._preventCancel){let t=d(A,e);return B(A),g(t,()=>({value:e,done:!0}),void 0);}return B(A),c({value:e,done:!0});}}let tn={next(){return q(this)?this._asyncIteratorImpl.next():AZ(W("next"));},return(e){return q(this)?this._asyncIteratorImpl.return(e):AZ(W("return"));},[tt](){return this;}};Object.defineProperty(tn,tt,{enumerable:!1});let to=Number.isNaN||function(e){return e!=e;};class ti{constructor(){throw TypeError("Illegal constructor");}get view(){if(!ee(this))throw eb("view");return this._view;}respond(e){if(!ee(this))throw eb("respond");if(D(e,1,"respond"),e=v(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");if(tA(this._view.buffer))throw TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");ey(this._associatedReadableByteStreamController,e);}respondWithNewView(e){if(!ee(this))throw eb("respondWithNewView");if(D(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");if(tA(e.buffer))throw TypeError("The given view's buffer has been detached and so cannot be used as a response");em(this._associatedReadableByteStreamController,e);}}Object.defineProperties(ti.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),s(ti.prototype.respond,"respond"),s(ti.prototype.respondWithNewView,"respondWithNewView"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ti.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class ts{constructor(){throw TypeError("Illegal constructor");}get byobRequest(){if(!K(this))throw eR("byobRequest");return ef(this);}get desiredSize(){if(!K(this))throw eR("desiredSize");return ep(this);}close(){if(!K(this))throw eR("close");if(this._closeRequested)throw TypeError("The stream has already been closed; do not close it again!");let e=this._controlledReadableByteStream._state;if("readable"!==e)throw TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);eC(this);}enqueue(e){if(!K(this))throw eR("enqueue");if(D(e,1,"enqueue"),!ArrayBuffer.isView(e))throw TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw TypeError("stream is closed or draining");let A=this._controlledReadableByteStream._state;if("readable"!==A)throw TypeError(`The stream (in ${A} state) is not in the readable state and cannot be enqueued to`);eI(this,e);}error(e){if(!K(this))throw eR("error");ed(this,e);}[A8](e){et(this),z(this);let A=this._cancelAlgorithm(e);return eQ(this),A;}[A9](e){let A=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void eB(this,e);let t=this._autoAllocateChunkSize;if(void 0!==t){let A;try{A=new ArrayBuffer(t);}catch(A){return void e._errorSteps(A);}let r={buffer:A,bufferByteLength:t,byteOffset:0,byteLength:t,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(r);}F(A,e),eA(this);}[A3](){if(this._pendingPullIntos.length>0){let e=this._pendingPullIntos.peek();e.readerType="none",this._pendingPullIntos=new A1(),this._pendingPullIntos.push(e);}}}Object.defineProperties(ts.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),s(ts.prototype.close,"close"),s(ts.prototype.enqueue,"enqueue"),s(ts.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ts.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class ta{constructor(e){if(D(e,1,"ReadableStreamBYOBReader"),k(e,"First parameter"),Ab(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");if(!K(e._readableStreamController))throw TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");I(this,e),this._readIntoRequests=new A1();}get closed(){return ek(this)?this._closedPromise:AZ(eL("closed"));}cancel(e){return ek(this)?void 0===this._ownerReadableStream?AZ(f("cancel")):d(this,e):AZ(eL("cancel"));}read(e,A={}){let t,r,n;if(!ek(this))return AZ(eL("read"));if(!ArrayBuffer.isView(e))return AZ(TypeError("view must be an array buffer view"));if(0===e.byteLength)return AZ(TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return AZ(TypeError("view's buffer must have non-zero byteLength"));if(tA(e.buffer))return AZ(TypeError("view's buffer has been detached"));try{var o,i;o="options",w(A,o),t={min:v(null!==(i=null==A?void 0:A.min)&&void 0!==i?i:1,`${o} has member 'min' that`)};}catch(e){return AZ(e);}let s=t.min;if(0===s)return AZ(TypeError("options.min must be greater than 0"));if(Z(e.constructor)){if(s>e.byteLength)return AZ(RangeError("options.min must be less than or equal to view's byteLength"));}else if(s>e.length)return AZ(RangeError("options.min must be less than or equal to view's length"));if(void 0===this._ownerReadableStream)return AZ(f("read from"));let a=l((e,A)=>{r=e,n=A;});return eN(this,e,s,{_chunkSteps:e=>r({value:e,done:!1}),_closeSteps:e=>r({value:e,done:!0}),_errorSteps:e=>n(e)}),a;}releaseLock(){if(!ek(this))throw eL("releaseLock");void 0!==this._ownerReadableStream&&(B(this),eF(this,TypeError("Reader was released")));}}Object.defineProperties(ta.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),s(ta.prototype.cancel,"cancel"),s(ta.prototype.read,"read"),s(ta.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ta.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});let tl="function"==typeof AbortController;class tc{constructor(e={},A={}){void 0===e?e=null:R(e,"First parameter");let t=ex(A,"Second parameter"),r=function(e,A){w(e,A);let t=null==e?void 0:e.abort,r=null==e?void 0:e.close,n=null==e?void 0:e.start,o=null==e?void 0:e.type,i=null==e?void 0:e.write;return{abort:void 0===t?void 0:(b(t,`${A} has member 'abort' that`),A=>C(t,e,[A])),close:void 0===r?void 0:(b(r,`${A} has member 'close' that`),()=>C(r,e,[])),start:void 0===n?void 0:(b(n,`${A} has member 'start' that`),A=>Q(n,e,[A])),write:void 0===i?void 0:(b(i,`${A} has member 'write' that`),(A,t)=>C(i,e,[A,t])),type:o};}(e,"First parameter");if(e_(this),void 0!==r.type)throw RangeError("Invalid type is specified");let n=eT(t);!function(e,A,t,r){let n,o;let i=Object.create(tu.prototype);n=void 0!==A.start?()=>A.start(i):()=>{},o=void 0!==A.write?e=>A.write(e,i):()=>c(void 0),e1(e,i,n,o,void 0!==A.close?()=>A.close():()=>c(void 0),void 0!==A.abort?e=>A.abort(e):()=>c(void 0),t,r);}(this,r,eU(t,1),n);}get locked(){if(!eO(this))throw e5("locked");return eY(this);}abort(e){return eO(this)?eY(this)?AZ(TypeError("Cannot abort a stream that already has a writer")):eG(this,e):AZ(e5("abort"));}close(){return eO(this)?eY(this)?AZ(TypeError("Cannot close a stream that already has a writer")):eq(this)?AZ(TypeError("Cannot close an already-closing stream")):eJ(this):AZ(e5("close"));}getWriter(){if(!eO(this))throw e5("getWriter");return new tg(this);}}Object.defineProperties(tc.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),s(tc.prototype.abort,"abort"),s(tc.prototype.close,"close"),s(tc.prototype.getWriter,"getWriter"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tc.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class tg{constructor(e){if(D(e,1,"WritableStreamDefaultWriter"),eM(e,"First parameter"),eY(e))throw TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;let A=e._state;if("writable"===A)!eq(e)&&e._backpressure?An(this):(An(this),As(this)),AA(this);else if("erroring"===A)Ao(this,e._storedError),AA(this);else if("closed"===A)An(this),As(this),AA(this),Ar(this);else{let A=e._storedError;Ao(this,A),AA(this),At(this,A);}}get closed(){return e$(this)?this._closedPromise:AZ(e7("closed"));}get desiredSize(){if(!e$(this))throw e7("desiredSize");if(void 0===this._ownerWritableStream)throw Ae("desiredSize");return function(e){let A=e._ownerWritableStream,t=A._state;return"errored"===t||"erroring"===t?null:"closed"===t?0:e4(A._writableStreamController);}(this);}get ready(){return e$(this)?this._readyPromise:AZ(e7("ready"));}abort(e){return e$(this)?void 0===this._ownerWritableStream?AZ(Ae("abort")):eG(this._ownerWritableStream,e):AZ(e7("abort"));}close(){if(!e$(this))return AZ(e7("close"));let e=this._ownerWritableStream;return void 0===e?AZ(Ae("close")):eq(e)?AZ(TypeError("Cannot close an already-closing stream")):eX(this);}releaseLock(){if(!e$(this))throw e7("releaseLock");void 0!==this._ownerWritableStream&&eZ(this);}write(e){return e$(this)?void 0===this._ownerWritableStream?AZ(Ae("write to")):eK(this,e):AZ(e7("write"));}}Object.defineProperties(tg.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),s(tg.prototype.abort,"abort"),s(tg.prototype.close,"close"),s(tg.prototype.releaseLock,"releaseLock"),s(tg.prototype.write,"write"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tg.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});let tE={};class tu{constructor(){throw TypeError("Illegal constructor");}get abortReason(){if(!e0(this))throw e6("abortReason");return this._abortReason;}get signal(){if(!e0(this))throw e6("signal");if(void 0===this._abortController)throw TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal;}error(e){if(!e0(this))throw e6("error");"writable"===this._controlledWritableStream._state&&e3(this,e);}[A2](e){let A=this._abortAlgorithm(e);return e2(this),A;}[A4](){z(this);}}Object.defineProperties(tu.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tu.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});let th="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==nr?nr:void 0,tQ=function(){let e=null==th?void 0:th.DOMException;return!function(e){if("function"!=typeof e&&"object"!=typeof e||"DOMException"!==e.name)return!1;try{return new e(),!0;}catch(e){return!1;}}(e)?void 0:e;}()||function(){let e=function(e,A){this.message=e||"",this.name=A||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor);};return s(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e;}();class tC{constructor(){throw TypeError("Illegal constructor");}get desiredSize(){if(!Al(this))throw AB("desiredSize");return AC(this);}close(){if(!Al(this))throw AB("close");if(!AI(this))throw TypeError("The stream is not in a state that permits close");Au(this);}enqueue(e){if(!Al(this))throw AB("enqueue");if(!AI(this))throw TypeError("The stream is not in a state that permits enqueue");return Ah(this,e);}error(e){if(!Al(this))throw AB("error");AQ(this,e);}[A8](e){z(this);let A=this._cancelAlgorithm(e);return AE(this),A;}[A9](e){let A=this._controlledReadableStream;if(this._queue.length>0){let t=$(this);this._closeRequested&&0===this._queue.length?(AE(this),AD(A)):Ac(this),e._chunkSteps(t);}else F(A,e),Ac(this);}[A3](){}}Object.defineProperties(tC.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),s(tC.prototype.close,"close"),s(tC.prototype.enqueue,"enqueue"),s(tC.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tC.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class tI{constructor(e={},A={}){void 0===e?e=null:R(e,"First parameter");let t=ex(A,"Second parameter"),r=function(e,A){w(e,A);let t=null==e?void 0:e.autoAllocateChunkSize,r=null==e?void 0:e.cancel,n=null==e?void 0:e.pull,o=null==e?void 0:e.start,i=null==e?void 0:e.type;return{autoAllocateChunkSize:void 0===t?void 0:v(t,`${A} has member 'autoAllocateChunkSize' that`),cancel:void 0===r?void 0:(b(r,`${A} has member 'cancel' that`),A=>C(r,e,[A])),pull:void 0===n?void 0:(b(n,`${A} has member 'pull' that`),A=>C(n,e,[A])),start:void 0===o?void 0:(b(o,`${A} has member 'start' that`),A=>Q(o,e,[A])),type:void 0===i?void 0:function(e,A){if("bytes"!=(e=""+e))throw TypeError(`${A} '${e}' is not a valid enumeration value for ReadableStreamType`);return e;}(i,`${A} has member 'type' that`)};}(e,"First parameter");if(Am(this),"bytes"===r.type){if(void 0!==t.size)throw RangeError("The strategy for a byte stream cannot have a size function");!function(e,A,t){let r,n,o;let i=Object.create(ts.prototype);r=void 0!==A.start?()=>A.start(i):()=>{},n=void 0!==A.pull?()=>A.pull(i):()=>c(void 0),o=void 0!==A.cancel?e=>A.cancel(e):()=>c(void 0);let s=A.autoAllocateChunkSize;if(0===s)throw TypeError("autoAllocateChunkSize must be greater than 0");ew(e,i,r,n,o,t,s);}(this,r,eU(t,0));}else{let e=eT(t);!function(e,A,t,r){let n,o;let i=Object.create(tC.prototype);n=void 0!==A.start?()=>A.start(i):()=>{},o=void 0!==A.pull?()=>A.pull(i):()=>c(void 0),Ad(e,i,n,o,void 0!==A.cancel?e=>A.cancel(e):()=>c(void 0),t,r);}(this,r,eU(t,1),e);}}get locked(){if(!Aw(this))throw Av("locked");return Ab(this);}cancel(e){return Aw(this)?Ab(this)?AZ(TypeError("Cannot cancel a stream that already has a reader")):AR(this,e):AZ(Av("cancel"));}getReader(e){if(!Aw(this))throw Av("getReader");return void 0===function(e,A){w(e,A);let t=null==e?void 0:e.mode;return{mode:void 0===t?void 0:function(e,A){if("byob"!=(e=""+e))throw TypeError(`${A} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e;}(t,`${A} has member 'mode' that`)};}(e,"First parameter").mode?N(this):new ta(this);}pipeThrough(e,A={}){if(!Aw(this))throw Av("pipeThrough");D(e,1,"pipeThrough");let t=function(e,A){w(e,A);let t=null==e?void 0:e.readable;S(t,"readable","ReadableWritablePair"),k(t,`${A} has member 'readable' that`);let r=null==e?void 0:e.writable;return S(r,"writable","ReadableWritablePair"),eM(r,`${A} has member 'writable' that`),{readable:t,writable:r};}(e,"First parameter"),r=Af(A,"Second parameter");if(Ab(this))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(eY(t.writable))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return h(Aa(this,t.writable,r.preventClose,r.preventAbort,r.preventCancel,r.signal)),t.readable;}pipeTo(e,A={}){let t;if(!Aw(this))return AZ(Av("pipeTo"));if(void 0===e)return AZ("Parameter 1 is required in 'pipeTo'.");if(!eO(e))return AZ(TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));try{t=Af(A,"Second parameter");}catch(e){return AZ(e);}return Ab(this)?AZ(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):eY(e)?AZ(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Aa(this,e,t.preventClose,t.preventAbort,t.preventCancel,t.signal);}tee(){if(!Aw(this))throw Av("tee");return Y(K(this._readableStreamController)?function(e){function A(e){u(e._closedPromise,A=>(e!==Q||(ed(g._readableStreamController,A),ed(E._readableStreamController,A),f&&p||h(void 0)),null));}function t(){ek(Q)&&(B(Q),A(Q=N(e))),M(Q,{_chunkSteps(A){A0(()=>{I=!1,d=!1;let t=A;if(!f&&!p)try{t=j(A);}catch(A){return ed(g._readableStreamController,A),ed(E._readableStreamController,A),void h(AR(e,A));}f||eI(g._readableStreamController,A),p||eI(E._readableStreamController,t),C=!1,I?n():d&&o();});},_closeSteps(){C=!1,f||eC(g._readableStreamController),p||eC(E._readableStreamController),g._readableStreamController._pendingPullIntos.length>0&&ey(g._readableStreamController,0),E._readableStreamController._pendingPullIntos.length>0&&ey(E._readableStreamController,0),f&&p||h(void 0);},_errorSteps(){C=!1;}});}function r(t,r){x(Q)&&(B(Q),A(Q=new ta(e)));let i=r?E:g,s=r?g:E;eN(Q,t,1,{_chunkSteps(A){A0(()=>{I=!1,d=!1;let t=r?p:f;if(r?f:p)t||em(i._readableStreamController,A);else{let r;try{r=j(A);}catch(A){return ed(i._readableStreamController,A),ed(s._readableStreamController,A),void h(AR(e,A));}t||em(i._readableStreamController,A),eI(s._readableStreamController,r);}C=!1,I?n():d&&o();});},_closeSteps(e){C=!1;let A=r?p:f,t=r?f:p;A||eC(i._readableStreamController),t||eC(s._readableStreamController),void 0!==e&&(A||em(i._readableStreamController,e),!t&&s._readableStreamController._pendingPullIntos.length>0&&ey(s._readableStreamController,0)),A&&t||h(void 0);},_errorSteps(){C=!1;}});}function n(){if(C)return I=!0,c(void 0);C=!0;let e=ef(g._readableStreamController);return null===e?t():r(e._view,!1),c(void 0);}function o(){if(C)return d=!0,c(void 0);C=!0;let e=ef(E._readableStreamController);return null===e?t():r(e._view,!0),c(void 0);}function i(){}let s,a,g,E,h,Q=N(e),C=!1,I=!1,d=!1,f=!1,p=!1,y=l(e=>{h=e;});return g=Ay(i,n,function(A){if(f=!0,s=A,p){let A=AR(e,Y([s,a]));h(A);}return y;}),E=Ay(i,o,function(A){if(p=!0,a=A,f){let A=AR(e,Y([s,a]));h(A);}return y;}),A(Q),[g,E];}(this):function(e,A){function t(){return E?h=!0:(E=!0,M(n,{_chunkSteps(e){A0(()=>{h=!1,Q||Ah(s._readableStreamController,e),C||Ah(a._readableStreamController,e),E=!1,h&&t();});},_closeSteps(){E=!1,Q||Au(s._readableStreamController),C||Au(a._readableStreamController),Q&&C||g(void 0);},_errorSteps(){E=!1;}})),c(void 0);}function r(){}let n=N(e),o,i,s,a,g,E=!1,h=!1,Q=!1,C=!1,I=l(e=>{g=e;});return s=Ap(r,t,function(A){if(Q=!0,o=A,C){let A=AR(e,Y([o,i]));g(A);}return I;}),a=Ap(r,t,function(A){if(C=!0,i=A,Q){let A=AR(e,Y([o,i]));g(A);}return I;}),u(n._closedPromise,e=>(AQ(s._readableStreamController,e),AQ(a._readableStreamController,e),Q&&C||g(void 0),null)),[s,a];}(this));}values(e){if(!Aw(this))throw Av("values");return function(e,A){let t=new tr(N(e),A),r=Object.create(tn);return r._asyncIteratorImpl=t,r;}(this,(w(e,"First parameter"),{preventCancel:!!(null==e?void 0:e.preventCancel)}).preventCancel);}[tt](e){return this.values(e);}static from(e){var A,t;let r;return i(A=e)&&void 0!==A.getReader?(t=A.getReader(),r=Ap(o,function(){let e;try{e=t.read();}catch(e){return AZ(e);}return g(e,e=>{if(!i(e))throw TypeError("The promise returned by the reader.read() method must fulfill with an object");if(e.done)Au(r._readableStreamController);else{let A=e.value;Ah(r._readableStreamController,A);}},void 0);},function(e){try{return c(t.cancel(e));}catch(e){return AZ(e);}},0)):function(e){let A;let t=function e(A,t="sync",r){if(void 0===r){if("async"===t){if(void 0===(r=H(A,tt)))return function(e){let A={next(){let A;try{A=V(e);}catch(e){return AZ(e);}return P(A);},return(A){let t;try{let r=H(e.iterator,"return");if(void 0===r)return c({done:!0,value:A});t=Q(r,e.iterator,[A]);}catch(e){return AZ(e);}return i(t)?P(t):AZ(TypeError("The iterator.return() method must return an object"));}};return{iterator:A,nextMethod:A.next,done:!1};}(e(A,"sync",H(A,Symbol.iterator)));}else r=H(A,Symbol.iterator);}if(void 0===r)throw TypeError("The object is not iterable");let n=Q(r,A,[]);if(!i(n))throw TypeError("The iterator method must return an object");return{iterator:n,nextMethod:n.next,done:!1};}(e,"async");return A=Ap(o,function(){let e;try{e=V(t);}catch(e){return AZ(e);}return g(c(e),e=>{if(!i(e))throw TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(e.done)Au(A._readableStreamController);else{let t=e.value;Ah(A._readableStreamController,t);}},void 0);},function(e){let A;let r=t.iterator;try{A=H(r,"return");}catch(e){return AZ(e);}return void 0===A?c(void 0):g(C(A,r,[e]),e=>{if(!i(e))throw TypeError("The promise returned by the iterator.return() method must fulfill with an object");},void 0);},0);}(A);}}Object.defineProperties(tI,{from:{enumerable:!0}}),Object.defineProperties(tI.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),s(tI.from,"from"),s(tI.prototype.cancel,"cancel"),s(tI.prototype.getReader,"getReader"),s(tI.prototype.pipeThrough,"pipeThrough"),s(tI.prototype.pipeTo,"pipeTo"),s(tI.prototype.tee,"tee"),s(tI.prototype.values,"values"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tI.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(tI.prototype,tt,{value:tI.prototype.values,writable:!0,configurable:!0});let td=e=>e.byteLength;s(td,"size");class tB{constructor(e){D(e,1,"ByteLengthQueuingStrategy"),e=Ak(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark;}get highWaterMark(){if(!AF(this))throw AN("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark;}get size(){if(!AF(this))throw AN("size");return td;}}Object.defineProperties(tB.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tB.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});let tf=()=>1;s(tf,"size");class tp{constructor(e){D(e,1,"CountQueuingStrategy"),e=Ak(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark;}get highWaterMark(){if(!AU(this))throw AL("highWaterMark");return this._countQueuingStrategyHighWaterMark;}get size(){if(!AU(this))throw AL("size");return tf;}}Object.defineProperties(tp.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tp.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class ty{constructor(e={},A={},t={}){let r;void 0===e&&(e=null);let n=ex(A,"Second parameter"),o=ex(t,"Third parameter"),i=function(e,A){w(e,A);let t=null==e?void 0:e.cancel,r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,o=null==e?void 0:e.start,i=null==e?void 0:e.transform,s=null==e?void 0:e.writableType;return{cancel:void 0===t?void 0:(b(t,`${A} has member 'cancel' that`),A=>C(t,e,[A])),flush:void 0===r?void 0:(b(r,`${A} has member 'flush' that`),A=>C(r,e,[A])),readableType:n,start:void 0===o?void 0:(b(o,`${A} has member 'start' that`),A=>Q(o,e,[A])),transform:void 0===i?void 0:(b(i,`${A} has member 'transform' that`),(A,t)=>C(i,e,[A,t])),writableType:s};}(e,"First parameter");if(void 0!==i.readableType)throw RangeError("Invalid readableType specified");if(void 0!==i.writableType)throw RangeError("Invalid writableType specified");let s=eU(o,0),a=eT(o),u=eU(n,1),h=eT(n);(function(e,A,t,r,n,o){function i(){return A;}e._writable=function(e,A,t,r,n=1,o=()=>1){let i=Object.create(tc.prototype);return e_(i),e1(i,Object.create(tu.prototype),e,A,t,r,n,o),i;}(i,function(A){return function(e,A){let t=e._transformStreamController;if(e._backpressure)return g(e._backpressureChangePromise,()=>{let r=e._writable;if("erroring"===r._state)throw r._storedError;return AH(t,A);},void 0);return AH(t,A);}(e,A);},function(){return function(e){let A=e._transformStreamController;if(void 0!==A._finishPromise)return A._finishPromise;let t=e._readable;A._finishPromise=l((e,t)=>{A._finishPromise_resolve=e,A._finishPromise_reject=t;});let r=A._flushAlgorithm();return AG(A),E(r,()=>("errored"===t._state?Aq(A,t._storedError):(Au(t._readableStreamController),AV(A)),null),e=>(AQ(t._readableStreamController,e),Aq(A,e),null)),A._finishPromise;}(e);},function(A){return function(e,A){let t=e._transformStreamController;if(void 0!==t._finishPromise)return t._finishPromise;let r=e._readable;t._finishPromise=l((e,A)=>{t._finishPromise_resolve=e,t._finishPromise_reject=A;});let n=t._cancelAlgorithm(A);return AG(t),E(n,()=>("errored"===r._state?Aq(t,r._storedError):(AQ(r._readableStreamController,A),AV(t)),null),e=>(AQ(r._readableStreamController,e),Aq(t,e),null)),t._finishPromise;}(e,A);},t,r),e._readable=Ap(i,function(){return AO(e,!1),e._backpressureChangePromise;},function(A){return function(e,A){let t=e._transformStreamController;if(void 0!==t._finishPromise)return t._finishPromise;let r=e._writable;t._finishPromise=l((e,A)=>{t._finishPromise_resolve=e,t._finishPromise_reject=A;});let n=t._cancelAlgorithm(A);return AG(t),E(n,()=>("errored"===r._state?Aq(t,r._storedError):(e9(r._writableStreamController,A),A_(e),AV(t)),null),A=>(e9(r._writableStreamController,A),A_(e),Aq(t,A),null)),t._finishPromise;}(e,A);},n,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,AO(e,!0),e._transformStreamController=void 0;})(this,l(e=>{r=e;}),u,h,s,a),function(e,A){let t,r,n;let o=Object.create(tm.prototype);t=void 0!==A.transform?e=>A.transform(e,o):e=>{try{return AJ(o,e),c(void 0);}catch(e){return AZ(e);}},r=void 0!==A.flush?()=>A.flush(o):()=>c(void 0),n=void 0!==A.cancel?e=>A.cancel(e):()=>c(void 0),o._controlledTransformStream=e,e._transformStreamController=o,o._transformAlgorithm=t,o._flushAlgorithm=r,o._cancelAlgorithm=n,o._finishPromise=void 0,o._finishPromise_resolve=void 0,o._finishPromise_reject=void 0;}(this,i),void 0!==i.start?r(i.start(this._transformStreamController)):r(void 0);}get readable(){if(!AT(this))throw AW("readable");return this._readable;}get writable(){if(!AT(this))throw AW("writable");return this._writable;}}Object.defineProperties(ty.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ty.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});class tm{constructor(){throw TypeError("Illegal constructor");}get desiredSize(){if(!AY(this))throw AP("desiredSize");return AC(this._controlledTransformStream._readable._readableStreamController);}enqueue(e){if(!AY(this))throw AP("enqueue");AJ(this,e);}error(e){if(!AY(this))throw AP("error");Ax(this._controlledTransformStream,e);}terminate(){if(!AY(this))throw AP("terminate");!function(e){let A=e._controlledTransformStream;Au(A._readable._readableStreamController),AM(A,TypeError("TransformStream terminated"));}(this);}}Object.defineProperties(tm.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),s(tm.prototype.enqueue,"enqueue"),s(tm.prototype.error,"error"),s(tm.prototype.terminate,"terminate"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tm.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});}),A7("fsDW2",function(e,A){let t;function r(){o=Date.now();let e=i.length,A=0;for(;e>A;){let t=i[A];0===t.state?t.state=o+t.delay:t.state>0&&o>=t.state&&(t.state=-1,t.callback(t.opaque)),-1===t.state?(t.state=-2,A!==e-1?i[A]=i.pop():i.pop(),e-=1):A+=1;}i.length>0&&n();}function n(){t&&t.refresh?t.refresh():(clearTimeout(t),(t=setTimeout(r,1e3)).unref&&t.unref());}let o=Date.now(),i=[];class s{constructor(e,A,t){this.callback=e,this.delay=A,this.opaque=t,this.state=-2,this.refresh();}refresh(){-2!==this.state||(i.push(this),t&&1!==i.length||n()),this.state=0;}clear(){this.state=-1;}}e.exports={setTimeout:(e,A,t)=>A<1e3?setTimeout(e,A,t):new s(e,A,t),clearTimeout(e){e instanceof s?e.clear():clearTimeout(e);}};}),A7("cEHE4",function(e,A){var t,r,n,o,i,s,a,l;let c;function g(e,A,t){if(A&&"object"==typeof A||null!==h.exec(A=null!=A?""+A:""))throw new r(`invalid ${e} header`);return t?A:`${e}: ${A}\r `;}function E(e,A,t,o=!1){if(t&&"object"==typeof t&&!Array.isArray(t))throw new r(`invalid ${A} header`);if(void 0!==t){if(null===e.host&&4===A.length&&"host"===A.toLowerCase()){if(null!==h.exec(t))throw new r(`invalid ${A} header`);e.host=t;}else if(null===e.contentLength&&14===A.length&&"content-length"===A.toLowerCase()){if(e.contentLength=parseInt(t,10),!Number.isFinite(e.contentLength))throw new r("invalid content-length header");}else if(null===e.contentType&&12===A.length&&"content-type"===A.toLowerCase())e.contentType=t,o?e.headers[A]=g(A,t,o):e.headers+=g(A,t);else if(17===A.length&&"transfer-encoding"===A.toLowerCase())throw new r("invalid transfer-encoding header");else if(10===A.length&&"connection"===A.toLowerCase()){let A="string"==typeof t?t.toLowerCase():null;if("close"!==A&&"keep-alive"!==A)throw new r("invalid connection header");"close"===A&&(e.reset=!0);}else if(10===A.length&&"keep-alive"===A.toLowerCase())throw new r("invalid keep-alive header");else if(7===A.length&&"upgrade"===A.toLowerCase())throw new r("invalid upgrade header");else if(6===A.length&&"expect"===A.toLowerCase())throw new n("expect header not supported");else if(null===u.exec(A))throw new r("invalid header key");else if(Array.isArray(t))for(let r=0;r{this.abort?this.abort(e):this.error=e;},this.body.on("error",this.errorHandler);}else if(l.isBuffer(n))this.body=n.byteLength?n:null;else if(ArrayBuffer.isView(n))this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null;else if(n instanceof ArrayBuffer)this.body=n.byteLength?Buffer.from(n):null;else if("string"==typeof n)this.body=n.length?Buffer.from(n):null;else if(l.isFormDataLike(n)||l.isIterable(n)||l.isBlobLike(n))this.body=n;else throw new r("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=g||null,this.path=i?l.buildURL(A,i):A,this.origin=e,this.idempotent=null==s?"HEAD"===t||"GET"===t:s,this.blocking=null!=a&&a,this.reset=null==d?null:d,this.host=null,this.contentLength=null,this.contentType=null,this.headers="",this.expectContinue=null!=f&&f,Array.isArray(o)){if(o.length%2!=0)throw new r("headers array must be even");for(let e=0;e25&&(t=`${t.slice(0,25)}...`),e+=`. Received type ${typeof A} (${t})`;}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:e,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`;},enumerable:!1,writable:!0,configurable:!0}});}}class r{subscribe(e){if("function"!=typeof e)throw new t('The "subscription" argument must be of type function',e);this._subscribers.push(e);}unsubscribe(e){let A=this._subscribers.indexOf(e);return-1!==A&&(this._subscribers.splice(A,1),this._subscribers.length||Object.setPrototypeOf(this,n.prototype),!0);}get hasSubscribers(){return!0;}publish(e){for(let A=0;A{throw e;});}}}class n{constructor(e){this._subscribers=void 0,this.name=e;}static[Symbol.hasInstance](e){let A=Object.getPrototypeOf(e);return A===n.prototype||A===r.prototype;}subscribe(e){Object.setPrototypeOf(this,r.prototype),this._subscribers=[],this.subscribe(e);}unsubscribe(){return!1;}get hasSubscribers(){return!1;}publish(){}}let o={};e.exports={channel:function(e){let A=o[e];if(A)return A;if("string"!=typeof e&&"symbol"!=typeof e)throw new t('The "channel" argument must be one of type string or symbol',e);return o[e]=new n(e);},hasSubscribers:function(e){let A=o[e];return!!A&&A.hasSubscribers;},Channel:n,deleteChannel:function(e){return!!o[e]&&(o[e]=null,!0);}};}),A7("9pkjh",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D;function S(e,A=!1){U||(U=ni("9UQbL").ReadableStream);let t=null;t=e instanceof U?e:i(e)?e.stream():new U({async pull(e){e.enqueue("string"==typeof l?x.encode(l):l),queueMicrotask(()=>a(e));},start(){},type:void 0}),rJ(s(t));let n=null,l=null,c=null,g=null;if("string"==typeof e)l=e,g="text/plain;charset=UTF-8";else if(e instanceof URLSearchParams)l=e.toString(),g="application/x-www-form-urlencoded;charset=UTF-8";else if(m(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(r.isFormDataLike(e)){let A="----formdata-undici-0"+(""+Math.floor(1e11*Math.random())).padStart(11,"0"),t=`--${A}\r Content-Disposition: form-data`,r=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),o=e=>e.replace(/\r?\n|\r/g,"\r\n"),i=[],s=new Uint8Array([13,10]);c=0;let a=!1;for(let[A,n]of e)if("string"==typeof n){let e=x.encode(t+`; name="${r(o(A))}"`+`\r \r ${o(n)}\r `);i.push(e),c+=e.byteLength;}else{let e=x.encode(`${t}; name="${r(o(A))}"`+(n.name?`; filename="${r(n.name)}"`:"")+"\r\n"+`Content-Type: ${n.type||"application/octet-stream"}\r \r `);i.push(e,n,s),"number"==typeof n.size?c+=e.byteLength+n.size+s.byteLength:a=!0;}let E=x.encode(`--${A}--`);i.push(E),c+=E.byteLength,a&&(c=null),l=e,n=async function*(){for(let e of i)e.stream?yield*e.stream():yield e;},g="multipart/form-data; boundary="+A;}else if(i(e))l=e,c=e.size,e.type&&(g=e.type);else if("function"==typeof e[Symbol.asyncIterator]){if(A)throw TypeError("keepalive");if(r.isDisturbed(e)||e.locked)throw TypeError("Response body object should not be disturbed or locked");t=e instanceof U?e:o(e);}if(("string"==typeof l||r.isBuffer(l))&&(c=Buffer.byteLength(l)),null!=n){let A;t=new U({async start(){A=n(e)[Symbol.asyncIterator]();},async pull(e){let{value:r,done:n}=await A.next();return n?queueMicrotask(()=>{e.close();}):f(t)||e.enqueue(new Uint8Array(r)),e.desiredSize>0;},async cancel(e){await A.return();},type:void 0});}return[{stream:t,source:l,length:c},g];}async function*v(e){if(e){if(y(e))yield e;else{let A=e.stream;if(r.isDisturbed(A))throw TypeError("The body has already been consumed.");if(A.locked)throw TypeError("The stream is locked.");A[B]=!0,yield*A;}}}function k(e){if(e.aborted)throw new Q("The operation was aborted.","AbortError");}async function N(e,A,t){var n;if(u.brandCheck(e,t),k(e[E]),null!=(n=e[E].body)&&(n.stream.locked||r.isDisturbed(n.stream)))throw TypeError("Body is unusable");let o=l(),i=e=>o.reject(e),s=e=>{try{o.resolve(A(e));}catch(e){i(e);}};return null==e[E].body?s(new Uint8Array()):await c(e[E].body,s,i),o.promise;}function F(e){return 0===e.length?"":(239===e[0]&&187===e[1]&&191===e[2]&&(e=e.subarray(3)),M.decode(e));}function L(e){return JSON.parse(F(e));}t=ni("2Ekxx"),r=ni("c7jgd"),o=(n=ni("guORk")).ReadableStreamFrom,i=n.isBlobLike,s=n.isReadableStreamLike,a=n.readableStreamClose,l=n.createDeferredPromise,c=n.fullyReadBody,g=ni("ltfpn").FormData,E=ni("4r42s").kState,u=ni("1xsyj").webidl,Q=(h=ni("3j972")).DOMException,C=h.structuredClone,I=rV.Blob,d=rV.File,B=ni("J3IVZ").kBodyUsed,f=(r=ni("c7jgd")).isErrored,y=(p=ni("ceYX4")).isUint8Array,m=p.isArrayBuffer,w=ni("5JU9i").File,R=(b=ni("ldxmf")).parseMIMEType,D=b.serializeAMimeType;let U=globalThis.ReadableStream,T=null!=d?d:w,x=new TextEncoder(),M=new TextDecoder();e.exports={extractBody:S,safelyExtractBody:function(e,A=!1){return U||(U=ni("9UQbL").ReadableStream),e instanceof U&&(rJ(!r.isDisturbed(e),"The body has already been consumed."),rJ(!e.locked,"The stream is locked.")),S(e,A);},cloneBody:function(e){let[A,t]=e.stream.tee(),[,r]=C(t,{transfer:[t]}).tee();return e.stream=A,{stream:r,length:e.length,source:e.source};},mixinBody:function(e){Object.assign(e.prototype,{blob(){return N(this,e=>{let A=function(e){let{headersList:A}=e[E],t=A.get("content-type");return null===t?"failure":R(t);}(this);return"failure"===A?A="":A&&(A=D(A)),new I([e],{type:A});},e);},arrayBuffer(){return N(this,e=>new Uint8Array(e).buffer,e);},text(){return N(this,F,e);},json(){return N(this,L,e);},async formData(){u.brandCheck(this,e),k(this[E]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let e;let A={};for(let[e,t]of this.headers)A[e.toLowerCase()]=t;let r=new g();try{e=new t({headers:A,preservePath:!0});}catch(e){throw new Q(""+e,"AbortError");}e.on("field",(e,A)=>{r.append(e,A);}),e.on("file",(e,A,t,n,o)=>{let i=[];if("base64"===n||"base64"===n.toLowerCase()){let n="";A.on("data",e=>{let A=(n+=e.toString().replace(/[\r\n]/gm,"")).length-n.length%4;i.push(Buffer.from(n.slice(0,A),"base64")),n=n.slice(A);}),A.on("end",()=>{i.push(Buffer.from(n,"base64")),r.append(e,new T(i,t,{type:o}));});}else A.on("data",e=>{i.push(e);}),A.on("end",()=>{r.append(e,new T(i,t,{type:o}));});});let n=new Promise((A,t)=>{e.on("finish",A),e.on("error",e=>t(TypeError(e)));});if(null!==this.body)for await(let A of v(this[E].body))e.write(A);return e.end(),await n,r;}if(/application\/x-www-form-urlencoded/.test(A)){let e;try{let A="",t=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let e of v(this[E].body)){if(!y(e))throw TypeError("Expected Uint8Array chunk");A+=t.decode(e,{stream:!0});}A+=t.decode(),e=new URLSearchParams(A);}catch(e){throw Object.assign(TypeError(),{cause:e});}let A=new g();for(let[t,r]of e)A.append(t,r);return A;}throw await Promise.resolve(),k(this[E]),u.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."});}});}};}),A7("2Ekxx",function(e,A){var t,r,n,o,i,s;function a(e){if(!(this instanceof a))return new a(e);if("object"!=typeof e)throw TypeError("Busboy expected an options-Object.");if("object"!=typeof e.headers)throw TypeError("Busboy expected an options-Object with headers-attribute.");if("string"!=typeof e.headers["content-type"])throw TypeError("Missing Content-Type-header.");let{headers:A,...r}=e;this.opts={autoDestroy:!1,...r},t.call(this,this.opts),this._done=!1,this._parser=this.getParserByHeaders(A),this._finished=!1;}t=rW.Writable,r=rj.inherits,n=ni("fkZ8W"),o=ni("5QeDw"),i=ni("iVEdz"),s=ni("8m65C"),r(a,t),a.prototype.emit=function(e){if("finish"===e){if(this._done){if(this._finished)return;}else{var A;null===(A=this._parser)||void 0===A||A.end();return;}this._finished=!0;}t.prototype.emit.apply(this,arguments);},a.prototype.getParserByHeaders=function(e){let A=s(e["content-type"]),t={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:A,preservePath:this.opts.preservePath};if(o.detect.test(A[0]))return new o(this,t);if(i.detect.test(A[0]))return new i(this,t);throw Error("Unsupported Content-Type.");},a.prototype._write=function(e,A,t){this._parser.write(e,t);},e.exports=a,e.exports.default=a,e.exports.Busboy=a,e.exports.Dicer=n;}),A7("fkZ8W",function(e,A){var t,r,n,o,i;function s(e){if(!(this instanceof s))return new s(e);if(t.call(this,e),!e||!e.headerFirst&&"string"!=typeof e.boundary)throw TypeError("Boundary required");"string"==typeof e.boundary?this.setBoundary(e.boundary):this._bparser=void 0,this._headerFirst=e.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:e.partHwm},this._pause=!1;let A=this;this._hparser=new i(e),this._hparser.on("header",function(e){A._inHeader=!1,A._part.emit("header",e);});}t=rW.Writable,r=rj.inherits,n=ni("b8U8Q"),o=ni("cyC3P"),i=ni("bJoWL");let a=Buffer.from("-"),l=Buffer.from("\r\n"),c=function(){};r(s,t),s.prototype.emit=function(e){if("finish"!==e||this._realFinish)t.prototype.emit.apply(this,arguments);else if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1;});return;}e._realFinish=!0,e.emit("finish"),e._realFinish=!1;});}},s.prototype._write=function(e,A,t){if(!this._hparser&&!this._bparser)return t();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new o(this._partOpts),0!==this.listenerCount("preamble")?this.emit("preamble",this._part):this._ignore());let A=this._hparser.push(e);if(this._inHeader||void 0===A||!(A256)throw Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=Array(256).fill(A),this._lookbehind_size=0,this._needle=e,this._bufpos=0,this._lookbehind=Buffer.alloc(A);for(var t=0;t=0)this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0;else{let A=this._lookbehind_size+i;return A>0&&this.emit("info",!1,this._lookbehind,0,A),this._lookbehind.copy(this._lookbehind,0,A,this._lookbehind_size-A),this._lookbehind_size-=A,e.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=t,this._bufpos=t,t;}}if(i+=(i>=0)*this._bufpos,-1!==e.indexOf(r,i))return i=e.indexOf(r,i),++this.matches,i>0?this.emit("info",!0,e,this._bufpos,i):this.emit("info",!0),this._bufpos=i+n;for(i=t-n;i0&&this.emit("info",!1,e,this._bufpos,ir;++r)if(this._sbmh_lookup_char(e,A+r)!==this._needle[r])return!1;return!0;},e.exports=r;}),A7("cyC3P",function(e,A){var t;function r(e){t.call(this,e);}(0,rj.inherits)(r,t=rW.Readable),r.prototype._read=function(e){},e.exports=r;}),A7("bJoWL",function(e,A){var t,r,n,o;function i(e){t.call(this),e=e||{};let A=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=n(e,"maxHeaderPairs",2e3),this.maxHeaderSize=n(e,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new o(s),this.ss.on("info",function(e,t,r,n){t&&!A.maxed&&(A.nread+n-r>=A.maxHeaderSize?(n=A.maxHeaderSize-A.nread+r,A.nread=A.maxHeaderSize,A.maxed=!0):A.nread+=n-r,A.buffer+=t.toString("binary",r,n)),e&&A._finish();});}t=r$.EventEmitter,r=rj.inherits,n=ni("aZDfz"),o=ni("b8U8Q");let s=Buffer.from("\r\n\r\n");r(i,t),i.prototype.push=function(e){let A=this.ss.push(e);if(this.finished)return A;},i.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset();},i.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let e=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",e);},i.prototype._parseHeader=function(){let e,A;if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(/\r\n/g),r=t.length;for(var n=0;r>n;++n){if(0===t[n].length)continue;if((" "===t[n][0]||" "===t[n][0])&&A){this.header[A][this.header[A].length-1]+=t[n];continue;}let r=t[n].indexOf(":");if(-1===r||0===r)return;if(A=(e=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/.exec(t[n]))[1].toLowerCase(),this.header[A]=this.header[A]||[],this.header[A].push(e[2]||""),++this.npairs===this.maxHeaderPairs)break;}},e.exports=i;}),A7("aZDfz",function(e,A){e.exports=function(e,A,t){if(!e||void 0===e[A]||null===e[A])return t;if("number"!=typeof e[A]||isNaN(e[A]))throw TypeError("Limit "+A+" is not a valid number");return e[A];};}),A7("5QeDw",function(e,A){var t,r,n,o,i,s,a;function l(e,A){let t,r,l,I,d;function B(){0===x&&M&&!e._done&&(M=!1,f.end());}let f=this,p=A.limits,y=A.isPartAFile||((e,A,t)=>"application/octet-stream"===A||void 0!==t),m=A.parsedConType||[],w=A.defCharset||"utf8",b=A.preservePath,R={highWaterMark:A.fileHwm};for(t=0,r=m.length;r>t;++t)if(Array.isArray(m[t])&&E.test(m[t][0])){l=m[t][1];break;}if("string"!=typeof l)throw Error("Multipart: Boundary not found");let D=a(p,"fieldSize",1048576),S=a(p,"fileSize",1/0),v=a(p,"files",1/0),k=a(p,"fields",1/0),N=a(p,"parts",1/0),F=a(p,"headerPairs",2e3),L=a(p,"headerSize",81920),U=0,T=0,x=0,M=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=e;let _={boundary:l,maxHeaderPairs:F,maxHeaderSize:L,partHwm:R.highWaterMark,highWaterMark:A.highWaterMark};this.parser=new n(_),this.parser.on("drain",function(){if(f._needDrain=!1,f._cb&&!f._pause){let e=f._cb;f._cb=void 0,e();}}).on("part",function A(n){if(++f._nparts>N)return f.parser.removeListener("part",A),f.parser.on("part",c),e.hitPartsLimit=!0,e.emit("partsLimit"),c(n);if(d){let e=d;e.emit("end"),e.removeAllListeners("end");}n.on("header",function(A){let a,l,E,p,m,N,F,L;let M=0;if(A["content-type"]&&(E=o(A["content-type"][0]))[0]){for(t=0,a=E[0].toLowerCase(),r=E.length;r>t;++t)if(h.test(E[t][0])){p=E[t][1].toLowerCase();break;}}if(void 0===a&&(a="text/plain"),void 0===p&&(p=w),!A["content-disposition"]||!u.test((E=o(A["content-disposition"][0]))[0]))return c(n);for(t=0,r=E.length;r>t;++t)C.test(E[t][0])?l=E[t][1]:Q.test(E[t][0])&&(N=E[t][1],b||(N=s(N)));if(m=A["content-transfer-encoding"]?A["content-transfer-encoding"][0].toLowerCase():"7bit",y(l,a,N)){if(U===v)return e.hitFilesLimit||(e.hitFilesLimit=!0,e.emit("filesLimit")),c(n);if(++U,0===e.listenerCount("file")){f.parser._ignore();return;}++x;let A=new g(R);I=A,A.on("end",function(){if(--x,f._pause=!1,B(),f._cb&&!f._needDrain){let e=f._cb;f._cb=void 0,e();}}),A._read=function(e){if(f._pause&&(f._pause=!1,f._cb&&!f._needDrain)){let e=f._cb;f._cb=void 0,e();}},e.emit("file",l,A,N,m,a),F=function(e){if((M+=e.length)>S){let t=S-M+e.length;t>0&&A.push(e.slice(0,t)),A.truncated=!0,A.bytesRead=S,n.removeAllListeners("data"),A.emit("limit");return;}A.push(e)||(f._pause=!0),A.bytesRead=M;},L=function(){I=void 0,A.push(null);};}else{if(T===k)return e.hitFieldsLimit||(e.hitFieldsLimit=!0,e.emit("fieldsLimit")),c(n);++T,++x;let A="",t=!1;d=n,F=function(e){if((M+=e.length)>D){let r=D-(M-e.length);A+=e.toString("binary",0,r),t=!0,n.removeAllListeners("data");}else A+=e.toString("binary");},L=function(){d=void 0,A.length&&(A=i(A,"binary",p)),e.emit("field",l,A,!1,t,m,a),--x,B();};}n._readableState.sync=!1,n.on("data",F),n.on("end",L);}).on("error",function(e){I&&I.emit("error",e);});}).on("error",function(A){e.emit("error",A);}).on("finish",function(){M=!0,B();});}function c(e){e.resume();}function g(e){t.call(this,e),this.bytesRead=0,this.truncated=!1;}t=rW.Readable,r=rj.inherits,n=ni("fkZ8W"),o=ni("8m65C"),i=ni("6G8Ab"),s=ni("knMMf"),a=ni("aZDfz");let E=/^boundary$/i,u=/^form-data$/i,h=/^charset$/i,Q=/^filename$/i,C=/^name$/i;l.detect=/^multipart\/form-data/i,l.prototype.write=function(e,A){let t=this.parser.write(e);t&&!this._pause?A():(this._needDrain=!t,this._cb=A);},l.prototype.end=function(){let e=this;e.parser.writable?e.parser.end():e._boy._done||process.nextTick(function(){e._boy._done=!0,e._boy.emit("finish");});},r(g,t),g.prototype._read=function(e){},e.exports=l;}),A7("8m65C",function(e,A){var t;function r(e){return n[e];}t=ni("6G8Ab");let n={"%00":"\0","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":" ","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0e","%0E":"\x0e","%0f":"\x0f","%0F":"\x0f","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1a","%1A":"\x1a","%1b":"\x1b","%1B":"\x1b","%1c":"\x1c","%1C":"\x1c","%1d":"\x1d","%1D":"\x1d","%1e":"\x1e","%1E":"\x1e","%1f":"\x1f","%1F":"\x1f","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};e.exports=function(e){let A=[],n=0,o="",i=!1,s=!1,a=0,l="",c=e.length;for(var g=0;c>g;++g){let c=e[g];if("\\"===c&&i){if(s)s=!1;else{s=!0;continue;}}else if('"'===c){if(s)s=!1;else{i?(i=!1,n=0):i=!0;continue;}}else{if(s&&i&&(l+="\\"),s=!1,(2===n||3===n)&&"'"===c){2===n?(n=3,o=l.substring(1)):n=1,l="";continue;}if(0===n&&("*"===c||"="===c)&&A.length){n="*"===c?2:1,A[a]=[l,void 0],l="";continue;}if(i||";"!==c){if(!i&&(" "===c||" "===c))continue;}else{n=0,o?(l.length&&(l=t(l.replace(/%[a-fA-F0-9][a-fA-F0-9]/g,r),"binary",o)),o=""):l.length&&(l=t(l,"binary","utf8")),void 0===A[a]?A[a]=l:A[a][1]=l,l="",++a;continue;}}l+=c;}return o&&l.length?l=t(l.replace(/%[a-fA-F0-9][a-fA-F0-9]/g,r),"binary",o):l&&(l=t(l,"binary","utf8")),void 0===A[a]?l&&(A[a]=l):A[a][1]=l,A;};}),A7("6G8Ab",function(e,A){let t=new TextDecoder("utf-8"),r=new Map([["utf-8",t],["utf8",t]]),n={utf8:(e,A)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,A)),e.utf8Slice(0,e.length)),latin1:(e,A)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,A)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,A)),e.ucs2Slice(0,e.length)),base64:(e,A)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,A)),e.base64Slice(0,e.length)),other(A,t){if(0===A.length)return"";if("string"==typeof A&&(A=Buffer.from(A,t)),r.has(e.exports.toString()))try{return r.get(e.exports).decode(A);}catch{}return"string"==typeof A?A:A.toString();}};e.exports=function(e,A,t){return e?function(e){let A;for(;;)switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(void 0===A){A=!0,e=e.toLowerCase();continue;}return n.other.bind(e);}}(t)(e,A):e;};}),A7("knMMf",function(e,A){e.exports=function(e){if("string"!=typeof e)return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return".."===(e=e.slice(A+1))||"."===e?"":e;}return".."===e||"."===e?"":e;};}),A7("iVEdz",function(e,A){var t,r,n;function o(e,A){let r;let o=A.limits,s=A.parsedConType;this.boy=e,this.fieldSizeLimit=n(o,"fieldSize",1048576),this.fieldNameSizeLimit=n(o,"fieldNameSize",100),this.fieldsLimit=n(o,"fields",1/0);for(var a=0,l=s.length;l>a;++a)if(Array.isArray(s[a])&&i.test(s[a][0])){r=s[a][1].toLowerCase();break;}void 0===r&&(r=A.defCharset||"utf8"),this.decoder=new t(),this.charset=r,this._fields=0,this._state="key",this._checkingBytes=!0,this._bytesKey=0,this._bytesVal=0,this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._hitLimit=!1;}t=ni("jjmWH"),r=ni("6G8Ab"),n=ni("aZDfz");let i=/^charset$/i;o.detect=/^application\/x-www-form-urlencoded/i,o.prototype.write=function(e,A){let t,n,o;if(this._fields===this.fieldsLimit)return this.boy.hitFieldsLimit||(this.boy.hitFieldsLimit=!0,this.boy.emit("fieldsLimit")),A();let i=0,s=e.length;for(;io;++o){if(!this._checkingBytes&&++i,61===e[o]){t=o;break;}if(38===e[o]){n=o;break;}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=!0;break;}this._checkingBytes&&++this._bytesKey;}if(void 0!==t)t>i&&(this._key+=this.decoder.write(e.toString("binary",i,t))),this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),i=t+1;else if(void 0!==n){let t;++this._fields;let o=this._keyTrunc;if(t=n>i?this._key+=this.decoder.write(e.toString("binary",i,n)):this._key,this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),t.length&&this.boy.emit("field",r(t,"binary",this.charset),"",o,!1),i=n+1,this._fields===this.fieldsLimit)return A();}else this._hitLimit?(o>i&&(this._key+=this.decoder.write(e.toString("binary",i,o))),i=o,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit&&(this._checkingBytes=!1,this._keyTrunc=!0)):(io;++o){if(!this._checkingBytes&&++i,38===e[o]){n=o;break;}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=!0;break;}this._checkingBytes&&++this._bytesVal;}if(void 0!==n){if(++this._fields,n>i&&(this._val+=this.decoder.write(e.toString("binary",i,n))),this.boy.emit("field",r(this._key,"binary",this.charset),r(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this._state="key",this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),i=n+1,this._fields===this.fieldsLimit)return A();}else this._hitLimit?(o>i&&(this._val+=this.decoder.write(e.toString("binary",i,o))),i=o,(""===this._val&&0===this.fieldSizeLimit||(this._bytesVal=this._val.length)===this.fieldSizeLimit)&&(this._checkingBytes=!1,this._valTrunc=!0)):(i0?this.boy.emit("field",r(this._key,"binary",this.charset),"",this._keyTrunc,!1):"val"===this._state&&this.boy.emit("field",r(this._key,"binary",this.charset),r(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this.boy._done=!0,this.boy.emit("finish"));},e.exports=o;}),A7("jjmWH",function(e,A){function t(){this.buffer=void 0;}let r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];t.prototype.write=function(e){e=e.replace(/\+/g," ");let A="",t=0,n=0,o=e.length;for(;o>t;++t)void 0!==this.buffer?r[e.charCodeAt(t)]?(this.buffer+=e[t],++n,2===this.buffer.length&&(A+=String.fromCharCode(parseInt(this.buffer,16)),this.buffer=void 0)):(A+="%"+this.buffer,this.buffer=void 0,--t):"%"===e[t]&&(t>n&&(A+=e.substring(n,t),n=t),this.buffer="",++n);return n=33&&e<=126;}}(e.charCodeAt(A)))return!1;return!0;}function I(e){return!(e.startsWith(" ")||e.startsWith(" ")||e.endsWith(" ")||e.endsWith(" ")||e.includes("\0")||e.includes("\r")||e.includes("\n"));}function d(e,A){return(rJ(e instanceof URL),"file:"===e.protocol||"about:"===e.protocol||"blank:"===e.protocol)?"no-referrer":(e.username="",e.password="",e.hash="",A&&(e.pathname="",e.search=""),e);}function B(e){return e instanceof URL&&("about:blank"===e.href||"about:srcdoc"===e.href||"data:"===e.protocol||"file:"===e.protocol||function(e){if(null==e||"null"===e)return!1;let A=new URL(e);return!!("https:"===A.protocol||"wss:"===A.protocol||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||"localhost"===A.hostname||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"));}(e.origin));}function f(e){let A=[],t=!0;for(let r of e.split(" ")){t=!1;let e=D.exec(r);if(null===e||void 0===e.groups||void 0===e.groups.algo)continue;let n=e.groups.algo.toLowerCase();R.includes(n)&&A.push(e.groups);}return!0===t?"no metadata":A;}function p(e,A){return e.origin===A.origin&&"null"===e.origin||e.protocol===A.protocol&&e.hostname===A.hostname&&e.port===A.port;}async function y(e,A,t){let r;try{r=e.stream.getReader();}catch(e){t(e);return;}try{let e=await m(r);A(e);}catch(e){t(e);}}async function m(e){let A=[],t=0;for(;;){let{done:r,value:n}=await e.read();if(r)return Buffer.concat(A,t);if(!E(n))throw TypeError("Received non-Uint8Array chunk");A.push(n),t+=n.length;}}function w(e){return"string"==typeof e?e.startsWith("https:"):"https:"===e.protocol;}function b(e){rJ("protocol"in e);let A=e.protocol;return"http:"===A||"https:"===A;}r=(t=ni("3j972")).redirectStatusSet,n=t.referrerPolicySet,o=t.badPortsSet,i=ni("lLVSA").getGlobalOrigin,s=rX.performance,l=(a=ni("c7jgd")).isBlobLike,c=a.toUSVString,g=a.ReadableStreamFrom,E=ni("ceYX4").isUint8Array;let R=[];try{u=$c026e643bcbacc4e$import$4e46f0aad582585a;let e=["sha256","sha384","sha512"];R=u.getHashes().filter(A=>e.includes(A));}catch{}let D=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i,S={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(S,null);let v=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())),k=globalThis.ReadableStream,N=Object.hasOwn||((e,A)=>Object.prototype.hasOwnProperty.call(e,A));e.exports={isAborted:function(e){return"aborted"===e.controller.state;},isCancelled:function(e){return"aborted"===e.controller.state||"terminated"===e.controller.state;},createDeferredPromise:function(){let e,A;return{promise:new Promise((t,r)=>{e=t,A=r;}),resolve:e,reject:A};},ReadableStreamFrom:g,toUSVString:c,tryUpgradeRequestToAPotentiallyTrustworthyURL:function(e){},coarsenedSharedCurrentTime:function(e){return s.now();},determineRequestsReferrer:function(e){let A=e.referrerPolicy;rJ(A);let t=null;if("client"===e.referrer){let e=i();if(!e||"null"===e.origin)return"no-referrer";t=new URL(e);}else e.referrer instanceof URL&&(t=e.referrer);let r=d(t),n=d(t,!0);r.toString().length>4096&&(r=n);let o=p(e,r),s=B(r)&&!B(e.url);switch(A){case"origin":return null!=n?n:d(t,!0);case"unsafe-url":return r;case"same-origin":return o?n:"no-referrer";case"origin-when-cross-origin":return o?r:n;case"strict-origin-when-cross-origin":{let A=Q(e);if(p(r,A))return r;if(B(r)&&!B(A))return"no-referrer";return n;}default:return s?"no-referrer":n;}},makePolicyContainer:function(){return{referrerPolicy:"strict-origin-when-cross-origin"};},clonePolicyContainer:function(e){return{referrerPolicy:e.referrerPolicy};},appendFetchMetadata:function(e){let A=null;A=e.mode,e.headersList.set("sec-fetch-mode",A);},appendRequestOriginHeader:function(e){let A=e.origin;if("cors"===e.responseTainting||"websocket"===e.mode)A&&e.headersList.append("origin",A);else if("GET"!==e.method&&"HEAD"!==e.method){switch(e.referrerPolicy){case"no-referrer":A=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":e.origin&&w(e.origin)&&!w(Q(e))&&(A=null);break;case"same-origin":p(e,Q(e))||(A=null);}A&&e.headersList.append("origin",A);}},TAOCheck:function(){return"success";},corsCheck:function(){return"success";},crossOriginResourcePolicyCheck:function(){return"allowed";},createOpaqueTimingInfo:function(e){var A,t;return{startTime:null!==(A=e.startTime)&&void 0!==A?A:0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:null!==(t=e.startTime)&&void 0!==t?t:0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null};},setRequestReferrerPolicyOnRedirect:function(e,A){var t;let{headersList:r}=A,o=(null!==(t=r.get("referrer-policy"))&&void 0!==t?t:"").split(","),i="";if(o.length>0)for(let e=o.length;0!==e;e--){let A=o[e-1].trim();if(n.has(A)){i=A;break;}}""!==i&&(e.referrerPolicy=i);},isValidHTTPToken:C,requestBadPort:function(e){let A=Q(e);return b(A)&&o.has(A.port)?"blocked":"allowed";},requestCurrentURL:Q,responseURL:h,responseLocationURL:function(e,A){if(!r.has(e.status))return null;let t=e.headersList.get("location");return null!==t&&I(t)&&(t=new URL(t,h(e))),t&&!t.hash&&(t.hash=A),t;},isBlobLike:l,isURLPotentiallyTrustworthy:B,isValidReasonPhrase:function(e){for(let A=0;A=32&&t<=126||t>=128&&t<=255))return!1;}return!0;},sameOrigin:p,normalizeMethod:function(e){var A;return null!==(A=S[e.toLowerCase()])&&void 0!==A?A:e;},serializeJavascriptValueToJSONString:function(e){let A=JSON.stringify(e);if(void 0===A)throw TypeError("Value is not JSON serializable");return rJ("string"==typeof A),A;},makeIterator:function(e,A,t){let r={index:0,kind:t,target:e},n={next(){if(Object.getPrototypeOf(this)!==n)throw TypeError(`'next' called on an object that does not implement interface ${A} Iterator.`);let{index:e,kind:t,target:o}=r,i=o();if(e>=i.length)return{value:void 0,done:!0};let s=i[e];return r.index=e+1,function(e,A){let t;switch(A){case"key":t=e[0];break;case"value":t=e[1];break;case"key+value":t=e;}return{value:t,done:!1};}(s,t);},[Symbol.toStringTag]:`${A} Iterator`};return Object.setPrototypeOf(n,v),Object.setPrototypeOf({},n);},isValidHeaderName:function(e){return C(e);},isValidHeaderValue:I,hasOwn:N,isErrorLike:function(e){var A,t;return e instanceof Error||(null==e?void 0:null===(A=e.constructor)||void 0===A?void 0:A.name)==="Error"||(null==e?void 0:null===(t=e.constructor)||void 0===t?void 0:t.name)==="DOMException";},fullyReadBody:y,bytesMatch:function(e,A){if(void 0===u)return!0;let t=f(A);if("no metadata"===t||0===t.length)return!0;let r=function(e){let A=e[0].algo;if("5"===A[3])return A;for(let t=1;t=e.charCodeAt(A));return e;},isomorphicDecode:function(e){return e.length<65535?String.fromCharCode(...e):e.reduce((e,A)=>e+String.fromCharCode(A),"");},urlIsLocal:function(e){rJ("protocol"in e);let A=e.protocol;return"about:"===A||"blob:"===A||"data:"===A;},urlHasHttpsScheme:w,urlIsHttpHttpsScheme:b,readAllBytes:m,normalizeMethodRecord:S,parseMetadata:f};}),A7("3j972",function(e,A){let t;var r,n,o=rz.MessageChannel,i=rz.receiveMessageOnPort;let s=["GET","HEAD","POST"],a=new Set(s),l=[301,302,303,307,308],c=new Set(l),g=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"],E=new Set(g),u=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],h=new Set(u),Q=["GET","HEAD","OPTIONS","TRACE"],C=new Set(Q),I=["CONNECT","TRACE","TRACK"],d=new Set(I),B=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],f=new Set(B),p=null!==(r=globalThis.DOMException)&&void 0!==r?r:(()=>{try{atob("~");}catch(e){return Object.getPrototypeOf(e).constructor;}})(),y=null!==(n=globalThis.structuredClone)&&void 0!==n?n:function(e,A){if(0==arguments.length)throw TypeError("missing argument");return t||(t=new o()),t.port1.unref(),t.port2.unref(),t.port1.postMessage(e,null==A?void 0:A.transfer),i(t.port2).message;};e.exports={DOMException:p,structuredClone:y,subresource:B,forbiddenMethods:I,requestBodyHeader:["content-encoding","content-language","content-location","content-type","content-length"],referrerPolicy:u,requestRedirect:["follow","manual","error"],requestMode:["navigate","same-origin","no-cors","cors"],requestCredentials:["omit","same-origin","include"],requestCache:["default","no-store","reload","no-cache","force-cache","only-if-cached"],redirectStatus:l,corsSafeListedMethods:s,nullBodyStatus:[101,204,205,304],safeMethods:Q,badPorts:g,requestDuplex:["half"],subresourceSet:f,badPortsSet:E,redirectStatusSet:c,corsSafeListedMethodsSet:a,safeMethodsSet:C,forbiddenMethodsSet:d,referrerPolicySet:h};}),A7("lLVSA",function(e,A){let t=Symbol.for("undici.globalOrigin.1");e.exports={getGlobalOrigin:function(){return globalThis[t];},setGlobalOrigin:function(e){if(void 0===e){Object.defineProperty(globalThis,t,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return;}let A=new URL(e);if("http:"!==A.protocol&&"https:"!==A.protocol)throw TypeError("Only http & https urls are allowed, received "+A.protocol);Object.defineProperty(globalThis,t,{value:A,writable:!0,enumerable:!1,configurable:!1});}};}),A7("ceYX4",function(e,A){var t=ni("6G0Ci")();e.exports=t;}),A7("6G0Ci",function(e,A){var t;t=ni("d7iUO"),e.exports=function(){return"object"==typeof rH.types?rH.types:t;};}),A7("d7iUO",function(e,A){var t,r,n,o,i,s,l,c,g,E,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,T,x,M,_,O,Y,G;function J(e){return Object.prototype.toString.call(e);}a(e.exports,"isExternal",()=>t,e=>t=e),a(e.exports,"isDate",()=>r,e=>r=e),a(e.exports,"isArgumentsObject",()=>n,e=>n=e),a(e.exports,"isBooleanObject",()=>o,e=>o=e),a(e.exports,"isNumberObject",()=>i,e=>i=e),a(e.exports,"isStringObject",()=>s,e=>s=e),a(e.exports,"isSymbolObject",()=>l,e=>l=e),a(e.exports,"isNativeError",()=>c,e=>c=e),a(e.exports,"isRegExp",()=>g,e=>g=e),a(e.exports,"isAsyncFunction",()=>E,e=>E=e),a(e.exports,"isGeneratorFunction",()=>u,e=>u=e),a(e.exports,"isGeneratorObject",()=>h,e=>h=e),a(e.exports,"isPromise",()=>Q,e=>Q=e),a(e.exports,"isMap",()=>C,e=>C=e),a(e.exports,"isSet",()=>I,e=>I=e),a(e.exports,"isMapIterator",()=>d,e=>d=e),a(e.exports,"isSetIterator",()=>B,e=>B=e),a(e.exports,"isWeakMap",()=>f,e=>f=e),a(e.exports,"isWeakSet",()=>p,e=>p=e),a(e.exports,"isArrayBuffer",()=>y,e=>y=e),a(e.exports,"isDataView",()=>m,e=>m=e),a(e.exports,"isSharedArrayBuffer",()=>w,e=>w=e),a(e.exports,"isProxy",()=>b,e=>b=e),a(e.exports,"isWebAssemblyCompiledModule",()=>R,e=>R=e),a(e.exports,"isModuleNamespaceObject",()=>D,e=>D=e),a(e.exports,"isAnyArrayBuffer",()=>S,e=>S=e),a(e.exports,"isArrayBufferView",()=>v,e=>v=e),a(e.exports,"isTypedArray",()=>k,e=>k=e),a(e.exports,"isUint8Array",()=>N,e=>N=e),a(e.exports,"isUint8ClampedArray",()=>F,e=>F=e),a(e.exports,"isUint16Array",()=>L,e=>L=e),a(e.exports,"isUint32Array",()=>U,e=>U=e),a(e.exports,"isInt8Array",()=>T,e=>T=e),a(e.exports,"isInt16Array",()=>x,e=>x=e),a(e.exports,"isInt32Array",()=>M,e=>M=e),a(e.exports,"isFloat32Array",()=>_,e=>_=e),a(e.exports,"isFloat64Array",()=>O,e=>O=e),a(e.exports,"isBigInt64Array",()=>Y,e=>Y=e),a(e.exports,"isBigUint64Array",()=>G,e=>G=e),t=function(){},r=function(e){return"[object Date]"===J(e)&&e instanceof Date;},n=function(e){return"[object Arguments]"===J(e);},o=function(e){return"[object Boolean]"===J(e)&&e instanceof Boolean;},i=function(e){return"[object Number]"===J(e)&&e instanceof Number;},s=function(e){return"[object String]"===J(e)&&e instanceof String;},l=function(e){return"[object Symbol]"===J(e)&&e instanceof Symbol;},c=function(e){return"[object Error]"===J(e)&&e instanceof Error;},g=function(e){return"[object RegExp]"===J(e)&&e instanceof RegExp;},E=function(e){return"[object AsyncFunction]"===J(e);},u=function(e){return"[object GeneratorFunction]"===J(e);},h=function(e){return"[object Generator]"===J(e);},Q=function(e){return"[object Promise]"===J(e);},C=function(e){return"[object Map]"===J(e)&&e instanceof Map;},I=function(e){return"[object Set]"===J(e)&&e instanceof Set;},d=function(e){return"[object Map Iterator]"===J(e);},B=function(e){return"[object Set Iterator]"===J(e);},f=function(e){return"[object WeakMap]"===J(e);},p=function(e){return"[object WeakSet]"===J(e);},y=function(e){return"[object ArrayBuffer]"===J(e)&&e instanceof ArrayBuffer;},m=function(e){return"[object DataView]"===J(e)&&e instanceof DataView;},w=function(e){return"[object SharedArrayBuffer]"===J(e)&&e instanceof SharedArrayBuffer;},b=function(){},R=function(e){return"[object WebAssembly.Module]"===J(e);},D=function(){},S=function(){},v=function(){},k=function(e){return /^\[object (?:Float(?:32|64)Array|(?:Int|Uint)(?:8|16|32)Array|Uint8ClampedArray)\]$/.test(J(e));},N=function(e){return"[object Uint8Array]"===J(e)&&e instanceof Uint8Array;},F=function(e){return"[object Uint8ClampedArray]"===J(e)&&e instanceof Uint8ClampedArray;},L=function(e){return"[object Uint16Array]"===J(e)&&e instanceof Uint16Array;},U=function(e){return"[object Uint32Array]"===J(e)&&e instanceof Uint32Array;},T=function(e){return"[object Int8Array]"===J(e)&&e instanceof Int8Array;},x=function(e){return"[object Int16Array]"===J(e)&&e instanceof Int16Array;},M=function(e){return"[object Int32Array]"===J(e)&&e instanceof Int32Array;},_=function(e){return"[object Float32Array]"===J(e)&&e instanceof Float32Array;},O=function(e){return"[object Float64Array]"===J(e)&&e instanceof Float64Array;},Y=function(e){return"[object Float64Array]"===J(e)&&e instanceof Float64Array;},G=function(){};}),A7("ltfpn",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u;function h(e,A,t){if(e=Buffer.from(e).toString("utf8"),"string"==typeof A)A=Buffer.from(A).toString("utf8");else if(c(A)||(A=A instanceof E?new Q([A],"blob",{type:A.type}):new l(A,"blob",{type:A.type})),void 0!==t){let e={type:A.type,lastModified:A.lastModified};A=u&&A instanceof u||A instanceof a?new Q([A],t,e):new l(A,t,e);}return{name:e,value:A};}r=(t=ni("guORk")).isBlobLike,n=t.toUSVString,o=t.makeIterator,i=ni("4r42s").kState,a=(s=ni("5JU9i")).File,l=s.FileLike,c=s.isFileLike,g=ni("1xsyj").webidl,E=rV.Blob;let Q=null!=(u=rV.File)?u:a;class C{constructor(e){if(void 0!==e)throw g.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[i]=[];}append(e,A,t){if(g.brandCheck(this,C),g.argumentLengthCheck(arguments,2,{header:"FormData.append"}),3==arguments.length&&!r(A))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=g.converters.USVString(e),A=r(A)?g.converters.Blob(A,{strict:!1}):g.converters.USVString(A),t=3==arguments.length?g.converters.USVString(t):void 0;let n=h(e,A,t);this[i].push(n);}delete(e){g.brandCheck(this,C),g.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=g.converters.USVString(e),this[i]=this[i].filter(A=>A.name!==e);}get(e){g.brandCheck(this,C),g.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=g.converters.USVString(e);let A=this[i].findIndex(A=>A.name===e);return-1===A?null:this[i][A].value;}getAll(e){return g.brandCheck(this,C),g.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=g.converters.USVString(e),this[i].filter(A=>A.name===e).map(e=>e.value);}has(e){return g.brandCheck(this,C),g.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=g.converters.USVString(e),-1!==this[i].findIndex(A=>A.name===e);}set(e,A,t){if(g.brandCheck(this,C),g.argumentLengthCheck(arguments,2,{header:"FormData.set"}),3==arguments.length&&!r(A))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=g.converters.USVString(e),A=r(A)?g.converters.Blob(A,{strict:!1}):g.converters.USVString(A),t=3==arguments.length?n(t):void 0;let o=h(e,A,t),s=this[i].findIndex(A=>A.name===e);-1!==s?this[i]=[...this[i].slice(0,s),o,...this[i].slice(s+1).filter(A=>A.name!==e)]:this[i].push(o);}entries(){return g.brandCheck(this,C),o(()=>this[i].map(e=>[e.name,e.value]),"FormData","key+value");}keys(){return g.brandCheck(this,C),o(()=>this[i].map(e=>[e.name,e.value]),"FormData","key");}values(){return g.brandCheck(this,C),o(()=>this[i].map(e=>[e.name,e.value]),"FormData","value");}forEach(e,A=globalThis){if(g.brandCheck(this,C),g.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),"function"!=typeof e)throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[t,r]of this)e.apply(A,[r,t,this]);}}C.prototype[Symbol.iterator]=C.prototype.entries,Object.defineProperties(C.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}}),e.exports={FormData:C};}),A7("4r42s",function(e,A){e.exports={kUrl:Symbol(),kHeaders:Symbol(),kSignal:Symbol(),kState:Symbol(),kGuard:Symbol(),kRealm:Symbol()};}),A7("5JU9i",function(e,A){var t,r,n,o,i,s,a,l,c,g;t=rV.Blob,r=rV.File,n=rH.types,o=ni("4r42s").kState,i=ni("guORk").isBlobLike,s=ni("1xsyj").webidl,l=(a=ni("ldxmf")).parseMIMEType,c=a.serializeAMimeType,g=ni("c7jgd").kEnumerableProperty;let E=new TextEncoder();class u extends t{constructor(e,A,t={}){let r;s.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=s.converters["sequence"](e),A=s.converters.USVString(A),t=s.converters.FilePropertyBag(t);let a=A,g=t.type;e:{if(g){if("failure"===(g=l(g))){g="";break e;}g=c(g).toLowerCase();}r=t.lastModified;}super(function(e,A){let t=[];for(let r of e)if("string"==typeof r){let e=r;"native"===A.endings&&(e=function(e){let A="\n";return"win32"===process.platform&&(A="\r\n"),e.replace(/\r?\n/g,A);}(e)),t.push(E.encode(e));}else n.isAnyArrayBuffer(r)||n.isTypedArray(r)?r.buffer?t.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):t.push(new Uint8Array(r)):i(r)&&t.push(r);return t;}(e,t),{type:g}),this[o]={name:a,lastModified:r,type:g};}get name(){return s.brandCheck(this,u),this[o].name;}get lastModified(){return s.brandCheck(this,u),this[o].lastModified;}get type(){return s.brandCheck(this,u),this[o].type;}}class h{constructor(e,A,t={}){var r;let n=t.type,i=null!==(r=t.lastModified)&&void 0!==r?r:Date.now();this[o]={blobLike:e,name:A,type:n,lastModified:i};}stream(...e){return s.brandCheck(this,h),this[o].blobLike.stream(...e);}arrayBuffer(...e){return s.brandCheck(this,h),this[o].blobLike.arrayBuffer(...e);}slice(...e){return s.brandCheck(this,h),this[o].blobLike.slice(...e);}text(...e){return s.brandCheck(this,h),this[o].blobLike.text(...e);}get size(){return s.brandCheck(this,h),this[o].blobLike.size;}get type(){return s.brandCheck(this,h),this[o].blobLike.type;}get name(){return s.brandCheck(this,h),this[o].name;}get lastModified(){return s.brandCheck(this,h),this[o].lastModified;}get[Symbol.toStringTag](){return"File";}}Object.defineProperties(u.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:g,lastModified:g}),s.converters.Blob=s.interfaceConverter(t),s.converters.BlobPart=function(e,A){if("Object"===s.util.Type(e)){if(i(e))return s.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||n.isAnyArrayBuffer(e))return s.converters.BufferSource(e,A);}return s.converters.USVString(e,A);},s.converters["sequence"]=s.sequenceConverter(s.converters.BlobPart),s.converters.FilePropertyBag=s.dictionaryConverter([{key:"lastModified",converter:s.converters["long long"],get defaultValue(){return Date.now();}},{key:"type",converter:s.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>("native"!==(e=(e=s.converters.DOMString(e)).toLowerCase())&&(e="transparent"),e),defaultValue:"transparent"}]),e.exports={File:u,FileLike:h,isFileLike:function(e){return r&&e instanceof r||e instanceof u||e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&"File"===e[Symbol.toStringTag];}};}),A7("1xsyj",function(e,A){var t=rH.types,r=ni("guORk"),n=r.hasOwn,o=r.toUSVString;let i={};i.converters={},i.util={},i.errors={},i.errors.exception=function(e){return TypeError(`${e.header}: ${e.message}`);},i.errors.conversionFailed=function(e){let A=1===e.types.length?"":" one of",t=`${e.argument} could not be converted to${A}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:t});},i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`});},i.brandCheck=function(e,A,t){if((null==t?void 0:t.strict)===!1||e instanceof A)return(null==e?void 0:e[Symbol.toStringTag])===A.prototype[Symbol.toStringTag];throw TypeError("Illegal invocation");},i.argumentLengthCheck=function({length:e},A,t){if(A>e)throw i.errors.exception({message:`${A} argument${1!==A?"s":""} required, but${e?" only":""} ${e} found.`,...t});},i.illegalConstructor=function(){throw i.errors.exception({header:"TypeError",message:"Illegal constructor"});},i.util.Type=function(e){switch(typeof e){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":if(null===e)return"Null";return"Object";}},i.util.ConvertToInt=function(e,A,t,r={}){let n,o;64===A?(n=9007199254740991,o="unsigned"===t?0:-9007199254740991):"unsigned"===t?(o=0,n=Math.pow(2,A)-1):(o=Math.pow(-2,A)-1,n=Math.pow(2,A-1)-1);let s=+e;if(0===s&&(s=0),!0===r.enforceRange){if(Number.isNaN(s)||s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY)throw i.errors.exception({header:"Integer conversion",message:`Could not convert ${e} to an integer.`});if((s=i.util.IntegerPart(s))n)throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${n}, got ${s}.`});return s;}return Number.isNaN(s)||!0!==r.clamp?Number.isNaN(s)||0===s&&Object.is(0,s)||s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY?0:(s=i.util.IntegerPart(s)%Math.pow(2,A),"signed"===t&&s>=Math.pow(2,A)-1)?s-Math.pow(2,A):s:s=Math.floor(s=Math.min(Math.max(s,o),n))%2==0?Math.floor(s):Math.ceil(s);},i.util.IntegerPart=function(e){let A=Math.floor(Math.abs(e));return e<0?-1*A:A;},i.sequenceConverter=function(e){return A=>{var t;if("Object"!==i.util.Type(A))throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(A)} is not an Object.`});let r=null==A?void 0:null===(t=A[Symbol.iterator])||void 0===t?void 0:t.call(A),n=[];if(void 0===r||"function"!=typeof r.next)throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."});for(;;){let{done:A,value:t}=r.next();if(A)break;n.push(e(t));}return n;};},i.recordConverter=function(e,A){return r=>{if("Object"!==i.util.Type(r))throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`});let n={};if(!t.isProxy(r)){for(let t of Object.keys(r)){let o=e(t),i=A(r[t]);n[o]=i;}return n;}for(let t of Reflect.ownKeys(r)){let o=Reflect.getOwnPropertyDescriptor(r,t);if(null==o?void 0:o.enumerable){let o=e(t),i=A(r[t]);n[o]=i;}}return n;};},i.interfaceConverter=function(e){return(A,t={})=>{if(!1!==t.strict&&!(A instanceof e))throw i.errors.exception({header:e.name,message:`Expected ${A} to be an instance of ${e.name}.`});return A;};},i.dictionaryConverter=function(e){return A=>{let t=i.util.Type(A),r={};if("Null"===t||"Undefined"===t)return r;if("Object"!==t)throw i.errors.exception({header:"Dictionary",message:`Expected ${A} to be one of: Null, Undefined, Object.`});for(let t of e){let{key:e,defaultValue:o,required:s,converter:a}=t;if(!0===s&&!n(A,e))throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`});let l=A[e],c=n(t,"defaultValue");if(c&&null!==l&&(l=null!=l?l:o),s||c||void 0!==l){if(l=a(l),t.allowedValues&&!t.allowedValues.includes(l))throw i.errors.exception({header:"Dictionary",message:`${l} is not an accepted type. Expected one of ${t.allowedValues.join(", ")}.`});r[e]=l;}}return r;};},i.nullableConverter=function(e){return A=>null===A?A:e(A);},i.converters.DOMString=function(e,A={}){if(null===e&&A.legacyNullToEmptyString)return"";if("symbol"==typeof e)throw TypeError("Could not convert argument of type symbol to string.");return e+"";},i.converters.ByteString=function(e){let A=i.converters.DOMString(e);for(let e=0;e255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${A.charCodeAt(e)} which is greater than 255.`);return A;},i.converters.USVString=o,i.converters.boolean=function(e){return!!e;},i.converters.any=function(e){return e;},i.converters["long long"]=function(e){return i.util.ConvertToInt(e,64,"signed");},i.converters["unsigned long long"]=function(e){return i.util.ConvertToInt(e,64,"unsigned");},i.converters["unsigned long"]=function(e){return i.util.ConvertToInt(e,32,"unsigned");},i.converters["unsigned short"]=function(e,A){return i.util.ConvertToInt(e,16,"unsigned",A);},i.converters.ArrayBuffer=function(e,A={}){if("Object"!==i.util.Type(e)||!t.isAnyArrayBuffer(e))throw i.errors.conversionFailed({prefix:""+e,argument:""+e,types:["ArrayBuffer"]});if(!1===A.allowShared&&t.isSharedArrayBuffer(e))throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e;},i.converters.TypedArray=function(e,A,r={}){if("Object"!==i.util.Type(e)||!t.isTypedArray(e)||e.constructor.name!==A.name)throw i.errors.conversionFailed({prefix:""+A.name,argument:""+e,types:[A.name]});if(!1===r.allowShared&&t.isSharedArrayBuffer(e.buffer))throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e;},i.converters.DataView=function(e,A={}){if("Object"!==i.util.Type(e)||!t.isDataView(e))throw i.errors.exception({header:"DataView",message:"Object is not a DataView."});if(!1===A.allowShared&&t.isSharedArrayBuffer(e.buffer))throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e;},i.converters.BufferSource=function(e,A={}){if(t.isAnyArrayBuffer(e))return i.converters.ArrayBuffer(e,A);if(t.isTypedArray(e))return i.converters.TypedArray(e,e.constructor);if(t.isDataView(e))return i.converters.DataView(e,A);throw TypeError(`Could not convert ${e} to a BufferSource.`);},i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString),i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]),i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString),e.exports={webidl:i};}),A7("ldxmf",function(e,A){function t(e,A=!1){if(!A)return e.href;let r=e.href,n=e.hash.length;return 0===n?r:r.substring(0,r.length-n);}function r(e,A,t){let r="";for(;t.positione.length)return"failure";A.position++;let o=n(";",e,A);if(0===(o=l(o,!1,!0)).length||!h.test(o))return"failure";let i=t.toLowerCase(),a=o.toLowerCase(),c={type:i,subtype:a,parameters:new Map(),essence:`${i}/${a}`};for(;A.positionQ.test(e),e,A);let t=r(e=>";"!==e&&"="!==e,e,A);if(t=t.toLowerCase(),A.positione.length)break;let o=null;if('"'===e[A.position])o=s(e,A,!0),n(";",e,A);else if(0===(o=l(o=n(";",e,A),!1,!0)).length)continue;0!==t.length&&h.test(t)&&(0===o.length||C.test(o))&&!c.parameters.has(t)&&c.parameters.set(t,o);}return c;}function s(e,A,t){let n=A.position,o="";for(rJ('"'===e[A.position]),A.position++;o+=r(e=>'"'!==e&&"\\"!==e,e,A),!(A.position>=e.length);){let t=e[A.position];if(A.position++,"\\"===t){if(A.position>=e.length){o+="\\";break;}o+=e[A.position],A.position++;}else{rJ('"'===t);break;}}return t?o:e.slice(n,A.position);}function a(e){return"\r"===e||"\n"===e||" "===e||" "===e;}function l(e,A=!0,t=!0){let r=0,n=e.length-1;if(A)for(;r0&&a(e[n]);n--);return e.slice(r,n+1);}function c(e){return"\r"===e||"\n"===e||" "===e||"\f"===e||" "===e;}var g=rV.atob,E=ni("guORk").isomorphicDecode;let u=new TextEncoder(),h=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/,Q=/(\u000A|\u000D|\u0009|\u0020)/,C=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;e.exports={dataURLProcessor:function(e){rJ("data:"===e.protocol);let A=t(e,!0);A=A.slice(5);let r={position:0},s=n(",",A,r),a=s.length;if(s=function(e,A=!0,t=!0){let r=0,n=e.length-1;if(A)for(;r0&&c(e[n]);n--);return e.slice(r,n+1);}(s,!0,!0),r.position>=A.length)return"failure";r.position++;let l=o(A.slice(a+1));if(/;(\u0020){0,}base64$/i.test(s)){if("failure"===(l=function(e){if((e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"")).length%4==0&&(e=e.replace(/=?=$/,"")),e.length%4==1||/[^+/0-9A-Za-z]/.test(e))return"failure";let A=g(e),t=new Uint8Array(A.length);for(let e=0;e=0;A--)if("function"!=typeof this[g][A])throw new i("interceptor must be an function");}this[g]=e;}close(e){if(void 0===e)return new Promise((e,A)=>{this.close((t,r)=>t?A(t):e(r));});if("function"!=typeof e)throw new i("invalid callback");if(this[E]){queueMicrotask(()=>e(new n(),null));return;}if(this[u]){this[Q]?this[Q].push(e):queueMicrotask(()=>e(null,null));return;}this[u]=!0,this[Q].push(e);let A=()=>{let e=this[Q];this[Q]=null;for(let A=0;Athis.destroy()).then(()=>{queueMicrotask(A);});}destroy(e,A){if("function"==typeof e&&(A=e,e=null),void 0===A)return new Promise((A,t)=>{this.destroy(e,(e,r)=>e?t(e):A(r));});if("function"!=typeof A)throw new i("invalid callback");if(this[E]){this[h]?this[h].push(A):queueMicrotask(()=>A(null,null));return;}e||(e=new n()),this[E]=!0,this[h]=this[h]||[],this[h].push(A);let t=()=>{let e=this[h];this[h]=null;for(let A=0;A{queueMicrotask(t);});}[C](e,A){if(!this[g]||0===this[g].length)return this[C]=this[c],this[c](e,A);let t=this[c].bind(this);for(let e=this[g].length-1;e>=0;e--)t=this[g][e](t);return this[C]=t,t(e,A);}dispatch(e,A){if(!A||"object"!=typeof A)throw new i("handler must be an object");try{if(!e||"object"!=typeof e)throw new i("opts must be an object.");if(this[E]||this[h])throw new n();if(this[u])throw new o();return this[C](e,A);}catch(e){if("function"!=typeof A.onError)throw new i("invalid onError method");return A.onError(e),!1;}}};}),A7("4MNSY",function(e,A){e.exports=class extends rG{dispatch(){throw Error("not implemented");}close(){throw Error("not implemented");}destroy(){throw Error("not implemented");}};}),A7("d4IVt",function(e,A){var t,r,n,o;let i,s;t=ni("c7jgd"),n=(r=ni("03MxY")).InvalidArgumentError,o=r.ConnectTimeoutError,nr.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?s=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map(),this._sessionRegistry=new nr.FinalizationRegistry(e=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e);}this._sessionCache.set(e,A);}}},e.exports=function({allowH2:e,maxCachedSessions:A,socketPath:r,timeout:a,...l}){if(null!=A&&(!Number.isInteger(A)||A<0))throw new n("maxCachedSessions must be a positive integer or zero");let c={path:r,...l},g=new s(null==A?100:A);return a=null==a?1e4:a,e=null!=e&&e,function({hostname:A,host:r,protocol:n,port:s,servername:l,localAddress:E,httpSocket:u},h){let Q;if("https:"===n){i||(i=rY);let n=(l=l||c.servername||t.getServerName(r)||null)||A,o=g.get(n)||null;rJ(n),(Q=i.connect({highWaterMark:16384,...c,servername:l,session:o,localAddress:E,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:u,port:s||443,host:A})).on("session",function(e){g.set(n,e);});}else rJ(!u,"httpSocket can only be sent on TLS update"),Q=rO.connect({highWaterMark:65536,...c,localAddress:E,port:s||80,host:A});if(null==c.keepAlive||c.keepAlive){let e=void 0===c.keepAliveInitialDelay?6e4:c.keepAliveInitialDelay;Q.setKeepAlive(!0,e);}let C=function(e,A){if(!A)return()=>{};let t=null,r=null,n=setTimeout(()=>{t=setImmediate(()=>{"win32"===process.platform?r=setImmediate(()=>e()):e();});},A);return()=>{clearTimeout(n),clearImmediate(t),clearImmediate(r);};}(()=>{var e;return e=Q,void t.destroy(e,new o());},a);return Q.setNoDelay(!0).once("https:"===n?"secureConnect":"connect",function(){if(C(),h){let e=h;h=null,e(null,this);}}).on("error",function(e){if(C(),h){let A=h;h=null,A(e);}}),Q;};};}),A7("azzFq",function(e,A){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.SPECIAL_HEADERS=e.exports.HEADER_STATE=e.exports.MINOR=e.exports.MAJOR=e.exports.CONNECTION_TOKEN_CHARS=e.exports.HEADER_CHARS=e.exports.TOKEN=e.exports.STRICT_TOKEN=e.exports.HEX=e.exports.URL_CHAR=e.exports.STRICT_URL_CHAR=e.exports.USERINFO_CHARS=e.exports.MARK=e.exports.ALPHANUM=e.exports.NUM=e.exports.HEX_MAP=e.exports.NUM_MAP=e.exports.ALPHA=e.exports.FINISH=e.exports.H_METHOD_MAP=e.exports.METHOD_MAP=e.exports.METHODS_RTSP=e.exports.METHODS_ICE=e.exports.METHODS_HTTP=e.exports.METHODS=e.exports.LENIENT_FLAGS=e.exports.FLAGS=e.exports.TYPE=e.exports.ERROR=void 0;var t,r,n,o,i,s,a,l,c,g=ni("baBxT");(t=e.exports.ERROR||(e.exports.ERROR={}))[t.OK=0]="OK",t[t.INTERNAL=1]="INTERNAL",t[t.STRICT=2]="STRICT",t[t.LF_EXPECTED=3]="LF_EXPECTED",t[t.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",t[t.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",t[t.INVALID_METHOD=6]="INVALID_METHOD",t[t.INVALID_URL=7]="INVALID_URL",t[t.INVALID_CONSTANT=8]="INVALID_CONSTANT",t[t.INVALID_VERSION=9]="INVALID_VERSION",t[t.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",t[t.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",t[t.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",t[t.INVALID_STATUS=13]="INVALID_STATUS",t[t.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",t[t.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",t[t.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",t[t.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",t[t.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",t[t.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",t[t.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",t[t.PAUSED=21]="PAUSED",t[t.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",t[t.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",t[t.USER=24]="USER",(r=e.exports.TYPE||(e.exports.TYPE={}))[r.BOTH=0]="BOTH",r[r.REQUEST=1]="REQUEST",r[r.RESPONSE=2]="RESPONSE",(n=e.exports.FLAGS||(e.exports.FLAGS={}))[n.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",n[n.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",n[n.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",n[n.CHUNKED=8]="CHUNKED",n[n.UPGRADE=16]="UPGRADE",n[n.CONTENT_LENGTH=32]="CONTENT_LENGTH",n[n.SKIPBODY=64]="SKIPBODY",n[n.TRAILING=128]="TRAILING",n[n.TRANSFER_ENCODING=512]="TRANSFER_ENCODING",(o=e.exports.LENIENT_FLAGS||(e.exports.LENIENT_FLAGS={}))[o.HEADERS=1]="HEADERS",o[o.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",o[o.KEEP_ALIVE=4]="KEEP_ALIVE",(i=l=e.exports.METHODS||(e.exports.METHODS={}))[i.DELETE=0]="DELETE",i[i.GET=1]="GET",i[i.HEAD=2]="HEAD",i[i.POST=3]="POST",i[i.PUT=4]="PUT",i[i.CONNECT=5]="CONNECT",i[i.OPTIONS=6]="OPTIONS",i[i.TRACE=7]="TRACE",i[i.COPY=8]="COPY",i[i.LOCK=9]="LOCK",i[i.MKCOL=10]="MKCOL",i[i.MOVE=11]="MOVE",i[i.PROPFIND=12]="PROPFIND",i[i.PROPPATCH=13]="PROPPATCH",i[i.SEARCH=14]="SEARCH",i[i.UNLOCK=15]="UNLOCK",i[i.BIND=16]="BIND",i[i.REBIND=17]="REBIND",i[i.UNBIND=18]="UNBIND",i[i.ACL=19]="ACL",i[i.REPORT=20]="REPORT",i[i.MKACTIVITY=21]="MKACTIVITY",i[i.CHECKOUT=22]="CHECKOUT",i[i.MERGE=23]="MERGE",i[i["M-SEARCH"]=24]="M-SEARCH",i[i.NOTIFY=25]="NOTIFY",i[i.SUBSCRIBE=26]="SUBSCRIBE",i[i.UNSUBSCRIBE=27]="UNSUBSCRIBE",i[i.PATCH=28]="PATCH",i[i.PURGE=29]="PURGE",i[i.MKCALENDAR=30]="MKCALENDAR",i[i.LINK=31]="LINK",i[i.UNLINK=32]="UNLINK",i[i.SOURCE=33]="SOURCE",i[i.PRI=34]="PRI",i[i.DESCRIBE=35]="DESCRIBE",i[i.ANNOUNCE=36]="ANNOUNCE",i[i.SETUP=37]="SETUP",i[i.PLAY=38]="PLAY",i[i.PAUSE=39]="PAUSE",i[i.TEARDOWN=40]="TEARDOWN",i[i.GET_PARAMETER=41]="GET_PARAMETER",i[i.SET_PARAMETER=42]="SET_PARAMETER",i[i.REDIRECT=43]="REDIRECT",i[i.RECORD=44]="RECORD",i[i.FLUSH=45]="FLUSH",e.exports.METHODS_HTTP=[l.DELETE,l.GET,l.HEAD,l.POST,l.PUT,l.CONNECT,l.OPTIONS,l.TRACE,l.COPY,l.LOCK,l.MKCOL,l.MOVE,l.PROPFIND,l.PROPPATCH,l.SEARCH,l.UNLOCK,l.BIND,l.REBIND,l.UNBIND,l.ACL,l.REPORT,l.MKACTIVITY,l.CHECKOUT,l.MERGE,l["M-SEARCH"],l.NOTIFY,l.SUBSCRIBE,l.UNSUBSCRIBE,l.PATCH,l.PURGE,l.MKCALENDAR,l.LINK,l.UNLINK,l.PRI,l.SOURCE],e.exports.METHODS_ICE=[l.SOURCE],e.exports.METHODS_RTSP=[l.OPTIONS,l.DESCRIBE,l.ANNOUNCE,l.SETUP,l.PLAY,l.PAUSE,l.TEARDOWN,l.GET_PARAMETER,l.SET_PARAMETER,l.REDIRECT,l.RECORD,l.FLUSH,l.GET,l.POST],e.exports.METHOD_MAP=g.enumToMap(l),e.exports.H_METHOD_MAP={},Object.keys(e.exports.METHOD_MAP).forEach(A=>{/^H/.test(A)&&(e.exports.H_METHOD_MAP[A]=e.exports.METHOD_MAP[A]);}),(s=e.exports.FINISH||(e.exports.FINISH={}))[s.SAFE=0]="SAFE",s[s.SAFE_WITH_CB=1]="SAFE_WITH_CB",s[s.UNSAFE=2]="UNSAFE",e.exports.ALPHA=[];for(let A=65;A<=90;A++)e.exports.ALPHA.push(String.fromCharCode(A)),e.exports.ALPHA.push(String.fromCharCode(A+32));e.exports.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.exports.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},e.exports.NUM=["0","1","2","3","4","5","6","7","8","9"],e.exports.ALPHANUM=e.exports.ALPHA.concat(e.exports.NUM),e.exports.MARK=["-","_",".","!","~","*","'","(",")"],e.exports.USERINFO_CHARS=e.exports.ALPHANUM.concat(e.exports.MARK).concat(["%",";",":","&","=","+","$",","]),e.exports.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(e.exports.ALPHANUM),e.exports.URL_CHAR=e.exports.STRICT_URL_CHAR.concat([" ","\f"]);for(let A=128;A<=255;A++)e.exports.URL_CHAR.push(A);e.exports.HEX=e.exports.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]),e.exports.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(e.exports.ALPHANUM),e.exports.TOKEN=e.exports.STRICT_TOKEN.concat([" "]),e.exports.HEADER_CHARS=[" "];for(let A=32;A<=255;A++)127!==A&&e.exports.HEADER_CHARS.push(A);e.exports.CONNECTION_TOKEN_CHARS=e.exports.HEADER_CHARS.filter(e=>44!==e),e.exports.MAJOR=e.exports.NUM_MAP,e.exports.MINOR=e.exports.MAJOR,(a=c=e.exports.HEADER_STATE||(e.exports.HEADER_STATE={}))[a.GENERAL=0]="GENERAL",a[a.CONNECTION=1]="CONNECTION",a[a.CONTENT_LENGTH=2]="CONTENT_LENGTH",a[a.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",a[a.UPGRADE=4]="UPGRADE",a[a.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",a[a.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",a[a.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",a[a.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED",e.exports.SPECIAL_HEADERS={connection:c.CONNECTION,"content-length":c.CONTENT_LENGTH,"proxy-connection":c.CONNECTION,"transfer-encoding":c.TRANSFER_ENCODING,upgrade:c.UPGRADE};}),A7("baBxT",function(e,A){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.enumToMap=void 0,e.exports.enumToMap=function(e){let A={};return Object.keys(e).forEach(t=>{let r=e[t];"number"==typeof r&&(A[t]=r);}),A;};}),A7("bHAsD",function(e,A){var t;t=ni("aAOM0"),e.exports=function({maxRedirections:e}){return A=>function(r,n){let{maxRedirections:o=e}=r;if(!o)return A(r,n);let i=new t(A,o,r,n);return A(r={...r,maxRedirections:0},i);};};}),A7("aAOM0",function(e,A){var t,r,n;function o(e,A,r){if(4===e.length)return"host"===t.headerNameToString(e);if(A&&t.headerNameToString(e).startsWith("content-"))return!0;if(r&&(13===e.length||6===e.length||19===e.length)){let A=t.headerNameToString(e);return"authorization"===A||"cookie"===A||"proxy-authorization"===A;}return!1;}t=ni("c7jgd"),r=ni("J3IVZ").kBodyUsed,n=ni("03MxY").InvalidArgumentError;let i=[300,301,302,303,307,308],s=Symbol();class a{constructor(e){this[s]=e,this[r]=!1;}async*[Symbol.asyncIterator](){rJ(!this[r],"disturbed"),this[r]=!0,yield*this[s];}}e.exports=class{constructor(e,A,o,i){if(null!=A&&(!Number.isInteger(A)||A<0))throw new n("maxRedirections must be a positive number");t.validateHandler(i,o.method,o.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...o,maxRedirections:0},this.maxRedirections=A,this.handler=i,this.history=[],t.isStream(this.opts.body)?(0===t.bodyLength(this.opts.body)&&this.opts.body.on("data",function(){rJ(!1);}),"boolean"!=typeof this.opts.body.readableDidRead&&(this.opts.body[r]=!1,rG.prototype.on.call(this.opts.body,"data",function(){this[r]=!0;}))):this.opts.body&&"function"==typeof this.opts.body.pipeTo?this.opts.body=new a(this.opts.body):this.opts.body&&"string"!=typeof this.opts.body&&!ArrayBuffer.isView(this.opts.body)&&t.isIterable(this.opts.body)&&(this.opts.body=new a(this.opts.body));}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history});}onUpgrade(e,A,t){this.handler.onUpgrade(e,A,t);}onError(e){this.handler.onError(e);}onHeaders(e,A,r,n){if(this.location=this.history.length>=this.maxRedirections||t.isDisturbed(this.opts.body)?null:function(e,A){if(-1===i.indexOf(e))return null;for(let e=0;e!e[o]);return e||(!this[I]||this[n].lengthe.close())).then(e[f]);},this[y]=(A,t)=>{e.emit("connect",A,[e,...t]);},this[m]=(A,t,r)=>{e.emit("disconnect",A,[e,...t],r);},this[w]=(A,t,r)=>{e.emit("connectionError",A,[e,...t],r);},this[S]=new C(this);}get[c](){return this[d];}get[o](){return this[I].filter(e=>e[o]).length;}get[g](){return this[I].filter(e=>e[o]&&!e[d]).length;}get[a](){let e=this[l];for(let{[a]:A}of this[I])e+=A;return e;}get[s](){let e=0;for(let{[s]:A}of this[I])e+=A;return e;}get[i](){let e=this[l];for(let{[i]:A}of this[I])e+=A;return e;}get stats(){return this[S];}async[u](){return this[B].isEmpty()?Promise.all(this[I].map(e=>e.close())):new Promise(e=>{this[f]=e;});}async[h](e){for(;;){let A=this[B].shift();if(!A)break;A.handler.onError(e);}return Promise.all(this[I].map(A=>A.destroy(e)));}[Q](e,A){let t=this[b]();return t?t.dispatch(e,A)||(t[d]=!0,this[d]=!this[b]()):(this[d]=!0,this[B].push({opts:e,handler:A}),this[l]++),!this[d];}[R](e){return e.on("drain",this[p]).on("connect",this[y]).on("disconnect",this[m]).on("connectionError",this[w]),this[I].push(e),this[d]&&process.nextTick(()=>{this[d]&&this[p](e[E],[this,e]);}),this;}[D](e){e.close(()=>{let A=this[I].indexOf(e);-1!==A&&this[I].splice(A,1);}),this[d]=this[I].some(e=>!e[d]&&!0!==e.closed&&!0!==e.destroyed);}},kClients:I,kNeedDrain:d,kAddClient:R,kRemoveClient:D,kGetDispatcher:b};}),A7("4HjLL",function(e,A){class t{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null;}isEmpty(){return this.top===this.bottom;}isFull(){return(this.top+1&2047)===this.bottom;}push(e){this.list[this.top]=e,this.top=this.top+1&2047;}shift(){let e=this.list[this.bottom];return void 0===e?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e);}}e.exports=class{constructor(){this.head=this.tail=new t();}isEmpty(){return this.head.isEmpty();}push(e){this.head.isFull()&&(this.head=this.head.next=new t()),this.head.push(e);}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&null!==e.next&&(this.tail=e.next),A;}};}),A7("hOA4p",function(e,A){var t=ni("J3IVZ"),r=t.kFree,n=t.kConnected,o=t.kPending,i=t.kQueued,s=t.kRunning,a=t.kSize;let l=Symbol();e.exports=class{constructor(e){this[l]=e;}get connected(){return this[l][n];}get free(){return this[l][r];}get pending(){return this[l][o];}get queued(){return this[l][i];}get running(){return this[l][s];}get size(){return this[l][a];}};}),A7("5PIC0",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C;function I(e,A){return new E(e,A);}r=(t=ni("03MxY")).BalancedPoolMissingUpstreamError,n=t.InvalidArgumentError,i=(o=ni("jBHsl")).PoolBase,s=o.kClients,a=o.kNeedDrain,l=o.kAddClient,c=o.kRemoveClient,g=o.kGetDispatcher,E=ni("3xMRG"),h=(u=ni("J3IVZ")).kUrl,Q=u.kInterceptors,C=ni("c7jgd").parseOrigin;let d=Symbol(),B=Symbol(),f=Symbol(),p=Symbol(),y=Symbol(),m=Symbol(),w=Symbol(),b=Symbol();e.exports=class extends i{constructor(e=[],{factory:A=I,...t}={}){if(super(),this[B]=t,this[y]=-1,this[p]=0,this[w]=this[B].maxWeightPerServer||100,this[b]=this[B].errorPenalty||15,Array.isArray(e)||(e=[e]),"function"!=typeof A)throw new n("factory must be a function.");for(let r of(this[Q]=t.interceptors&&t.interceptors.BalancedPool&&Array.isArray(t.interceptors.BalancedPool)?t.interceptors.BalancedPool:[],this[d]=A,e))this.addUpstream(r);this._updateBalancedPoolStats();}addUpstream(e){let A=C(e).origin;if(this[s].find(e=>e[h].origin===A&&!0!==e.closed&&!0!==e.destroyed))return this;let t=this[d](A,Object.assign({},this[B]));for(let e of(this[l](t),t.on("connect",()=>{t[m]=Math.min(this[w],t[m]+this[b]);}),t.on("connectionError",()=>{t[m]=Math.max(1,t[m]-this[b]),this._updateBalancedPoolStats();}),t.on("disconnect",(...e)=>{let A=e[2];A&&"UND_ERR_SOCKET"===A.code&&(t[m]=Math.max(1,t[m]-this[b]),this._updateBalancedPoolStats());}),this[s]))e[m]=this[w];return this._updateBalancedPoolStats(),this;}_updateBalancedPoolStats(){this[f]=this[s].map(e=>e[m]).reduce(function e(A,t){return 0===t?A:e(t,A%t);},0);}removeUpstream(e){let A=C(e).origin,t=this[s].find(e=>e[h].origin===A&&!0!==e.closed&&!0!==e.destroyed);return t&&this[c](t),this;}get upstreams(){return this[s].filter(e=>!0!==e.closed&&!0!==e.destroyed).map(e=>e[h].origin);}[g](){if(0===this[s].length)throw new r();if(!this[s].find(e=>!e[a]&&!0!==e.closed&&!0!==e.destroyed)||this[s].map(e=>e[a]).reduce((e,A)=>e&&A,!0))return;let e=0,A=this[s].findIndex(e=>!e[a]);for(;e++this[s][A][m]&&!e[a]&&(A=this[y]),0===this[y]&&(this[p]=this[p]-this[f],this[p]<=0&&(this[p]=this[w])),e[m]>=this[p]&&!e[a])return e;}return this[p]=this[s][A][m],this[y]=A,this[s][A];}};}),A7("4UFSJ",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h;function Q(e,A){return A&&1===A.connections?new E(e,A):new g(e,A);}t=ni("03MxY").InvalidArgumentError,n=(r=ni("J3IVZ")).kClients,o=r.kRunning,i=r.kClose,s=r.kDestroy,a=r.kDispatch,l=r.kInterceptors,c=ni("k3HYk"),g=ni("3xMRG"),E=ni("2hBIk"),u=ni("c7jgd"),h=ni("bHAsD");let{WeakRef:C,FinalizationRegistry:I}=ni("az7FD")(),d=Symbol(),B=Symbol(),f=Symbol(),p=Symbol(),y=Symbol(),m=Symbol(),w=Symbol(),b=Symbol();e.exports=class extends c{constructor({factory:e=Q,maxRedirections:A=0,connect:r,...o}={}){if(super(),"function"!=typeof e)throw new t("factory must be a function.");if(null!=r&&"function"!=typeof r&&"object"!=typeof r)throw new t("connect must be a function or an object");if(!Number.isInteger(A)||A<0)throw new t("maxRedirections must be a positive number");r&&"function"!=typeof r&&(r={...r}),this[l]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[h({maxRedirections:A})],this[b]={...u.deepClone(o),connect:r},this[b].interceptors=o.interceptors?{...o.interceptors}:void 0,this[p]=A,this[m]=e,this[n]=new Map(),this[w]=new I(e=>{let A=this[n].get(e);void 0!==A&&void 0===A.deref()&&this[n].delete(e);});let i=this;this[y]=(e,A)=>{i.emit("drain",e,[i,...A]);},this[d]=(e,A)=>{i.emit("connect",e,[i,...A]);},this[B]=(e,A,t)=>{i.emit("disconnect",e,[i,...A],t);},this[f]=(e,A,t)=>{i.emit("connectionError",e,[i,...A],t);};}get[o](){let e=0;for(let A of this[n].values()){let t=A.deref();t&&(e+=t[o]);}return e;}[a](e,A){let r;if(e.origin&&("string"==typeof e.origin||e.origin instanceof URL))r=e.origin+"";else throw new t("opts.origin must be a non-empty string or URL.");let o=this[n].get(r),i=o?o.deref():null;return i||(i=this[m](e.origin,this[b]).on("drain",this[y]).on("connect",this[d]).on("disconnect",this[B]).on("connectionError",this[f]),this[n].set(r,new C(i)),this[w].register(i,r)),i.dispatch(e,A);}async[i](){let e=[];for(let A of this[n].values()){let t=A.deref();t&&e.push(t.close());}await Promise.all(e);}async[s](e){let A=[];for(let t of this[n].values()){let r=t.deref();r&&A.push(r.destroy(e));}await Promise.all(A);}};}),A7("az7FD",function(e,A){var t=ni("J3IVZ"),r=t.kConnected,n=t.kSize;class o{constructor(e){this.value=e;}deref(){return 0===this.value[r]&&0===this.value[n]?void 0:this.value;}}class i{constructor(e){this.finalizer=e;}register(e,A){e.on&&e.on("disconnect",()=>{0===e[r]&&0===e[n]&&this.finalizer(A);});}}e.exports=function(){return process.env.NODE_V8_COVERAGE?{WeakRef:o,FinalizationRegistry:i}:{WeakRef:nr.WeakRef||o,FinalizationRegistry:nr.FinalizationRegistry||i};};}),A7("1r8Ui",function(e,A){var t,r,n,o,i;a(e.exports,"request",()=>t,e=>t=e),a(e.exports,"stream",()=>r,e=>r=e),a(e.exports,"pipeline",()=>n,e=>n=e),a(e.exports,"upgrade",()=>o,e=>o=e),a(e.exports,"connect",()=>i,e=>i=e),t=ni("gDpIT"),r=ni("RRD2g"),n=ni("ideTt"),o=ni("8uCGn"),i=ni("6oxTV");}),A7("gDpIT",function(e,A){var t,r,n,o,i,s,a,l,c,g;t=ni("bY3KI"),n=(r=ni("03MxY")).InvalidArgumentError,o=r.RequestAbortedError,i=ni("c7jgd"),s=ni("3iX8O").getResolveErrorBodyCallback,a=rZ.AsyncResource,c=(l=ni("6cGN7")).addSignal,g=l.removeSignal;class E extends a{constructor(e,A){if(!e||"object"!=typeof e)throw new n("invalid opts");let{signal:t,method:r,opaque:o,body:s,onInfo:a,responseHeaders:l,throwOnError:g,highWaterMark:E}=e;try{if("function"!=typeof A)throw new n("invalid callback");if(E&&("number"!=typeof E||E<0))throw new n("invalid highWaterMark");if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");if("CONNECT"===r)throw new n("invalid method");if(a&&"function"!=typeof a)throw new n("invalid onInfo callback");super("UNDICI_REQUEST");}catch(e){throw i.isStream(s)&&i.destroy(s.on("error",i.nop),e),e;}this.responseHeaders=l||null,this.opaque=o||null,this.callback=A,this.res=null,this.abort=null,this.body=s,this.trailers={},this.context=null,this.onInfo=a||null,this.throwOnError=g,this.highWaterMark=E,i.isStream(s)&&s.on("error",e=>{this.onError(e);}),c(this,t);}onConnect(e,A){if(!this.callback)throw new o();this.abort=e,this.context=A;}onHeaders(e,A,r,n){let{callback:o,opaque:a,abort:l,context:c,responseHeaders:g,highWaterMark:E}=this,u="raw"===g?i.parseRawHeaders(A):i.parseHeaders(A);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:u});return;}let h=("raw"===g?i.parseHeaders(A):u)["content-type"],Q=new t({resume:r,abort:l,contentType:h,highWaterMark:E});this.callback=null,this.res=Q,null!==o&&(this.throwOnError&&e>=400?this.runInAsyncScope(s,null,{callback:o,body:Q,contentType:h,statusCode:e,statusMessage:n,headers:u}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:u,trailers:this.trailers,opaque:a,body:Q,context:c}));}onData(e){let{res:A}=this;return A.push(e);}onComplete(e){let{res:A}=this;g(this),i.parseHeaders(e,this.trailers),A.push(null);}onError(e){let{res:A,callback:t,body:r,opaque:n}=this;g(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n});})),A&&(this.res=null,queueMicrotask(()=>{i.destroy(A,e);})),r&&(this.body=null,i.destroy(r,e));}}e.exports=function e(A,t){if(void 0===t)return new Promise((t,r)=>{e.call(this,A,(e,A)=>e?r(e):t(A));});try{this.dispatch(A,new E(A,t));}catch(r){if("function"!=typeof t)throw r;let e=A&&A.opaque;queueMicrotask(()=>t(r,{opaque:e}));}},e.exports.RequestHandler=E;}),A7("bY3KI",function(e,A){var t,r,n,o,i,s,a,l;let c;async function g(e,A){var t;if(s.isDisturbed(e)||(t=e)[d]&&!0===t[d].locked||t[C])throw TypeError("unusable");return rJ(!e[C]),new Promise((t,r)=>{e[C]={type:A,stream:e,resolve:t,reject:r,length:0,body:[]},e.on("error",function(e){Q(this[C],e);}).on("close",function(){null!==this[C].body&&Q(this[C],new n());}),process.nextTick(E,e[C]);});}function E(e){if(null===e.body)return;let{_readableState:A}=e.stream;for(let t of A.buffer)h(e,t);for(A.endEmitted?u(this[C]):e.stream.on("end",function(){u(this[C]);}),e.stream.resume();null!=e.stream.read(););}function u(e){let{type:A,body:t,resolve:r,stream:n,length:o}=e;try{if("text"===A)r(l(Buffer.concat(t)));else if("json"===A)r(JSON.parse(Buffer.concat(t)));else if("arrayBuffer"===A){let e=new Uint8Array(o),A=0;for(let r of t)e.set(r,A),A+=r.byteLength;r(e.buffer);}else"blob"===A&&(c||(c=$8b68357cf878ab70$import$d04c39d37e012a99$3b660928c86ff55c),r(new c(t,{type:n[f]})));Q(e);}catch(e){n.destroy(e);}}function h(e,A){e.length+=A.length,e.body.push(A);}function Q(e,A){null!==e.body&&(A?e.reject(A):e.resolve(),e.type=null,e.stream=null,e.resolve=null,e.reject=null,e.length=0,e.body=null);}t=rP.Readable,n=(r=ni("03MxY")).RequestAbortedError,o=r.NotSupportedError,i=r.InvalidArgumentError,s=ni("c7jgd"),a=(s=ni("c7jgd")).ReadableStreamFrom,l=s.toUSVString;let C=Symbol(),I=Symbol(),d=Symbol(),B=Symbol(),f=Symbol(),p=()=>{};e.exports=class extends t{constructor({resume:e,abort:A,contentType:t="",highWaterMark:r=65536}){super({autoDestroy:!0,read:e,highWaterMark:r}),this._readableState.dataEmitted=!1,this[B]=A,this[C]=null,this[d]=null,this[f]=t,this[I]=!1;}destroy(e){return this.destroyed?this:(e||this._readableState.endEmitted||(e=new n()),e&&this[B](),super.destroy(e));}emit(e,...A){return"data"===e?this._readableState.dataEmitted=!0:"error"===e&&(this._readableState.errorEmitted=!0),super.emit(e,...A);}on(e,...A){return("data"===e||"readable"===e)&&(this[I]=!0),super.on(e,...A);}addListener(e,...A){return this.on(e,...A);}off(e,...A){let t=super.off(e,...A);return("data"===e||"readable"===e)&&(this[I]=this.listenerCount("data")>0||this.listenerCount("readable")>0),t;}removeListener(e,...A){return this.off(e,...A);}push(e){return this[C]&&null!==e&&0===this.readableLength?(h(this[C],e),!this[I]||super.push(e)):super.push(e);}async text(){return g(this,"text");}async json(){return g(this,"json");}async blob(){return g(this,"blob");}async arrayBuffer(){return g(this,"arrayBuffer");}async formData(){throw new o();}get bodyUsed(){return s.isDisturbed(this);}get body(){return!this[d]&&(this[d]=a(this),this[C]&&(this[d].getReader(),rJ(this[d].locked))),this[d];}dump(e){let A=e&&Number.isFinite(e.limit)?e.limit:262144,t=e&&e.signal;if(t)try{if("object"!=typeof t||!("aborted"in t))throw new i("signal must be an AbortSignal");s.throwIfAborted(t);}catch(e){return Promise.reject(e);}return this.closed?Promise.resolve(null):new Promise((e,r)=>{let n=t?s.addAbortListener(t,()=>{this.destroy();}):p;this.on("close",function(){n(),t&&t.aborted?r(t.reason||Object.assign(Error("The operation was aborted"),{name:"AbortError"})):e(null);}).on("error",p).on("data",function(e){(A-=e.length)<=0&&this.destroy();}).resume();});}};}),A7("3iX8O",function(e,A){async function t({callback:e,body:A,contentType:t,statusCode:o,statusMessage:i,headers:s}){rJ(A);let a=[],l=0;for await(let e of A)if(a.push(e),(l+=e.length)>131072){a=null;break;}if(204===o||!t||!a){process.nextTick(e,new r(`Response status code ${o}${i?": "+i:""}`,o,s));return;}try{if(t.startsWith("application/json")){let A=JSON.parse(n(Buffer.concat(a)));process.nextTick(e,new r(`Response status code ${o}${i?": "+i:""}`,o,s,A));return;}if(t.startsWith("text/")){let A=n(Buffer.concat(a));process.nextTick(e,new r(`Response status code ${o}${i?": "+i:""}`,o,s,A));return;}}catch(e){}process.nextTick(e,new r(`Response status code ${o}${i?": "+i:""}`,o,s));}var r=ni("03MxY").ResponseStatusCodeError,n=ni("c7jgd").toUSVString;e.exports={getResolveErrorBodyCallback:t};}),A7("6cGN7",function(e,A){function t(e){e.abort?e.abort():e.onError(new n());}var r=ni("c7jgd").addAbortListener,n=ni("03MxY").RequestAbortedError;let o=Symbol(),i=Symbol();e.exports={addSignal:function(e,A){if(e[i]=null,e[o]=null,A){if(A.aborted){t(e);return;}e[i]=A,e[o]=()=>{t(e);},r(e[i],e[o]);}},removeSignal:function(e){e[i]&&("removeEventListener"in e[i]?e[i].removeEventListener("abort",e[o]):e[i].removeListener("abort",e[o]),e[i]=null,e[o]=null);}};}),A7("RRD2g",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u;t=rP.finished,r=rP.PassThrough,o=(n=ni("03MxY")).InvalidArgumentError,i=n.InvalidReturnValueError,s=n.RequestAbortedError,a=ni("c7jgd"),l=ni("3iX8O").getResolveErrorBodyCallback,c=rZ.AsyncResource,E=(g=ni("6cGN7")).addSignal,u=g.removeSignal;class h extends c{constructor(e,A,t){if(!e||"object"!=typeof e)throw new o("invalid opts");let{signal:r,method:n,opaque:i,body:s,onInfo:l,responseHeaders:c,throwOnError:g}=e;try{if("function"!=typeof t)throw new o("invalid callback");if("function"!=typeof A)throw new o("invalid factory");if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new o("signal must be an EventEmitter or EventTarget");if("CONNECT"===n)throw new o("invalid method");if(l&&"function"!=typeof l)throw new o("invalid onInfo callback");super("UNDICI_STREAM");}catch(e){throw a.isStream(s)&&a.destroy(s.on("error",a.nop),e),e;}this.responseHeaders=c||null,this.opaque=i||null,this.factory=A,this.callback=t,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=s,this.onInfo=l||null,this.throwOnError=g||!1,a.isStream(s)&&s.on("error",e=>{this.onError(e);}),E(this,r);}onConnect(e,A){if(!this.callback)throw new s();this.abort=e,this.context=A;}onHeaders(e,A,n,o){let s;let{factory:c,opaque:g,context:E,callback:u,responseHeaders:h}=this,Q="raw"===h?a.parseRawHeaders(A):a.parseHeaders(A);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:Q});return;}if(this.factory=null,this.throwOnError&&e>=400){let t=("raw"===h?a.parseHeaders(A):Q)["content-type"];s=new r(),this.callback=null,this.runInAsyncScope(l,null,{callback:u,body:s,contentType:t,statusCode:e,statusMessage:o,headers:Q});}else{if(null===c)return;if(!(s=this.runInAsyncScope(c,null,{statusCode:e,headers:Q,opaque:g,context:E}))||"function"!=typeof s.write||"function"!=typeof s.end||"function"!=typeof s.on)throw new i("expected Writable");t(s,{readable:!1},e=>{let{callback:A,res:t,opaque:r,trailers:n,abort:o}=this;this.res=null,(e||!t.readable)&&a.destroy(t,e),this.callback=null,this.runInAsyncScope(A,null,e||null,{opaque:r,trailers:n}),e&&o();});}return s.on("drain",n),this.res=s,!0!==(void 0!==s.writableNeedDrain?s.writableNeedDrain:s._writableState&&s._writableState.needDrain);}onData(e){let{res:A}=this;return!A||A.write(e);}onComplete(e){let{res:A}=this;u(this),A&&(this.trailers=a.parseHeaders(e),A.end());}onError(e){let{res:A,callback:t,opaque:r,body:n}=this;u(this),this.factory=null,A?(this.res=null,a.destroy(A,e)):t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:r});})),n&&(this.body=null,a.destroy(n,e));}}e.exports=function e(A,t,r){if(void 0===r)return new Promise((r,n)=>{e.call(this,A,t,(e,A)=>e?n(e):r(A));});try{this.dispatch(A,new h(A,t,r));}catch(t){if("function"!=typeof r)throw t;let e=A&&A.opaque;queueMicrotask(()=>r(t,{opaque:e}));}};}),A7("ideTt",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u;t=rP.Readable,r=rP.Duplex,n=rP.PassThrough,i=(o=ni("03MxY")).InvalidArgumentError,s=o.InvalidReturnValueError,a=o.RequestAbortedError,l=ni("c7jgd"),c=rZ.AsyncResource,E=(g=ni("6cGN7")).addSignal,u=g.removeSignal;let h=Symbol();class Q extends t{constructor(){super({autoDestroy:!0}),this[h]=null;}_read(){let{[h]:e}=this;e&&(this[h]=null,e());}_destroy(e,A){this._read(),A(e);}}class C extends t{constructor(e){super({autoDestroy:!0}),this[h]=e;}_read(){this[h]();}_destroy(e,A){e||this._readableState.endEmitted||(e=new a()),A(e);}}class I extends c{constructor(e,A){if(!e||"object"!=typeof e)throw new i("invalid opts");if("function"!=typeof A)throw new i("invalid handler");let{signal:t,method:n,opaque:o,onInfo:s,responseHeaders:c}=e;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new i("signal must be an EventEmitter or EventTarget");if("CONNECT"===n)throw new i("invalid method");if(s&&"function"!=typeof s)throw new i("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=o||null,this.responseHeaders=c||null,this.handler=A,this.abort=null,this.context=null,this.onInfo=s||null,this.req=new Q().on("error",l.nop),this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{let{body:e}=this;e&&e.resume&&e.resume();},write:(e,A,t)=>{let{req:r}=this;r.push(e,A)||r._readableState.destroyed?t():r[h]=t;},destroy:(e,A)=>{let{body:t,req:r,res:n,ret:o,abort:i}=this;e||o._readableState.endEmitted||(e=new a()),i&&e&&i(),l.destroy(t,e),l.destroy(r,e),l.destroy(n,e),u(this),A(e);}}).on("prefinish",()=>{let{req:e}=this;e.push(null);}),this.res=null,E(this,t);}onConnect(e,A){let{ret:t,res:r}=this;if(rJ(!r,"pipeline cannot be retried"),t.destroyed)throw new a();this.abort=e,this.context=A;}onHeaders(e,A,t){let r;let{opaque:n,handler:o,context:i}=this;if(e<200){if(this.onInfo){let t="raw"===this.responseHeaders?l.parseRawHeaders(A):l.parseHeaders(A);this.onInfo({statusCode:e,headers:t});}return;}this.res=new C(t);try{this.handler=null;let t="raw"===this.responseHeaders?l.parseRawHeaders(A):l.parseHeaders(A);r=this.runInAsyncScope(o,null,{statusCode:e,headers:t,opaque:n,body:this.res,context:i});}catch(e){throw this.res.on("error",l.nop),e;}if(!r||"function"!=typeof r.on)throw new s("expected Readable");r.on("data",e=>{let{ret:A,body:t}=this;!A.push(e)&&t.pause&&t.pause();}).on("error",e=>{let{ret:A}=this;l.destroy(A,e);}).on("end",()=>{let{ret:e}=this;e.push(null);}).on("close",()=>{let{ret:e}=this;e._readableState.ended||l.destroy(e,new a());}),this.body=r;}onData(e){let{res:A}=this;return A.push(e);}onComplete(e){let{res:A}=this;A.push(null);}onError(e){let{ret:A}=this;this.handler=null,l.destroy(A,e);}}e.exports=function(e,A){try{let t=new I(e,A);return this.dispatch({...e,body:t.req},t),t.ret;}catch(e){return new n().destroy(e);}};}),A7("8uCGn",function(e,A){var t,r,n,o,i,s,a,l,c;r=(t=ni("03MxY")).InvalidArgumentError,n=t.RequestAbortedError,o=t.SocketError,i=rZ.AsyncResource,s=ni("c7jgd"),l=(a=ni("6cGN7")).addSignal,c=a.removeSignal;class g extends i{constructor(e,A){if(!e||"object"!=typeof e)throw new r("invalid opts");if("function"!=typeof A)throw new r("invalid callback");let{signal:t,opaque:n,responseHeaders:o}=e;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new r("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=o||null,this.opaque=n||null,this.callback=A,this.abort=null,this.context=null,l(this,t);}onConnect(e,A){if(!this.callback)throw new n();this.abort=e,this.context=null;}onHeaders(){throw new o("bad upgrade",null);}onUpgrade(e,A,t){let{callback:r,opaque:n,context:o}=this;rJ.strictEqual(e,101),c(this),this.callback=null;let i="raw"===this.responseHeaders?s.parseRawHeaders(A):s.parseHeaders(A);this.runInAsyncScope(r,null,null,{headers:i,socket:t,opaque:n,context:o});}onError(e){let{callback:A,opaque:t}=this;c(this),A&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(A,null,e,{opaque:t});}));}}e.exports=function e(A,t){if(void 0===t)return new Promise((t,r)=>{e.call(this,A,(e,A)=>e?r(e):t(A));});try{let e=new g(A,t);this.dispatch({...A,method:A.method||"GET",upgrade:A.protocol||"Websocket"},e);}catch(r){if("function"!=typeof t)throw r;let e=A&&A.opaque;queueMicrotask(()=>t(r,{opaque:e}));}};}),A7("6oxTV",function(e,A){var t,r,n,o,i,s,a,l,c;t=rZ.AsyncResource,n=(r=ni("03MxY")).InvalidArgumentError,o=r.RequestAbortedError,i=r.SocketError,s=ni("c7jgd"),l=(a=ni("6cGN7")).addSignal,c=a.removeSignal;class g extends t{constructor(e,A){if(!e||"object"!=typeof e)throw new n("invalid opts");if("function"!=typeof A)throw new n("invalid callback");let{signal:t,opaque:r,responseHeaders:o}=e;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=r||null,this.responseHeaders=o||null,this.callback=A,this.abort=null,l(this,t);}onConnect(e,A){if(!this.callback)throw new o();this.abort=e,this.context=A;}onHeaders(){throw new i("bad connect",null);}onUpgrade(e,A,t){let{callback:r,opaque:n,context:o}=this;c(this),this.callback=null;let i=A;null!=i&&(i="raw"===this.responseHeaders?s.parseRawHeaders(A):s.parseHeaders(A)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:i,socket:t,opaque:n,context:o});}onError(e){let{callback:A,opaque:t}=this;c(this),A&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(A,null,e,{opaque:t});}));}}e.exports=function e(A,t){if(void 0===t)return new Promise((t,r)=>{e.call(this,A,(e,A)=>e?r(e):t(A));});try{let e=new g(A,t);this.dispatch({...A,method:"CONNECT"},e);}catch(r){if("function"!=typeof t)throw r;let e=A&&A.opaque;queueMicrotask(()=>t(r,{opaque:e}));}};}),A7("8uThA",function(e,A){var t=rH.promisify,r=ni("2hBIk"),n=ni("aXWzJ").buildMockDispatch,o=ni("63Ves"),i=o.kDispatches,s=o.kMockAgent,a=o.kClose,l=o.kOriginalClose,c=o.kOrigin,g=o.kOriginalDispatch,E=o.kConnected,u=ni("bbiYo").MockInterceptor,h=ni("J3IVZ"),Q=ni("03MxY").InvalidArgumentError;class C extends r{constructor(e,A){if(super(e,A),!A||!A.agent||"function"!=typeof A.agent.dispatch)throw new Q("Argument opts.agent must implement Agent");this[s]=A.agent,this[c]=e,this[i]=[],this[E]=1,this[g]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[h.kConnected](){return this[E];}intercept(e){return new u(e,this[i]);}async[a](){await t(this[l])(),this[E]=0,this[s][h.kClients].delete(this[c]);}}e.exports=C;}),A7("aXWzJ",function(e,A){var t,r,n,o,i,s,a,l,c,g,E;function u(e,A){return"string"==typeof e?e===A:e instanceof RegExp?e.test(A):"function"==typeof e&&!0===e(A);}function h(e){return Object.fromEntries(Object.entries(e).map(([e,A])=>[e.toLocaleLowerCase(),A]));}function Q(e,A){if(Array.isArray(e)){for(let t=0;t!e).filter(({path:e})=>u(d(e),n));if(0===o.length)throw new t(`Mock dispatch not matched for path '${n}'`);if(0===(o=o.filter(({method:e})=>u(e,A.method))).length)throw new t(`Mock dispatch not matched for method '${A.method}'`);if(0===(o=o.filter(({body:e})=>void 0===e||u(e,A.body))).length)throw new t(`Mock dispatch not matched for body '${A.body}'`);if(0===(o=o.filter(e=>I(e,A.headers))).length)throw new t(`Mock dispatch not matched for headers '${"object"==typeof A.headers?JSON.stringify(A.headers):A.headers}'`);return o[0];}function p(e,A){let t=e.findIndex(e=>!!e.consumed&&function(e,{path:A,method:t,body:r,headers:n}){let o=u(e.path,A),i=u(e.method,t),s=void 0===e.body||u(e.body,r),a=I(e,n);return o&&i&&s&&a;}(e,A));-1!==t&&e.splice(t,1);}function y(e){let{path:A,method:t,body:r,headers:n,query:o}=e;return{path:A,method:t,body:r,headers:n,query:o};}function m(e){return Object.entries(e).reduce((e,[A,t])=>[...e,Buffer.from(""+A),Array.isArray(t)?t.map(e=>Buffer.from(""+e)):Buffer.from(""+t)],[]);}function w(e){return E[e]||"unknown";}async function b(e){let A=[];for await(let t of e)A.push(t);return Buffer.concat(A).toString("utf8");}function R(e,A){function t(n,i=a){let E=Array.isArray(e.headers)?C(e.headers):e.headers,u="function"==typeof i?i({...e,headers:E}):i;if(S(u)){u.then(e=>t(n,e));return;}let h=B(u),Q=m(l),I=m(c);A.abort=g,A.onHeaders(s,Q,r,w(s)),A.onData(Buffer.from(h)),A.onComplete(I),p(n,o);}function r(){}let o=y(e),i=f(this[n],o);i.timesInvoked++,i.data.callback&&(i.data={...i.data,...i.data.callback(e)});let{data:{statusCode:s,data:a,headers:l,trailers:c,error:E},delay:u,persist:h}=i,{timesInvoked:Q,times:I}=i;return(i.consumed=!h&&Q>=I,i.pending=Q0?setTimeout(()=>{t(this[n]);},u):t(this[n]),!0;}function D(e,A){let t=new URL(A);return!0===e||!!(Array.isArray(e)&&e.some(e=>u(e,t.host)));}t=ni("3Tq4d").MockNotMatchedError,n=(r=ni("63Ves")).kDispatches,o=r.kMockAgent,i=r.kOriginalDispatch,s=r.kOrigin,a=r.kGetNetConnect,c=(l=ni("c7jgd")).buildURL,g=l.nop,E=rM.STATUS_CODES;let{types:{isPromise:S}}=rH;e.exports={getResponseData:B,getMockDispatch:f,addMockDispatch:function(e,A,t){let r="function"==typeof t?{callback:t}:{...t},n={timesInvoked:0,times:1,persist:!1,consumed:!1,...A,pending:!0,data:{error:null,...r}};return e.push(n),n;},deleteMockDispatch:p,buildKey:y,generateKeyValues:m,matchValue:u,getResponse:b,getStatusText:w,mockDispatch:R,buildMockDispatch:function(){let e=this[o],A=this[s],r=this[i];return function(n,o){if(e.isMockActive)try{R.call(this,n,o);}catch(i){if(i instanceof t){let s=e[a]();if(!1===s)throw new t(`${i.message}: subsequent request to origin ${A} was not allowed (net.connect disabled)`);if(D(s,A))r.call(this,n,o);else throw new t(`${i.message}: subsequent request to origin ${A} was not allowed (net.connect is not enabled for this origin)`);}else throw i;}else r.call(this,n,o);};},checkNetConnect:D,buildMockOptions:function(e){if(e){let{agent:A,...t}=e;return t;}},getHeaderByName:Q};}),A7("3Tq4d",function(e,A){var t=ni("03MxY").UndiciError;class r extends t{constructor(e){super(e),Error.captureStackTrace(this,r),this.name="MockNotMatchedError",this.message=e||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED";}}e.exports={MockNotMatchedError:r};}),A7("63Ves",function(e,A){e.exports={kAgent:Symbol(),kOptions:Symbol(),kFactory:Symbol(),kDispatches:Symbol(),kDispatchKey:Symbol(),kDefaultHeaders:Symbol(),kDefaultTrailers:Symbol(),kContentLength:Symbol(),kMockAgent:Symbol(),kMockAgentSet:Symbol(),kMockAgentGet:Symbol(),kMockDispatch:Symbol(),kClose:Symbol(),kOriginalClose:Symbol(),kOrigin:Symbol(),kIsMockActive:Symbol(),kNetConnect:Symbol(),kGetNetConnect:Symbol(),kConnected:Symbol()};}),A7("bbiYo",function(e,A){a(e.exports,"MockInterceptor",()=>t,e=>t=e);var t,r=ni("aXWzJ"),n=r.getResponseData,o=r.buildKey,i=r.addMockDispatch,s=ni("63Ves"),l=s.kDispatches,c=s.kDispatchKey,g=s.kDefaultHeaders,E=s.kDefaultTrailers,u=s.kContentLength,h=s.kMockDispatch,Q=ni("03MxY").InvalidArgumentError,C=ni("c7jgd").buildURL;class I{constructor(e){this[h]=e;}delay(e){if("number"!=typeof e||!Number.isInteger(e)||e<=0)throw new Q("waitInMs must be a valid integer > 0");return this[h].delay=e,this;}persist(){return this[h].persist=!0,this;}times(e){if("number"!=typeof e||!Number.isInteger(e)||e<=0)throw new Q("repeatTimes must be a valid integer > 0");return this[h].times=e,this;}}t=class{constructor(e,A){if("object"!=typeof e)throw new Q("opts must be an object");if(void 0===e.path)throw new Q("opts.path must be defined");if(void 0===e.method&&(e.method="GET"),"string"==typeof e.path){if(e.query)e.path=C(e.path,e.query);else{let A=new URL(e.path,"data://");e.path=A.pathname+A.search;}}"string"==typeof e.method&&(e.method=e.method.toUpperCase()),this[c]=o(e),this[l]=A,this[g]={},this[E]={},this[u]=!1;}createMockScopeDispatchData(e,A,t={}){let r=n(A),o=this[u]?{"content-length":r.length}:{};return{statusCode:e,data:A,headers:{...this[g],...o,...t.headers},trailers:{...this[E],...t.trailers}};}validateReplyParameters(e,A,t){if(void 0===e)throw new Q("statusCode must be defined");if(void 0===A)throw new Q("data must be defined");if("object"!=typeof t)throw new Q("responseOptions must be an object");}reply(e){if("function"==typeof e)return new I(i(this[l],this[c],A=>{let t=e(A);if("object"!=typeof t)throw new Q("reply options callback must return an object");let{statusCode:r,data:n="",responseOptions:o={}}=t;return this.validateReplyParameters(r,n,o),{...this.createMockScopeDispatchData(r,n,o)};}));let[A,t="",r={}]=[...arguments];this.validateReplyParameters(A,t,r);let n=this.createMockScopeDispatchData(A,t,r);return new I(i(this[l],this[c],n));}replyWithError(e){if(void 0===e)throw new Q("error must be defined");return new I(i(this[l],this[c],{error:e}));}defaultReplyHeaders(e){if(void 0===e)throw new Q("headers must be defined");return this[g]=e,this;}defaultReplyTrailers(e){if(void 0===e)throw new Q("trailers must be defined");return this[E]=e,this;}replyContentLength(){return this[u]=!0,this;}};}),A7("6JGY1",function(e,A){var t=ni("J3IVZ").kClients,r=ni("4UFSJ"),n=ni("63Ves"),o=n.kAgent,i=n.kMockAgentSet,s=n.kMockAgentGet,a=n.kDispatches,l=n.kIsMockActive,c=n.kNetConnect,g=n.kGetNetConnect,E=n.kOptions,u=n.kFactory,h=ni("8uThA"),Q=ni("9zXtN"),C=ni("aXWzJ"),I=C.matchValue,d=C.buildMockOptions,B=ni("03MxY"),f=B.InvalidArgumentError,p=B.UndiciError,y=ni("4MNSY"),m=ni("fNmEN"),w=ni("aArTY");class b{constructor(e){this.value=e;}deref(){return this.value;}}e.exports=class extends y{constructor(e){if(super(e),this[c]=!0,this[l]=!0,e&&e.agent&&"function"!=typeof e.agent.dispatch)throw new f("Argument opts.agent must implement Agent");let A=e&&e.agent?e.agent:new r(e);this[o]=A,this[t]=A[t],this[E]=d(e);}get(e){let A=this[s](e);return A||(A=this[u](e),this[i](e,A)),A;}dispatch(e,A){return this.get(e.origin),this[o].dispatch(e,A);}async close(){await this[o].close(),this[t].clear();}deactivate(){this[l]=!1;}activate(){this[l]=!0;}enableNetConnect(e){if("string"==typeof e||"function"==typeof e||e instanceof RegExp)Array.isArray(this[c])?this[c].push(e):this[c]=[e];else if(void 0===e)this[c]=!0;else throw new f("Unsupported matcher. Must be one of String|Function|RegExp.");}disableNetConnect(){this[c]=!1;}get isMockActive(){return this[l];}[i](e,A){this[t].set(e,new b(A));}[u](e){let A=Object.assign({agent:this},this[E]);return this[E]&&1===this[E].connections?new h(e,A):new Q(e,A);}[s](e){let A=this[t].get(e);if(A)return A.deref();if("string"!=typeof e){let A=this[u]("http://localhost:9999");return this[i](e,A),A;}for(let[A,r]of Array.from(this[t])){let t=r.deref();if(t&&"string"!=typeof A&&I(A,e)){let A=this[u](e);return this[i](e,A),A[a]=t[a],A;}}}[g](){return this[c];}pendingInterceptors(){return Array.from(this[t].entries()).flatMap(([e,A])=>A.deref()[a].map(A=>({...A,origin:e}))).filter(({pending:e})=>e);}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new w()}={}){let A=this.pendingInterceptors();if(0===A.length)return;let t=new m("interceptor","interceptors").pluralize(A.length);throw new p(` ${t.count} ${t.noun} ${t.is} pending: ${e.format(A)} `.trim());}};}),A7("9zXtN",function(e,A){var t=rH.promisify,r=ni("3xMRG"),n=ni("aXWzJ").buildMockDispatch,o=ni("63Ves"),i=o.kDispatches,s=o.kMockAgent,a=o.kClose,l=o.kOriginalClose,c=o.kOrigin,g=o.kOriginalDispatch,E=o.kConnected,u=ni("bbiYo").MockInterceptor,h=ni("J3IVZ"),Q=ni("03MxY").InvalidArgumentError;class C extends r{constructor(e,A){if(super(e,A),!A||!A.agent||"function"!=typeof A.agent.dispatch)throw new Q("Argument opts.agent must implement Agent");this[s]=A.agent,this[c]=e,this[i]=[],this[E]=1,this[g]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[h.kConnected](){return this[E];}intercept(e){return new u(e,this[i]);}async[a](){await t(this[l])(),this[E]=0,this[s][h.kClients].delete(this[c]);}}e.exports=C;}),A7("fNmEN",function(e,A){let t={pronoun:"it",is:"is",was:"was",this:"this"},r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class{constructor(e,A){this.singular=e,this.plural=A;}pluralize(e){let A=1===e,n=A?this.singular:this.plural;return{...(A?t:r),count:e,noun:n};}};}),A7("aArTY",function(e,A){var t=rP.Transform,r=rK.Console;e.exports=class{constructor({disableColors:e}={}){this.transform=new t({transform(e,A,t){t(null,e);}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}});}format(e){let A=e.map(({method:e,path:A,data:{statusCode:t},persist:r,times:n,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:A,"Status code":t,Persistent:r?"✅":"❌",Invocations:o,Remaining:r?1/0:n-o}));return this.logger.table(A),this.transform.read().toString();}};}),A7("l978m",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h;function Q(e,A){return new l(e,A);}r=(t=ni("J3IVZ")).kProxy,n=t.kClose,o=t.kDestroy,i=t.kInterceptors,s=r0.URL,a=ni("4UFSJ"),l=ni("3xMRG"),c=ni("k3HYk"),E=(g=ni("03MxY")).InvalidArgumentError,u=g.RequestAbortedError,h=ni("d4IVt");let C=Symbol(),I=Symbol(),d=Symbol(),B=Symbol(),f=Symbol(),p=Symbol();e.exports=class extends c{constructor(e){if(super(e),this[r]=function(e){if("string"==typeof e&&(e={uri:e}),!e||!e.uri)throw new E("Proxy opts.uri is mandatory");return{uri:e.uri,protocol:e.protocol||"https"};}(e),this[C]=new a(e),this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],"string"==typeof e&&(e={uri:e}),!e||!e.uri)throw new E("Proxy opts.uri is mandatory");let{clientFactory:A=Q}=e;if("function"!=typeof A)throw new E("Proxy opts.clientFactory must be a function.");this[B]=e.requestTls,this[f]=e.proxyTls,this[d]=e.headers||{};let t=new s(e.uri),{origin:n,port:o,host:l,username:c,password:g}=t;if(e.auth&&e.token)throw new E("opts.auth cannot be used in combination with opts.token");e.auth?this[d]["proxy-authorization"]="Basic "+e.auth:e.token?this[d]["proxy-authorization"]=e.token:c&&g&&(this[d]["proxy-authorization"]="Basic "+Buffer.from(`${decodeURIComponent(c)}:${decodeURIComponent(g)}`).toString("base64"));let y=h({...e.proxyTls});this[p]=h({...e.requestTls}),this[I]=A(t,{connect:y}),this[C]=new a({...e,connect:async(e,A)=>{let t=e.host;!e.port&&(t+=":"+("https:"===e.protocol?443:80));try{let r;let{socket:i,statusCode:s}=await this[I].connect({origin:n,port:o,path:t,signal:e.signal,headers:{...this[d],host:l}});if(200!==s&&(i.on("error",()=>{}).destroy(),A(new u(`Proxy response (${s}) !== 200 when HTTP Tunneling`))),"https:"!==e.protocol){A(null,i);return;}r=this[B]?this[B].servername:e.servername,this[p]({...e,servername:r,httpSocket:i},A);}catch(e){A(e);}}});}dispatch(e,A){let{host:t}=new s(e.origin),r=function(e){if(Array.isArray(e)){let A={};for(let t=0;t"proxy-authorization"===e.toLowerCase()))throw new E("Proxy-Authorization should be sent in ProxyAgent constructor");}(r),this[C].dispatch({...e,headers:{...r,host:t}},A);}async[n](){await this[C].close(),await this[I].close();}async[o](){await this[C].destroy(),await this[I].destroy();}};}),A7("kovwN",function(e,A){var t=ni("J3IVZ").kRetryHandlerDefaultRetry,r=ni("03MxY").RequestRetryError,n=ni("c7jgd"),o=n.isDisturbed,i=n.parseHeaders,s=n.parseRangeHeader;class a{constructor(e,A){let{retryOptions:r,...n}=e,{retry:o,maxRetries:i,maxTimeout:s,minTimeout:l,timeoutFactor:c,methods:g,errorCodes:E,retryAfter:u,statusCodes:h}=null!=r?r:{};this.dispatch=A.dispatch,this.handler=A.handler,this.opts=n,this.abort=null,this.aborted=!1,this.retryOpts={retry:null!=o?o:a[t],retryAfter:null==u||u,maxTimeout:null!=s?s:3e4,timeout:null!=l?l:500,timeoutFactor:null!=c?c:2,maxRetries:null!=i?i:5,methods:null!=g?g:["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:null!=h?h:[500,502,503,504,429],errorCodes:null!=E?E:["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e;});}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent();}onUpgrade(e,A,t){this.handler.onUpgrade&&this.handler.onUpgrade(e,A,t);}onConnect(e){this.aborted?e(this.reason):this.abort=e;}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e);}static[t](e,{state:A,opts:t},r){let{statusCode:n,code:o,headers:i}=e,{method:s,retryOptions:a}=t,{maxRetries:l,timeout:c,maxTimeout:g,timeoutFactor:E,statusCodes:u,errorCodes:h,methods:Q}=a,{counter:C,currentTimeout:I}=A;if(I=null!=I&&I>0?I:c,o&&"UND_ERR_REQ_RETRY"!==o&&"UND_ERR_SOCKET"!==o&&!h.includes(o)||Array.isArray(Q)&&!Q.includes(s)||null!=n&&Array.isArray(u)&&!u.includes(n)||C>l){r(e);return;}let d=null!=i&&i["retry-after"];d&&(d=isNaN(d=+d)?function(e){let A=Date.now();return new Date(e).getTime()-A;}(d):1e3*d);let B=d>0?Math.min(d,g):Math.min(I*E**C,g);A.currentTimeout=B,setTimeout(()=>r(null),B);}onHeaders(e,A,t,n){let o=i(A);if(this.retryCount+=1,e>=300)return this.abort(new r("Request failed",e,{headers:o,count:this.retryCount})),!1;if(null!=this.resume){if(this.resume=null,206!==e)return!0;let A=s(o["content-range"]);if(!A)return this.abort(new r("Content-Range mismatch",e,{headers:o,count:this.retryCount})),!1;if(null!=this.etag&&this.etag!==o.etag)return this.abort(new r("ETag mismatch",e,{headers:o,count:this.retryCount})),!1;let{start:n,size:i,end:a=i}=A;return rJ(this.start===n,"content-range mismatch"),rJ(null==this.end||this.end===a,"content-range mismatch"),this.resume=t,!0;}if(null==this.end){if(206===e){let r=s(o["content-range"]);if(null==r)return this.handler.onHeaders(e,A,t,n);let{start:i,size:a,end:l=a}=r;rJ(null!=i&&Number.isFinite(i)&&this.start!==i,"content-range mismatch"),rJ(Number.isFinite(i)),rJ(null!=l&&Number.isFinite(l)&&this.end!==l,"invalid content-length"),this.start=i,this.end=l;}if(null==this.end){let e=o["content-length"];this.end=null!=e?+e:null;}return rJ(Number.isFinite(this.start)),rJ(null==this.end||Number.isFinite(this.end),"invalid content-length"),this.resume=t,this.etag=null!=o.etag?o.etag:null,this.handler.onHeaders(e,A,t,n);}let a=new r("Request failed",e,{headers:o,count:this.retryCount});return this.abort(a),!1;}onData(e){return this.start+=e.length,this.handler.onData(e);}onComplete(e){return this.retryCount=0,this.handler.onComplete(e);}onError(e){if(this.aborted||o(this.opts.body))return this.handler.onError(e);this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},function(e){var A;if(null!=e||this.aborted||o(this.opts.body))return this.handler.onError(e);0!==this.start&&(this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${null!==(A=this.end)&&void 0!==A?A:""}`}});try{this.dispatch(this.opts,this);}catch(e){this.handler.onError(e);}}.bind(this));}}e.exports=a;}),A7("655rh",function(e,A){var t,r;function n(e){if(!e||"function"!=typeof e.dispatch)throw new t("Argument agent must implement Agent");Object.defineProperty(globalThis,i,{value:e,writable:!0,enumerable:!1,configurable:!1});}function o(){return globalThis[i];}let i=Symbol.for("undici.globalDispatcher.1");t=ni("03MxY").InvalidArgumentError,r=ni("4UFSJ"),void 0===o()&&n(new r()),e.exports={setGlobalDispatcher:n,getGlobalDispatcher:o};}),A7("g4tYp",function(e,A){e.exports=class{constructor(e){this.handler=e;}onConnect(...e){return this.handler.onConnect(...e);}onError(...e){return this.handler.onError(...e);}onUpgrade(...e){return this.handler.onUpgrade(...e);}onHeaders(...e){return this.handler.onHeaders(...e);}onData(...e){return this.handler.onData(...e);}onComplete(...e){return this.handler.onComplete(...e);}onBodySent(...e){return this.handler.onBodySent(...e);}};}),A7("knv0l",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,T,x,M,_,O,Y,G,J,H,P,V,q,W,j,$,X,z,Z,K,ee,eA,et,er,en,eo,ei,es,ea,el,ec,eg,eE,eu,eh,eQ;let eC;function eI(e,A="other"){var t,r,n,o,i,s;if("error"===e.type&&e.aborted||!(null===(t=e.urlList)||void 0===t?void 0:t.length))return;let a=e.urlList[0],l=e.timingInfo,c=e.cacheState;if(O(a)){null!==l&&(e.timingAllowPassed||(l=m({startTime:l.startTime}),c=""),l.endTime=S(),e.timingInfo=l,r=l,n=a,o=A,i=globalThis,s=c,(es>18||18===es&&ea>=2)&&performance.markResourceTiming(r,n.href,o,i,s));}}function ed(e,A,t,r){var n,o;if(r||(r=new K("The operation was aborted.","AbortError")),e.reject(r),null!=A.body&&ei(null===(n=A.body)||void 0===n?void 0:n.stream)&&A.body.stream.cancel(r).catch(e=>{if("ERR_INVALID_STATE"!==e.code)throw e;}),null==t)return;let i=t[J];null!=i.body&&ei(null===(o=i.body)||void 0===o?void 0:o.stream)&&i.body.stream.cancel(r).catch(e=>{if("ERR_INVALID_STATE"!==e.code)throw e;});}function eB({request:e,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseEndOfBody:n,processResponseConsumeBody:o,useParallelQueue:i=!1,dispatcher:s}){var a,l,c,g;let E=null,u=!1;null!=e.client&&(E=e.client.globalObject,u=e.client.crossOriginIsolatedCapability);let C=S(u),I=m({startTime:C}),d={controller:new eS(s),request:e,timingInfo:I,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseConsumeBody:o,processResponseEndOfBody:n,taskDestination:E,crossOriginIsolatedCapability:u};return rJ(!e.body||e.body.stream),"client"===e.window&&(e.window=(null===(c=e.client)||void 0===c?void 0:null===(l=c.globalObject)||void 0===l?void 0:null===(a=l.constructor)||void 0===a?void 0:a.name)==="Window"?e.client:"no-window"),"client"===e.origin&&(e.origin=null===(g=e.client)||void 0===g?void 0:g.origin),"client"===e.policyContainer&&(null!=e.client?e.policyContainer=Q(e.client.policyContainer):e.policyContainer=h()),e.headersList.contains("accept")||e.headersList.append("accept","*/*"),e.headersList.contains("accept-language")||e.headersList.append("accept-language","*"),e.priority,Z.has(e.destination),ef(d).catch(e=>{d.controller.terminate(e);}),d.controller;}async function ef(e,A=!1){let t=e.request,r=null;if(t.localURLsOnly&&!_(f(t))&&(r=n("local URLs only")),y(t),"blocked"===C(t)&&(r=n("bad port")),""===t.referrerPolicy&&(t.referrerPolicy=t.policyContainer.referrerPolicy),"no-referrer"!==t.referrer&&(t.referrer=D(t)),null===r&&(r=await(async()=>{let A=f(t);return N(A,t.url)&&"basic"===t.responseTainting||"data:"===A.protocol||"navigate"===t.mode||"websocket"===t.mode?(t.responseTainting="basic",await ep(e)):"same-origin"===t.mode?n('request mode cannot be "same-origin"'):"no-cors"===t.mode?"follow"!==t.redirect?n('redirect mode cannot be "follow" for "no-cors" request'):(t.responseTainting="opaque",await ep(e)):O(f(t))?(t.responseTainting="cors",await em(e)):n("URL scheme must be a HTTP(S) scheme");})()),A)return r;0===r.status||r.internalResponse||(t.responseTainting,"basic"===t.responseTainting?r=i(r,"basic"):"cors"===t.responseTainting?r=i(r,"cors"):"opaque"===t.responseTainting?r=i(r,"opaque"):rJ(!1));let o=0===r.status?r:r.internalResponse;if(0===o.urlList.length&&o.urlList.push(...t.urlList),t.timingAllowFailed||(r.timingAllowPassed=!0),"opaque"===r.type&&206===o.status&&o.rangeRequested&&!t.headers.contains("range")&&(r=o=n()),0!==r.status&&("HEAD"===t.method||"CONNECT"===t.method||$.includes(o.status))&&(o.body=null,e.controller.dump=!0),t.integrity){let A=A=>ey(e,n(A));if("opaque"===t.responseTainting||null==r.body){A(r.error);return;}await T(r.body,n=>{if(!u(n,t.integrity)){A("integrity mismatch");return;}r.body=q(n)[0],ey(e,r);},A);}else ey(e,r);}function ep(e){if(F(e)&&0===e.request.redirectCount)return Promise.resolve(o(e));let{request:A}=e,{protocol:t}=f(A);switch(t){case"about:":return Promise.resolve(n("about scheme is not supported"));case"blob:":{var r;eC||(eC=rV.resolveObjectURL);let e=f(A);if(0!==e.search.length)return Promise.resolve(n("NetworkError when attempting to fetch resource."));let t=eC(e.toString());if("GET"!==A.method||!k(t))return Promise.resolve(n("invalid method"));let o=q(t),i=o[0],a=M(""+i.length),l=null!==(r=o[1])&&void 0!==r?r:"",c=s({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:a}],["content-type",{name:"Content-Type",value:l}]]});return c.body=i,Promise.resolve(c);}case"data:":{let e=f(A),t=ec(e);if("failure"===t)return Promise.resolve(n("failed to fetch the data URL"));let r=eg(t.mimeType);return Promise.resolve(s({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:r}]],body:q(t.body)[0]}));}case"file:":return Promise.resolve(n("not implemented... yet..."));case"http:":case"https:":return em(e).catch(e=>n(e));default:return Promise.resolve(n("unknown scheme"));}}function ey(e,A){"error"===A.type&&(A.urlList=[e.request.urlList[0]],A.timingInfo=m({startTime:e.timingInfo.startTime}));let t=()=>{e.request.done=!0,null!=e.processResponseEndOfBody&&queueMicrotask(()=>e.processResponseEndOfBody(A));};if(null!=e.processResponse&&queueMicrotask(()=>e.processResponse(A)),null==A.body)t();else{let e=new eE({start(){},transform(e,A){A.enqueue(e);},flush:t},{size:()=>1},{size:()=>1});A.body={stream:A.body.stream.pipeThrough(e)};}if(null!=e.processResponseConsumeBody){let t=t=>e.processResponseConsumeBody(A,t);return null!=A.body?T(A.body,t,t=>e.processResponseConsumeBody(A,t)):(queueMicrotask(()=>t(null)),Promise.resolve());}}async function em(e){let A=e.request,t=null,r=null,o=e.timingInfo;if(A.serviceWorkers,null===t){if("follow"===A.redirect&&(A.serviceWorkers="none"),r=t=await ew(e),"cors"===A.responseTainting&&"failure"===b(A,t))return n("cors failure");"failure"===I(A,t)&&(A.timingAllowFailed=!0);}return("opaque"===A.responseTainting||"opaque"===t.type)&&"blocked"===R(A.origin,A.client,A.destination,r)?n("blocked"):(j.has(r.status)&&("manual"!==A.redirect&&e.controller.connection.destroy(),"error"===A.redirect?t=n("unexpected redirect"):"manual"===A.redirect?t=r:"follow"===A.redirect?t=await function(e,A){let t;let r=e.request,o=A.internalResponse?A.internalResponse:A;try{if(t=B(o,f(r).hash),null==t)return A;}catch(e){return Promise.resolve(n(e));}if(!O(t))return Promise.resolve(n("URL scheme must be a HTTP(S) scheme"));if(20===r.redirectCount)return Promise.resolve(n("redirect count exceeded"));if(r.redirectCount+=1,"cors"===r.mode&&(t.username||t.password)&&!N(r,t))return Promise.resolve(n('cross origin not allowed for request mode "cors"'));if("cors"===r.responseTainting&&(t.username||t.password))return Promise.resolve(n('URL cannot contain credentials for request mode "cors"'));if(303!==o.status&&null!=r.body&&null==r.body.source)return Promise.resolve(n());if([301,302].includes(o.status)&&"POST"===r.method||303===o.status&&!eR.includes(r.method))for(let e of(r.method="GET",r.body=null,z))r.headersList.delete(e);N(f(r),t)||(r.headersList.delete("authorization"),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie"),r.headersList.delete("host")),null!=r.body&&(rJ(null!=r.body.source),r.body=q(r.body.source)[0]);let i=e.timingInfo;return i.redirectEndTime=i.postRedirectStartTime=S(e.crossOriginIsolatedCapability),0===i.redirectStartTime&&(i.redirectStartTime=i.startTime),r.urlList.push(t),p(r,o),ef(e,!0);}(e,t):rJ(!1)),t.timingInfo=o,t);}async function ew(e,A=!1,t=!1){let r=e.request,i=null,s=null,a=null;"no-window"===r.window&&"error"===r.redirect?(i=e,s=r):(s=g(r),(i={...e}).request=s);let l="include"===r.credentials||"same-origin"===r.credentials&&"basic"===r.responseTainting,c=s.body?s.body.length:null,E=null;if(null==s.body&&["POST","PUT"].includes(s.method)&&(E="0"),null!=c&&(E=M(""+c)),null!=E&&s.headersList.append("content-length",E),null!=c&&s.keepalive,s.referrer instanceof URL&&s.headersList.append("referer",M(s.referrer.href)),d(s),w(s),s.headersList.contains("user-agent")||s.headersList.append("user-agent","undefined"==typeof esbuildDetection?"undici":"node"),"default"===s.cache&&(s.headersList.contains("if-modified-since")||s.headersList.contains("if-none-match")||s.headersList.contains("if-unmodified-since")||s.headersList.contains("if-match")||s.headersList.contains("if-range"))&&(s.cache="no-store"),"no-cache"!==s.cache||s.preventNoCacheCacheControlHeaderModification||s.headersList.contains("cache-control")||s.headersList.append("cache-control","max-age=0"),"no-store"!==s.cache&&"reload"!==s.cache||(s.headersList.contains("pragma")||s.headersList.append("pragma","no-cache"),s.headersList.contains("cache-control")||s.headersList.append("cache-control","no-cache")),s.headersList.contains("range")&&s.headersList.append("accept-encoding","identity"),s.headersList.contains("accept-encoding")||(Y(f(s))?s.headersList.append("accept-encoding","br, gzip, deflate"):s.headersList.append("accept-encoding","gzip, deflate")),s.headersList.delete("host"),s.cache="no-store","no-store"!==s.mode&&s.mode,null==a){if("only-if-cached"===s.mode)return n("only if cached");let e=await eb(i,l,t);!X.has(s.method)&&e.status>=200&&e.status,null==a&&(a=e);}if(a.urlList=[...s.urlList],s.headersList.contains("range")&&(a.rangeRequested=!0),a.requestIncludesCredentials=l,407===a.status)return"no-window"===r.window?n():F(e)?o(e):n("proxy authentication required");if(421===a.status&&!t&&(null==r.body||null!=r.body.source)){if(F(e))return o(e);e.controller.connection.destroy(),a=await ew(e,A,!0);}return a;}async function eb(e,A=!1,t=!1){async function r({body:A}){let t=f(i),r=e.controller.dispatcher;return new Promise((n,o)=>r.dispatch({path:t.pathname+t.search,origin:t.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):A,headers:i.headersList.entries,maxRedirections:0,upgrade:"websocket"===i.mode?"websocket":void 0},{body:null,abort:null,onConnect(A){let{connection:t}=e.controller;t.destroyed?A(new K("The operation was aborted.","AbortError")):(e.controller.on("terminated",A),this.abort=t.abort=A);},onHeaders(e,A,t,r){if(e<200)return;let o=[],s="",l=new a();if(Array.isArray(A))for(let e=0;ee.trim()):"location"===t.toLowerCase()&&(s=r),l[ee].append(t,r);}else for(let e of Object.keys(A)){let t=A[e];"content-encoding"===e.toLowerCase()?o=t.toLowerCase().split(",").map(e=>e.trim()).reverse():"location"===e.toLowerCase()&&(s=t),l[ee].append(e,t);}this.body=new eA({read:t});let c=[],g="follow"===i.redirect&&s&&j.has(e);if("HEAD"!==i.method&&"CONNECT"!==i.method&&!$.includes(e)&&!g)for(let e of o)if("x-gzip"===e||"gzip"===e)c.push(r1.createGunzip({flush:r1.constants.Z_SYNC_FLUSH,finishFlush:r1.constants.Z_SYNC_FLUSH}));else if("deflate"===e)c.push(r1.createInflate());else if("br"===e)c.push(r1.createBrotliDecompress());else{c.length=0;break;}return n({status:e,statusText:r,headersList:l[ee],body:c.length?et(this.body,...c,()=>{}):this.body.on("error",()=>{})}),!0;},onData(A){if(!e.controller.dump)return c.encodedBodySize+=A.byteLength,this.body.push(A);},onComplete(){this.abort&&e.controller.off("terminated",this.abort),e.controller.ended=!0,this.body.push(null);},onError(A){var t;this.abort&&e.controller.off("terminated",this.abort),null===(t=this.body)||void 0===t||t.destroy(A),e.controller.terminate(A),o(A);},onUpgrade(e,A,t){if(101!==e)return;let r=new a();for(let e=0;ee.processRequestEndOfBody());else if(null!=i.body){let A=async function*(A){var t;F(e)||(yield A,null===(t=e.processRequestBodyChunkLength)||void 0===t||t.call(e,A.byteLength));},t=()=>{!F(e)&&e.processRequestEndOfBody&&e.processRequestEndOfBody();},r=A=>{F(e)||("AbortError"===A.name?e.controller.abort():e.controller.terminate(A));};g=async function*(){try{for await(let e of i.body.stream)yield*A(e);t();}catch(e){r(e);}}();}try{let{body:A,status:t,statusText:n,headersList:o,socket:i}=await r({body:g});if(i)l=s({status:t,statusText:n,headersList:o,socket:i});else{let r=A[Symbol.asyncIterator]();e.controller.next=()=>r.next(),l=s({status:t,statusText:n,headersList:o});}}catch(A){if("AbortError"===A.name)return e.controller.connection.destroy(),o(e,A);return n(A);}let E=()=>{e.controller.resume();},u=A=>{e.controller.abort(A);};eD||(eD=ni("9UQbL").ReadableStream);let h=new eD({async start(A){e.controller.controller=A;},async pull(e){await E(e);},async cancel(e){await u(e);}},{highWaterMark:0,size:()=>1});return l.body={stream:h},e.controller.on("terminated",function(A){L(e)?(l.aborted=!0,ei(h)&&e.controller.controller.error(e.controller.serializedAbortReason)):ei(h)&&e.controller.controller.error(TypeError("terminated",{cause:U(A)?A:void 0})),e.controller.connection.destroy();}),e.controller.resume=async()=>{for(;;){var A;let t,r;try{let{done:A,value:r}=await e.controller.next();if(L(e))break;t=A?void 0:r;}catch(A){e.controller.ended&&!c.encodedBodySize?t=void 0:(t=A,r=!0);}if(void 0===t){x(e.controller.controller),function(e,A){e.request.done=!0,null!=e.processResponseDone&&queueMicrotask(()=>e.processResponseDone(A));}(e,l);return;}if(c.decodedBodySize+=null!==(A=null==t?void 0:t.byteLength)&&void 0!==A?A:0,r){e.controller.terminate(t);return;}if(e.controller.controller.enqueue(new Uint8Array(t)),eo(h)){e.controller.terminate();return;}if(!e.controller.controller.desiredSize)return;}},l;}r=(t=ni("eHlZn")).Response,n=t.makeNetworkError,o=t.makeAppropriateNetworkError,i=t.filterResponse,s=t.makeResponse,a=ni("5AMIu").Headers,c=(l=ni("drJZA")).Request,g=l.makeRequest,u=(E=ni("guORk")).bytesMatch,h=E.makePolicyContainer,Q=E.clonePolicyContainer,C=E.requestBadPort,I=E.TAOCheck,d=E.appendRequestOriginHeader,B=E.responseLocationURL,f=E.requestCurrentURL,p=E.setRequestReferrerPolicyOnRedirect,y=E.tryUpgradeRequestToAPotentiallyTrustworthyURL,m=E.createOpaqueTimingInfo,w=E.appendFetchMetadata,b=E.corsCheck,R=E.crossOriginResourcePolicyCheck,D=E.determineRequestsReferrer,S=E.coarsenedSharedCurrentTime,v=E.createDeferredPromise,k=E.isBlobLike,N=E.sameOrigin,F=E.isCancelled,L=E.isAborted,U=E.isErrorLike,T=E.fullyReadBody,x=E.readableStreamClose,M=E.isomorphicEncode,_=E.urlIsLocal,O=E.urlIsHttpHttpsScheme,Y=E.urlHasHttpsScheme,J=(G=ni("4r42s")).kState,H=G.kHeaders,P=G.kGuard,V=G.kRealm,q=ni("9pkjh").safelyExtractBody,j=(W=ni("3j972")).redirectStatusSet,$=W.nullBodyStatus,X=W.safeMethodsSet,z=W.requestBodyHeader,Z=W.subresourceSet,K=W.DOMException,ee=ni("J3IVZ").kHeadersList,eA=rP.Readable,et=rP.pipeline,en=(er=ni("c7jgd")).addAbortListener,eo=er.isErrored,ei=er.isReadable,es=er.nodeMajor,ea=er.nodeMinor,ec=(el=ni("ldxmf")).dataURLProcessor,eg=el.serializeAMimeType,eE=ni("9UQbL").TransformStream,eu=ni("655rh").getGlobalDispatcher,eh=ni("1xsyj").webidl,eQ=rM.STATUS_CODES;let eR=["GET","HEAD"],eD=globalThis.ReadableStream;class eS extends rG{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing",this.setMaxListeners(21);}terminate(e){var A;"ongoing"===this.state&&(this.state="terminated",null===(A=this.connection)||void 0===A||A.destroy(e),this.emit("terminated",e));}abort(e){var A;"ongoing"===this.state&&(this.state="aborted",e||(e=new K("The operation was aborted.","AbortError")),this.serializedAbortReason=e,null===(A=this.connection)||void 0===A||A.destroy(e),this.emit("terminated",e));}}e.exports={fetch:function(e,A={}){var t,n;let o;eh.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});let i=v();try{o=new c(e,A);}catch(e){return i.reject(e),i.promise;}let s=o[J];if(o.signal.aborted)return ed(i,s,null,o.signal.reason),i.promise;let a=s.client.globalObject;(null==a?void 0:null===(t=a.constructor)||void 0===t?void 0:t.name)==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let l=null,g=!1,E=null;return en(o.signal,()=>{g=!0,rJ(null!=E),E.abort(o.signal.reason),ed(i,s,l,o.signal.reason);}),E=eB({request:s,processResponseEndOfBody:e=>eI(e,"fetch"),processResponse:e=>g?Promise.resolve():e.aborted?(ed(i,s,l,E.serializedAbortReason),Promise.resolve()):"error"===e.type?(i.reject(Object.assign(TypeError("fetch failed"),{cause:e.error})),Promise.resolve()):void((l=new r())[J]=e,l[V]=null,l[H][ee]=e.headersList,l[H][P]="immutable",l[H][V]=null,i.resolve(l)),dispatcher:null!==(n=A.dispatcher)&&void 0!==n?n:eu()}),i.promise;},Fetch:eS,fetching:eB,finalizeAndReportTiming:eI};}),A7("eHlZn",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,T;function x(e){if(e.internalResponse)return Y(x(e.internalResponse),e.type);let A=M({...e,body:null});return null!=e.body&&(A.body=a(e.body)),A;}function M(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new n(e.headersList):new n(),urlList:e.urlList?[...e.urlList]:[]};}function _(e){return M({type:"error",status:0,error:I(e)?e:Error(e?e+"":e),aborted:e&&"AbortError"===e.name});}function O(e,A){return A={internalResponse:e,...A},new Proxy(e,{get:(e,t)=>t in A?A[t]:e[t],set:(e,t,r)=>(rJ(!(t in A)),e[t]=r,!0)});}function Y(e,A){return"basic"===A?O(e,{type:"basic",headersList:e.headersList}):"cors"===A?O(e,{type:"cors",headersList:e.headersList}):"opaque"===A?O(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null}):"opaqueredirect"===A?O(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null}):void rJ(!1);}function G(e,A,t){if(null!==A.status&&(A.status<200||A.status>599))throw RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in A&&null!=A.statusText&&!E(A.statusText+""))throw TypeError("Invalid statusText");if("status"in A&&null!=A.status&&(e[w].status=A.status),"statusText"in A&&null!=A.statusText&&(e[w].statusText=A.statusText),"headers"in A&&null!=A.headers&&o(e[b],A.headers),t){if(p.includes(e.status))throw S.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status});e[w].body=t.body,null==t.type||e[w].headersList.contains("Content-Type")||e[w].headersList.append("content-type",t.type);}}r=(t=ni("5AMIu")).Headers,n=t.HeadersList,o=t.fill,s=(i=ni("9pkjh")).extractBody,a=i.cloneBody,l=i.mixinBody;let{kEnumerableProperty:J}=c=ni("c7jgd");E=(g=ni("guORk")).isValidReasonPhrase,u=g.isCancelled,h=g.isAborted,Q=g.isBlobLike,C=g.serializeJavascriptValueToJSONString,I=g.isErrorLike,d=g.isomorphicEncode,f=(B=ni("3j972")).redirectStatusSet,p=B.nullBodyStatus,y=B.DOMException,w=(m=ni("4r42s")).kState,b=m.kHeaders,R=m.kGuard,D=m.kRealm,S=ni("1xsyj").webidl,v=ni("ltfpn").FormData,k=ni("lLVSA").getGlobalOrigin,N=ni("ldxmf").URLSerializer,L=(F=ni("J3IVZ")).kHeadersList,U=F.kConstruct,T=rH.types;let H=globalThis.ReadableStream||ni("9UQbL").ReadableStream,P=new TextEncoder("utf-8");class V{static error(){let e={settingsObject:{}},A=new V();return A[w]=_(),A[D]=e,A[b][L]=A[w].headersList,A[b][R]="immutable",A[b][D]=e,A;}static json(e,A={}){S.argumentLengthCheck(arguments,1,{header:"Response.json"}),null!==A&&(A=S.converters.ResponseInit(A));let t=s(P.encode(C(e))),r={settingsObject:{}},n=new V();return n[D]=r,n[b][R]="response",n[b][D]=r,G(n,A,{body:t[0],type:"application/json"}),n;}static redirect(e,A=302){let t;let r={settingsObject:{}};S.argumentLengthCheck(arguments,1,{header:"Response.redirect"}),e=S.converters.USVString(e),A=S.converters["unsigned short"](A);try{t=new URL(e,k());}catch(A){throw Object.assign(TypeError("Failed to parse URL from "+e),{cause:A});}if(!f.has(A))throw RangeError("Invalid status code "+A);let n=new V();n[D]=r,n[b][R]="immutable",n[b][D]=r,n[w].status=A;let o=d(N(t));return n[w].headersList.append("location",o),n;}constructor(e=null,A={}){null!==e&&(e=S.converters.BodyInit(e)),A=S.converters.ResponseInit(A),this[D]={settingsObject:{}},this[w]=M({}),this[b]=new r(U),this[b][R]="response",this[b][L]=this[w].headersList,this[b][D]=this[D];let t=null;if(null!=e){let[A,r]=s(e);t={body:A,type:r};}G(this,A,t);}get type(){return S.brandCheck(this,V),this[w].type;}get url(){var e;S.brandCheck(this,V);let A=this[w].urlList,t=null!==(e=A[A.length-1])&&void 0!==e?e:null;return null===t?"":N(t,!0);}get redirected(){return S.brandCheck(this,V),this[w].urlList.length>1;}get status(){return S.brandCheck(this,V),this[w].status;}get ok(){return S.brandCheck(this,V),this[w].status>=200&&this[w].status<=299;}get statusText(){return S.brandCheck(this,V),this[w].statusText;}get headers(){return S.brandCheck(this,V),this[b];}get body(){return S.brandCheck(this,V),this[w].body?this[w].body.stream:null;}get bodyUsed(){return S.brandCheck(this,V),!!this[w].body&&c.isDisturbed(this[w].body.stream);}clone(){if(S.brandCheck(this,V),this.bodyUsed||this.body&&this.body.locked)throw S.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=x(this[w]),A=new V();return A[w]=e,A[D]=this[D],A[b][L]=e.headersList,A[b][R]=this[b][R],A[b][D]=this[b][D],A;}}l(V),Object.defineProperties(V.prototype,{type:J,url:J,status:J,ok:J,redirected:J,statusText:J,headers:J,clone:J,body:J,bodyUsed:J,[Symbol.toStringTag]:{value:"Response",configurable:!0}}),Object.defineProperties(V,{json:J,redirect:J,error:J}),S.converters.ReadableStream=S.interfaceConverter(H),S.converters.FormData=S.interfaceConverter(v),S.converters.URLSearchParams=S.interfaceConverter(URLSearchParams),S.converters.XMLHttpRequestBodyInit=function(e){return"string"==typeof e?S.converters.USVString(e):Q(e)?S.converters.Blob(e,{strict:!1}):T.isArrayBuffer(e)||T.isTypedArray(e)||T.isDataView(e)?S.converters.BufferSource(e):c.isFormDataLike(e)?S.converters.FormData(e,{strict:!1}):e instanceof URLSearchParams?S.converters.URLSearchParams(e):S.converters.DOMString(e);},S.converters.BodyInit=function(e){return e instanceof H?S.converters.ReadableStream(e):(null==e?void 0:e[Symbol.asyncIterator])?e:S.converters.XMLHttpRequestBodyInit(e);},S.converters.ResponseInit=S.dictionaryConverter([{key:"status",converter:S.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:S.converters.ByteString,defaultValue:""},{key:"headers",converter:S.converters.HeadersInit}]),e.exports={makeNetworkError:_,makeResponse:M,makeAppropriateNetworkError:function(e,A=null){return rJ(u(e)),h(e)?_(Object.assign(new y("The operation was aborted.","AbortError"),{cause:A})):_(Object.assign(new y("Request was cancelled."),{cause:A}));},filterResponse:Y,Response:V,cloneResponse:x};}),A7("5AMIu",function(e,A){var t,r,n,o,i,s,a,l,c,g;function E(e){return 10===e||13===e||9===e||32===e;}function u(e){let A=0,t=e.length;for(;t>A&&E(e.charCodeAt(t-1));)--t;for(;t>A&&E(e.charCodeAt(A));)++A;return 0===A&&t===e.length?e:e.substring(A,t);}function h(e,A){if(Array.isArray(A))for(let t=0;t>","record"]});}function Q(e,A,t){if(t=u(t),l(A)){if(!c(t))throw g.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header value"});}else throw g.errors.invalidArgument({prefix:"Headers.append",value:A,type:"header name"});if("immutable"===e[o])throw TypeError("immutable");return e[o],e[r].append(A,t);}r=(t=ni("J3IVZ")).kHeadersList,n=t.kConstruct,o=ni("4r42s").kGuard,i=ni("c7jgd").kEnumerableProperty,a=(s=ni("guORk")).makeIterator,l=s.isValidHeaderName,c=s.isValidHeaderValue,g=ni("1xsyj").webidl;let C=Symbol(),I=Symbol();class d{cookies=null;constructor(e){e instanceof d?(this[C]=new Map(e[C]),this[I]=e[I],this.cookies=null===e.cookies?null:[...e.cookies]):(this[C]=new Map(e),this[I]=null);}contains(e){return e=e.toLowerCase(),this[C].has(e);}clear(){this[C].clear(),this[I]=null,this.cookies=null;}append(e,A){this[I]=null;let t=e.toLowerCase(),r=this[C].get(t);if(r){let e="cookie"===t?"; ":", ";this[C].set(t,{name:r.name,value:`${r.value}${e}${A}`});}else this[C].set(t,{name:e,value:A});if("set-cookie"===t){var n;null!==(n=this.cookies)&&void 0!==n||(this.cookies=[]),this.cookies.push(A);}}set(e,A){this[I]=null;let t=e.toLowerCase();"set-cookie"===t&&(this.cookies=[A]),this[C].set(t,{name:e,value:A});}delete(e){this[I]=null,"set-cookie"===(e=e.toLowerCase())&&(this.cookies=null),this[C].delete(e);}get(e){let A=this[C].get(e.toLowerCase());return void 0===A?null:A.value;}*[Symbol.iterator](){for(let[e,{value:A}]of this[C])yield[e,A];}get entries(){let e={};if(this[C].size)for(let{name:A,value:t}of this[C].values())e[A]=t;return e;}}class B{constructor(e){if(e===n)return;this[r]=new d(),this[o]="none",void 0!==e&&h(this,e=g.converters.HeadersInit(e));}append(e,A){return g.brandCheck(this,B),g.argumentLengthCheck(arguments,2,{header:"Headers.append"}),e=g.converters.ByteString(e),A=g.converters.ByteString(A),Q(this,e,A);}delete(e){if(g.brandCheck(this,B),g.argumentLengthCheck(arguments,1,{header:"Headers.delete"}),e=g.converters.ByteString(e),!l(e))throw g.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if("immutable"===this[o])throw TypeError("immutable");this[o],this[r].contains(e)&&this[r].delete(e);}get(e){if(g.brandCheck(this,B),g.argumentLengthCheck(arguments,1,{header:"Headers.get"}),e=g.converters.ByteString(e),!l(e))throw g.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"});return this[r].get(e);}has(e){if(g.brandCheck(this,B),g.argumentLengthCheck(arguments,1,{header:"Headers.has"}),e=g.converters.ByteString(e),!l(e))throw g.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"});return this[r].contains(e);}set(e,A){if(g.brandCheck(this,B),g.argumentLengthCheck(arguments,2,{header:"Headers.set"}),e=g.converters.ByteString(e),A=u(A=g.converters.ByteString(A)),l(e)){if(!c(A))throw g.errors.invalidArgument({prefix:"Headers.set",value:A,type:"header value"});}else throw g.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"});if("immutable"===this[o])throw TypeError("immutable");this[o],this[r].set(e,A);}getSetCookie(){g.brandCheck(this,B);let e=this[r].cookies;return e?[...e]:[];}get[I](){if(this[r][I])return this[r][I];let e=[],A=[...this[r]].sort((e,A)=>e[0]e,"Headers","key");}return a(()=>[...this[I].values()],"Headers","key");}values(){if(g.brandCheck(this,B),"immutable"===this[o]){let e=this[I];return a(()=>e,"Headers","value");}return a(()=>[...this[I].values()],"Headers","value");}entries(){if(g.brandCheck(this,B),"immutable"===this[o]){let e=this[I];return a(()=>e,"Headers","key+value");}return a(()=>[...this[I].values()],"Headers","key+value");}forEach(e,A=globalThis){if(g.brandCheck(this,B),g.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),"function"!=typeof e)throw TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.");for(let[t,r]of this)e.apply(A,[r,t,this]);}[Symbol.for("nodejs.util.inspect.custom")](){return g.brandCheck(this,B),this[r];}}B.prototype[Symbol.iterator]=B.prototype.entries,Object.defineProperties(B.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0}}),g.converters.HeadersInit=function(e){if("Object"===g.util.Type(e))return e[Symbol.iterator]?g.converters["sequence>"](e):g.converters["record"](e);throw g.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]});},e.exports={fill:h,Headers:B,HeadersList:d};}),A7("drJZA",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,T,x,M,_,O,Y,G;function J(e){let A={method:"GET",localURLsOnly:!1,unsafeRequest:!1,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:!1,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:!1,credentials:"same-origin",useCredentials:!1,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:!1,historyNavigation:!1,userActivation:!1,taintedOrigin:!1,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:!1,done:!1,timingAllowFailed:!1,...e,headersList:e.headersList?new l(e.headersList):new l()};return A.url=A.urlList[0],A;}r=(t=ni("9pkjh")).extractBody,n=t.mixinBody,o=t.cloneBody,s=(i=ni("5AMIu")).Headers,a=i.fill,l=i.HeadersList;let{FinalizationRegistry:H}=ni("az7FD")();c=ni("c7jgd"),E=(g=ni("guORk")).isValidHTTPToken,u=g.sameOrigin,h=g.normalizeMethod,Q=g.makePolicyContainer,C=g.normalizeMethodRecord,d=(I=ni("3j972")).forbiddenMethodsSet,B=I.corsSafeListedMethodsSet,f=I.referrerPolicy,p=I.requestRedirect,y=I.requestMode,m=I.requestCredentials,w=I.requestCache,b=I.requestDuplex;let{kEnumerableProperty:P}=c;D=(R=ni("4r42s")).kHeaders,S=R.kSignal,v=R.kState,k=R.kGuard,N=R.kRealm,F=ni("1xsyj").webidl,L=ni("lLVSA").getGlobalOrigin,U=ni("ldxmf").URLSerializer,x=(T=ni("J3IVZ")).kHeadersList,M=T.kConstruct,_=rG.getMaxListeners,O=rG.setMaxListeners,Y=rG.getEventListeners,G=rG.defaultMaxListeners;let V=globalThis.TransformStream,q=Symbol(),W=new H(({signal:e,abort:A})=>{e.removeEventListener("abort",A);});class j{constructor(e,A={}){var t,n,o;let i;if(e===M)return;F.argumentLengthCheck(arguments,1,{header:"Request constructor"}),e=F.converters.RequestInfo(e),A=F.converters.RequestInit(A),this[N]={settingsObject:{baseUrl:L(),get origin(){var g;return null===(g=this.baseUrl)||void 0===g?void 0:g.origin;},policyContainer:Q()}};let I=null,f=null,p=this[N].settingsObject.baseUrl,y=null;if("string"==typeof e){let A;try{A=new URL(e,p);}catch(A){throw TypeError("Failed to parse URL from "+e,{cause:A});}if(A.username||A.password)throw TypeError("Request cannot be constructed from a URL that includes credentials: "+e);I=J({urlList:[A]}),f="cors";}else rJ(e instanceof j),I=e[v],y=e[S];let m=this[N].settingsObject.origin,w="client";if((null===(n=I.window)||void 0===n?void 0:null===(t=n.constructor)||void 0===t?void 0:t.name)==="EnvironmentSettingsObject"&&u(I.window,m)&&(w=I.window),null!=A.window)throw TypeError(`'window' option '${w}' must be null`);"window"in A&&(w="no-window"),I=J({method:I.method,headersList:I.headersList,unsafeRequest:I.unsafeRequest,client:this[N].settingsObject,window:w,priority:I.priority,origin:I.origin,referrer:I.referrer,referrerPolicy:I.referrerPolicy,mode:I.mode,credentials:I.credentials,cache:I.cache,redirect:I.redirect,integrity:I.integrity,keepalive:I.keepalive,reloadNavigation:I.reloadNavigation,historyNavigation:I.historyNavigation,urlList:[...I.urlList]});let b=0!==Object.keys(A).length;if(b&&("navigate"===I.mode&&(I.mode="same-origin"),I.reloadNavigation=!1,I.historyNavigation=!1,I.origin="client",I.referrer="client",I.referrerPolicy="",I.url=I.urlList[I.urlList.length-1],I.urlList=[I.url]),void 0!==A.referrer){let e=A.referrer;if(""===e)I.referrer="no-referrer";else{let A;try{A=new URL(e,p);}catch(A){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:A});}"about:"===A.protocol&&"client"===A.hostname||m&&!u(A,this[N].settingsObject.baseUrl)?I.referrer="client":I.referrer=A;}}if(void 0!==A.referrerPolicy&&(I.referrerPolicy=A.referrerPolicy),"navigate"===(i=void 0!==A.mode?A.mode:f))throw F.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(null!=i&&(I.mode=i),void 0!==A.credentials&&(I.credentials=A.credentials),void 0!==A.cache&&(I.cache=A.cache),"only-if-cached"===I.cache&&"same-origin"!==I.mode)throw TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(void 0!==A.redirect&&(I.redirect=A.redirect),null!=A.integrity&&(I.integrity=A.integrity+""),void 0!==A.keepalive&&(I.keepalive=!!A.keepalive),void 0!==A.method){let e=A.method;if(!E(e))throw TypeError(`'${e}' is not a valid HTTP method.`);if(d.has(e.toUpperCase()))throw TypeError(`'${e}' HTTP method is unsupported.`);e=null!==(o=C[e])&&void 0!==o?o:h(e),I.method=e;}void 0!==A.signal&&(y=A.signal),this[v]=I;let R=new AbortController();if(this[S]=R.signal,this[S][N]=this[N],null!=y){if(!y||"boolean"!=typeof y.aborted||"function"!=typeof y.addEventListener)throw TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(y.aborted)R.abort(y.reason);else{this[q]=R;let e=new WeakRef(R),A=function(){let A=e.deref();void 0!==A&&A.abort(this.reason);};try{"function"==typeof _&&_(y)===G?O(100,y):Y(y,"abort").length>=G&&O(100,y);}catch{}c.addAbortListener(y,A),W.register(R,{signal:y,abort:A});}}if(this[D]=new s(M),this[D][x]=I.headersList,this[D][k]="request",this[D][N]=this[N],"no-cors"===i){if(!B.has(I.method))throw TypeError(`'${I.method} is unsupported in no-cors mode.`);this[D][k]="request-no-cors";}if(b){let e=this[D][x],t=void 0!==A.headers?A.headers:new l(e);if(e.clear(),t instanceof l){for(let[A,r]of t)e.append(A,r);e.cookies=t.cookies;}else a(this[D],t);}let U=e instanceof j?e[v].body:null;if((null!=A.body||null!=U)&&("GET"===I.method||"HEAD"===I.method))throw TypeError("Request with GET/HEAD method cannot have body.");let T=null;if(null!=A.body){let[e,t]=r(A.body,I.keepalive);T=e,t&&!this[D][x].contains("content-type")&&this[D].append("content-type",t);}let H=null!=T?T:U;if(null!=H&&null==H.source){if(null!=T&&null==A.duplex)throw TypeError("RequestInit: duplex option is required when sending a body.");if("same-origin"!==I.mode&&"cors"!==I.mode)throw TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');I.useCORSPreflightFlag=!0;}let P=H;if(null==T&&null!=U){if(c.isDisturbed(U.stream)||U.stream.locked)throw TypeError("Cannot construct a Request with a Request object that has already been used.");V||(V=ni("9UQbL").TransformStream);let e=new V();U.stream.pipeThrough(e),P={source:U.source,length:U.length,stream:e.readable};}this[v].body=P;}get method(){return F.brandCheck(this,j),this[v].method;}get url(){return F.brandCheck(this,j),U(this[v].url);}get headers(){return F.brandCheck(this,j),this[D];}get destination(){return F.brandCheck(this,j),this[v].destination;}get referrer(){return(F.brandCheck(this,j),"no-referrer"===this[v].referrer)?"":"client"===this[v].referrer?"about:client":this[v].referrer.toString();}get referrerPolicy(){return F.brandCheck(this,j),this[v].referrerPolicy;}get mode(){return F.brandCheck(this,j),this[v].mode;}get credentials(){return this[v].credentials;}get cache(){return F.brandCheck(this,j),this[v].cache;}get redirect(){return F.brandCheck(this,j),this[v].redirect;}get integrity(){return F.brandCheck(this,j),this[v].integrity;}get keepalive(){return F.brandCheck(this,j),this[v].keepalive;}get isReloadNavigation(){return F.brandCheck(this,j),this[v].reloadNavigation;}get isHistoryNavigation(){return F.brandCheck(this,j),this[v].historyNavigation;}get signal(){return F.brandCheck(this,j),this[S];}get body(){return F.brandCheck(this,j),this[v].body?this[v].body.stream:null;}get bodyUsed(){return F.brandCheck(this,j),!!this[v].body&&c.isDisturbed(this[v].body.stream);}get duplex(){return F.brandCheck(this,j),"half";}clone(){var e;if(F.brandCheck(this,j),this.bodyUsed||(null===(e=this.body)||void 0===e?void 0:e.locked))throw TypeError("unusable");let A=function(e){let A=J({...e,body:null});return null!=e.body&&(A.body=o(e.body)),A;}(this[v]),t=new j(M);t[v]=A,t[N]=this[N],t[D]=new s(M),t[D][x]=A.headersList,t[D][k]=this[D][k],t[D][N]=this[D][N];let r=new AbortController();return this.signal.aborted?r.abort(this.signal.reason):c.addAbortListener(this.signal,()=>{r.abort(this.signal.reason);}),t[S]=r.signal,t;}}n(j),Object.defineProperties(j.prototype,{method:P,url:P,headers:P,redirect:P,clone:P,signal:P,duplex:P,destination:P,body:P,bodyUsed:P,isHistoryNavigation:P,isReloadNavigation:P,keepalive:P,integrity:P,cache:P,credentials:P,attribute:P,referrerPolicy:P,referrer:P,mode:P,[Symbol.toStringTag]:{value:"Request",configurable:!0}}),F.converters.Request=F.interfaceConverter(j),F.converters.RequestInfo=function(e){return"string"==typeof e?F.converters.USVString(e):e instanceof j?F.converters.Request(e):F.converters.USVString(e);},F.converters.AbortSignal=F.interfaceConverter(AbortSignal),F.converters.RequestInit=F.dictionaryConverter([{key:"method",converter:F.converters.ByteString},{key:"headers",converter:F.converters.HeadersInit},{key:"body",converter:F.nullableConverter(F.converters.BodyInit)},{key:"referrer",converter:F.converters.USVString},{key:"referrerPolicy",converter:F.converters.DOMString,allowedValues:f},{key:"mode",converter:F.converters.DOMString,allowedValues:y},{key:"credentials",converter:F.converters.DOMString,allowedValues:m},{key:"cache",converter:F.converters.DOMString,allowedValues:w},{key:"redirect",converter:F.converters.DOMString,allowedValues:p},{key:"integrity",converter:F.converters.DOMString},{key:"keepalive",converter:F.converters.boolean},{key:"signal",converter:F.nullableConverter(e=>F.converters.AbortSignal(e,{strict:!1}))},{key:"window",converter:F.converters.any},{key:"duplex",converter:F.converters.DOMString,allowedValues:b}]),e.exports={Request:j,makeRequest:J};}),A7("irzcX",function(e,A){var t=ni("casaZ"),r=t.staticPropertyDescriptors,n=t.readOperation,o=t.fireAProgressEvent,i=ni("bXrXJ"),s=i.kState,a=i.kError,l=i.kResult,c=i.kEvents,g=i.kAborted,E=ni("1xsyj").webidl,u=ni("c7jgd").kEnumerableProperty;class h extends EventTarget{constructor(){super(),this[s]="empty",this[l]=null,this[a]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null};}readAsArrayBuffer(e){E.brandCheck(this,h),E.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"}),n(this,e=E.converters.Blob(e,{strict:!1}),"ArrayBuffer");}readAsBinaryString(e){E.brandCheck(this,h),E.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"}),n(this,e=E.converters.Blob(e,{strict:!1}),"BinaryString");}readAsText(e,A){E.brandCheck(this,h),E.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"}),e=E.converters.Blob(e,{strict:!1}),void 0!==A&&(A=E.converters.DOMString(A)),n(this,e,"Text",A);}readAsDataURL(e){E.brandCheck(this,h),E.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"}),n(this,e=E.converters.Blob(e,{strict:!1}),"DataURL");}abort(){if("empty"===this[s]||"done"===this[s]){this[l]=null;return;}"loading"===this[s]&&(this[s]="done",this[l]=null),this[g]=!0,o("abort",this),"loading"!==this[s]&&o("loadend",this);}get readyState(){switch(E.brandCheck(this,h),this[s]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE;}}get result(){return E.brandCheck(this,h),this[l];}get error(){return E.brandCheck(this,h),this[a];}get onloadend(){return E.brandCheck(this,h),this[c].loadend;}set onloadend(e){E.brandCheck(this,h),this[c].loadend&&this.removeEventListener("loadend",this[c].loadend),"function"==typeof e?(this[c].loadend=e,this.addEventListener("loadend",e)):this[c].loadend=null;}get onerror(){return E.brandCheck(this,h),this[c].error;}set onerror(e){E.brandCheck(this,h),this[c].error&&this.removeEventListener("error",this[c].error),"function"==typeof e?(this[c].error=e,this.addEventListener("error",e)):this[c].error=null;}get onloadstart(){return E.brandCheck(this,h),this[c].loadstart;}set onloadstart(e){E.brandCheck(this,h),this[c].loadstart&&this.removeEventListener("loadstart",this[c].loadstart),"function"==typeof e?(this[c].loadstart=e,this.addEventListener("loadstart",e)):this[c].loadstart=null;}get onprogress(){return E.brandCheck(this,h),this[c].progress;}set onprogress(e){E.brandCheck(this,h),this[c].progress&&this.removeEventListener("progress",this[c].progress),"function"==typeof e?(this[c].progress=e,this.addEventListener("progress",e)):this[c].progress=null;}get onload(){return E.brandCheck(this,h),this[c].load;}set onload(e){E.brandCheck(this,h),this[c].load&&this.removeEventListener("load",this[c].load),"function"==typeof e?(this[c].load=e,this.addEventListener("load",e)):this[c].load=null;}get onabort(){return E.brandCheck(this,h),this[c].abort;}set onabort(e){E.brandCheck(this,h),this[c].abort&&this.removeEventListener("abort",this[c].abort),"function"==typeof e?(this[c].abort=e,this.addEventListener("abort",e)):this[c].abort=null;}}h.EMPTY=h.prototype.EMPTY=0,h.LOADING=h.prototype.LOADING=1,h.DONE=h.prototype.DONE=2,Object.defineProperties(h.prototype,{EMPTY:r,LOADING:r,DONE:r,readAsArrayBuffer:u,readAsBinaryString:u,readAsText:u,readAsDataURL:u,abort:u,readyState:u,result:u,error:u,onloadstart:u,onprogress:u,onload:u,onabort:u,onerror:u,onloadend:u,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(h,{EMPTY:r,LOADING:r,DONE:r}),e.exports={FileReader:h};}),A7("casaZ",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C;function I(e,A){let t=new a(e,{bubbles:!1,cancelable:!1});A.dispatchEvent(t);}function d(e){let A=e.reduce((e,A)=>e+A.byteLength,0),t=0;return e.reduce((e,A)=>(e.set(A,t),t+=A.byteLength,e),new Uint8Array(A));}r=(t=ni("bXrXJ")).kState,n=t.kError,o=t.kResult,i=t.kAborted,s=t.kLastProgressEventFired,a=ni("bKf8M").ProgressEvent,l=ni("9wMVR").getEncoding,c=ni("3j972").DOMException,E=(g=ni("ldxmf")).serializeAMimeType,u=g.parseMIMEType,h=rH.types,Q=r2.StringDecoder,C=rV.btoa,e.exports={staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},readOperation:function(e,A,t,a){if("loading"===e[r])throw new c("Invalid state","InvalidStateError");e[r]="loading",e[o]=null,e[n]=null;let g=A.stream().getReader(),B=[],f=g.read(),p=!0;(async()=>{for(;!e[i];)try{let{done:c,value:y}=await f;if(p&&!e[i]&&queueMicrotask(()=>{I("loadstart",e);}),p=!1,!c&&h.isUint8Array(y))B.push(y),(void 0===e[s]||Date.now()-e[s]>=50)&&!e[i]&&(e[s]=Date.now(),queueMicrotask(()=>{I("progress",e);})),f=g.read();else if(c){queueMicrotask(()=>{e[r]="done";try{let r=function(e,A,t,r){switch(A){case"DataURL":{let A="data:",r=u(t||"application/octet-stream");"failure"!==r&&(A+=E(r)),A+=";base64,";let n=new Q("latin1");for(let t of e)A+=C(n.write(t));return A+=C(n.end());}case"Text":{let A="failure";if(r&&(A=l(r)),"failure"===A&&t){let e=u(t);"failure"!==e&&(A=l(e.parameters.get("charset")));}return"failure"===A&&(A="UTF-8"),function(e,A){let t=d(e),r=function(e){let[A,t,r]=e;return 239===A&&187===t&&191===r?"UTF-8":254===A&&255===t?"UTF-16BE":255===A&&254===t?"UTF-16LE":null;}(t),n=0;null!==r&&(A=r,n="UTF-8"===r?3:2);let o=t.slice(n);return new TextDecoder(A).decode(o);}(e,A);}case"ArrayBuffer":return d(e).buffer;case"BinaryString":{let A="",t=new Q("latin1");for(let r of e)A+=t.write(r);return A+=t.end();}}}(B,t,A.type,a);if(e[i])return;e[o]=r,I("load",e);}catch(A){e[n]=A,I("error",e);}"loading"!==e[r]&&I("loadend",e);});break;}}catch(A){if(e[i])return;queueMicrotask(()=>{e[r]="done",e[n]=A,I("error",e),"loading"!==e[r]&&I("loadend",e);});break;}})();},fireAProgressEvent:I};}),A7("bXrXJ",function(e,A){e.exports={kState:Symbol(),kResult:Symbol(),kError:Symbol(),kLastProgressEventFired:Symbol(),kEvents:Symbol(),kAborted:Symbol()};}),A7("bKf8M",function(e,A){var t=ni("1xsyj").webidl;let r=Symbol();class n extends Event{constructor(e,A={}){super(e=t.converters.DOMString(e),A=t.converters.ProgressEventInit(null!=A?A:{})),this[r]={lengthComputable:A.lengthComputable,loaded:A.loaded,total:A.total};}get lengthComputable(){return t.brandCheck(this,n),this[r].lengthComputable;}get loaded(){return t.brandCheck(this,n),this[r].loaded;}get total(){return t.brandCheck(this,n),this[r].total;}}t.converters.ProgressEventInit=t.dictionaryConverter([{key:"lengthComputable",converter:t.converters.boolean,defaultValue:!1},{key:"loaded",converter:t.converters["unsigned long long"],defaultValue:0},{key:"total",converter:t.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:t.converters.boolean,defaultValue:!1},{key:"cancelable",converter:t.converters.boolean,defaultValue:!1},{key:"composed",converter:t.converters.boolean,defaultValue:!1}]),e.exports={ProgressEvent:n};}),A7("9wMVR",function(e,A){e.exports={getEncoding:function(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure";}}};}),A7("7LQt9",function(e,A){var t=ni("4Hdrt").kConstruct,r=ni("6v0lC").Cache,n=ni("1xsyj").webidl,o=ni("c7jgd").kEnumerableProperty;class i{#e=new Map();constructor(){arguments[0]!==t&&n.illegalConstructor();}async match(e,A={}){if(n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),e=n.converters.RequestInfo(e),null!=(A=n.converters.MultiCacheQueryOptions(A)).cacheName){if(this.#e.has(A.cacheName)){let n=new r(t,this.#e.get(A.cacheName));return await n.match(e,A);}}else for(let n of this.#e.values()){let o=new r(t,n),i=await o.match(e,A);if(void 0!==i)return i;}}async has(e){return n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),e=n.converters.DOMString(e),this.#e.has(e);}async open(e){if(n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),e=n.converters.DOMString(e),this.#e.has(e))return new r(t,this.#e.get(e));let A=[];return this.#e.set(e,A),new r(t,A);}async delete(e){return n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),e=n.converters.DOMString(e),this.#e.delete(e);}async keys(){return n.brandCheck(this,i),[...this.#e.keys()];}}Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:o,has:o,open:o,delete:o,keys:o}),e.exports={CacheStorage:i};}),A7("4Hdrt",function(e,A){e.exports={kConstruct:ni("J3IVZ").kConstruct};}),A7("6v0lC",function(e,A){var t=ni("4Hdrt").kConstruct,r=ni("2VKVe"),n=r.urlEquals,o=r.fieldValues,i=ni("c7jgd"),s=i.kEnumerableProperty,a=i.isDisturbed,l=ni("J3IVZ").kHeadersList,c=ni("1xsyj").webidl,g=ni("eHlZn"),E=g.Response,u=g.cloneResponse,h=ni("drJZA").Request,Q=ni("4r42s"),C=Q.kState,I=Q.kHeaders,d=Q.kGuard,B=Q.kRealm,f=ni("knv0l").fetching,p=ni("guORk"),y=p.urlIsHttpHttpsScheme,m=p.createDeferredPromise,w=p.readAllBytes,b=ni("655rh").getGlobalDispatcher;var _A=/*#__PURE__*/new WeakMap();var _R_brand=/*#__PURE__*/new WeakSet();class R{constructor(){_classPrivateMethodInitSpec(this,_R_brand);_classPrivateFieldInitSpec(this,_A,void 0);arguments[0]!==t&&c.illegalConstructor(),_classPrivateFieldSet(_A,this,arguments[1]);}async match(e,A={}){c.brandCheck(this,R),c.argumentLengthCheck(arguments,1,{header:"Cache.match"}),e=c.converters.RequestInfo(e),A=c.converters.CacheQueryOptions(A);let t=await this.matchAll(e,A);if(0!==t.length)return t[0];}async matchAll(e,A={}){c.brandCheck(this,R),void 0!==e&&(e=c.converters.RequestInfo(e)),A=c.converters.CacheQueryOptions(A);let t=null;if(void 0!==e){if(e instanceof h){if("GET"!==(t=e[C]).method&&!A.ignoreMethod)return[];}else"string"==typeof e&&(t=new h(e)[C]);}let r=[];if(void 0===e)for(let e of _classPrivateFieldGet(_A,this))r.push(e[1]);else for(let e of _assertClassBrand(_R_brand,this,_t).call(this,t,A))r.push(e[1]);let n=[];for(let e of r){var o,i;let A=new E(null!==(i=null===(o=e.body)||void 0===o?void 0:o.source)&&void 0!==i?i:null),t=A[C].body;A[C]=e,A[C].body=t,A[I][l]=e.headersList,A[I][d]="immutable",n.push(A);}return Object.freeze(n);}async add(e){c.brandCheck(this,R),c.argumentLengthCheck(arguments,1,{header:"Cache.add"});let A=[e=c.converters.RequestInfo(e)],t=this.addAll(A);return await t;}async addAll(e){c.brandCheck(this,R),c.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});let A=[],t=[];for(let A of e=c.converters["sequence"](e)){if("string"==typeof A)continue;let e=A[C];if(!y(e.url)||"GET"!==e.method)throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."});}let r=[];for(let n of e){let e=new h(n)[C];if(!y(e.url))throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."});e.initiator="fetch",e.destination="subresource",t.push(e);let i=m();r.push(f({request:e,dispatcher:b(),processResponse(e){if("error"===e.type||206===e.status||e.status<200||e.status>299)i.reject(c.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(e.headersList.contains("vary")){for(let A of o(e.headersList.get("vary")))if("*"===A){for(let e of(i.reject(c.errors.exception({header:"Cache.addAll",message:"invalid vary field value"})),r))e.abort();return;}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return;}i.resolve(e);}})),A.push(i.promise);}let n=Promise.all(A),i=await n,s=[],a=0;for(let e of i){let A={type:"put",request:t[a],response:e};s.push(A),a++;}let l=m(),g=null;try{_assertClassBrand(_R_brand,this,_r).call(this,s);}catch(e){g=e;}return queueMicrotask(()=>{null===g?l.resolve(void 0):l.reject(g);}),l.promise;}async put(e,A){c.brandCheck(this,R),c.argumentLengthCheck(arguments,2,{header:"Cache.put"}),e=c.converters.RequestInfo(e),A=c.converters.Response(A);let t=null;if(!y((t=e instanceof h?e[C]:new h(e)[C]).url)||"GET"!==t.method)throw c.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"});let r=A[C];if(206===r.status)throw c.errors.exception({header:"Cache.put",message:"Got 206 status"});if(r.headersList.contains("vary")){for(let e of o(r.headersList.get("vary")))if("*"===e)throw c.errors.exception({header:"Cache.put",message:"Got * vary field value"});}if(r.body&&(a(r.body.stream)||r.body.stream.locked))throw c.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"});let n=u(r),i=m();null!=r.body?w(r.body.stream.getReader()).then(i.resolve,i.reject):i.resolve(void 0);let s=[],l={type:"put",request:t,response:n};s.push(l);let g=await i.promise;null!=n.body&&(n.body.source=g);let E=m(),Q=null;try{_assertClassBrand(_R_brand,this,_r).call(this,s);}catch(e){Q=e;}return queueMicrotask(()=>{null===Q?E.resolve():E.reject(Q);}),E.promise;}async delete(e,A={}){let t;c.brandCheck(this,R),c.argumentLengthCheck(arguments,1,{header:"Cache.delete"}),e=c.converters.RequestInfo(e),A=c.converters.CacheQueryOptions(A);let r=null;if(e instanceof h){if("GET"!==(r=e[C]).method&&!A.ignoreMethod)return!1;}else rJ("string"==typeof e),r=new h(e)[C];let n=[],o={type:"delete",request:r,options:A};n.push(o);let i=m(),s=null;try{t=_assertClassBrand(_R_brand,this,_r).call(this,n);}catch(e){s=e;}return queueMicrotask(()=>{null===s?i.resolve(!!(null==t?void 0:t.length)):i.reject(s);}),i.promise;}async keys(e,A={}){c.brandCheck(this,R),void 0!==e&&(e=c.converters.RequestInfo(e)),A=c.converters.CacheQueryOptions(A);let t=null;if(void 0!==e){if(e instanceof h){if("GET"!==(t=e[C]).method&&!A.ignoreMethod)return[];}else"string"==typeof e&&(t=new h(e)[C]);}let r=m(),n=[];if(void 0===e)for(let e of _classPrivateFieldGet(_A,this))n.push(e[0]);else for(let e of _assertClassBrand(_R_brand,this,_t).call(this,t,A))n.push(e[0]);return queueMicrotask(()=>{let e=[];for(let A of n){let t=new h("https://a");t[C]=A,t[I][l]=A.headersList,t[I][d]="immutable",t[B]=A.client,e.push(t);}r.resolve(Object.freeze(e));}),r.promise;}}function _r(e){let A=_classPrivateFieldGet(_A,this),t=[...A],r=[],n=[];try{for(let t of e){let e;if("delete"!==t.type&&"put"!==t.type)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if("delete"===t.type&&null!=t.response)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(_assertClassBrand(_R_brand,this,_t).call(this,t.request,t.options,r).length)throw new DOMException("???","InvalidStateError");if("delete"===t.type){if(e=_assertClassBrand(_R_brand,this,_t).call(this,t.request,t.options),0===e.length)return[];for(let t of e){let e=A.indexOf(t);rJ(-1!==e),A.splice(e,1);}}else if("put"===t.type){if(null==t.response)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let n=t.request;if(!y(n.url))throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if("GET"!==n.method)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(null!=t.options)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});for(let r of e=_assertClassBrand(_R_brand,this,_t).call(this,t.request)){let e=A.indexOf(r);rJ(-1!==e),A.splice(e,1);}A.push([t.request,t.response]),r.push([t.request,t.response]);}n.push([t.request,t.response]);}return n;}catch(e){throw _classPrivateFieldGet(_A,this).length=0,_classPrivateFieldSet(_A,this,t),e;}}function _t(e,A,t){let r=[];for(let n of null!=t?t:_classPrivateFieldGet(_A,this)){let[t,o]=n;_assertClassBrand(_R_brand,this,_n).call(this,e,t,o,A)&&r.push(n);}return r;}function _n(e,A,t=null,r){let i=new URL(e.url),s=new URL(A.url);if((null==r?void 0:r.ignoreSearch)&&(s.search="",i.search=""),!n(i,s,!0))return!1;if(null==t||(null==r?void 0:r.ignoreVary)||!t.headersList.contains("vary"))return!0;for(let r of o(t.headersList.get("vary")))if("*"===r||A.headersList.get(r)!==e.headersList.get(r))return!1;return!0;}Object.defineProperties(R.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:s,matchAll:s,add:s,addAll:s,put:s,delete:s,keys:s});let D=[{key:"ignoreSearch",converter:c.converters.boolean,defaultValue:!1},{key:"ignoreMethod",converter:c.converters.boolean,defaultValue:!1},{key:"ignoreVary",converter:c.converters.boolean,defaultValue:!1}];c.converters.CacheQueryOptions=c.dictionaryConverter(D),c.converters.MultiCacheQueryOptions=c.dictionaryConverter([...D,{key:"cacheName",converter:c.converters.DOMString}]),c.converters.Response=c.interfaceConverter(E),c.converters["sequence"]=c.sequenceConverter(c.converters.RequestInfo),e.exports={Cache:R};}),A7("2VKVe",function(e,A){var t,r;t=ni("ldxmf").URLSerializer,r=ni("guORk").isValidHeaderName,e.exports={urlEquals:function(e,A,r=!1){return t(e,r)===t(A,r);},fieldValues:function(e){rJ(null!==e);let A=[];for(let t of e.split(",")){if((t=t.trim()).length)r(t)&&A.push(t);}return A;}};}),A7("bkPeE",function(e,A){var t,r,n,o,i,s;function a(e,A){i.argumentLengthCheck(arguments,2,{header:"setCookie"}),i.brandCheck(e,s,{strict:!1}),A=i.converters.Cookie(A),n(A)&&e.append("Set-Cookie",n(A));}t=ni("9yEbL").parseSetCookie,n=(r=ni("lAbMi")).stringify,o=r.getHeadersList,i=ni("1xsyj").webidl,s=ni("5AMIu").Headers,i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter(e=>"number"==typeof e?i.converters["unsigned long long"](e):new Date(e)),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]),e.exports={getCookies:function(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"}),i.brandCheck(e,s,{strict:!1});let A=e.get("cookie"),t={};if(!A)return t;for(let e of A.split(";")){let[A,...r]=e.split("=");t[A.trim()]=r.join("=");}return t;},deleteCookie:function(e,A,t){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"}),i.brandCheck(e,s,{strict:!1}),A=i.converters.DOMString(A),t=i.converters.DeleteCookieAttributes(t),a(e,{name:A,value:"",expires:new Date(0),...t});},getSetCookies:function(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"}),i.brandCheck(e,s,{strict:!1});let A=o(e).cookies;return A?A.map(e=>t(Array.isArray(e)?e[1]:e)):[];},setCookie:a};}),A7("9yEbL",function(e,A){var t,r,n,o,i;function s(e,A={}){if(0===e.length)return A;rJ(";"===e[0]);let t="";(e=e.slice(1)).includes(";")?(t=i(";",e,{position:0}),e=e.slice(t.length)):(t=e,e="");let r="",o="";if(t.includes("=")){let e={position:0};r=i("=",t,e),o=t.slice(e.position+1);}else r=t;if(r=r.trim(),(o=o.trim()).length>n)return s(e,A);let a=r.toLowerCase();if("expires"===a){let e=new Date(o);A.expires=e;}else if("max-age"===a){let t=o.charCodeAt(0);if((t<48||t>57)&&"-"!==o[0]||!/^\d+$/.test(o))return s(e,A);let r=+o;A.maxAge=r;}else if("domain"===a){let e=o;"."===e[0]&&(e=e.slice(1)),e=e.toLowerCase(),A.domain=e;}else if("path"===a){let e="";e=0===o.length||"/"!==o[0]?"/":o,A.path=e;}else if("secure"===a)A.secure=!0;else if("httponly"===a)A.httpOnly=!0;else if("samesite"===a){let e="Default",t=o.toLowerCase();t.includes("none")&&(e="None"),t.includes("strict")&&(e="Strict"),t.includes("lax")&&(e="Lax"),A.sameSite=e;}else{var l;null!==(l=A.unparsed)&&void 0!==l||(A.unparsed=[]),A.unparsed.push(`${r}=${o}`);}return s(e,A);}r=(t=ni("cyhL8")).maxNameValuePairSize,n=t.maxAttributeValueSize,o=ni("lAbMi").isCTLExcludingHtab,i=ni("ldxmf").collectASequenceOfCodePointsFast,e.exports={parseSetCookie:function(e){if(o(e))return null;let A="",t="",n="",a="";if(e.includes(";")){let r={position:0};A=i(";",e,r),t=e.slice(r.position);}else A=e;if(A.includes("=")){let e={position:0};n=i("=",A,e),a=A.slice(e.position+1);}else a=A;return(n=n.trim(),a=a.trim(),n.length+a.length>r)?null:{name:n,value:a,...s(t)};},parseUnparsedAttributes:s};}),A7("cyhL8",function(e,A){e.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096};}),A7("lAbMi",function(e,A){var t;let r;t=ni("J3IVZ").kHeadersList,e.exports={isCTLExcludingHtab:function(e){if(0===e.length)return!1;for(let A of e){let e=A.charCodeAt(0);if(e>=0||e<=8||e>=10||e<=31||127===e)return!1;}},stringify:function(e){if(0===e.name.length)return null;(function(e){for(let A of e){let e=A.charCodeAt(0);if(e<=32||e>127||"("===A||")"===A||">"===A||"<"===A||"@"===A||","===A||";"===A||":"===A||"\\"===A||'"'===A||"/"===A||"["===A||"]"===A||"?"===A||"="===A||"{"===A||"}"===A)throw Error("Invalid cookie name");}})(e.name),function(e){for(let A of e){let e=A.charCodeAt(0);if(e<33||34===e||44===e||59===e||92===e||e>126)throw Error("Invalid header value");}}(e.value);let A=[`${e.name}=${e.value}`];for(let t of(e.name.startsWith("__Secure-")&&(e.secure=!0),e.name.startsWith("__Host-")&&(e.secure=!0,e.domain=null,e.path="/"),e.secure&&A.push("Secure"),e.httpOnly&&A.push("HttpOnly"),"number"==typeof e.maxAge&&(function(e){if(e<0)throw Error("Invalid cookie max-age");}(e.maxAge),A.push("Max-Age="+e.maxAge)),e.domain&&(function(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-"))throw Error("Invalid cookie domain");}(e.domain),A.push("Domain="+e.domain)),e.path&&(function(e){for(let A of e)if(33>A.charCodeAt(0)||";"===A)throw Error("Invalid cookie path");}(e.path),A.push("Path="+e.path)),e.expires&&"Invalid Date"!==e.expires.toString()&&A.push("Expires="+function(e){"number"==typeof e&&(e=new Date(e));let A=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e.getUTCDay()],t=e.getUTCDate().toString().padStart(2,"0"),r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getUTCMonth()],n=e.getUTCFullYear(),o=e.getUTCHours().toString().padStart(2,"0"),i=e.getUTCMinutes().toString().padStart(2,"0"),s=e.getUTCSeconds().toString().padStart(2,"0");return`${A}, ${t} ${r} ${n} ${o}:${i}:${s} GMT`;}(e.expires)),e.sameSite&&A.push("SameSite="+e.sameSite),e.unparsed)){if(!t.includes("="))throw Error("Invalid unparsed");let[e,...r]=t.split("=");A.push(`${e.trim()}=${r.join("=")}`);}return A.join("; ");},getHeadersList:function(e){if(e[t])return e[t];r||rJ(r=Object.getOwnPropertySymbols(e).find(e=>"headers list"===e.description),"Headers cannot be parsed");let A=e[r];return rJ(A),A;}};}),A7("7zLJz",function(e,A){var t=ni("1xsyj").webidl,r=ni("3j972").DOMException,n=ni("ldxmf").URLSerializer,o=ni("lLVSA").getGlobalOrigin,i=ni("cmU50"),s=i.staticPropertyDescriptors,a=i.states,l=i.opcodes,c=i.emptyBuffer,g=ni("gf7lK"),E=g.kWebSocketURL,u=g.kReadyState,h=g.kController,Q=g.kBinaryType,C=g.kResponse,I=g.kSentClose,d=g.kByteParser,B=ni("4yHU2"),f=B.isEstablished,p=B.isClosing,y=B.isValidSubprotocol,m=B.failWebsocketConnection,w=B.fireEvent,b=ni("2rPjf").establishWebSocketConnection,R=ni("7Cf2D").WebsocketFrameSend,D=ni("jc5U3").ByteParser,S=ni("c7jgd"),v=S.kEnumerableProperty,k=S.isBlobLike,N=ni("655rh").getGlobalDispatcher,F=rH.types;let L=!1;var _o=/*#__PURE__*/new WeakMap();var _i=/*#__PURE__*/new WeakMap();var _s=/*#__PURE__*/new WeakMap();var _a=/*#__PURE__*/new WeakMap();var _U_brand=/*#__PURE__*/new WeakSet();class U extends EventTarget{constructor(_e,_A2=[]){let n;(super(),_classPrivateMethodInitSpec(this,_U_brand),_classPrivateFieldInitSpec(this,_o,{open:null,error:null,close:null,message:null}),_classPrivateFieldInitSpec(this,_i,0),_classPrivateFieldInitSpec(this,_s,""),_classPrivateFieldInitSpec(this,_a,""),this),t.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),L||(L=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));let i=t.converters["DOMString or sequence or WebSocketInit"](_A2);_e=t.converters.USVString(_e),_A2=i.protocols;let s=o();try{n=new URL(_e,s);}catch(e){throw new r(e,"SyntaxError");}if("http:"===n.protocol?n.protocol="ws:":"https:"===n.protocol&&(n.protocol="wss:"),"ws:"!==n.protocol&&"wss:"!==n.protocol)throw new r("Expected a ws: or wss: protocol, got "+n.protocol,"SyntaxError");if(n.hash||n.href.endsWith("#"))throw new r("Got fragment","SyntaxError");if("string"==typeof _A2&&(_A2=[_A2]),_A2.length!==new Set(_A2.map(e=>e.toLowerCase())).size||_A2.length>0&&!_A2.every(e=>y(e)))throw new r("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[E]=new URL(n.href),this[h]=b(n,_A2,this,e=>_assertClassBrand(_U_brand,this,_l).call(this,e),i),this[u]=U.CONNECTING,this[Q]="blob";}close(e,A){if(t.brandCheck(this,U),void 0!==e&&(e=t.converters["unsigned short"](e,{clamp:!0})),void 0!==A&&(A=t.converters.USVString(A)),void 0!==e&&1e3!==e&&(e<3e3||e>4999))throw new r("invalid code","InvalidAccessError");let n=0;if(void 0!==A&&(n=Buffer.byteLength(A))>123)throw new r("Reason must be less than 123 bytes; received "+n,"SyntaxError");if(this[u]===U.CLOSING||this[u]===U.CLOSED);else if(f(this)){if(p(this))this[u]=U.CLOSING;else{let t=new R();void 0!==e&&void 0===A?(t.frameData=Buffer.allocUnsafe(2),t.frameData.writeUInt16BE(e,0)):void 0!==e&&void 0!==A?(t.frameData=Buffer.allocUnsafe(2+n),t.frameData.writeUInt16BE(e,0),t.frameData.write(A,2,"utf-8")):t.frameData=c,this[C].socket.write(t.createFrame(l.CLOSE),e=>{e||(this[I]=!0);}),this[u]=a.CLOSING;}}else m(this,"Connection was closed before it was established."),this[u]=U.CLOSING;}send(e){if(t.brandCheck(this,U),t.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),e=t.converters.WebSocketSendData(e),this[u]===U.CONNECTING)throw new r("Sent before connected.","InvalidStateError");if(!f(this)||p(this))return;let A=this[C].socket;if("string"==typeof e){let t=Buffer.from(e),r=new R(t).createFrame(l.TEXT);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+t.byteLength),A.write(r,()=>{_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)-t.byteLength);});}else if(F.isArrayBuffer(e)){let t=Buffer.from(e),r=new R(t).createFrame(l.BINARY);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+t.byteLength),A.write(r,()=>{_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)-t.byteLength);});}else if(ArrayBuffer.isView(e)){let t=Buffer.from(e,e.byteOffset,e.byteLength),r=new R(t).createFrame(l.BINARY);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+t.byteLength),A.write(r,()=>{_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)-t.byteLength);});}else if(k(e)){let t=new R();e.arrayBuffer().then(e=>{let r=Buffer.from(e);t.frameData=r;let n=t.createFrame(l.BINARY);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+r.byteLength),A.write(n,()=>{_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)-r.byteLength);});});}}get readyState(){return t.brandCheck(this,U),this[u];}get bufferedAmount(){return t.brandCheck(this,U),_classPrivateFieldGet(_i,this);}get url(){return t.brandCheck(this,U),n(this[E]);}get extensions(){return t.brandCheck(this,U),_classPrivateFieldGet(_a,this);}get protocol(){return t.brandCheck(this,U),_classPrivateFieldGet(_s,this);}get onopen(){return t.brandCheck(this,U),_classPrivateFieldGet(_o,this).open;}set onopen(e){t.brandCheck(this,U),_classPrivateFieldGet(_o,this).open&&this.removeEventListener("open",_classPrivateFieldGet(_o,this).open),"function"==typeof e?(_classPrivateFieldGet(_o,this).open=e,this.addEventListener("open",e)):_classPrivateFieldGet(_o,this).open=null;}get onerror(){return t.brandCheck(this,U),_classPrivateFieldGet(_o,this).error;}set onerror(e){t.brandCheck(this,U),_classPrivateFieldGet(_o,this).error&&this.removeEventListener("error",_classPrivateFieldGet(_o,this).error),"function"==typeof e?(_classPrivateFieldGet(_o,this).error=e,this.addEventListener("error",e)):_classPrivateFieldGet(_o,this).error=null;}get onclose(){return t.brandCheck(this,U),_classPrivateFieldGet(_o,this).close;}set onclose(e){t.brandCheck(this,U),_classPrivateFieldGet(_o,this).close&&this.removeEventListener("close",_classPrivateFieldGet(_o,this).close),"function"==typeof e?(_classPrivateFieldGet(_o,this).close=e,this.addEventListener("close",e)):_classPrivateFieldGet(_o,this).close=null;}get onmessage(){return t.brandCheck(this,U),_classPrivateFieldGet(_o,this).message;}set onmessage(e){t.brandCheck(this,U),_classPrivateFieldGet(_o,this).message&&this.removeEventListener("message",_classPrivateFieldGet(_o,this).message),"function"==typeof e?(_classPrivateFieldGet(_o,this).message=e,this.addEventListener("message",e)):_classPrivateFieldGet(_o,this).message=null;}get binaryType(){return t.brandCheck(this,U),this[Q];}set binaryType(e){t.brandCheck(this,U),"blob"!==e&&"arraybuffer"!==e?this[Q]="blob":this[Q]=e;}}function _l(e){this[C]=e;let A=new D(this);A.on("drain",function(){this.ws[C].socket.resume();}),e.socket.ws=this,this[d]=A,this[u]=a.OPEN;let t=e.headersList.get("sec-websocket-extensions");null!==t&&_classPrivateFieldSet(_a,this,t);let r=e.headersList.get("sec-websocket-protocol");null!==r&&_classPrivateFieldSet(_s,this,r),w("open",this);}U.CONNECTING=U.prototype.CONNECTING=a.CONNECTING,U.OPEN=U.prototype.OPEN=a.OPEN,U.CLOSING=U.prototype.CLOSING=a.CLOSING,U.CLOSED=U.prototype.CLOSED=a.CLOSED,Object.defineProperties(U.prototype,{CONNECTING:s,OPEN:s,CLOSING:s,CLOSED:s,url:v,readyState:v,bufferedAmount:v,onopen:v,onerror:v,onclose:v,close:v,onmessage:v,binaryType:v,send:v,extensions:v,protocol:v,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(U,{CONNECTING:s,OPEN:s,CLOSING:s,CLOSED:s}),t.converters["sequence"]=t.sequenceConverter(t.converters.DOMString),t.converters["DOMString or sequence"]=function(e){return"Object"===t.util.Type(e)&&Symbol.iterator in e?t.converters["sequence"](e):t.converters.DOMString(e);},t.converters.WebSocketInit=t.dictionaryConverter([{key:"protocols",converter:t.converters["DOMString or sequence"],get defaultValue(){return[];}},{key:"dispatcher",converter:e=>e,get defaultValue(){return N();}},{key:"headers",converter:t.nullableConverter(t.converters.HeadersInit)}]),t.converters["DOMString or sequence or WebSocketInit"]=function(e){return"Object"!==t.util.Type(e)||Symbol.iterator in e?{protocols:t.converters["DOMString or sequence"](e)}:t.converters.WebSocketInit(e);},t.converters.WebSocketSendData=function(e){if("Object"===t.util.Type(e)){if(k(e))return t.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||F.isAnyArrayBuffer(e))return t.converters.BufferSource(e);}return t.converters.USVString(e);},e.exports={WebSocket:U};}),A7("cmU50",function(e,A){let t=Buffer.allocUnsafe(0);e.exports={uid:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:65535,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:t};}),A7("gf7lK",function(e,A){e.exports={kWebSocketURL:Symbol(),kReadyState:Symbol(),kController:Symbol(),kResponse:Symbol(),kBinaryType:Symbol(),kSentClose:Symbol(),kReceivedClose:Symbol(),kByteParser:Symbol()};}),A7("4yHU2",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u;function h(e,A,t=Event,r){let n=new t(e,r);A.dispatchEvent(n);}function Q(e,A){let{[n]:t,[o]:r}=e;t.abort(),(null==r?void 0:r.socket)&&!r.socket.destroyed&&r.socket.destroy(),A&&h("error",e,u,{error:Error(A)});}r=(t=ni("gf7lK")).kReadyState,n=t.kController,o=t.kResponse,i=t.kBinaryType,s=t.kWebSocketURL,l=(a=ni("cmU50")).states,c=a.opcodes,E=(g=ni("3GQA4")).MessageEvent,u=g.ErrorEvent,e.exports={isEstablished:function(e){return e[r]===l.OPEN;},isClosing:function(e){return e[r]===l.CLOSING;},isClosed:function(e){return e[r]===l.CLOSED;},fireEvent:h,isValidSubprotocol:function(e){if(0===e.length)return!1;for(let A of e){let e=A.charCodeAt(0);if(e<33||e>126||"("===A||")"===A||"<"===A||">"===A||"@"===A||","===A||";"===A||":"===A||"\\"===A||'"'===A||"/"===A||"["===A||"]"===A||"?"===A||"="===A||"{"===A||"}"===A||32===e||9===e)return!1;}return!0;},isValidStatusCode:function(e){return e>=1e3&&e<1015?1004!==e&&1005!==e&&1006!==e:e>=3e3&&e<=4999;},failWebsocketConnection:Q,websocketMessageReceived:function(e,A,t){let n;if(e[r]===l.OPEN){if(A===c.TEXT)try{n=new TextDecoder("utf-8",{fatal:!0}).decode(t);}catch{Q(e,"Received invalid UTF-8 in text frame.");return;}else A===c.BINARY&&(n="blob"===e[i]?new Blob([t]):new Uint8Array(t).buffer);h("message",e,E,{origin:e[s].origin,data:n});}}};}),A7("3GQA4",function(e,A){var t=ni("1xsyj").webidl,r=ni("c7jgd").kEnumerableProperty,n=rz.MessagePort;class o extends Event{#c;constructor(e,A={}){t.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"}),super(e=t.converters.DOMString(e),A=t.converters.MessageEventInit(A)),this.#c=A;}get data(){return t.brandCheck(this,o),this.#c.data;}get origin(){return t.brandCheck(this,o),this.#c.origin;}get lastEventId(){return t.brandCheck(this,o),this.#c.lastEventId;}get source(){return t.brandCheck(this,o),this.#c.source;}get ports(){return t.brandCheck(this,o),Object.isFrozen(this.#c.ports)||Object.freeze(this.#c.ports),this.#c.ports;}initMessageEvent(e,A=!1,r=!1,n=null,i="",s="",a=null,l=[]){return t.brandCheck(this,o),t.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"}),new o(e,{bubbles:A,cancelable:r,data:n,origin:i,lastEventId:s,source:a,ports:l});}}class i extends Event{#c;constructor(e,A={}){t.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"}),super(e=t.converters.DOMString(e),A=t.converters.CloseEventInit(A)),this.#c=A;}get wasClean(){return t.brandCheck(this,i),this.#c.wasClean;}get code(){return t.brandCheck(this,i),this.#c.code;}get reason(){return t.brandCheck(this,i),this.#c.reason;}}class s extends Event{#c;constructor(e,A){t.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"}),super(e,A),e=t.converters.DOMString(e),A=t.converters.ErrorEventInit(null!=A?A:{}),this.#c=A;}get message(){return t.brandCheck(this,s),this.#c.message;}get filename(){return t.brandCheck(this,s),this.#c.filename;}get lineno(){return t.brandCheck(this,s),this.#c.lineno;}get colno(){return t.brandCheck(this,s),this.#c.colno;}get error(){return t.brandCheck(this,s),this.#c.error;}}Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),t.converters.MessagePort=t.interfaceConverter(n),t.converters["sequence"]=t.sequenceConverter(t.converters.MessagePort);let a=[{key:"bubbles",converter:t.converters.boolean,defaultValue:!1},{key:"cancelable",converter:t.converters.boolean,defaultValue:!1},{key:"composed",converter:t.converters.boolean,defaultValue:!1}];t.converters.MessageEventInit=t.dictionaryConverter([...a,{key:"data",converter:t.converters.any,defaultValue:null},{key:"origin",converter:t.converters.USVString,defaultValue:""},{key:"lastEventId",converter:t.converters.DOMString,defaultValue:""},{key:"source",converter:t.nullableConverter(t.converters.MessagePort),defaultValue:null},{key:"ports",converter:t.converters["sequence"],get defaultValue(){return[];}}]),t.converters.CloseEventInit=t.dictionaryConverter([...a,{key:"wasClean",converter:t.converters.boolean,defaultValue:!1},{key:"code",converter:t.converters["unsigned short"],defaultValue:0},{key:"reason",converter:t.converters.USVString,defaultValue:""}]),t.converters.ErrorEventInit=t.dictionaryConverter([...a,{key:"message",converter:t.converters.DOMString,defaultValue:""},{key:"filename",converter:t.converters.USVString,defaultValue:""},{key:"lineno",converter:t.converters["unsigned long"],defaultValue:0},{key:"colno",converter:t.converters["unsigned long"],defaultValue:0},{key:"error",converter:t.converters.any}]),e.exports={MessageEvent:o,CloseEvent:i,ErrorEvent:s};}),A7("2rPjf",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C,I,d,B;let f;function p(e){this.ws[l].write(e)||this.pause();}function y(){let{ws:e}=this,A=e[a]&&e[c],t=1005,r="",n=e[l].closingInfo;if(n){var i;t=null!==(i=n.code)&&void 0!==i?i:1005,r=n.reason;}else e[a]||(t=1006);e[s]=o.CLOSED,E("close",e,h,{wasClean:A,code:t,reason:r}),w.close.hasSubscribers&&w.close.publish({websocket:e,code:t,reason:r});}function m(e){let{ws:A}=this;A[s]=o.CLOSING,w.socketError.hasSubscribers&&w.socketError.publish(e),this.destroy();}t=ni("aNCRb"),n=(r=ni("cmU50")).uid,o=r.states,s=(i=ni("gf7lK")).kReadyState,a=i.kSentClose,l=i.kByteParser,c=i.kReceivedClose,E=(g=ni("4yHU2")).fireEvent,u=g.failWebsocketConnection,h=ni("3GQA4").CloseEvent,Q=ni("drJZA").makeRequest,C=ni("knv0l").fetching,I=ni("5AMIu").Headers,d=ni("655rh").getGlobalDispatcher,B=ni("J3IVZ").kHeadersList;let w={};w.open=t.channel("undici:websocket:open"),w.close=t.channel("undici:websocket:close"),w.socketError=t.channel("undici:websocket:socket_error");try{f=$1c85e759c42110f0$import$dcf5ad41f4662e6f;}catch{}e.exports={establishWebSocketConnection:function(e,A,t,r,o){var i;e.protocol="ws:"===e.protocol?"http:":"https:";let s=Q({urlList:[e],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let e=new I(o.headers)[B];s.headersList=e;}let a=f.randomBytes(16).toString("base64");for(let e of(s.headersList.append("sec-websocket-key",a),s.headersList.append("sec-websocket-version","13"),A))s.headersList.append("sec-websocket-protocol",e);return C({request:s,useParallelQueue:!0,dispatcher:null!==(i=o.dispatcher)&&void 0!==i?i:d(),processResponse(e){var o,i;if("error"===e.type||101!==e.status){u(t,"Received network error or non-101 status code.");return;}if(0!==A.length&&!e.headersList.get("Sec-WebSocket-Protocol")){u(t,"Server did not respond with sent protocols.");return;}if((null===(o=e.headersList.get("Upgrade"))||void 0===o?void 0:o.toLowerCase())!=="websocket"){u(t,'Server did not set Upgrade header to "websocket".');return;}if((null===(i=e.headersList.get("Connection"))||void 0===i?void 0:i.toLowerCase())!=="upgrade"){u(t,'Server did not set Connection header to "upgrade".');return;}if(e.headersList.get("Sec-WebSocket-Accept")!==f.createHash("sha1").update(a+n).digest("base64")){u(t,"Incorrect hash received in Sec-WebSocket-Accept header.");return;}let l=e.headersList.get("Sec-WebSocket-Extensions");if(null!==l&&""!==l){u(t,"Received different permessage-deflate than the one set.");return;}let c=e.headersList.get("Sec-WebSocket-Protocol");if(null!==c&&c!==s.headersList.get("Sec-WebSocket-Protocol")){u(t,"Protocol was not set in the opening handshake.");return;}e.socket.on("data",p),e.socket.on("close",y),e.socket.on("error",m),w.open.hasSubscribers&&w.open.publish({address:e.socket.address(),protocol:c,extensions:l}),r(e);}});}};}),A7("7Cf2D",function(e,A){let t;var r=ni("cmU50").maxUnsigned16Bit;try{t=$58b7bff44ad443d9$import$804f562e18a94705;}catch{}e.exports={WebsocketFrameSend:class{constructor(e){this.frameData=e,this.maskKey=t.randomBytes(4);}createFrame(e){var A,t;let n=null!==(t=null===(A=this.frameData)||void 0===A?void 0:A.byteLength)&&void 0!==t?t:0,o=n,i=6;n>r?(i+=8,o=127):n>125&&(i+=2,o=126);let s=Buffer.allocUnsafe(n+i);s[0]=s[1]=0,s[0]|=128,s[0]=(240&s[0])+e,s[i-4]=this.maskKey[0],s[i-3]=this.maskKey[1],s[i-2]=this.maskKey[2],s[i-1]=this.maskKey[3],s[1]=o,126===o?s.writeUInt16BE(n,2):127===o&&(s[2]=s[3]=0,s.writeUIntBE(n,4,6)),s[1]|=128;for(let e=0;e125){C(this.ws,"Fragmented frame exceeded 125 bytes.");return;}if((this.#h.opcode===i.PING||this.#h.opcode===i.PONG||this.#h.opcode===i.CLOSE)&&n>125){C(this.ws,"Payload length for control frame exceeded 125 bytes.");return;}if(this.#h.opcode===i.CLOSE){if(1===n){C(this.ws,"Received close frame with a 1-byte body.");return;}let e=this.consume(n);if(this.#h.closeInfo=this.parseCloseBody(!1,e),!this.ws[g]){let e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#h.closeInfo.code,0);let A=new d(e);this.ws[E].socket.write(A.createFrame(i.CLOSE),e=>{e||(this.ws[g]=!0);});}this.ws[c]=s.CLOSING,this.ws[u]=!0,this.end();return;}else if(this.#h.opcode===i.PING){let A=this.consume(n);if(!this.ws[u]){let e=new d(A);this.ws[E].socket.write(e.createFrame(i.PONG)),B.ping.hasSubscribers&&B.ping.publish({payload:A});}if(this.#u=o.INFO,this.#E>0)continue;e();return;}else if(this.#h.opcode===i.PONG){let A=this.consume(n);if(B.pong.hasSubscribers&&B.pong.publish({payload:A}),this.#E>0)continue;e();return;}}else if(this.#u===o.PAYLOADLENGTH_16){if(this.#E<2)return e();let A=this.consume(2);this.#h.payloadLength=A.readUInt16BE(0),this.#u=o.READ_DATA;}else if(this.#u===o.PAYLOADLENGTH_64){if(this.#E<8)return e();let A=this.consume(8),t=A.readUInt32BE(0);if(t>2147483648-1){C(this.ws,"Received payload length > 2^31 bytes.");return;}let r=A.readUInt32BE(4);this.#h.payloadLength=(t<<8)+r,this.#u=o.READ_DATA;}else if(this.#u===o.READ_DATA){if(this.#E=this.#h.payloadLength){let e=this.consume(this.#h.payloadLength);if(this.#Q.push(e),!this.#h.fragmented||this.#h.fin&&this.#h.opcode===i.CONTINUATION){let e=Buffer.concat(this.#Q);I(this.ws,this.#h.originalOpcode,e),this.#h={},this.#Q.length=0;}this.#u=o.INFO;}}if(!(this.#E>0)){e();break;}}}consume(e){if(e>this.#E)return null;if(0===e)return a;if(this.#g[0].length===e)return this.#E-=this.#g[0].length,this.#g.shift();let A=Buffer.allocUnsafe(e),t=0;for(;t!==e;){let r=this.#g[0],{length:n}=r;if(n+t===e){A.set(this.#g.shift(),t);break;}if(n+t>e){A.set(r.subarray(0,e-t),t),this.#g[0]=r.subarray(e-t);break;}A.set(this.#g.shift(),t),t+=r.length;}return this.#E-=e,A;}parseCloseBody(e,A){let t;if(A.length>=2&&(t=A.readUInt16BE(0)),e)return Q(t)?{code:t}:null;let r=A.subarray(2);if(239===r[0]&&187===r[1]&&191===r[2]&&(r=r.subarray(3)),void 0!==t&&!Q(t))return null;try{r=new TextDecoder("utf-8",{fatal:!0}).decode(r);}catch{return null;}return{code:t,reason:r};}get closingInfo(){return this.#h.closeInfo;}}e.exports={ByteParser:f};}),A7("5OCZt",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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,A){this.username=e,this.password=A;}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 t(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 t(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 t(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),A7("ehDLE",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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;let{access:r,appendFile:n,writeFile:o}=rT.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";let i=new class{constructor(){this._buffer="";}filePath(){return t(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[e.exports.SUMMARY_ENV_VAR];if(!A)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield r(A,rT.constants.R_OK|rT.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`);}return this._filePath=A,this._filePath;});}wrap(e,A,t={}){let r=Object.entries(t).map(([e,A])=>` ${e}="${A}"`).join("");return A?`<${e}${r}>${A}`:`<${e}${r}>`;}write(e){return t(this,void 0,void 0,function*(){let A=!!(null==e?void 0:e.overwrite),t=yield this.filePath();return yield(A?o:n)(t,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return t(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,A=!1){return this._buffer+=e,A?this.addEOL():this;}addEOL(){return this.addRaw(rL.EOL);}addCodeBlock(e,A){let t=Object.assign({},A&&{lang:A}),r=this.wrap("pre",this.wrap("code",e),t);return this.addRaw(r).addEOL();}addList(e,A=!1){let t=e.map(e=>this.wrap("li",e)).join(""),r=this.wrap(A?"ol":"ul",t);return this.addRaw(r).addEOL();}addTable(e){let A=e.map(e=>{let A=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:A,data:t,colspan:r,rowspan:n}=e,o=Object.assign(Object.assign({},r&&{colspan:r}),n&&{rowspan:n});return this.wrap(A?"th":"td",t,o);}).join("");return this.wrap("tr",A);}).join(""),t=this.wrap("table",A);return this.addRaw(t).addEOL();}addDetails(e,A){let t=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(t).addEOL();}addImage(e,A,t){let{width:r,height:n}=t||{},o=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),i=this.wrap("img",null,Object.assign({src:e,alt:A},o));return this.addRaw(i).addEOL();}addHeading(e,A){let t="h"+A,r=["h1","h2","h3","h4","h5","h6"].includes(t)?t:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,A){let t=Object.assign({},A&&{cite:A}),r=this.wrap("blockquote",e,t);return this.addRaw(r).addEOL();}addLink(e,A){let t=this.wrap("a",e,{href:A});return this.addRaw(t).addEOL();}}();e.exports.markdownSummary=i,e.exports.summary=i;}),A7("a0kJ6",function(e,A){var t,r,n;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=n(rU);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),A7("7iyVD",function(e,A){var t=rU.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var A,r;function n(e,t,r){if(o(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var n=A[e](t);return void 0!==r[n]?r[n]:null;}function o(e){!(void 0!==A[e])&&function(e){try{require(t+"/../locales/"+e+".js");}catch(A){throw Error("Failed to load the following locale: "+e);}}(e);}A={},r={create:function(e){return o(e),{pluralize:function(A,t){return n(e,A,t);}};},addLocale:function(e,t){A[e]=t;},pluralize:n},void 0!==e.exports?e.exports=r:this.numerous=r;}).call(e.exports);}),A7("bEcx3",function(e,A){function t(e){for(let A of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:t}=A;s[e]=t;}}var r=ni("13X3P"),n=ni("fqksh");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],i={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},s={};e.exports={create:function(e){return e=Object.assign({},i,e||{}),{format:function(A,i,a){return function(e,A,i){if(function(e,A){let{autoload:r}=A;if(!s[e]){if(n&&r)(function(e){try{t(require(`../locales/${e}.js`));}catch(A){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${A}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(i.locale,{autoload:i.autoloadLocales}),!e)throw Error("Missing first date argument");if(!A)throw Error("Missing second date argument");let a=function(e,A){let t=A-e,r=[];return o.some(function(e){let A=e[0],n=e[1],o=Math.floor(t/n);if(t-=o*n,r.push([A,o]),t<=0)return!0;}),r;}(e,A),l=[];for(let e of a){let[A,t]=e;if(t>0&&l.push(function(e,A,t){let n=function(e){let A=s[e.locale],t=e.unitTypeLookupOrder.slice();t.unshift(e.unitType);let r=null;if((t=Array.from(new Set(t))).some(function(e){if(void 0!==A[e])return r=A[e],!0;}),null===r)throw Error("Can not find any unit type data for locale: "+e.locale);return r;}(t);return r.pluralize(t.locale,A,n[e]).replace("{0}",A);}(A,t,i)),l.length>=i.span)break;}return l.join(i.delimiter);}(A,i,a=Object.assign({},e,a||{}));}};},addLocale:t,defaultConfig:i};}),A7("13X3P",function(e,A){e.exports=ni("7iyVD");}),A7("fqksh",function(e,A){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),A7("6vN83",function(e,A){a(e.exports,"appendFile",()=>r),a(e.exports,"chmod",()=>n),a(e.exports,"lstat",()=>g),a(e.exports,"mkdir",()=>E),a(e.exports,"open",()=>h),a(e.exports,"readdir",()=>Q),a(e.exports,"readFile",()=>C),a(e.exports,"readlink",()=>I),a(e.exports,"stat",()=>p),a(e.exports,"symlink",()=>y),a(e.exports,"utimes",()=>b),a(e.exports,"writeFile",()=>R),a(e.exports,"rm",()=>D),rT.promises;let{access:t,appendFile:r,chmod:n,chown:o,copyFile:i,lchmod:s,lchown:l,link:c,lstat:g,mkdir:E,mkdtemp:u,open:h,readdir:Q,readFile:C,readlink:I,realpath:d,rename:B,rmdir:f,stat:p,symlink:y,truncate:m,unlink:w,utimes:b,writeFile:R}=rT.promises,D="rm"in rT.promises?rT.promises.rm:(0,rH.promisify)(rT.unlink);}),A7("iVKcZ",function(e,A){function t(e,A,t){return!!(e.isSymbolicLink()||e.isFile())&&function(e,A){var t=void 0!==A.pathExt?A.pathExt:process.env.PATHEXT;if(!t||-1!==(t=t.split(";")).indexOf(""))return!0;for(var r=0;r{for(let[A,t]of u)e=e.split(`${A}*`).join(`${A}{0,${t}}`).split(`${A}+`).join(`${A}{1,${t}}`);return e;},Q=(e,A,t)=>{let r=h(A),n=g++;i(e,n,A),c[e]=n,l[n]=A,s[n]=new RegExp(A,t?"g":void 0),a[n]=new RegExp(r,t?"g":void 0);};Q("NUMERICIDENTIFIER","0|[1-9]\\d*"),Q("NUMERICIDENTIFIERLOOSE","\\d+"),Q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),Q("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),Q("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),Q("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),Q("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),Q("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),Q("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),Q("BUILDIDENTIFIER",`${E}+`),Q("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),Q("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),Q("FULL",`^${l[c.FULLPLAIN]}$`),Q("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),Q("LOOSE",`^${l[c.LOOSEPLAIN]}$`),Q("GTLT","((?:<|>)?=?)"),Q("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),Q("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),Q("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),Q("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),Q("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),Q("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),Q("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),Q("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),Q("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?`+`(?:${l[c.BUILD]})?`+"(?:$|[^\\d])"),Q("COERCERTL",l[c.COERCE],!0),Q("COERCERTLFULL",l[c.COERCEFULL],!0),Q("LONETILDE","(?:~>?)"),Q("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),A.tildeTrimReplace="$1~",Q("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),Q("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),Q("LONECARET","(?:\\^)"),Q("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),A.caretTrimReplace="$1^",Q("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),Q("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),Q("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),Q("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),Q("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),A.comparatorTrimReplace="$1$2$3",Q("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),Q("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),Q("STAR","(<|>)?=?\\s*\\*"),Q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),Q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),A7("ihGdo",function(e,A){let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),A7("6fhd1",function(e,A){let t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t;}),A7("a8hB8",function(e,A){var t=ni("6fhd1"),r=ni("ihGdo"),n=r.MAX_LENGTH,o=r.MAX_SAFE_INTEGER,i=ni("7CpTS"),s=i.safeRe,a=i.t,l=ni("hrueh"),c=ni("cpvt0").compareIdentifiers;class g{constructor(e,A){if(A=l(A),e instanceof g){if(!!A.loose===e.loose&&!!A.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>n)throw TypeError(`version is longer than ${n} characters`);t("SemVer",e,A),this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease;let r=e.trim().match(A.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let A=+e;if(A>=0&&A=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(A===this.prerelease.join(".")&&!1===t)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(A){let r=[A,e];!1===t&&(r=[A]),0===c(this.prerelease[0],A)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=g;}),A7("hrueh",function(e,A){let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r;}),A7("cpvt0",function(e,A){let t=(e,A)=>{let t=/^[0-9]+$/.test(e),r=/^[0-9]+$/.test(A);return t&&r&&(e=+e,A=+A),e===A?0:t&&!r?-1:r&&!t?1:A>e?-1:1;};e.exports={compareIdentifiers:t,rcompareIdentifiers:(e,A)=>t(A,e)};}),A7("dC6an",function(e,A){var t=ni("a8hB8");e.exports=(e,A,r=!1)=>{if(e instanceof t)return e;try{return new t(e,A);}catch(e){if(!r)return null;throw e;}};}),A7("itRYc",function(e,A){var t=ni("dC6an");e.exports=(e,A)=>{let r=t(e,A);return r?r.version:null;};}),A7("bgt0n",function(e,A){var t=ni("dC6an");e.exports=(e,A)=>{let r=t(e.trim().replace(/^[=v]+/,""),A);return r?r.version:null;};}),A7("kk89K",function(e,A){var t=ni("a8hB8");e.exports=(e,A,r,n,o)=>{"string"==typeof r&&(o=n,n=r,r=void 0);try{return new t(e instanceof t?e.version:e,r).inc(A,n,o).version;}catch(e){return null;}};}),A7("6NO8e",function(e,A){var t=ni("dC6an");e.exports=(e,A)=>{let r=t(e,null,!0),n=t(A,null,!0),o=r.compare(n);if(0===o)return null;let i=o>0,s=i?r:n,a=i?n:r,l=!!s.prerelease.length;if(a.prerelease.length&&!l)return a.patch||a.minor?s.patch?"patch":s.minor?"minor":"major":"major";let c=l?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease";};}),A7("h0zLe",function(e,A){var t=ni("a8hB8");e.exports=(e,A)=>new t(e,A).major;}),A7("ds0Ys",function(e,A){var t=ni("a8hB8");e.exports=(e,A)=>new t(e,A).minor;}),A7("9zWVg",function(e,A){var t=ni("a8hB8");e.exports=(e,A)=>new t(e,A).patch;}),A7("klJ6d",function(e,A){var t=ni("dC6an");e.exports=(e,A)=>{let r=t(e,A);return r&&r.prerelease.length?r.prerelease:null;};}),A7("70mIC",function(e,A){var t=ni("a8hB8");e.exports=(e,A,r)=>new t(e,r).compare(new t(A,r));}),A7("lbz2d",function(e,A){var t=ni("70mIC");e.exports=(e,A,r)=>t(A,e,r);}),A7("8gwUJ",function(e,A){var t=ni("70mIC");e.exports=(e,A)=>t(e,A,!0);}),A7("i4eEm",function(e,A){var t=ni("a8hB8");e.exports=(e,A,r)=>{let n=new t(e,r),o=new t(A,r);return n.compare(o)||n.compareBuild(o);};}),A7("8qSvt",function(e,A){var t=ni("i4eEm");e.exports=(e,A)=>e.sort((e,r)=>t(e,r,A));}),A7("1NNaI",function(e,A){var t=ni("i4eEm");e.exports=(e,A)=>e.sort((e,r)=>t(r,e,A));}),A7("c1VIy",function(e,A){var t=ni("70mIC");e.exports=(e,A,r)=>t(e,A,r)>0;}),A7("bezLq",function(e,A){var t=ni("70mIC");e.exports=(e,A,r)=>0>t(e,A,r);}),A7("6tgS7",function(e,A){var t=ni("70mIC");e.exports=(e,A,r)=>0===t(e,A,r);}),A7("2oOIY",function(e,A){var t=ni("70mIC");e.exports=(e,A,r)=>0!==t(e,A,r);}),A7("t88wC",function(e,A){var t=ni("70mIC");e.exports=(e,A,r)=>t(e,A,r)>=0;}),A7("llmej",function(e,A){var t=ni("70mIC");e.exports=(e,A,r)=>0>=t(e,A,r);}),A7("hEO1U",function(e,A){var t=ni("6tgS7"),r=ni("2oOIY"),n=ni("c1VIy"),o=ni("t88wC"),i=ni("bezLq"),s=ni("llmej");e.exports=(e,A,a,l)=>{switch(A){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e===a;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e!==a;case"":case"=":case"==":return t(e,a,l);case"!=":return r(e,a,l);case">":return n(e,a,l);case">=":return o(e,a,l);case"<":return i(e,a,l);case"<=":return s(e,a,l);default:throw TypeError("Invalid operator: "+A);}};}),A7("gCLbi",function(e,A){var t=ni("a8hB8"),r=ni("dC6an"),n=ni("7CpTS"),o=n.safeRe,i=n.t;e.exports=(e,A)=>{if(e instanceof t)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let n=null;if((A=A||{}).rtl){let t;let r=A.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];for(;(t=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),r.lastIndex=t.index+t[1].length+t[2].length;r.lastIndex=-1;}else n=e.match(A.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===n)return null;let s=n[2],a=n[3]||"0",l=n[4]||"0",c=A.includePrerelease&&n[5]?"-"+n[5]:"",g=A.includePrerelease&&n[6]?"+"+n[6]:"";return r(`${s}.${a}.${l}${c}${g}`,A);};}),A7("dhrsn",function(e,A){let t=Symbol();class r{static get ANY(){return t;}constructor(e,A){if(A=n(A),e instanceof r){if(!!A.loose===e.loose)return e;e=e.value;}l("comparator",e=e.trim().split(/\s+/).join(" "),A),this.options=A,this.loose=!!A.loose,this.parse(e),this.semver===t?this.value="":this.value=this.operator+this.semver.version,l("comp",this);}parse(e){let A=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(A);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=t;}toString(){return this.value;}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===t||e===t)return!0;if("string"==typeof e)try{e=new c(e,this.options);}catch(e){return!1;}return a(e,this.operator,this.semver,this.options);}intersects(e,A){if(!(e instanceof r))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new g(e.value,A).test(this.value):""===e.operator?""===e.value||new g(this.value,A).test(e.semver):!((A=n(A)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!A.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||a(this.semver,"<",e.semver,A)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||a(this.semver,">",e.semver,A)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=r;var n=ni("hrueh"),o=ni("7CpTS"),i=o.safeRe,s=o.t,a=ni("hEO1U"),l=ni("6fhd1"),c=ni("a8hB8"),g=ni("hMcYs");}),A7("hMcYs",function(e,A){class t{constructor(e,A){if(A=n(A),e instanceof t){if(!!A.loose===e.loose&&!!A.includePrerelease===e.includePrerelease)return e;return new t(e.raw,A);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease,this.raw=e.trim().replace(/\s+/g," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!I(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&d(e[0])){this.set=[e];break;}}}this.formatted=void 0;}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let A=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=A[e].toString().trim();}}return this.formatted;}format(){return this.range;}toString(){return this.range;}parseRange(e){let A=((this.options.includePrerelease&&Q)|(this.options.loose&&C))+":"+e,t=r.get(A);if(t)return t;let n=this.options.loose,s=n?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];i("hyphen replace",e=e.replace(s,k(this.options.includePrerelease))),i("comparator trim",e=e.replace(l[c.COMPARATORTRIM],g)),i("tilde trim",e=e.replace(l[c.TILDETRIM],E)),i("caret trim",e=e.replace(l[c.CARETTRIM],u));let a=e.split(" ").map(e=>f(e,this.options)).join(" ").split(/\s+/).map(e=>v(e,this.options));n&&(a=a.filter(e=>(i("loose invalid filter",e,this.options),!!e.match(l[c.COMPARATORLOOSE])))),i("range list",a);let h=new Map();for(let e of a.map(e=>new o(e,this.options))){if(I(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let d=[...h.values()];return r.set(A,d),d;}intersects(e,A){if(!(e instanceof t))throw TypeError("a Range is required");return this.set.some(t=>B(t,A)&&e.set.some(e=>B(e,A)&&t.every(t=>e.every(e=>t.intersects(e,A)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options);}catch(e){return!1;}for(let A=0;A"<0.0.0-0"===e.value,d=e=>""===e.value,B=(e,A)=>{let t=!0,r=e.slice(),n=r.pop();for(;t&&r.length;)t=r.every(e=>n.intersects(e,A)),n=r.pop();return t;},f=(e,A)=>(i("comp",e,A),i("caret",e=w(e,A)),i("tildes",e=y(e,A)),i("xrange",e=R(e,A)),i("stars",e=S(e,A)),e),p=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,A)=>e.trim().split(/\s+/).map(e=>m(e,A)).join(" "),m=(e,A)=>{let t=A.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(t,(A,t,r,n,o)=>{let s;return i("tilde",e,A,t,r,n,o),p(t)?s="":p(r)?s=`>=${t}.0.0 <${+t+1}.0.0-0`:p(n)?s=`>=${t}.${r}.0 <${t}.${+r+1}.0-0`:o?(i("replaceTilde pr",o),s=`>=${t}.${r}.${n}-${o} <${t}.${+r+1}.0-0`):s=`>=${t}.${r}.${n} <${t}.${+r+1}.0-0`,i("tilde return",s),s;});},w=(e,A)=>e.trim().split(/\s+/).map(e=>b(e,A)).join(" "),b=(e,A)=>{i("caret",e,A);let t=A.loose?l[c.CARETLOOSE]:l[c.CARET],r=A.includePrerelease?"-0":"";return e.replace(t,(A,t,n,o,s)=>{let a;return i("caret",e,A,t,n,o,s),p(t)?a="":p(n)?a=`>=${t}.0.0${r} <${+t+1}.0.0-0`:p(o)?a="0"===t?`>=${t}.${n}.0${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.0${r} <${+t+1}.0.0-0`:s?(i("replaceCaret pr",s),a="0"===t?"0"===n?`>=${t}.${n}.${o}-${s} <${t}.${n}.${+o+1}-0`:`>=${t}.${n}.${o}-${s} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${o}-${s} <${+t+1}.0.0-0`):(i("no pr"),a="0"===t?"0"===n?`>=${t}.${n}.${o}${r} <${t}.${n}.${+o+1}-0`:`>=${t}.${n}.${o}${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${o} <${+t+1}.0.0-0`),i("caret return",a),a;});},R=(e,A)=>(i("replaceXRanges",e,A),e.split(/\s+/).map(e=>D(e,A)).join(" ")),D=(e,A)=>{e=e.trim();let t=A.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(t,(t,r,n,o,s,a)=>{i("xRange",e,t,r,n,o,s,a);let l=p(n),c=l||p(o),g=c||p(s);return"="===r&&g&&(r=""),a=A.includePrerelease?"-0":"",l?t=">"===r||"<"===r?"<0.0.0-0":"*":r&&g?(c&&(o=0),s=0,">"===r?(r=">=",c?(n=+n+1,o=0):o=+o+1,s=0):"<="===r&&(r="<",c?n=+n+1:o=+o+1),"<"===r&&(a="-0"),t=`${r+n}.${o}.${s}${a}`):c?t=`>=${n}.0.0${a} <${+n+1}.0.0-0`:g&&(t=`>=${n}.${o}.0${a} <${n}.${+o+1}.0-0`),i("xRange return",t),t;});},S=(e,A)=>(i("replaceStars",e,A),e.trim().replace(l[c.STAR],"")),v=(e,A)=>(i("replaceGTE0",e,A),e.trim().replace(l[A.includePrerelease?c.GTE0PRE:c.GTE0],"")),k=e=>(A,t,r,n,o,i,s,a,l,c,g,E)=>(t=p(r)?"":p(n)?`>=${r}.0.0${e?"-0":""}`:p(o)?`>=${r}.${n}.0${e?"-0":""}`:i?">="+t:`>=${t}${e?"-0":""}`,a=p(l)?"":p(c)?`<${+l+1}.0.0-0`:p(g)?`<${l}.${+c+1}.0-0`:E?`<=${l}.${c}.${g}-${E}`:e?`<${l}.${c}.${+g+1}-0`:"<="+a,`${t} ${a}`.trim()),N=(e,A,t)=>{for(let t=0;t0){let r=e[t].semver;if(r.major===A.major&&r.minor===A.minor&&r.patch===A.patch)return!0;}return!1;}return!0;};}),A7("irkyt",function(e,A){e.exports=class{constructor(){this.max=1e3,this.map=new Map();}get(e){let A=this.map.get(e);if(void 0!==A)return this.map.delete(e),this.map.set(e,A),A;}delete(e){return this.map.delete(e);}set(e,A){if(!this.delete(e)&&void 0!==A){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e);}this.map.set(e,A);}return this;}};}),A7("hHV3H",function(e,A){var t=ni("hMcYs");e.exports=(e,A,r)=>{try{A=new t(A,r);}catch(e){return!1;}return A.test(e);};}),A7("hwKS6",function(e,A){var t=ni("hMcYs");e.exports=(e,A)=>new t(e,A).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),A7("ezXd7",function(e,A){var t=ni("a8hB8"),r=ni("hMcYs");e.exports=(e,A,n)=>{let o=null,i=null,s=null;try{s=new r(A,n);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!o||-1===i.compare(e))&&(i=new t(o=e,n));}),o;};}),A7("2QK4N",function(e,A){var t=ni("a8hB8"),r=ni("hMcYs");e.exports=(e,A,n)=>{let o=null,i=null,s=null;try{s=new r(A,n);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!o||1===i.compare(e))&&(i=new t(o=e,n));}),o;};}),A7("cHFoT",function(e,A){var t=ni("a8hB8"),r=ni("hMcYs"),n=ni("c1VIy");e.exports=(e,A)=>{e=new r(e,A);let o=new t("0.0.0");if(e.test(o)||(o=new t("0.0.0-0"),e.test(o)))return o;o=null;for(let A=0;A{let A=new t(e.semver.version);switch(e.operator){case">":0===A.prerelease.length?A.patch++:A.prerelease.push(0),A.raw=A.format();case"":case">=":(!i||n(A,i))&&(i=A);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),i&&(!o||n(o,i))&&(o=i);}return o&&e.test(o)?o:null;};}),A7("457Nw",function(e,A){var t=ni("hMcYs");e.exports=(e,A)=>{try{return new t(e,A).range||"*";}catch(e){return null;}};}),A7("9p2Dy",function(e,A){var t=ni("a8hB8"),r=ni("dhrsn");let{ANY:n}=r;var o=ni("hMcYs"),i=ni("hHV3H"),s=ni("c1VIy"),a=ni("bezLq"),l=ni("llmej"),c=ni("t88wC");e.exports=(e,A,g,E)=>{let u,h,Q,C,I;switch(e=new t(e,E),A=new o(A,E),g){case">":u=s,h=l,Q=a,C=">",I=">=";break;case"<":u=a,h=c,Q=s,C="<",I="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(i(e,A,E))return!1;for(let t=0;t{e.semver===n&&(e=new r(">=0.0.0")),i=i||e,s=s||e,u(e.semver,i.semver,E)?i=e:Q(e.semver,s.semver,E)&&(s=e);}),i.operator===C||i.operator===I||(!s.operator||s.operator===C)&&h(e,s.semver)||s.operator===I&&Q(e,s.semver))return!1;}return!0;};}),A7("d5VNe",function(e,A){var t=ni("9p2Dy");e.exports=(e,A,r)=>t(e,A,">",r);}),A7("Y6IKQ",function(e,A){var t=ni("9p2Dy");e.exports=(e,A,r)=>t(e,A,"<",r);}),A7("aXDC5",function(e,A){var t=ni("hMcYs");e.exports=(e,A,r)=>(e=new t(e,r),A=new t(A,r),e.intersects(A,r));}),A7("k9cze",function(e,A){var t=ni("hHV3H"),r=ni("70mIC");e.exports=(e,A,n)=>{let o=[],i=null,s=null,a=e.sort((e,A)=>r(e,A,n));for(let e of a)t(e,A,n)?(s=e,i||(i=e)):(s&&o.push([i,s]),s=null,i=null);i&&o.push([i,null]);let l=[];for(let[e,A]of o)e===A?l.push(e):A||e!==a[0]?A?e===a[0]?l.push("<="+A):l.push(`${e} - ${A}`):l.push(">="+e):l.push("*");let c=l.join(" || "),g="string"==typeof A.raw?A.raw:A+"";return c.length=0.0.0-0")],a=[new r(">=0.0.0")],l=(e,A,t)=>{let r,l,E,u,h,Q,C;if(e===A)return!0;if(1===e.length&&e[0].semver===n){if(1===A.length&&A[0].semver===n)return!0;e=t.includePrerelease?s:a;}if(1===A.length&&A[0].semver===n){if(t.includePrerelease)return!0;A=a;}let I=new Set();for(let A of e)">"===A.operator||">="===A.operator?r=c(r,A,t):"<"===A.operator||"<="===A.operator?l=g(l,A,t):I.add(A.semver);if(I.size>1||r&&l&&((E=i(r.semver,l.semver,t))>0||0===E&&(">="!==r.operator||"<="!==l.operator)))return null;for(let e of I){if(r&&!o(e,r+"",t)||l&&!o(e,l+"",t))return null;for(let r of A)if(!o(e,r+"",t))return!1;return!0;}let d=!!l&&!t.includePrerelease&&!!l.semver.prerelease.length&&l.semver,B=!!r&&!t.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let e of(d&&1===d.prerelease.length&&"<"===l.operator&&0===d.prerelease[0]&&(d=!1),A)){if(C=C||">"===e.operator||">="===e.operator,Q=Q||"<"===e.operator||"<="===e.operator,r){if(B&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===B.major&&e.semver.minor===B.minor&&e.semver.patch===B.patch&&(B=!1),">"===e.operator||">="===e.operator){if((u=c(r,e,t))===e&&u!==r)return!1;}else if(">="===r.operator&&!o(r.semver,e+"",t))return!1;}if(l){if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if((h=g(l,e,t))===e&&h!==l)return!1;}else if("<="===l.operator&&!o(l.semver,e+"",t))return!1;}if(!e.operator&&(l||r)&&0!==E)return!1;}return(!r||!Q||!!l||0===E)&&(!l||!C||!!r||0===E)&&!B&&!d;},c=(e,A,t)=>{if(!e)return A;let r=i(e.semver,A.semver,t);return r>0?e:r<0?A:">"===A.operator&&">="===e.operator?A:e;},g=(e,A,t)=>{if(!e)return A;let r=i(e.semver,A.semver,t);return r<0?e:r>0?A:"<"===A.operator&&"<="===e.operator?A:e;};e.exports=(e,A,r={})=>{if(e===A)return!0;e=new t(e,r),A=new t(A,r);let n=!1;A:for(let t of e.set){for(let e of A.set){let A=l(t,e,r);if(n=n||null!==A,A)continue A;}if(n)return!1;}return!0;};}),A7("hQXed",function(e,A){async function t(e){try{return await(0,r4.promises).access(e),!0;}catch{return!1;}}a(e.exports,"pathExists",()=>t);}),A7("3pQcT",function(e,A){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),A7("jQPzx",function(e,A){var t,r,n,o,i,s,c,g,E,u,h,Q,C;function I(e,A){return Object.keys(A).forEach(t=>{"default"===t||"__esModule"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:()=>A[t]});}),e;}function d(e,A,t,r){Object.defineProperty(e,A,{get:t,set:r,enumerable:!0,configurable:!0});}function B(e,A=!0){return A?(0,rU.basename)(e):(0,rU.basename)(e,(0,rU.extname)(e));}function f(e){return(0,rU.normalize)(e).replace(RegExp((0,t.default)(rU.sep)+"$"),"");}function p(e,A=".exe",t=""){return"win32"===process.platform?`${e}${A}`:`${e}${t}`;}function y(e,A){let t=(0,rU.extname)(e),r=`${A}${(0,rU.basename)(e,t)}${t}`;return(0,rU.join)((0,rU.dirname)(e),r);}function m(e,A){let t=(0,rU.extname)(e),r=`${(0,rU.basename)(e,t)}${A}${t}`;return(0,rU.join)((0,rU.dirname)(e),r);}function w(e,A=".cmd",t=".sh"){return"win32"===process.platform?`${e}${A}`:`${e}${t}`;}function b(e){return"win32"===process.platform?e:"./"+e;}function R(e){let A=(0,rU.extname)(e).length;return e.slice(0,-A);}function D(e,A){return l(r)(e,A);}function S(e,A){let t=(0,rU.relative)(A,e);return!(!t||".."===t||t.startsWith(".."+rU.sep)||t===(0,rU.resolve)(e));}a(e.exports,"addExeExt",()=>p),a(e.exports,"addShExt",()=>w),a(e.exports,"addShRelativePrefix",()=>b),a(e.exports,"dirname",()=>rU.dirname),a(e.exports,"join",()=>rU.join),t=ni("clMDF"),r=ni("5zU7z"),n={},d(o={},"name",()=>B),d(i={},"normalizeTrim",()=>f),d(s={},"addExeExt",()=>p),d(c={},"addNamePrefix",()=>y),d(g={},"addNameSuffix",()=>m),d(E={},"addShExt",()=>w),d(u={},"addShRelativePrefix",()=>b),d(h={},"removeExt",()=>R),d(Q={},"replaceExt",()=>D),d(C={},"isPathInside",()=>S),I(n,o),I(n,i),I(n,s),I(n,c),I(n,g),I(n,E),I(n,u),I(n,h),I(n,Q),I(n,C);}),A7("clMDF",function(e,A){function t(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}a(e.exports,"default",()=>t);}),A7("5zU7z",function(e,A){e.exports=function(e,A){if("string"!=typeof e||0===e.length)return e;var t,r=rU.basename(e,rU.extname(e))+A,n=rU.join(rU.dirname(e),r);return(t=e.slice(0,2))==="."+rU.sep||"./"===t?"."+rU.sep+n:n;};}),A7("2C5C8",function(e,A){var t,r,n,o;function i(e){return o(this,void 0,void 0,function*(){if(g.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield g.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function s(e){return o(this,void 0,void 0,function*(){rJ.ok(e,"a path argument must be provided"),yield g.mkdir(e,{recursive:!0});});}function a(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let A=[];if(g.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(c.delimiter))e&&A.push(e);if(g.isRooted(e)){let t=yield g.tryGetExecutablePath(e,A);return t?[t]:[];}if(e.includes(c.sep))return[];let t=[];if(process.env.PATH)for(let e of process.env.PATH.split(c.delimiter))e&&t.push(e);let r=[];for(let n of t){let t=yield g.tryGetExecutablePath(c.join(n,e),A);t&&r.push(t);}return r;});}function l(e,A,t){return o(this,void 0,void 0,function*(){if((yield g.lstat(e)).isSymbolicLink()){try{yield g.lstat(A),yield g.unlink(A);}catch(e){"EPERM"===e.code&&(yield g.chmod(A,"0666"),yield g.unlink(A));}let t=yield g.readlink(e);yield g.symlink(t,A,g.IS_WINDOWS?"junction":null);}else(!(yield g.exists(A))||t)&&(yield g.copyFile(e,A));});}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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;let c=n(rU),g=n(ni("cx0tN"));e.exports.cp=function(e,A,t={}){return o(this,void 0,void 0,function*(){let{force:r,recursive:n,copySourceDirectory:i}=function(e){let A=null==e.force||e.force;return{force:A,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(t),a=(yield g.exists(A))?yield g.stat(A):null;if(a&&a.isFile()&&!r)return;let E=a&&a.isDirectory()&&i?c.join(A,c.basename(e)):A;if(!(yield g.exists(e)))throw Error("no such file or directory: "+e);if((yield g.stat(e)).isDirectory()){if(n)yield function e(A,t,r,n){return o(this,void 0,void 0,function*(){if(!(r>=255)){for(let o of(r++,yield s(t),yield g.readdir(A))){let i=`${A}/${o}`,s=`${t}/${o}`;(yield g.lstat(i)).isDirectory()?yield e(i,s,r,n):yield l(i,s,n);}yield g.chmod(t,(yield g.stat(A)).mode);}});}(e,E,0,r);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===c.relative(e,E))throw Error(`'${E}' and '${e}' are the same file`);yield l(e,E,r);}});},e.exports.mv=function(e,A,t={}){return o(this,void 0,void 0,function*(){if(yield g.exists(A)){let r=!0;if((yield g.isDirectory(A))&&(A=c.join(A,c.basename(e)),r=yield g.exists(A)),r){if(null==t.force||t.force)yield i(A);else throw Error("Destination already exists");}}yield s(c.dirname(A)),yield g.rename(e,A);});},e.exports.rmRF=i,e.exports.mkdirP=s,e.exports.which=function e(A,t){return o(this,void 0,void 0,function*(){if(!A)throw Error("parameter 'tool' is required");if(t){let t=yield e(A,!1);if(!t){if(g.IS_WINDOWS)throw Error(`Unable to locate executable file: ${A}. 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.`);throw Error(`Unable to locate executable file: ${A}. 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 t;}let r=yield a(A);return r&&r.length>0?r[0]:"";});},e.exports.findInPath=a;}),A7("cx0tN",function(e,A){var t,r,n,o,i;function s(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let a=n(rT),l=n(rU);i=a.promises,e.exports.chmod=i.chmod,e.exports.copyFile=i.copyFile,e.exports.lstat=i.lstat,e.exports.mkdir=i.mkdir,e.exports.open=i.open,e.exports.readdir=i.readdir,e.exports.readlink=i.readlink,e.exports.rename=i.rename,e.exports.rm=i.rm,e.exports.rmdir=i.rmdir,e.exports.stat=i.stat,e.exports.symlink=i.symlink,e.exports.unlink=i.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=a.constants.O_RDONLY,e.exports.exists=function(A){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(A);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(A,t=!1){return o(this,void 0,void 0,function*(){return(t?yield e.exports.stat(A):yield e.exports.lstat(A)).isDirectory();});},e.exports.isRooted=function(A){var t;if(t=(t=A)||"",!(A=e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?A.startsWith("\\")||/^[A-Z]:/i.test(A):A.startsWith("/");},e.exports.tryGetExecutablePath=function(A,t){return o(this,void 0,void 0,function*(){let r;try{r=yield e.exports.stat(A);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${A}': ${e}`);}if(r&&r.isFile()){if(e.exports.IS_WINDOWS){let e=l.extname(A).toUpperCase();if(t.some(A=>A.toUpperCase()===e))return A;}else if(s(r))return A;}let n=A;for(let o of t){A=n+o,r=void 0;try{r=yield e.exports.stat(A);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${A}': ${e}`);}if(r&&r.isFile()){if(e.exports.IS_WINDOWS){try{let t=l.dirname(A),r=l.basename(A).toUpperCase();for(let n of yield e.exports.readdir(t))if(r===n.toUpperCase()){A=l.join(t,n);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${A}': ${e}`);}return A;}if(s(r))return A;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),A7("47EGY",function(e,A){var t,r,n,o,i;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let s=n(ni("3QlWg"));i=ni("d1q4F"),e.exports._findMatch=function(A,t,r,n){return o(this,void 0,void 0,function*(){let o,a,l;let c=rL.platform();for(let o of r){let r=o.version;if(i.debug(`check ${r} satisfies ${A}`),s.satisfies(r,A)&&(!t||o.stable===t)&&(l=o.files.find(A=>{i.debug(`${A.arch}===${n} && ${A.platform}===${c}`);let t=A.arch===n&&A.platform===c;if(t&&A.platform_version){let r=e.exports._getOsVersion();t=r===A.platform_version||s.satisfies(r,A.platform_version);}return t;}))){i.debug("matched "+o.version),a=o;break;}}return a&&l&&((o=Object.assign({},a)).files=[l]),o;});},e.exports._getOsVersion=function(){let A=rL.platform(),t="";if("darwin"===A)t=r8.execSync("sw_vers -productVersion").toString();else if("linux"===A){let A=e.exports._readLinuxVersionFile();if(A)for(let e of A.split("\n")){let A=e.split("=");if(2===A.length&&("VERSION_ID"===A[0].trim()||"DISTRIB_RELEASE"===A[0].trim())){t=A[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return t;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",A="/etc/os-release",t="";return rT.existsSync(e)?t=rT.readFileSync(e).toString():rT.existsSync(A)&&(t=rT.readFileSync(A).toString()),t;};}),A7("3QlWg",function(e,A){function t(e){v[e]=k++;}function r(e){for(var A=0;Am||!(A.loose?D[v.LOOSE]:D[v.FULL]).test(e))return null;try{return new o(e,A);}catch(e){return null;}}function o(e,A){if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),e instanceof o){if(e.loose===A.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>m)throw TypeError("version is longer than "+m+" characters");if(!(this instanceof o))return new o(e,A);y("SemVer",e,A),this.options=A,this.loose=!!A.loose;var t=e.trim().match(A.loose?D[v.LOOSE]:D[v.FULL]);if(!t)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>w||this.major<0)throw TypeError("Invalid major version");if(this.minor>w||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>w||this.patch<0)throw TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var A=+e;if(A>=0&&Ae?-1:1;}function s(e,A,t){return new o(e,t).compare(new o(A,t));}function a(e,A,t){return s(e,A,t)>0;}function l(e,A,t){return 0>s(e,A,t);}function c(e,A,t){return 0===s(e,A,t);}function g(e,A,t){return 0!==s(e,A,t);}function E(e,A,t){return s(e,A,t)>=0;}function u(e,A,t){return 0>=s(e,A,t);}function h(e,A,t,r){switch(A){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof t&&(t=t.version),e===t;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof t&&(t=t.version),e!==t;case"":case"=":case"==":return c(e,t,r);case"!=":return g(e,t,r);case">":return a(e,t,r);case">=":return E(e,t,r);case"<":return l(e,t,r);case"<=":return u(e,t,r);default:throw TypeError("Invalid operator: "+A);}}function Q(e,A){if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),e instanceof Q){if(!!A.loose===e.loose)return e;e=e.value;}if(!(this instanceof Q))return new Q(e,A);e=e.trim().split(/\s+/).join(" "),y("comparator",e,A),this.options=A,this.loose=!!A.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,y("comp",this);}function C(e,A){if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),e instanceof C)return!!A.loose===e.loose&&!!A.includePrerelease===e.includePrerelease?e:new C(e.raw,A);if(e instanceof Q)return new C(e.value,A);if(!(this instanceof C))return new C(e,A);if(this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function I(e,A){for(var t=!0,r=e.slice(),n=r.pop();t&&r.length;)t=r.every(function(e){return n.intersects(e,A);}),n=r.pop();return t;}function d(e){return!e||"x"===e.toLowerCase()||"*"===e;}function B(e,A,t,r,n,o,i,s,a,l,c,g,E){return((A=d(t)?"":d(r)?">="+t+".0.0":d(n)?">="+t+"."+r+".0":">="+A)+" "+(s=d(a)?"":d(l)?"<"+(+a+1)+".0.0":d(c)?"<"+a+"."+(+l+1)+".0":g?"<="+a+"."+l+"."+c+"-"+g:"<="+s)).trim();}function f(e,A,t){try{A=new C(A,t);}catch(e){return!1;}return A.test(e);}function p(e,A,t,r){switch(e=new o(e,r),A=new C(A,r),t){case">":n=a,i=u,s=l,c=">",g=">=";break;case"<":n=l,i=E,s=a,c="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(f(e,A,r))return!1;for(var n,i,s,c,g,h=0;h=0.0.0")),d=d||e,B=B||e,n(e.semver,d.semver,r)?d=e:s(e.semver,B.semver,r)&&(B=e);}),d.operator===c||d.operator===g||(!B.operator||B.operator===c)&&i(e,B.semver)||B.operator===g&&s(e,B.semver))return!1;}return!0;}A=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?y=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:y=function(){},A.SEMVER_SPEC_VERSION="2.0.0",m=256,w=Number.MAX_SAFE_INTEGER||9007199254740991,b=m-6,R=A.re=[],D=A.safeRe=[],S=A.src=[],v=A.tokens={},k=0,F=[["\\s",1],["\\d",m],[N="[a-zA-Z0-9-]",b]],t("NUMERICIDENTIFIER"),S[v.NUMERICIDENTIFIER]="0|[1-9]\\d*",t("NUMERICIDENTIFIERLOOSE"),S[v.NUMERICIDENTIFIERLOOSE]="\\d+",t("NONNUMERICIDENTIFIER"),S[v.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+N+"*",t("MAINVERSION"),S[v.MAINVERSION]="("+S[v.NUMERICIDENTIFIER]+")\\.("+S[v.NUMERICIDENTIFIER]+")\\.("+S[v.NUMERICIDENTIFIER]+")",t("MAINVERSIONLOOSE"),S[v.MAINVERSIONLOOSE]="("+S[v.NUMERICIDENTIFIERLOOSE]+")\\.("+S[v.NUMERICIDENTIFIERLOOSE]+")\\.("+S[v.NUMERICIDENTIFIERLOOSE]+")",t("PRERELEASEIDENTIFIER"),S[v.PRERELEASEIDENTIFIER]="(?:"+S[v.NUMERICIDENTIFIER]+"|"+S[v.NONNUMERICIDENTIFIER]+")",t("PRERELEASEIDENTIFIERLOOSE"),S[v.PRERELEASEIDENTIFIERLOOSE]="(?:"+S[v.NUMERICIDENTIFIERLOOSE]+"|"+S[v.NONNUMERICIDENTIFIER]+")",t("PRERELEASE"),S[v.PRERELEASE]="(?:-("+S[v.PRERELEASEIDENTIFIER]+"(?:\\."+S[v.PRERELEASEIDENTIFIER]+")*))",t("PRERELEASELOOSE"),S[v.PRERELEASELOOSE]="(?:-?("+S[v.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+S[v.PRERELEASEIDENTIFIERLOOSE]+")*))",t("BUILDIDENTIFIER"),S[v.BUILDIDENTIFIER]=N+"+",t("BUILD"),S[v.BUILD]="(?:\\+("+S[v.BUILDIDENTIFIER]+"(?:\\."+S[v.BUILDIDENTIFIER]+")*))",t("FULL"),t("FULLPLAIN"),S[v.FULLPLAIN]="v?"+S[v.MAINVERSION]+S[v.PRERELEASE]+"?"+S[v.BUILD]+"?",S[v.FULL]="^"+S[v.FULLPLAIN]+"$",t("LOOSEPLAIN"),S[v.LOOSEPLAIN]="[v=\\s]*"+S[v.MAINVERSIONLOOSE]+S[v.PRERELEASELOOSE]+"?"+S[v.BUILD]+"?",t("LOOSE"),S[v.LOOSE]="^"+S[v.LOOSEPLAIN]+"$",t("GTLT"),S[v.GTLT]="((?:<|>)?=?)",t("XRANGEIDENTIFIERLOOSE"),S[v.XRANGEIDENTIFIERLOOSE]=S[v.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",t("XRANGEIDENTIFIER"),S[v.XRANGEIDENTIFIER]=S[v.NUMERICIDENTIFIER]+"|x|X|\\*",t("XRANGEPLAIN"),S[v.XRANGEPLAIN]="[v=\\s]*("+S[v.XRANGEIDENTIFIER]+")(?:\\.("+S[v.XRANGEIDENTIFIER]+")(?:\\.("+S[v.XRANGEIDENTIFIER]+")(?:"+S[v.PRERELEASE]+")?"+S[v.BUILD]+"?)?)?",t("XRANGEPLAINLOOSE"),S[v.XRANGEPLAINLOOSE]="[v=\\s]*("+S[v.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+S[v.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+S[v.XRANGEIDENTIFIERLOOSE]+")(?:"+S[v.PRERELEASELOOSE]+")?"+S[v.BUILD]+"?)?)?",t("XRANGE"),S[v.XRANGE]="^"+S[v.GTLT]+"\\s*"+S[v.XRANGEPLAIN]+"$",t("XRANGELOOSE"),S[v.XRANGELOOSE]="^"+S[v.GTLT]+"\\s*"+S[v.XRANGEPLAINLOOSE]+"$",t("COERCE"),S[v.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",t("COERCERTL"),R[v.COERCERTL]=RegExp(S[v.COERCE],"g"),D[v.COERCERTL]=RegExp(r(S[v.COERCE]),"g"),t("LONETILDE"),S[v.LONETILDE]="(?:~>?)",t("TILDETRIM"),S[v.TILDETRIM]="(\\s*)"+S[v.LONETILDE]+"\\s+",R[v.TILDETRIM]=RegExp(S[v.TILDETRIM],"g"),D[v.TILDETRIM]=RegExp(r(S[v.TILDETRIM]),"g"),t("TILDE"),S[v.TILDE]="^"+S[v.LONETILDE]+S[v.XRANGEPLAIN]+"$",t("TILDELOOSE"),S[v.TILDELOOSE]="^"+S[v.LONETILDE]+S[v.XRANGEPLAINLOOSE]+"$",t("LONECARET"),S[v.LONECARET]="(?:\\^)",t("CARETTRIM"),S[v.CARETTRIM]="(\\s*)"+S[v.LONECARET]+"\\s+",R[v.CARETTRIM]=RegExp(S[v.CARETTRIM],"g"),D[v.CARETTRIM]=RegExp(r(S[v.CARETTRIM]),"g"),t("CARET"),S[v.CARET]="^"+S[v.LONECARET]+S[v.XRANGEPLAIN]+"$",t("CARETLOOSE"),S[v.CARETLOOSE]="^"+S[v.LONECARET]+S[v.XRANGEPLAINLOOSE]+"$",t("COMPARATORLOOSE"),S[v.COMPARATORLOOSE]="^"+S[v.GTLT]+"\\s*("+S[v.LOOSEPLAIN]+")$|^$",t("COMPARATOR"),S[v.COMPARATOR]="^"+S[v.GTLT]+"\\s*("+S[v.FULLPLAIN]+")$|^$",t("COMPARATORTRIM"),S[v.COMPARATORTRIM]="(\\s*)"+S[v.GTLT]+"\\s*("+S[v.LOOSEPLAIN]+"|"+S[v.XRANGEPLAIN]+")",R[v.COMPARATORTRIM]=RegExp(S[v.COMPARATORTRIM],"g"),D[v.COMPARATORTRIM]=RegExp(r(S[v.COMPARATORTRIM]),"g"),L="$1$2$3",t("HYPHENRANGE"),S[v.HYPHENRANGE]="^\\s*("+S[v.XRANGEPLAIN]+")\\s+-\\s+("+S[v.XRANGEPLAIN]+")\\s*$",t("HYPHENRANGELOOSE"),S[v.HYPHENRANGELOOSE]="^\\s*("+S[v.XRANGEPLAINLOOSE]+")\\s+-\\s+("+S[v.XRANGEPLAINLOOSE]+")\\s*$",t("STAR"),S[v.STAR]="(<|>)?=?\\s*\\*";for(var y,m,w,b,R,D,S,v,k,N,F,L,U,T,x=0;x=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0);}A&&(this.prerelease[0]===A?isNaN(this.prerelease[1])&&(this.prerelease=[A,0]):this.prerelease=[A,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},A.inc=function(e,A,t,r){"string"==typeof t&&(r=t,t=void 0);try{return new o(e,t).inc(A,r).version;}catch(e){return null;}},A.diff=function(e,A){if(c(e,A))return null;var t=n(e),r=n(A),o="";if(t.prerelease.length||r.prerelease.length){o="pre";var i="prerelease";}for(var s in t)if(("major"===s||"minor"===s||"patch"===s)&&t[s]!==r[s])return o+s;return i;},A.compareIdentifiers=i,U=/^[0-9]+$/,A.rcompareIdentifiers=function(e,A){return i(A,e);},A.major=function(e,A){return new o(e,A).major;},A.minor=function(e,A){return new o(e,A).minor;},A.patch=function(e,A){return new o(e,A).patch;},A.compare=s,A.compareLoose=function(e,A){return s(e,A,!0);},A.compareBuild=function(e,A,t){var r=new o(e,t),n=new o(A,t);return r.compare(n)||r.compareBuild(n);},A.rcompare=function(e,A,t){return s(A,e,t);},A.sort=function(e,t){return e.sort(function(e,r){return A.compareBuild(e,r,t);});},A.rsort=function(e,t){return e.sort(function(e,r){return A.compareBuild(r,e,t);});},A.gt=a,A.lt=l,A.eq=c,A.neq=g,A.gte=E,A.lte=u,A.cmp=h,A.Comparator=Q,T={},Q.prototype.parse=function(e){var A=this.options.loose?D[v.COMPARATORLOOSE]:D[v.COMPARATOR],t=e.match(A);if(!t)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),t[2]?this.semver=new o(t[2],this.options.loose):this.semver=T;},Q.prototype.toString=function(){return this.value;},Q.prototype.test=function(e){if(y("Comparator.test",e,this.options.loose),this.semver===T||e===T)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},Q.prototype.intersects=function(e,A){if(!(e instanceof Q))throw TypeError("a Comparator is required");if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),""===this.operator)return""===this.value||(t=new C(e.value,A),f(this.value,t,A));if(""===e.operator)return""===e.value||(t=new C(this.value,A),f(e.semver,t,A));var t,r=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),n=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,i=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),s=h(this.semver,"<",e.semver,A)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),a=h(this.semver,">",e.semver,A)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||o&&i||s||a;},A.Range=C,C.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},C.prototype.toString=function(){return this.range;},C.prototype.parseRange=function(e){var A=this.options.loose,t=A?D[v.HYPHENRANGELOOSE]:D[v.HYPHENRANGE];e=e.replace(t,B),y("hyphen replace",e),e=e.replace(D[v.COMPARATORTRIM],L),y("comparator trim",e,D[v.COMPARATORTRIM]),e=(e=(e=e.replace(D[v.TILDETRIM],"$1~")).replace(D[v.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=A?D[v.COMPARATORLOOSE]:D[v.COMPARATOR],n=e.split(" ").map(function(e){var A,t,r,n,o,i,s,a,l;return A=e,t=this.options,y("comp",A,t),r=A,n=t,A=r.trim().split(/\s+/).map(function(e){var A,t,r;return y("caret",A=e,t=n),r=t.loose?D[v.CARETLOOSE]:D[v.CARET],A.replace(r,function(e,t,r,n,o){var i;return y("caret",A,e,t,r,n,o),d(t)?i="":d(r)?i=">="+t+".0.0 <"+(+t+1)+".0.0":d(n)?i="0"===t?">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":">="+t+"."+r+".0 <"+(+t+1)+".0.0":o?(y("replaceCaret pr",o),i="0"===t?"0"===r?">="+t+"."+r+"."+n+"-"+o+" <"+t+"."+r+"."+(+n+1):">="+t+"."+r+"."+n+"-"+o+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+n+"-"+o+" <"+(+t+1)+".0.0"):(y("no pr"),i="0"===t?"0"===r?">="+t+"."+r+"."+n+" <"+t+"."+r+"."+(+n+1):">="+t+"."+r+"."+n+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+n+" <"+(+t+1)+".0.0"),y("caret return",i),i;});}).join(" "),y("caret",A),o=A,i=t,A=o.trim().split(/\s+/).map(function(e){var A,t;return A=e,t=i.loose?D[v.TILDELOOSE]:D[v.TILDE],A.replace(t,function(e,t,r,n,o){var i;return y("tilde",A,e,t,r,n,o),d(t)?i="":d(r)?i=">="+t+".0.0 <"+(+t+1)+".0.0":d(n)?i=">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":o?(y("replaceTilde pr",o),i=">="+t+"."+r+"."+n+"-"+o+" <"+t+"."+(+r+1)+".0"):i=">="+t+"."+r+"."+n+" <"+t+"."+(+r+1)+".0",y("tilde return",i),i;});}).join(" "),y("tildes",A),y("replaceXRanges",s=A,a=t),A=s.split(/\s+/).map(function(e){var A,t,r;return A=e,t=a,A=A.trim(),r=t.loose?D[v.XRANGELOOSE]:D[v.XRANGE],A.replace(r,function(e,r,n,o,i,s){y("xRange",A,e,r,n,o,i,s);var a=d(n),l=a||d(o),c=l||d(i);return"="===r&&c&&(r=""),s=t.includePrerelease?"-0":"",a?e=">"===r||"<"===r?"<0.0.0-0":"*":r&&c?(l&&(o=0),i=0,">"===r?(r=">=",l?(n=+n+1,o=0):o=+o+1,i=0):"<="===r&&(r="<",l?n=+n+1:o=+o+1),e=r+n+"."+o+"."+i+s):l?e=">="+n+".0.0"+s+" <"+(+n+1)+".0.0"+s:c&&(e=">="+n+"."+o+".0"+s+" <"+n+"."+(+o+1)+".0"+s),y("xRange return",e),e;});}).join(" "),y("xrange",A),y("replaceStars",l=A,t),A=l.trim().replace(D[v.STAR],""),y("stars",A),A;},this).join(" ").split(/\s+/);return this.options.loose&&(n=n.filter(function(e){return!!e.match(r);})),n=n.map(function(e){return new Q(e,this.options);},this);},C.prototype.intersects=function(e,A){if(!(e instanceof C))throw TypeError("a Range is required");return this.set.some(function(t){return I(t,A)&&e.set.some(function(e){return I(e,A)&&t.every(function(t){return e.every(function(e){return t.intersects(e,A);});});});});},A.toComparators=function(e,A){return new C(e,A).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},C.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var A=0;A0){var n=e[r].semver;if(n.major===A.major&&n.minor===A.minor&&n.patch===A.patch)return!0;}return!1;}return!0;}(this.set[A],e,this.options))return!0;return!1;},A.satisfies=f,A.maxSatisfying=function(e,A,t){var r=null,n=null;try{var i=new C(A,t);}catch(e){return null;}return e.forEach(function(e){i.test(e)&&(!r||-1===n.compare(e))&&(n=new o(r=e,t));}),r;},A.minSatisfying=function(e,A,t){var r=null,n=null;try{var i=new C(A,t);}catch(e){return null;}return e.forEach(function(e){i.test(e)&&(!r||1===n.compare(e))&&(n=new o(r=e,t));}),r;},A.minVersion=function(e,A){e=new C(e,A);var t=new o("0.0.0");if(e.test(t)||(t=new o("0.0.0-0"),e.test(t)))return t;t=null;for(var r=0;r":0===A.prerelease.length?A.patch++:A.prerelease.push(0),A.raw=A.format();case"":case">=":(!t||a(t,A))&&(t=A);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return t&&e.test(t)?t:null;},A.validRange=function(e,A){try{return new C(e,A).range||"*";}catch(e){return null;}},A.ltr=function(e,A,t){return p(e,A,"<",t);},A.gtr=function(e,A,t){return p(e,A,">",t);},A.outside=p,A.prerelease=function(e,A){var t=n(e,A);return t&&t.prerelease.length?t.prerelease:null;},A.intersects=function(e,A,t){return e=new C(e,t),A=new C(A,t),e.intersects(A);},A.coerce=function(e,A){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var t,r=null;if((A=A||{}).rtl){for(;(t=D[v.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),D[v.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;D[v.COERCERTL].lastIndex=-1;}else r=e.match(D[v.COERCE]);return null===r?null:n(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),A);};}),A7("akvHR",function(e,A){var t=ni("4Pwhm"),r=ni("6asYX");e.exports=function(e,A,n){var o=A&&n||0;"string"==typeof e&&(A="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||t)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,A)for(var s=0;s<16;++s)A[o+s]=i[s];return A||r(i);};}),A7("4Pwhm",function(e,A){e.exports=function(){return rx.randomBytes(16);};}),A7("6asYX",function(e,A){for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,A){var r=A||0;return[t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]]].join("");};}),A7("igv8t",function(e,A){var t,r,n,o;function i(e,A,t){return o(this,void 0,void 0,function*(){let r=s.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let n=r[0];return A=r.slice(1).concat(A||[]),new s.ToolRunner(n,A,t).exec();});}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let s=n(ni("bPvcK"));e.exports.exec=i,e.exports.getExecOutput=function(e,A,t){var r,n;return o(this,void 0,void 0,function*(){let o="",s="",a=new r2.StringDecoder("utf8"),l=new r2.StringDecoder("utf8"),c=null===(r=null==t?void 0:t.listeners)||void 0===r?void 0:r.stdout,g=null===(n=null==t?void 0:t.listeners)||void 0===n?void 0:n.stderr,E=Object.assign(Object.assign({},null==t?void 0:t.listeners),{stdout(e){o+=a.write(e),c&&c(e);},stderr(e){s+=l.write(e),g&&g(e);}}),u=yield i(e,A,Object.assign(Object.assign({},t),{listeners:E}));return o+=a.end(),s+=l.end(),{exitCode:u,stdout:o,stderr:s};});};}),A7("bPvcK",function(e,A){var t,r,n,o;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let i=n(rL),s=n(rG),a=n(r8),l=n(rU),c=n(ni("2C5C8")),g=n(ni("cx0tN")),E="win32"===process.platform;class u extends s.EventEmitter{constructor(e,A,t){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=A||[],this.options=t||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,A){let t=this._getSpawnFileName(),r=this._getSpawnArgs(e),n=A?"":"[command]";if(E){if(this._isCmdFile())for(let e of(n+=t,r))n+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(n+=`"${t}"`,r))n+=" "+e;else for(let e of(n+=this._windowsQuoteCmdArg(t),r))n+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(n+=t,r))n+=" "+e;return n;}_processLineBuffer(e,A,t){try{let r=A+e.toString(),n=r.indexOf(i.EOL);for(;n>-1;){let e=r.substring(0,n);t(e),n=(r=r.substring(n+i.EOL.length)).indexOf(i.EOL);}return r;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return E&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(E&&this._isCmdFile()){let A='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let t of this.args)A+=" "+(e.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t));return[A+='"'];}return this.args;}_endsWith(e,A){return e.endsWith(A);}_isCmdFile(){let 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'""';let A=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],t=!1;for(let r of e)if(A.some(e=>e===r)){t=!0;break;}if(!t)return e;let r='"',n=!0;for(let A=e.length;A>0;A--)r+=e[A-1],n&&"\\"===e[A-1]?r+="\\":'"'===e[A-1]?(n=!0,r+='"'):n=!1;return(r+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let A='"',t=!0;for(let r=e.length;r>0;r--)A+=e[r-1],t&&"\\"===e[r-1]?A+="\\":'"'===e[r-1]?(t=!0,A+="\\"):t=!1;return(A+='"').split("").reverse().join("");}_cloneExecOptions(e){let A={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 A.outStream=e.outStream||process.stdout,A.errStream=e.errStream||process.stderr,A;}_getSpawnOptions(e,A){e=e||{};let t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(t.argv0=`"${A}"`),t;}exec(){return o(this,void 0,void 0,function*(){return!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||E&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise((e,A)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let t=this._cloneExecOptions(this.options);!t.silent&&t.outStream&&t.outStream.write(this._getCommandString(t)+i.EOL);let r=new h(t,this.toolPath);if(r.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield g.exists(this.options.cwd)))return A(Error(`The cwd: ${this.options.cwd} does not exist!`));let n=this._getSpawnFileName(),o=a.spawn(n,this._getSpawnArgs(t),this._getSpawnOptions(this.options,n)),s="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!t.silent&&t.outStream&&t.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let l="";if(o.stderr&&o.stderr.on("data",e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!t.silent&&t.errStream&&t.outStream&&(t.failOnStdErr?t.errStream:t.outStream).write(e),l=this._processLineBuffer(e,l,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete();}),o.on("exit",e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete();}),o.on("close",e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete();}),r.on("done",(t,r)=>{s.length>0&&this.emit("stdline",s),l.length>0&&this.emit("errline",l),o.removeAllListeners(),t?A(t):e(r);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=u,e.exports.argStringToArray=function(e){function A(e){n&&'"'!==e&&(o+="\\"),o+=e,n=!1;}let t=[],r=!1,n=!1,o="";for(let i=0;i0&&(t.push(o),o="");continue;}A(s);}return o.length>0&&t.push(o.trim()),t;};class h extends s.EventEmitter{constructor(e,A){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,!A)throw Error("toolPath must not be empty");this.options=e,this.toolPath=A,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=r9.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let A=`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._debug(A);}e._setResult();}}}}),A7("7dFvC",function(e,A){e.exports=Promise.resolve(require("./actions_python.2c5f2ae4.js")).then(()=>ni("apy8x"));}),A7("3l48W",function(e,A){e.exports=Promise.resolve(require("./hdi.d0d1f24f.js")).then(()=>ni("j5sNb"));}),te=ni("jj6Ot"),tA=ni("pcnv8"),tt=ni("13X3P"),function(){ni("7iyVD").addLocale("en",function(e){var A=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===A&&0===t)?"one":"other";});}.call(tr={}),tn={},tn=ni("bEcx3"),to={},to={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"}}}},ti={},a(ts={},"isexe",()=>ns),a(ts,"sync",()=>na),ta=ni("6vN83");const ns=async(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return nl(await(0,ta.stat)(e),A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},na=(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return nl((0,rT.statSync)(e),A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},nl=(e,A)=>e.isFile()&&nc(e,A),nc=(e,A)=>{var t,r,n,o,i,s,a,l,c,g,E;let u=null!==(a=A.uid)&&void 0!==a?a:null===(t=(r=process).getuid)||void 0===t?void 0:t.call(r),h=null!==(c=null!==(l=A.groups)&&void 0!==l?l:null===(n=(o=process).getgroups)||void 0===n?void 0:n.call(o))&&void 0!==c?c:[],Q=null!==(E=null!==(g=A.gid)&&void 0!==g?g:null===(i=(s=process).getgid)||void 0===i?void 0:i.call(s))&&void 0!==E?E:h[0];if(void 0===u||void 0===Q)throw Error("cannot get uid or gid");let C=new Set([Q,...h]),I=e.mode,d=e.uid,B=e.gid,f=parseInt("100",8),p=parseInt("010",8);return!!(I&parseInt("001",8)||I&p&&C.has(B)||I&f&&d===u||I&(f|p)&&0===u);};a(tl={},"isexe",()=>ng),a(tl,"sync",()=>nE),ta=ni("6vN83");const ng=async(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return nh(await(0,ta.stat)(e),e,A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},nE=(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return nh((0,rT.statSync)(e),e,A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},nu=(e,A)=>{let{pathExt:t=process.env.PATHEXT||""}=A,r=t.split(";");if(-1!==r.indexOf(""))return!0;for(let A=0;Ae.isFile()&&nu(A,t),nQ="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?tl:ts,nC=nQ.isexe,nI=nQ.sync;tc=rU.join,tg=rU.delimiter,tE=rU.sep,tu=rU.posix;const nd="win32"===process.platform,nB=new RegExp(`[${tu.sep}${tE===tu.sep?"":tE}]`.replace(/(\\)/g,"\\$1")),nf=RegExp("^\\."+nB.source),np=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ny=(e,{path:A=process.env.PATH,pathExt:t=process.env.PATHEXT,delimiter:r=tg})=>{let n=e.match(nB)?[""]:[...(nd?[process.cwd()]:[]),...(A||"").split(r)];if(nd){let A=t||[".EXE",".CMD",".BAT",".COM"].join(r),o=A.split(r).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:A};}return{pathEnv:n,pathExt:[""]};},nm=(e,A)=>{let t=/^".*"$/.test(e)?e.slice(1,-1):e;return(!t&&nf.test(A)?A.slice(0,2):"")+tc(t,A);},nw=async(e,A={})=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=ny(e,A),o=[];for(let i of t){let t=nm(i,e);for(let e of r){let r=t+e;if(await nC(r,{pathExt:n,ignoreErrors:!0})){if(!A.all)return r;o.push(r);}}}if(A.all&&o.length)return o;if(A.nothrow)return null;throw np(e);};ti=nw,nw.sync=(e,A={})=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=ny(e,A),o=[];for(let i of t){let t=nm(i,e);for(let e of r){let r=t+e;if(nI(r,{pathExt:n,ignoreErrors:!0})){if(!A.all)return r;o.push(r);}}}if(A.all&&o.length)return o;if(A.nothrow)return null;throw np(e);},th={},tQ={},tC={},tI={};const nb="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,nR=nb?";":":";td={},"win32"===process.platform||nr.TESTING_WINDOWS?tB=ni("iVKcZ"):tB=ni("88j1C"),td=c,c.sync=function(e,A){try{return tB.sync(e,A||{});}catch(e){if(A&&A.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const nD=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),nS=(e,A)=>{let t=A.colon||nR,r=e.match(/\//)||nb&&e.match(/\\/)?[""]:[...(nb?[process.cwd()]:[]),...(A.path||process.env.PATH||"").split(t)],n=nb?A.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=nb?n.split(t):[""];return nb&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:r,pathExt:o,pathExtExe:n};},nv=(e,A,t)=>{"function"==typeof A&&(t=A,A={}),A||(A={});let{pathEnv:r,pathExt:n,pathExtExe:o}=nS(e,A),i=[],s=t=>new Promise((n,o)=>{if(t===r.length)return A.all&&i.length?n(i):o(nD(e));let s=r[t],l=/^".*"$/.test(s)?s.slice(1,-1):s,c=rU.join(l,e);n(a(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c,t,0));}),a=(e,t,r)=>new Promise((l,c)=>{if(r===n.length)return l(s(t+1));let g=n[r];td(e+g,{pathExt:o},(n,o)=>{if(!n&&o){if(!A.all)return l(e+g);i.push(e+g);}return l(a(e,t,r+1));});});return t?s(0).then(e=>t(null,e),t):s(0);};tI=nv,nv.sync=(e,A)=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=nS(e,A=A||{}),o=[];for(let i=0;i{let A=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(A).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(tf=nk).default=nk,tC=function(e){return g(e)||g(e,!0);};tp=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},ty=function(e,A){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),A&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},tm={},tw={},tb={},tb=/^#!(.*)/,tw=(e="")=>{let A=e.match(tb);if(!A)return null;let[t,r]=A[0].replace(/#! ?/,"").split(" "),n=t.split("/").pop();return"env"===n?r:r?`${n} ${r}`:n;},tm=function(e){let A;let t=Buffer.alloc(150);try{A=rT.openSync(e,"r"),rT.readSync(A,t,0,150,0),rT.closeSync(A);}catch(e){}return tw(t.toString());};const nN="win32"===process.platform;tQ=function(e,A,t){A&&!Array.isArray(A)&&(t=A,A=null);let r={command:e,args:A=A?A.slice(0):[],options:t=Object.assign({},t),file:void 0,original:{command:e,args:A}};return t.shell?r:function(e){if(!nN)return e;let A=function(e){e.file=tC(e);let A=e.file&&tm(e.file);return A?(e.args.unshift(e.file),e.command=A,tC(e)):e.file;}(e),t=!/\.(?:com|exe)$/i.test(A);if(e.options.forceShell||t){let t=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(A);e.command=rU.normalize(e.command),e.command=tp(e.command),e.args=e.args.map(e=>ty(e,t));let r=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${r}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(r);},tR={};const nF="win32"===process.platform;tR={hookChildProcess:function(e,A){if(!nF)return;let t=e.emit;e.emit=function(r,n){if("exit"===r){let r=u(n,A,"spawn");if(r)return t.call(e,"error",r);}return t.apply(e,arguments);};},verifyENOENT:u,verifyENOENTSync:function(e,A){return nF&&1===e&&!A.file?E(A.original,"spawnSync"):null;},notFoundError:E},(th=h).spawn=h,th.sync=function(e,A,t){let r=tQ(e,A,t),n=r8.spawnSync(r.command,r.args,r.options);return n.error=n.error||tR.verifyENOENTSync(n.status,r),n;},th._parse=tQ,th._enoent=tR;const nL=({cwd:e=l(r7).cwd(),path:A=l(r7).env[C()],preferLocal:t=!0,execPath:r=l(r7).execPath,addExecPath:n=!0}={})=>{let o=e instanceof URL?(0,ne.fileURLToPath)(e):e,i=l(r5).resolve(o),s=[];return t&&nU(s,i),n&&nT(s,r,i),[...s,A].join(l(r5).delimiter);},nU=(e,A)=>{let t;for(;t!==A;)e.push(l(r5).join(A,"node_modules/.bin")),t=A,A=l(r5).resolve(A,"..");},nT=(e,A,t)=>{let r=A instanceof URL?(0,ne.fileURLToPath)(A):A;e.push(l(r5).resolve(t,r,".."));},nx=({env:e=l(r7).env,...A}={})=>{let t=C({env:e={...e}});return A.path=e[t],e[t]=nL(A),e;},nM=(e,A,t,r)=>{if("length"===t||"prototype"===t||"arguments"===t||"caller"===t)return;let n=Object.getOwnPropertyDescriptor(e,t),o=Object.getOwnPropertyDescriptor(A,t);(n_(n,o)||!r)&&Object.defineProperty(e,t,o);},n_=function(e,A){return void 0===e||e.configurable||e.writable===A.writable&&e.enumerable===A.enumerable&&e.configurable===A.configurable&&(e.writable||e.value===A.value);},nO=(e,A)=>{let t=Object.getPrototypeOf(A);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t);},nY=(e,A)=>`/* Wrapped ${e}*/ ${A}`,nG=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),nJ=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),nH=(e,A,t)=>{let r=""===t?"":`with ${t.trim()}() `,n=nY.bind(null,r,A.toString());Object.defineProperty(n,"name",nJ),Object.defineProperty(e,"toString",{...nG,value:n});},nP=new WeakMap(),nV=(e,A={})=>{let t;if("function"!=typeof e)throw TypeError("Expected a function");let r=0,n=e.displayName||e.name||"",o=function(...i){if(nP.set(o,++r),1===r)t=e.apply(this,i),e=null;else if(!0===A.throw)throw Error(`Function \`${n}\` can only be called once`);return t;};return!function(e,A,{ignoreNonConfigurable:t=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(A))nM(e,A,r,t);nO(e,A),nH(e,A,r);}(o,e),nP.set(o,r),o;};nV.callCount=e=>{if(!nP.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return nP.get(e);},tD=nV;const nq=()=>Array.from({length:n$-nj+1},nW),nW=(e,A)=>({name:"SIGRT"+(A+1),number:nj+A,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),nj=34,n$=64,nX=[{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"}],nz=()=>[...nX,...nq()].map(nZ),nZ=({name:e,number:A,description:t,action:r,forced:n=!1,standard:o})=>{let{signals:{[e]:i}}=nA.constants,s=void 0!==i;return{name:e,number:s?i:A,description:t,supported:s,action:r,forced:n,standard:o};},nK=Object.fromEntries(nz().map(({name:e,number:A,description:t,supported:r,action:n,forced:o,standard:i})=>[e,{name:e,number:A,description:t,supported:r,action:n,forced:o,standard:i}])),n0=(e,A)=>{let t=n1(e,A);if(void 0===t)return{};let{name:r,description:n,supported:o,action:i,forced:s,standard:a}=t;return{[e]:{name:r,number:e,description:n,supported:o,action:i,forced:s,standard:a}};},n1=(e,A)=>{let t=A.find(({name:A})=>nA.constants.signals[A]===e);return void 0!==t?t:A.find(A=>A.number===e);};(()=>{let e=nz();return Object.assign({},...Array.from({length:n$+1},(A,t)=>n0(t,e)));})();const n2=({timedOut:e,timeout:A,errorCode:t,signal:r,signalDescription:n,exitCode:o,isCanceled:i})=>e?`timed out after ${A} milliseconds`:i?"was canceled":void 0!==t?"failed with "+t:void 0!==r?`was killed with ${r} (${n})`:void 0!==o?"failed with exit code "+o:"failed",n4=({stdout:e,stderr:A,all:t,error:r,signal:n,exitCode:o,command:i,escapedCommand:s,timedOut:a,isCanceled:c,killed:g,parsed:{options:{timeout:E,cwd:u=l(r7).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(n=null===n?void 0:n)?void 0:nK[n].description,Q=n2({timedOut:a,timeout:E,errorCode:r&&r.code,signal:n,signalDescription:h,exitCode:o,isCanceled:c}),C=`Command ${Q}: ${i}`,I="[object Error]"===Object.prototype.toString.call(r),d=I?`${C} ${r.message}`:C,B=[d,A,e].filter(Boolean).join("\n");return I?(r.originalMessage=r.message,r.message=B):r=Error(B),r.shortMessage=d,r.command=i,r.escapedCommand=s,r.exitCode=o,r.signal=n,r.signalDescription=h,r.stdout=e,r.stderr=A,r.cwd=u,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=c,r.killed=g&&!a,r;},n8=["stdin","stdout","stderr"],n9=e=>n8.some(A=>void 0!==e[A]),n3=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return n8.map(A=>e[A]);if(n9(e))throw Error("It's not possible to provide `stdio` in combination with one of "+n8.map(e=>`\`${e}\``).join(", "));if("string"==typeof A)return A;if(!Array.isArray(A))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof A}\``);return Array.from({length:Math.max(A.length,n8.length)},(e,t)=>A[t]);};tS={};const n5=function(e){return 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(n5(tv=nr.process)){var n6,n7=ni("2PjMq"),oe=/^win/i.test(tv.platform),oA=rG;"function"!=typeof oA&&(oA=oA.EventEmitter),tv.__signal_exit_emitter__?n6=tv.__signal_exit_emitter__:((n6=tv.__signal_exit_emitter__=new oA()).count=0,n6.emitted={}),n6.infinite||(n6.setMaxListeners(1/0),n6.infinite=!0);var ot=function(){oo&&n5(nr.process)&&(oo=!1,n7.forEach(function(e){try{tv.removeListener(e,on[e]);}catch(e){}}),tv.emit=ol,tv.reallyExit=os,n6.count-=1);};(tS=function(e,A){if(!n5(nr.process))return function(){};rJ.equal(typeof e,"function","a callback must be provided for exit handler"),!1===oo&&oi();var t="exit";return A&&A.alwaysLast&&(t="afterexit"),n6.on(t,e),function(){n6.removeListener(t,e),0===n6.listeners("exit").length&&0===n6.listeners("afterexit").length&&ot();};}).unload=ot;var or=function(e,A,t){n6.emitted[e]||(n6.emitted[e]=!0,n6.emit(e,A,t));},on={};n7.forEach(function(e){on[e]=function(){n5(nr.process)&&tv.listeners(e).length===n6.count&&(ot(),or("exit",null,e),or("afterexit",null,e),oe&&"SIGHUP"===e&&(e="SIGINT"),tv.kill(tv.pid,e));};}),tS.signals=function(){return n7;};var oo=!1,oi=function(){!oo&&n5(nr.process)&&(oo=!0,n6.count+=1,n7=n7.filter(function(e){try{return tv.on(e,on[e]),!0;}catch(e){return!1;}}),tv.emit=oc,tv.reallyExit=oa);};tS.load=oi;var os=tv.reallyExit,oa=function(e){n5(nr.process)&&(tv.exitCode=e||0,or("exit",tv.exitCode,null),or("afterexit",tv.exitCode,null),os.call(tv,tv.exitCode));},ol=tv.emit,oc=function(e,A){if(!("exit"===e&&n5(nr.process)))return ol.apply(this,arguments);void 0!==A&&(tv.exitCode=A);var t=ol.apply(this,arguments);return or("exit",tv.exitCode,null),or("afterexit",tv.exitCode,null),t;};}else tS=function(){return function(){};};const og=(e,A="SIGTERM",t={})=>{let r=e(A);return oE(e,A,t,r),r;},oE=(e,A,t,r)=>{if(!ou(A,t,r))return;let n=setTimeout(()=>{e("SIGKILL");},oQ(t));n.unref&&n.unref();},ou=(e,{forceKillAfterTimeout:A},t)=>oh(e)&&!1!==A&&t,oh=e=>e===l(nA).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),oQ=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oC=(e,A)=>{e.kill()&&(A.isCanceled=!0);},oI=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},od=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{let n;return 0===A||void 0===A?r:Promise.race([new Promise((r,o)=>{n=setTimeout(()=>{oI(e,t,o);},A);}),r.finally(()=>{clearTimeout(n);})]);},oB=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},of=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)return r;let n=l(tS)(()=>{e.kill();});return r.finally(()=>{n();});},op=e=>e instanceof r6.ChildProcess&&"function"==typeof e.then,oy=(e,A,t)=>{if("string"==typeof t)return e[A].pipe((0,r4.createWriteStream)(t)),e;if(d(t))return e[A].pipe(t),e;if(!op(t))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!d(t.stdin))throw TypeError("The target child process's stdin must be available.");return e[A].pipe(t.stdin),t;},om=e=>{null!==e.stdout&&(e.pipeStdout=oy.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=oy.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=oy.bind(void 0,e,"all"));};tk={},tN=rV.constants,tF=rH.promisify,tL={},tU=rP.PassThrough,tL=e=>{let{array:A}=e={...e},{encoding:t}=e,r="buffer"===t,n=!1;A?n=!(t||r):t=t||"utf8",r&&(t=null);let o=new tU({objectMode:n});t&&o.setEncoding(t);let i=0,s=[];return o.on("data",e=>{s.push(e),n?i=s.length:i+=e.length;}),o.getBufferedValue=()=>A?s:r?Buffer.concat(s,i):s.join(""),o.getBufferedLength=()=>i,o;};const ow=tF(rP.pipeline);class ob extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(tk=B).buffer=(e,A)=>B(e,{...A,encoding:"buffer"}),tk.array=(e,A)=>B(e,{...A,array:!0}),tk.MaxBufferError=ob,tT={},tx=rP.PassThrough,tT=function(){function e(n){return Array.isArray(n)?n.forEach(e):(t.push(n),n.once("end",A.bind(null,n)),n.once("error",r.emit.bind(r,"error")),n.pipe(r,{end:!1})),this;}function A(e){!(t=t.filter(function(A){return A!==e;})).length&&r.readable&&r.end();}var t=[],r=new tx({objectMode:!0});return r.setMaxListeners(0),r.add=e,r.isEmpty=function(){return 0==t.length;},r.on("unpipe",A),Array.prototype.slice.call(arguments).forEach(e),r;};const oR=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},oD=({input:e,inputFile:A})=>"string"!=typeof A?e:(oR(e),(0,r4.readFileSync)(A)),oS=e=>{let A=oD(e);if(I(A))throw TypeError("The `input` option cannot be a stream in sync mode");return A;},ov=({input:e,inputFile:A})=>"string"!=typeof A?e:(oR(e),(0,r4.createReadStream)(A)),ok=(e,A)=>{let t=ov(A);void 0!==t&&(I(t)?t.pipe(e.stdin):e.stdin.end(t));},oN=(e,{all:A})=>{if(!A||!e.stdout&&!e.stderr)return;let t=l(tT)();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t;},oF=async(e,A)=>{if(e&&void 0!==A){e.destroy();try{return await A;}catch(e){return e.bufferedData;}}},oL=(e,{encoding:A,buffer:t,maxBuffer:r})=>{if(e&&t)return A?l(tk)(e,{encoding:A,maxBuffer:r}):l(tk).buffer(e,{maxBuffer:r});},oU=async({stdout:e,stderr:A,all:t},{encoding:r,buffer:n,maxBuffer:o},i)=>{let s=oL(e,{encoding:r,buffer:n,maxBuffer:o}),a=oL(A,{encoding:r,buffer:n,maxBuffer:o}),l=oL(t,{encoding:r,buffer:n,maxBuffer:2*o});try{return await Promise.all([i,s,a,l]);}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},oF(e,s),oF(A,a),oF(t,l)]);}},oT=(async()=>{})().constructor.prototype,ox=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oT,e)]),oM=(e,A)=>{for(let[t,r]of ox){let n="function"==typeof A?(...e)=>Reflect.apply(r.value,A(),e):r.value.bind(A);Reflect.defineProperty(e,t,{...r,value:n});}},o_=e=>new Promise((A,t)=>{e.on("exit",(e,t)=>{A({exitCode:e,signal:t});}),e.on("error",e=>{t(e);}),e.stdin&&e.stdin.on("error",e=>{t(e);});}),oO=(e,A=[])=>Array.isArray(A)?[e,...A]:[e],oY=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,oG=(e,A)=>oO(e,A).join(" "),oJ=(e,A)=>oO(e,A).map(e=>oY(e)).join(" "),oH=e=>{let A=[];for(let t of e.trim().split(/ +/g)){let e=A[A.length-1];e&&e.endsWith("\\")?A[A.length-1]=`${e.slice(0,-1)} ${t}`:A.push(t);}return A;},oP=e=>{let A=typeof e;if("string"===A)return e;if("number"===A)return e+"";if("object"===A&&null!==e&&!(e instanceof r6.ChildProcess)&&"stdout"in e){let A=typeof e.stdout;if("string"===A)return e.stdout;if((0,r3.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${A}" stdout in template expression`);}throw TypeError(`Unexpected "${A}" in template expression`);},oV=(e,A,t)=>t||0===e.length||0===A.length?[...e,...A]:[...e.slice(0,-1),`${e[e.length-1]}${A[0]}`,...A.slice(1)],oq=({templates:e,expressions:A,tokens:t,index:r,template:n})=>{let o=null!=n?n:e.raw[r],i=oV(t,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(r===A.length)return i;let s=A[r];return oV(i,Array.isArray(s)?s.map(e=>oP(e)):[oP(s)],o.endsWith(" "));},oW=(e,A)=>{let t=[];for(let[r,n]of e.entries())t=oq({templates:e,expressions:A,tokens:t,index:r,template:n});return t;},oj=(0,rj.debuglog)("execa").enabled,o$=(e,A)=>(e+"").padStart(A,"0"),oX=()=>{let e=new Date();return`${o$(e.getHours(),2)}:${o$(e.getMinutes(),2)}:${o$(e.getSeconds(),2)}.${o$(e.getMilliseconds(),3)}`;},oz=(e,{verbose:A})=>{A&&l(r7).stderr.write(`[${oX()}] ${e} `);},oZ=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:n})=>{let o=A?{...l(r7).env,...e}:e;return t?nx({env:o,cwd:r,execPath:n}):o;},oK=(e,A,t={})=>{let r=l(th)._parse(e,A,t);return e=r.command,A=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(r7).cwd(),execPath:l(r7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oj,...t}).env=oZ(t),t.stdio=n3(t),"win32"===l(r7).platform&&"cmd"===l(r5).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},o0=(e,A,t)=>"string"==typeof A||(0,r3.Buffer).isBuffer(A)?e.stripFinalNewline?Q(A):A:void 0===t?void 0:"",o1=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},o2=(e={})=>({preferLocal:!0,...o1(e),...e});!function e(A){function t(r,...n){if(!Array.isArray(r))return e({...A,...r});let[o,...i]=oW(r,n);return f(o,i,o2(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=oW(e,t);return p(r,n,o2(A));},t;}();const o4={stdio:"inherit",shell:!0},o8=/^~(?=$|\/|\\)/;tA=ni("pcnv8"),tM={},t_=ni("9zgMG"),tO=nt.env.npm_package_json,tG=!!((tY=nt.env.npm_config_user_agent)&&tY.startsWith("npm")),tJ=!!(tO&&tO.endsWith("package.json")),tH=tG||tJ,tP=!!(tY&&tY.startsWith("yarn")),tV=tH||tP,tq=rL.homedir(),tW=process.env.XDG_CONFIG_HOME||rU.join(tq,".config","simple-update-notifier"),tj=function(e){return rU.join(tW,"".concat(e.replace("@","").replace("/","__"),".json"));},t$=function(){rT.existsSync(tW)||rT.mkdirSync(tW,{recursive:!0});},tX=function(e){var A=tj(e);try{if(!rT.existsSync(A))return;return JSON.parse(rT.readFileSync(A,"utf8")).lastUpdateCheck;}catch(e){return;}},tz=function(e){var A=tj(e);rT.writeFileSync(A,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},tZ=function(e,A){return v(void 0,void 0,void 0,function(){var t;return k(this,function(r){return t="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,r){r_.get(t,function(t){var n="";t.on("data",function(e){return n+=e;}),t.on("end",function(){try{var t=JSON.parse(n)[A];t||r(Error("Error getting version")),e(t);}catch(e){r(Error("Could not parse version response"));}});}).on("error",function(e){return r(e);});})];});});},tK=function(e){var A=e.pkg,t=e.updateCheckInterval,r=void 0===t?864e5:t,n=e.distTag,o=void 0===n?"latest":n,i=e.alwaysRun,s=e.debug;return v(void 0,void 0,void 0,function(){var e,t;return k(this,function(n){switch(n.label){case 0:if(t$(),e=tX(A.name),!(i||!e||e/1\d+\.\d+/.test(e)&&+A>=17134.1184;t9=function(e){return o9?e.replace(/(\s+)/g,"\\$1"):o5(.../(\d+\.\d+)\.(\d+)/.exec(o3).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,A;e=ni("3pQcT"),A=function(e){return e.split("").reverse().join("");},t3=function(t,r,n){var o;return(null==r&&(r="'"),null==n&&(n="\\"),"string"!=typeof t)?t:(o=RegExp("(["+e(r)+"])(?!"+e(n)+")","g"),A(A(t).replace(o,"$1"+n)));};}.call(t3={});const o6=({timedOut:e,timeout:A,errorCode:t,signal:r,signalDescription:n,exitCode:o,isCanceled:i})=>e?`timed out after ${A} milliseconds`:i?"was canceled":void 0!==t?"failed with "+t:void 0!==r?`was killed with ${r} (${n})`:void 0!==o?"failed with exit code "+o:"failed",o7=({stdout:e,stderr:A,all:t,error:r,signal:n,exitCode:o,command:i,escapedCommand:s,timedOut:a,isCanceled:l,killed:c,parsed:{options:{timeout:g}}})=>{o=null===o?void 0:o;let E=void 0===(n=null===n?void 0:n)?void 0:nK[n].description,u=o6({timedOut:a,timeout:g,errorCode:r&&r.code,signal:n,signalDescription:E,exitCode:o,isCanceled:l}),h=`Command ${u}: ${i}`,Q="[object Error]"===Object.prototype.toString.call(r),C=Q?`${h} ${r.message}`:h,I=[C,A,e].filter(Boolean).join("\n");return Q?(r.originalMessage=r.message,r.message=I):r=Error(I),r.shortMessage=C,r.command=i,r.escapedCommand=s,r.exitCode=o,r.signal=n,r.signalDescription=E,r.stdout=e,r.stderr=A,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=l,r.killed=c&&!a,r;},ie=["stdin","stdout","stderr"],iA=e=>ie.some(A=>void 0!==e[A]),it=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return ie.map(A=>e[A]);if(iA(e))throw Error("It's not possible to provide `stdio` in combination with one of "+ie.map(e=>`\`${e}\``).join(", "));if("string"==typeof A)return A;if(!Array.isArray(A))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof A}\``);return Array.from({length:Math.max(A.length,ie.length)},(e,t)=>A[t]);},ir=(e,A="SIGTERM",t={})=>{let r=e(A);return io(e,A,t,r),r;},io=(e,A,t,r)=>{if(!ii(A,t,r))return;let n=setTimeout(()=>{e("SIGKILL");},ia(t));n.unref&&n.unref();},ii=(e,{forceKillAfterTimeout:A},t)=>is(e)&&!1!==A&&t,is=e=>e===l(nA).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),ia=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},il=(e,A)=>{e.kill()&&(A.isCanceled=!0);},ic=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},ig=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{let n;return 0===A||void 0===A?r:Promise.race([new Promise((r,o)=>{n=setTimeout(()=>{ic(e,t,o);},A);}),r.finally(()=>{clearTimeout(n);})]);},iE=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},iu=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)return r;let n=l(tS)(()=>{e.kill();});return r.finally(()=>{n();});},ih=e=>e instanceof r6.ChildProcess&&"function"==typeof e.then,iQ=(e,A,t)=>{if("string"==typeof t)return e[A].pipe((0,r4.createWriteStream)(t)),e;if(d(t))return e[A].pipe(t),e;if(!ih(t))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!d(t.stdin))throw TypeError("The target child process's stdin must be available.");return e[A].pipe(t.stdin),t;},iC=e=>{null!==e.stdout&&(e.pipeStdout=iQ.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=iQ.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=iQ.bind(void 0,e,"all"));},iI=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},id=({input:e,inputFile:A})=>"string"!=typeof A?e:(iI(e),(0,r4.readFileSync)(A)),iB=e=>{let A=id(e);if(I(A))throw TypeError("The `input` option cannot be a stream in sync mode");return A;},ip=({input:e,inputFile:A})=>"string"!=typeof A?e:(iI(e),(0,r4.createReadStream)(A)),iy=(e,A)=>{let t=ip(A);void 0!==t&&(I(t)?t.pipe(e.stdin):e.stdin.end(t));},im=(e,{all:A})=>{if(!A||!e.stdout&&!e.stderr)return;let t=l(tT)();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t;},iw=async(e,A)=>{if(e&&void 0!==A){e.destroy();try{return await A;}catch(e){return e.bufferedData;}}},ib=(e,{encoding:A,buffer:t,maxBuffer:r})=>{if(e&&t)return A?l(tk)(e,{encoding:A,maxBuffer:r}):l(tk).buffer(e,{maxBuffer:r});},iR=async({stdout:e,stderr:A,all:t},{encoding:r,buffer:n,maxBuffer:o},i)=>{let s=ib(e,{encoding:r,buffer:n,maxBuffer:o}),a=ib(A,{encoding:r,buffer:n,maxBuffer:o}),l=ib(t,{encoding:r,buffer:n,maxBuffer:2*o});try{return await Promise.all([i,s,a,l]);}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},iw(e,s),iw(A,a),iw(t,l)]);}},iD=(async()=>{})().constructor.prototype,iS=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(iD,e)]),iv=(e,A)=>{for(let[t,r]of iS){let n="function"==typeof A?(...e)=>Reflect.apply(r.value,A(),e):r.value.bind(A);Reflect.defineProperty(e,t,{...r,value:n});}},ik=e=>new Promise((A,t)=>{e.on("exit",(e,t)=>{A({exitCode:e,signal:t});}),e.on("error",e=>{t(e);}),e.stdin&&e.stdin.on("error",e=>{t(e);});}),iN=(e,A=[])=>Array.isArray(A)?[e,...A]:[e],iF=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,iL=(e,A)=>iN(e,A).join(" "),iU=(e,A)=>iN(e,A).map(e=>iF(e)).join(" "),iT=e=>{let A=typeof e;if("string"===A)return e;if("number"===A)return e+"";if("object"===A&&null!==e&&!(e instanceof r6.ChildProcess)&&"stdout"in e){let A=typeof e.stdout;if("string"===A)return e.stdout;if((0,r3.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${A}" stdout in template expression`);}throw TypeError(`Unexpected "${A}" in template expression`);},ix=(e,A,t)=>t||0===e.length||0===A.length?[...e,...A]:[...e.slice(0,-1),`${e[e.length-1]}${A[0]}`,...A.slice(1)],iM=({templates:e,expressions:A,tokens:t,index:r,template:n})=>{let o=null!=n?n:e.raw[r],i=ix(t,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(r===A.length)return i;let s=A[r];return ix(i,Array.isArray(s)?s.map(e=>iT(e)):[iT(s)],o.endsWith(" "));},i_=(e,A)=>{let t=[];for(let[r,n]of e.entries())t=iM({templates:e,expressions:A,tokens:t,index:r,template:n});return t;},iO=(0,rj.debuglog)("execa").enabled,iY=(e,A)=>(e+"").padStart(A,"0"),iG=()=>{let e=new Date();return`${iY(e.getHours(),2)}:${iY(e.getMinutes(),2)}:${iY(e.getSeconds(),2)}.${iY(e.getMilliseconds(),3)}`;},iJ=(e,{verbose:A})=>{A&&l(r7).stderr.write(`[${iG()}] ${e} `);},iH=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:n})=>{let o=A?{...l(r7).env,...e}:e;return t?function({env:e=l(r7).env,...A}={}){let t=x({env:e={...e}});return A.path=e[t],e[t]=function(e={}){let A;let{cwd:t=l(r7).cwd(),path:r=l(r7).env[x()],execPath:n=l(r7).execPath}=e,o=n instanceof URL?l(ne).fileURLToPath(n):n,i=t instanceof URL?l(ne).fileURLToPath(t):t,s=l(r5).resolve(i),a=[];for(;A!==s;)a.push(l(r5).join(s,"node_modules/.bin")),A=s,s=l(r5).resolve(s,"..");return a.push(l(r5).resolve(i,o,"..")),[...a,r].join(l(r5).delimiter);}(A),e;}({env:o,cwd:r,execPath:n}):o;},iP=(e,A,t={})=>{let r=l(th)._parse(e,A,t);return e=r.command,A=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(r7).cwd(),execPath:l(r7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:iO,...t}).env=iH(t),t.stdio=it(t),"win32"===l(r7).platform&&"cmd"===l(r5).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},iV=(e,A,t)=>"string"==typeof A||(0,r3.Buffer).isBuffer(A)?e.stripFinalNewline?Q(A):A:void 0===t?void 0:"",iq=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},iW=(e={})=>({preferLocal:!0,...iq(e),...e});!function e(A){function t(r,...n){if(!Array.isArray(r))return e({...A,...r});let[o,...i]=i_(r,n);return M(o,i,iW(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=i_(e,t);return function(e,A,t){let r;let n=iP(e,A,t),o=iL(e,A),i=iU(e,A);iJ(i,n.options);let s=iB(n.options);try{r=l(r6).spawnSync(n.file,n.args,{...n.options,input:s});}catch(e){throw o7({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=iV(n.options,r.stdout,r.error),c=iV(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let e=o7({stdout:a,stderr:c,error:r.error,signal:r.signal,exitCode:r.status,command:o,escapedCommand:i,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return e;throw e;}return{command:o,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(r,n,iW(A));},t;}(),ta=ni("6vN83"),t8=ni("hQXed");const ij={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},i$=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],iX=S("~/.cpprc");let iz=!1,iZ=!1,iK=!1;const i0=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(A5=t5||(t5={}))[A5.NameDashVersion=0]="NameDashVersion",A5[A5.NameEqualsVersion=1]="NameEqualsVersion",A5[A5.Name=2]="Name",A5[A5.None=3]="None",t2=ni("d1q4F"),t6=ni("jQPzx"),t7=ni("2C5C8"),ta=ni("6vN83"),t6=ni("jQPzx");let i1=!1;tA=ni("pcnv8"),t8=ni("hQXed"),t6=ni("jQPzx");let i2=!1;tA=ni("pcnv8"),tA=ni("pcnv8");let i4=!1,i8=!1;const i9=/Version\s*:\s*(.*)/g;re={},rA=rU.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),rt=re&&re.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),rr=re&&re.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),rn=re&&re.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&rt(A,e,t);return rr(A,e),A;},ro=re&&re.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},ri=re&&re.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(re,"__esModule",{value:!0}),re.evaluateVersions=re.isExplicitVersion=re.findFromManifest=re.getManifestFromRepo=re.findAllVersions=re.find=re.cacheFile=re.cacheDir=re.extractZip=re.extractXar=re.extractTar=re.extract7z=re.downloadTool=re.HTTPError=void 0;const i3=rn(ni("d1q4F")),i5=rn(ni("2C5C8")),i6=rn(rT),i7=rn(ni("47EGY")),se=rn(rL),sA=rn(rU),st=rn(ni("jdbFC")),sr=rn(ni("3QlWg")),sn=rn(rP),so=rn(rH),si=ri(ni("akvHR"));rs=ni("igv8t"),rl=(ra={},ra.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];})),rc=ra&&ra.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),rg=ra&&ra.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&rl(A,e,t);return rc(A,e),A;},rE=ra&&ra.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},Object.defineProperty(ra,"__esModule",{value:!0}),ra.RetryHelper=void 0;const ss=rg(ni("d1q4F"));ra.RetryHelper=class{constructor(e,A,t){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(A),this.maxSeconds=Math.floor(t),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,A){return rE(this,void 0,void 0,function*(){let t=1;for(;tsetTimeout(A,1e3*e));});}};class sa extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}re.HTTPError=sa;const sl="win32"===process.platform,sc="darwin"===process.platform;re.downloadTool=function(e,A,t,r){return ro(this,void 0,void 0,function*(){A=A||sA.join(ey(),si.default()),yield i5.mkdirP(sA.dirname(A)),i3.debug("Downloading "+e),i3.debug("Destination "+A);let n=em("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=em("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new ra.RetryHelper(3,n,o);return yield i.execute(()=>ro(this,void 0,void 0,function*(){return yield function(e,A,t,r){return ro(this,void 0,void 0,function*(){if(i6.existsSync(A))throw Error(`Destination file path ${A} already exists`);let n=new st.HttpClient("actions/tool-cache",[],{allowRetries:!1});t&&(i3.debug("set auth"),void 0===r&&(r={}),r.authorization=t);let o=yield n.get(e,r);if(200!==o.message.statusCode){let A=new sa(o.message.statusCode);throw i3.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),A;}let i=so.promisify(sn.pipeline),s=em("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),a=!1;try{return yield i(s,i6.createWriteStream(A)),i3.debug("download complete"),a=!0,A;}finally{if(!a){i3.debug("download failed");try{yield i5.rmRF(A);}catch(e){i3.debug(`Failed to delete '${A}'. ${e.message}`);}}}});}(e,A||"",t,r);}),e=>!(e instanceof sa)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},re.extract7z=function(e,A,t){return ro(this,void 0,void 0,function*(){rJ.ok(sl,"extract7z() not supported on current OS"),rJ.ok(e,'parameter "file" is required'),A=yield eC(A);let r=process.cwd();if(process.chdir(A),t)try{let A=i3.isDebug()?"-bb1":"-bb0",r=["x",A,"-bd","-sccUTF-8",e];yield rs.exec(`"${t}"`,r,{silent:!0});}finally{process.chdir(r);}else{let t=sA.join(rA,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=`& '${t}' -Source '${n}' -Target '${o}'`;try{let e=yield i5.which("powershell",!0);yield rs.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i],{silent:!0});}finally{process.chdir(r);}}return A;});},re.extractTar=function(e,A,t="xz"){return ro(this,void 0,void 0,function*(){let r;if(!e)throw Error("parameter 'file' is required");A=yield eC(A),i3.debug("Checking tar --version");let n="";yield rs.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}}),i3.debug(n.trim());let o=n.toUpperCase().includes("GNU TAR");r=t instanceof Array?t:[t],i3.isDebug()&&!t.includes("v")&&r.push("-v");let i=A,s=e;return sl&&o&&(r.push("--force-local"),i=A.replace(/\\/g,"/"),s=e.replace(/\\/g,"/")),o&&(r.push("--warning=no-unknown-keyword"),r.push("--overwrite")),r.push("-C",i,"-f",s),yield rs.exec("tar",r),A;});},re.extractXar=function(e,A,t=[]){return ro(this,void 0,void 0,function*(){let r;rJ.ok(sc,"extractXar() not supported on current OS"),rJ.ok(e,'parameter "file" is required'),A=yield eC(A),(r=t instanceof Array?t:[t]).push("-x","-C",A,"-f",e),i3.isDebug()&&r.push("-v");let n=yield i5.which("xar",!0);return yield rs.exec(`"${n}"`,Array.from(new Set(r))),A;});},re.extractZip=function(e,A){return ro(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return A=yield eC(A),sl?yield function(e,A){return ro(this,void 0,void 0,function*(){let t=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield i5.which("pwsh",!1);if(n){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${t}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`;i3.debug("Using pwsh at path: "+n),yield rs.exec(`"${n}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$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 '${t}' -DestinationPath '${r}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) }`,A=yield i5.which("powershell",!0);i3.debug("Using powershell at path: "+A),yield rs.exec(`"${A}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,A):yield function(e,A){return ro(this,void 0,void 0,function*(){let t=yield i5.which("unzip",!0),r=[e];i3.isDebug()||r.unshift("-q"),r.unshift("-o"),yield rs.exec(`"${t}"`,r,{cwd:A});});}(e,A),A;});},re.cacheDir=function(e,A,t,r){return ro(this,void 0,void 0,function*(){if(t=sr.clean(t)||t,r=r||se.arch(),i3.debug(`Caching tool ${A} ${t} ${r}`),i3.debug("source dir: "+e),!i6.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let n=yield eI(A,t,r);for(let A of i6.readdirSync(e)){let t=sA.join(e,A);yield i5.cp(t,n,{recursive:!0});}return ed(A,t,r),n;});},re.cacheFile=function(e,A,t,r,n){return ro(this,void 0,void 0,function*(){if(r=sr.clean(r)||r,n=n||se.arch(),i3.debug(`Caching tool ${t} ${r} ${n}`),i3.debug("source file: "+e),!i6.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eI(t,r,n),i=sA.join(o,A);return i3.debug("destination file "+i),yield i5.cp(e,i),ed(t,r,n),o;});},re.find=function(e,A,t){if(!e)throw Error("toolName parameter is required");if(!A)throw Error("versionSpec parameter is required");t=t||se.arch(),eB(A)||(A=ef(eQ(e,t),A));let r="";if(A){A=sr.clean(A)||"";let n=sA.join(ep(),e,A,t);i3.debug("checking cache: "+n),i6.existsSync(n)&&i6.existsSync(`${n}.complete`)?(i3.debug(`Found tool in cache ${e} ${A} ${t}`),r=n):i3.debug("not found");}return r;},re.findAllVersions=eQ,re.getManifestFromRepo=function(e,A,t,r="master"){return ro(this,void 0,void 0,function*(){let n=[],o=`https://api.github.com/repos/${e}/${A}/git/trees/${r}`,i=new st.HttpClient("tool-cache"),s={};t&&(i3.debug("set auth"),s.authorization=t);let a=yield i.getJson(o,s);if(!a.result)return n;let l="";for(let e of a.result.tree)if("versions-manifest.json"===e.path){l=e.url;break;}s.accept="application/vnd.github.VERSION.raw";let c=yield(yield i.get(l,s)).readBody();if(c){c=c.replace(/^\uFEFF/,"");try{n=JSON.parse(c);}catch(e){i3.debug("Invalid json");}}return n;});},re.findFromManifest=function(e,A,t,r=se.arch()){return ro(this,void 0,void 0,function*(){return yield i7._findMatch(e,A,t,r);});},re.isExplicitVersion=eB,re.evaluateVersions=ef,t6=ni("jQPzx"),ru=ni("gCLbi"),rh=ni("llmej"),t7=ni("2C5C8"),tA=ni("pcnv8"),tA=ni("pcnv8"),t6=ni("jQPzx"),te=ni("jj6Ot"),t8=ni("hQXed"),Object.defineProperty(rQ={},"__esModule",{value:!0}),rQ.retryAsPromised=rQ.TimeoutError=void 0;class sg extends Error{constructor(e,A){super(e),this.name="TimeoutError",this.previous=A;}}rQ.TimeoutError=sg,rQ.retryAsPromised=ek,rQ.default=ek;let sE=!1;t2=ni("d1q4F"),rC={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},rI=Array.prototype.slice,rd=function(){function e(e){this.keys=[],this.values=[],this.options=e;var A="function"==typeof e.isMatchingKey;A?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||A,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eU(this.keys),size:this.size,values:eU(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var A=this.options,t=A.isMatchingKey,r=A.maxSize,n=this.keys,o=n.length;if(!o)return-1;if(t(n[0],e))return 0;if(r>1){for(var i=1;o>i;i++)if(t(n[i],e))return i;}return-1;},e.prototype._getKeyIndexForMany=function(e){var A,t,r=this.options.isEqual,n=this.keys,o=n.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var i=e.length;if(i>1){for(var s=0;o>s;s++)if((A=n[s]).length===i){for(t=0;i>t&&r(A[t],e[t]);t++);if(t===i)return s;}}else for(var s=0;o>s;s++)if((A=n[s]).length===i&&r(A[0],e[0]))return s;return-1;},e.prototype._getKeyIndexForSingle=function(e){var A=this.keys;if(!A.length)return-1;var t=A[0],r=t.length;if(e.length!==r)return-1;var n=this.options.isEqual;if(r>1){for(var o=0;r>o;o++)if(!n(t[o],e[o]))return-1;return 0;}return n(t[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,A,t){for(var r=this.keys,n=this.values,o=r.length,i=t;i--;)r[i+1]=r[i],n[i+1]=n[i];r[0]=e,n[0]=A;var s=this.options.maxSize;o===s&&t===o?(r.pop(),n.pop()):t>=s&&(r.length=n.length=s);},e.prototype.updateAsyncCache=function(e){var A=this,t=this.options,r=t.onCacheChange,n=t.onCacheHit,o=this.keys[0],i=this.values[0];this.values[0]=i.then(function(t){return A.shouldUpdateOnHit&&n(A,A.options,e),A.shouldUpdateOnChange&&r(A,A.options,e),t;},function(e){var t=A.getKeyIndex(o);throw-1!==t&&(A.keys.splice(t,1),A.values.splice(t,1)),e;});},e;}();const su=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let A=e,t=e.fs||{};return e.mkdir=e.mkdir||t.mkdir||rT.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,t)=>new Promise((r,n)=>A.mkdir(e,t,(e,A)=>e?n(e):r(A))),e.stat=e.stat||t.stat||rT.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((t,r)=>A.stat(e,(e,A)=>e?r(e):t(A))),e.statSync=e.statSync||t.statSync||rT.statSync,e.mkdirSync=e.mkdirSync||t.mkdirSync||rT.mkdirSync,A;},sh=(e,A,t)=>{let r=(0,rU.dirname)(e),n={...su(A),recursive:!1};if(r===e)try{return n.mkdirSync(e,n);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return n.mkdirSync(e,n),t||e;}catch(A){if(A&&"ENOENT"===A.code)return sh(e,n,sh(r,n,t));if(A&&"EEXIST"!==A.code&&A&&"EROFS"!==A.code)throw A;try{if(!n.statSync(e).isDirectory())throw A;}catch(e){throw A;}}},sQ=Object.assign(async(e,A,t)=>{let r=su(A);r.recursive=!1;let n=(0,rU.dirname)(e);return n===e?r.mkdirAsync(e,r).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):r.mkdirAsync(e,r).then(()=>t||e,async A=>{if(A&&"ENOENT"===A.code)return sQ(n,r).then(A=>sQ(e,r,A));if(A&&"EEXIST"!==A.code&&"EROFS"!==A.code)throw A;return r.statAsync(e).then(e=>{if(e.isDirectory())return t;throw A;},()=>{throw A;});});},{sync:sh}),sC=async(e,A,t)=>{if(t!==A)return e.statAsync(A).then(e=>e.isDirectory()?t:void 0,t=>t&&"ENOENT"===t.code?sC(e,(0,rU.dirname)(A),A):void 0);},sI=(e,A,t)=>{if(t!==A)try{return e.statSync(A).isDirectory()?t:void 0;}catch(t){return t&&"ENOENT"===t.code?sI(e,(0,rU.dirname)(A),A):void 0;}},sd=(e,A)=>{let t=su(A);if(t.recursive=!0,(0,rU.dirname)(e)===e)return t.mkdirSync(e,t);let r=sI(t,e);try{return t.mkdirSync(e,t),r;}catch(A){if(A&&"ENOENT"===A.code)return sh(e,t);throw A;}},sB=Object.assign(async(e,A)=>{let t={...su(A),recursive:!0};return(0,rU.dirname)(e)===e?await t.mkdirAsync(e,t):sC(t,e).then(A=>t.mkdirAsync(e,t).then(e=>A||e).catch(A=>{if(A&&"ENOENT"===A.code)return sQ(e,t);throw A;}));},{sync:sd}),sf=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,sp=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,rU.resolve)(e),"win32"===sf){let{root:A}=(0,rU.parse)(e);if(/[*|"<>?:]/.test(e.substring(A.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},sy=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),sm=+sy[0]>10||10==+sy[0]&&+sy[1]>=12,sw=sm?e=>su(e).mkdirSync===rT.mkdirSync:()=>!1,sb=Object.assign(sm?e=>su(e).mkdir===rT.mkdir:()=>!1,{sync:sw}),sR=(e,A)=>{e=sp(e);let t=su(A);return sw(t)?sd(e,t):sh(e,t);},sD=Object.assign(async(e,A)=>{e=sp(e);let t=su(A);return sb(t)?sB(e,t):sQ(e,t);},{mkdirpSync:sR,mkdirpNative:sB,mkdirpNativeSync:sd,mkdirpManual:sQ,mkdirpManualSync:sh,sync:sR,native:sB,nativeSync:sd,manual:sQ,manualSync:sh,useNative:sb,useNativeSync:sw});t8=ni("hQXed"),t6=ni("jQPzx"),rs=ni("igv8t"),te=ni("jj6Ot"),tA=ni("pcnv8"),t8=ni("hQXed"),t6=ni("jQPzx"),rs=ni("igv8t"),tA=ni("pcnv8"),rB=e=>{if("string"!=typeof e)return!1;let A=e.trim();if(A.includes(" "))return!1;try{return new r0.URL(A),!0;}catch{return!1;}},rf=async e=>{if(!rB(e))return!1;let A=await e_(e,"HEAD");return!!A||!!(A=await e_(e,"GET"));},ru=ni("gCLbi"),rp=ni("70mIC"),ry=ni("itRYc");const sS=/v?(\d\S*)/,sv={llvm:eH(),clangtidy:eH(),clangformat:eH(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:U()?"1.10.0-1":"1.10.0",gcc:U()?"13.2.1-3":"13"},sk={pip:"22.2.0",python:"3.7.9"},sN={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}},sF=eM(e2,{isPromise:!0});tA=ni("pcnv8"),Object.defineProperty(rm={},"__esModule",{value:!0}),rm.getUbuntuVersion=void 0,rm.getUbuntuVersion=e9;const sL=eM(e3,{isPromise:!0}),sU=eM(AA,{isPromise:!0}),sT=eM(At,{isPromise:!0}),sx=eM(Ar,{isPromise:!0});tA=ni("pcnv8"),t6=ni("jQPzx"),t8=ni("hQXed");const sM=new Map([[24,["Sequoia","15"]],[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]),s_=eM(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||l(nA).release()).split(".")[0];let[A,t]=sM.get(e)||["Unknown",""];return{name:A,version:t};}();return e.split(".").map(e=>Number.parseInt(e,10));});te=ni("jj6Ot"),tA=ni("pcnv8"),t8=ni("hQXed"),t6=ni("jQPzx"),ru=ni("gCLbi"),rw=ni("h0zLe"),rs=ni("igv8t"),tA=ni("pcnv8"),rb=rU.resolve(__dirname,"../../src/gcc");const sO={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-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.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},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.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"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"}};rw=ni("h0zLe"),ry=ni("itRYc"),tA=ni("pcnv8"),t6=ni("jQPzx"),t6=ni("jQPzx"),rR=rU.resolve(__dirname,"../../src/kcov"),te=ni("jj6Ot"),tA=ni("pcnv8"),t8=ni("hQXed"),t6=ni("jQPzx"),ta=ni("6vN83"),t2=ni("d1q4F"),tA=ni("pcnv8");class sY extends Error{constructor(e){super(e),this.name="TimeoutError";}}class sG extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const sJ=e=>void 0===globalThis.DOMException?new sG(e):new DOMException(e),sH=e=>{let A=void 0===e.reason?sJ("This operation was aborted."):e.reason;return A instanceof Error?A:sJ(A);};t6=ni("jQPzx"),tA=ni("pcnv8"),t2=ni("d1q4F");const sP=nt.env["ProgramFiles(x86)"],sV=[nt.env["ProgramFiles(x86)"],nt.env.ProgramFiles],sq=["Enterprise","Professional","Community","BuildTools"],sW=["2022","2019","2017"],sj={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};rD=Av;const s$=`${sP}\\Microsoft Visual Studio\\Installer`;rS=Ak,rv=function(e,A,t,r,n,o){if("win32"!=nt.platform){t2.info("This is not a Windows virtual environment, bye!");return;}nt.env.PATH+=rU.delimiter+s$;let i={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in i&&(e=i[e.toLowerCase()]);var s=[e];r&&!0===JSON.parse(r)&&s.push("uwp"),A&&s.push(A),t&&s.push("-vcvars_ver="+t),n&&!0===JSON.parse(n)&&s.push("-vcvars_spectre_libs=spectre");let a=`"${Ak(o)}" ${s.join(" ")}`;t2.debug("vcvars command-line: "+a);let l=r8.execSync(`set && cls && ${a} && cls && set`,{shell:"cmd"}).toString().split("\f"),c=l[0].split("\r\n"),g=l[1].split("\r\n"),E=l[2].split("\r\n"),u=g.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(u.length>0)throw Error("invalid parameters\r\n"+u.join("\r\n"));let h={};for(let e of c){let[A,t]=e.split("=");h[A]=t;}for(let e of(t2.startGroup("Environment variables"),E)){if(!e.includes("="))continue;let[A,t]=e.split("=");t!==h[A]&&(t2.info("Setting "+A),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(A.toUpperCase())&&(t=t.split(";").filter(function(e,A,t){return t.indexOf(e)===A;}).join(";")),t2.exportVariable(A,t));}t2.endGroup(),t2.info("Configured Developer Command Prompt");},t8=ni("hQXed");const sX=12e5;(A6=rk||(rk={}))[A6.All=0]="All",A6[A6.ClangFormat=1]="ClangFormat",A6[A6.Core=2]="Core",tA=ni("pcnv8"),t6=ni("jQPzx"),rh=ni("llmej");const sz=function(e){let A=new Set(e);for(let t of e)A.add(/^\d+/.exec(t)[0]),A.add(/^\d+\.\d+/.exec(t)[0]);return A;}(["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","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),sZ=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),sK=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","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),s0=new Map(),s1={"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","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},s2="17.0.6";rN=rU.resolve(__dirname,"../../src/llvm");const s4=eM(AH,{isPromise:!0}),s8=eM(AV,{isPromise:!0}),s9=eM(Aq,{isPromise:!0});te=ni("jj6Ot"),t6=ni("jQPzx"),tA=ni("pcnv8"),t8=ni("hQXed"),rF=rU.resolve(__dirname,"../../src/msvc"),t6=ni("jQPzx"),t6=ni("jQPzx"),tA=ni("pcnv8"),t8=ni("hQXed"),t6=ni("jQPzx");let s3=!1;const s5={nala:AZ,cmake:eL,ninja:Am,python:eP,vcpkg:A4,bazel:eE,conan:function(e,A,t){return e6("conan",e);},meson:function(e,A,t){return e6("meson",e);},gcovr:function(e,A,t){return e6("gcovr",e);},opencppcoverage:AK,llvm:AJ,gcc:AI,choco:ea,brew:eo,powershell:A1,ccache:function(e,A,t){switch(process.platform){case"win32":return el("ccache",e);case"darwin":return es("ccache",e);case"linux":if(U())return eu("ccache",e);if(L())return ec([{name:"ccache",version:e}]);if(T())return j([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,A,t){switch(process.platform){case"win32":return el("sccache",e);case"linux":case"darwin":return es("sccache",e);default:throw Error("Unsupported platform");}},doxygen:Au,graphviz:Al,cppcheck:As,clangtidy:function(e,A,t){return AP(e,A,t);},clangformat:function(e,A,t){return AP(e,A,t,rk.ClangFormat);},msvc:AX,vcvarsall:AN,kcov:AS,make:A$,task:function(e,A,t){return eN("task",e,A2,A,t);},sevenzip:ew},s6=Object.keys(s5),s7=["compiler","architecture","timeout",...s6];t2=ni("d1q4F"),tA=ni("pcnv8"),ry=ni("itRYc"),A3(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,tA.error)("main() panicked!"),(0,tA.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map