diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ce64ba7e..6a037833 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -225,12 +225,12 @@ jobs: os: - ubuntu-24.04 container: - - { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.46.0" } - - { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.46.0" } - - { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.46.0" } - - { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.46.0" } - # - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.46.0" } - # - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.46.0" } + - { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.46.1" } + - { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.46.1" } + - { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.46.1" } + - { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.46.1" } + # - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.46.1" } + # - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.46.1" } steps: - uses: actions/checkout@v4 with: diff --git a/README.md b/README.md index 4189074d..4141a2a2 100644 --- a/README.md +++ b/README.md @@ -57,22 +57,22 @@ NOTE: setup-cpp requires Nodejs 12 or higher. If Nodejs shipped with your distri #### With executable -Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.46.0), and run it with the available options. You can also automate downloading using `curl`, or other similar tools. +Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.46.1), and run it with the available options. You can also automate downloading using `curl`, or other similar tools. ```shell # windows x64 -curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.0/setup-cpp-x64-windows.exe" +curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.1/setup-cpp-x64-windows.exe" # linux x64 -curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.0/setup-cpp-x64-linux" +curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.1/setup-cpp-x64-linux" chmod +x ./setup-cpp # macos arm64 -curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.0/setup-cpp-arm64-macos" +curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.1/setup-cpp-arm64-macos" chmod +x ./setup-cpp # macos x64 -curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.0/setup-cpp-x64-macos" +curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.1/setup-cpp-x64-macos" chmod +x ./setup-cpp ``` @@ -167,19 +167,19 @@ To provide fast development environments, `setup-cpp` provides several prebuilt You can use these images as a base image for your project. ```dockerfile -FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.46.0 AS builder +FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.46.1 AS builder ``` ```dockerfile -FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.46.0 AS builder +FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.46.1 AS builder ``` ```dockerfile -FROM aminya/setup-cpp-fedora-llvm:40-0.46.0 AS builder +FROM aminya/setup-cpp-fedora-llvm:40-0.46.1 AS builder ``` ```dockerfile -FROM aminya/setup-cpp-arch-llvm:base-0.46.0 AS builder +FROM aminya/setup-cpp-arch-llvm:base-0.46.1 AS builder ``` The names are in the format `aminya/setup-cpp--:-`. @@ -198,7 +198,7 @@ RUN apt-get update -qq && \ # install nodejs apt-get install -y --no-install-recommends nodejs npm && \ # install setup-cpp - npm install -g setup-cpp@v0.46.0 && \ + npm install -g setup-cpp@v0.46.1 && \ # install the compiler and tools setup-cpp \ --nala true \ @@ -307,7 +307,7 @@ stages: apt-get install -y --no-install-recommends nodejs npm # install setup-cpp - npm install -g setup-cpp@v0.46.0 + npm install -g setup-cpp@v0.46.1 # install the compiler and tools ./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true diff --git a/dev/docker/setup-cpp/setup-cpp-arch-llvm.dockerfile b/dev/docker/setup-cpp/setup-cpp-arch-llvm.dockerfile index f6d09edc..4ef8849c 100644 --- a/dev/docker/setup-cpp/setup-cpp-arch-llvm.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-arch-llvm.dockerfile @@ -6,7 +6,7 @@ RUN pacman -Syuu --noconfirm && \ # install nodejs pacman -S --noconfirm --needed nodejs npm && \ # install setup-cpp - npm install -g setup-cpp@v0.46.0 && \ + npm install -g setup-cpp@v0.46.1 && \ # install the compiler and tools setup-cpp \ --compiler llvm \ diff --git a/dev/docker/setup-cpp/setup-cpp-arch-mingw.dockerfile b/dev/docker/setup-cpp/setup-cpp-arch-mingw.dockerfile index 4a6087cf..29533804 100644 --- a/dev/docker/setup-cpp/setup-cpp-arch-mingw.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-arch-mingw.dockerfile @@ -6,7 +6,7 @@ RUN pacman -Syuu --noconfirm && \ # install nodejs pacman -S --noconfirm --needed nodejs npm && \ # install setup-cpp - npm install -g setup-cpp@v0.46.0 && \ + npm install -g setup-cpp@v0.46.1 && \ # install the compiler and tools setup-cpp \ --compiler mingw \ diff --git a/dev/docker/setup-cpp/setup-cpp-fedora-llvm.dockerfile b/dev/docker/setup-cpp/setup-cpp-fedora-llvm.dockerfile index 5dd036fc..017e0dfe 100644 --- a/dev/docker/setup-cpp/setup-cpp-fedora-llvm.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-fedora-llvm.dockerfile @@ -4,7 +4,7 @@ FROM fedora:40 AS setup-cpp-fedora # install nodejs RUN dnf -y install nodejs npm && \ # install setup-cpp - npm install -g setup-cpp@v0.46.0 && \ + npm install -g setup-cpp@v0.46.1 && \ # install the compiler and tools setup-cpp \ --compiler llvm \ diff --git a/dev/docker/setup-cpp/setup-cpp-fedora-mingw.dockerfile b/dev/docker/setup-cpp/setup-cpp-fedora-mingw.dockerfile index 2fffe556..67d93dbb 100644 --- a/dev/docker/setup-cpp/setup-cpp-fedora-mingw.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-fedora-mingw.dockerfile @@ -4,7 +4,7 @@ FROM fedora:40 AS setup-cpp-fedora-mingw # install nodejs RUN dnf -y install nodejs npm && \ # install setup-cpp - npm install -g setup-cpp@v0.46.0 && \ + npm install -g setup-cpp@v0.46.1 && \ # install the compiler and tools setup-cpp \ --compiler mingw \ diff --git a/dev/docker/setup-cpp/setup-cpp-ubuntu-20.0.4-llvm.dockerfile b/dev/docker/setup-cpp/setup-cpp-ubuntu-20.0.4-llvm.dockerfile index 99bdc631..3922d39e 100644 --- a/dev/docker/setup-cpp/setup-cpp-ubuntu-20.0.4-llvm.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-ubuntu-20.0.4-llvm.dockerfile @@ -11,7 +11,7 @@ RUN apt-get update -qq && \ apt-get update -qq && \ apt-get install -y --no-install-recommends nodejs && \ # install setup-cpp - npm install -g setup-cpp@v0.46.0 && \ + npm install -g setup-cpp@v0.46.1 && \ # install the compiler and tools setup-cpp \ --nala true \ diff --git a/dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile b/dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile index 35119c96..af21d8e6 100644 --- a/dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-ubuntu-llvm.dockerfile @@ -5,7 +5,7 @@ RUN apt-get update -qq && \ # install nodejs apt-get install -y --no-install-recommends nodejs npm && \ # install setup-cpp - npm install -g setup-cpp@v0.46.0 && \ + npm install -g setup-cpp@v0.46.1 && \ # install the compiler and tools setup-cpp \ --nala true \ diff --git a/dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile b/dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile index 19684d4a..51ecd1de 100644 --- a/dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile +++ b/dev/docker/setup-cpp/setup-cpp-ubuntu-mingw.dockerfile @@ -5,7 +5,7 @@ RUN apt-get update -qq && \ # install nodejs apt-get install -y --no-install-recommends nodejs npm && \ # install setup-cpp - npm install -g setup-cpp@v0.46.0 && \ + npm install -g setup-cpp@v0.46.1 && \ # install the compiler and tools setup-cpp \ --nala true \ diff --git a/dist/legacy/setup-cpp.js b/dist/legacy/setup-cpp.js index e821974e..d677367b 100644 --- a/dist/legacy/setup-cpp.js +++ b/dist/legacy/setup-cpp.js @@ -1,3 +1,3 @@ #!/usr/bin/env node -"use strict";function e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}function t(e){return e&&e.__esModule&&{}.hasOwnProperty.call(e,"default")?e.default:e}function n(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function r(){return ei||(ei=1,Object.defineProperty(ii,"__esModule",{value:!0}),ii.toCommandProperties=ii.toCommandValue=void 0,ii.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},ii.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}:{}}),ii}function i(){return ai>si.length-16&&(Tr.randomFillSync(si),ai=0),si.slice(ai,ai+=16)}function o(e){return"string"==typeof e&&ci.test(e)}function s(e,t=0){const n=(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase();if(!o(n))throw TypeError("Stringified UUID is invalid");return n}function a(e){if(!o(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function c(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;e.length>n;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=a(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,i){o=o||0;for(let e=0;16>e;++e)i[o+e]=c[e];return i}return s(c)}try{r.name=e}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function u(e){const t="https:"===e.protocol;if(function(e){if(!e.hostname)return!1;if(function(e){const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let n;e.port?n=Number(e.port):"http:"===e.protocol?n=80:"https:"===e.protocol&&(n=443);const r=[e.hostname.toUpperCase()];"number"==typeof n&&r.push(`${r[0]}:${n}`);for(const i of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===i||r.some((e=>e===i||e.endsWith("."+i)||i.startsWith(".")&&e.endsWith(""+i))))return!0;return!1}(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new Ei(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new Ei("http://"+n)}}function l(){if(ji)return Vi;ji=1;var e=Vi.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};return Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.PersonalAccessTokenCredentialHandler=Vi.BearerCredentialHandler=Vi.BasicCredentialHandler=void 0,Vi.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Vi.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Vi.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Vi}function f(){return Mi||(Mi=1,function(e){var t=Hi.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Rr,r=Ir,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;return yield r(n,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,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(Hi)),Hi}function p(){return Gi||(Gi=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function n(e,t={}){d.issueCommand("error",m.toCommandProperties(t),e instanceof Error?""+e:e)}function i(e){d.issue("group",e)}function o(){d.issue("endgroup")}var s=ni.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=ni.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=ni.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&s(t,e,n);return a(t,e),t},u=ni.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const d=function(){function e(e,t,n){const r=new a(e,t,n);process.stdout.write(""+r+o.EOL)}if(ti)return ri;ti=1;var t=ri.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=ri.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=ri.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(ri,"__esModule",{value:!0}),ri.issue=ri.issueCommand=void 0;const o=i(Rr),s=r();ri.issueCommand=e,ri.issue=function(t,n=""){e(t,{},n)};class a{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const i=this.properties[r];i&&(n?n=!1:e+=",",e+=`${r}=${t=i,s.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return ri}(),h=function(){if(vi)return oi;vi=1;var e=oi.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=oi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=oi.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(oi,"__esModule",{value:!0}),oi.prepareKeyValueMessage=oi.issueFileCommand=void 0;const i=n(Ir),o=n(Rr),s=yi,a=r();return oi.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!i.existsSync(n))throw Error("Missing file at path: "+n);i.appendFileSync(n,`${a.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})},oi.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+s.v4(),r=a.toCommandValue(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(r.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${o.EOL}${r}${o.EOL}${n}`},oi}(),m=r(),y=c(Rr),v=c(Pr),w=function(){if(Fi)return wi;Fi=1;var e=wi.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(wi,"__esModule",{value:!0}),wi.OidcClient=void 0;const t=Ui,r=l(),i=p();class o{static createHttpClient(e=!0,n=10){const i={allowRetries:e,maxRetries:n};return new t.HttpClient("actions/oidc-client",[new r.BearerCredentialHandler(o.getRequestToken())],i)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=o.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),i=null===(n=r.result)||void 0===n?void 0:n.value;if(!i)throw Error("Response json body do not have ID Token field");return i}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=o.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),i.debug("ID token url is "+e);const n=yield o.getCall(e);return i.setSecret(n),n}catch(n){throw Error("Error message: "+n.message)}}))}}return wi.OidcClient=o,wi}();var E,g;(g=E=e.ExitCode||(e.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exportVariable=function(e,t){const n=m.toCommandValue(t);if(process.env[e]=n,process.env.GITHUB_ENV)return h.issueFileCommand("ENV",h.prepareKeyValueMessage(e,t));d.issueCommand("set-env",{name:e},n)},e.setSecret=function(e){d.issueCommand("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?h.issueFileCommand("PATH",e):d.issueCommand("add-path",{},e),process.env.PATH=`${e}${v.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return h.issueFileCommand("OUTPUT",h.prepareKeyValueMessage(e,t));process.stdout.write(y.EOL),d.issueCommand("set-output",{name:e},m.toCommandValue(t))},e.setCommandEcho=function(e){d.issue("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=E.Failure,n(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){d.issueCommand("debug",{},e)},e.error=n,e.warning=function(e,t={}){d.issueCommand("warning",m.toCommandProperties(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){d.issueCommand("notice",m.toCommandProperties(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+y.EOL)},e.startGroup=i,e.endGroup=o,e.group=function(e,t){return u(this,void 0,void 0,(function*(){let n;i(e);try{n=yield t()}finally{o()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return h.issueFileCommand("STATE",h.prepareKeyValueMessage(e,t));d.issueCommand("save-state",{name:e},m.toCommandValue(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return u(this,void 0,void 0,(function*(){return yield w.OidcClient.getIDToken(e)}))};var _=f();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return _.summary}});var b=f();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var S=function(){if(Bi)return qi;Bi=1;var e=qi.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=qi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=qi.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(qi,"__esModule",{value:!0}),qi.toPlatformPath=qi.toWin32Path=qi.toPosixPath=void 0;const r=n(Pr);return qi.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},qi.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},qi.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},qi}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return S.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return S.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return S.toPlatformPath}})}(ni)),ni}function d(e){return Ji?zi.error(e):console.log(`${e}`)}function h(e){return Ji?zi.warning(e):console.log(`${e}`)}function m(e){return Ji?zi.notice(e):console.log(`${e}`)}function y(e){return Ji?zi.info(e):console.log(e)}function v(){if(oo)return io;oo=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=Pr,n=e?";":":",r=function(){function e(n,r,i){if("function"==typeof r&&(i=r,r={}),!i){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(t,i){e(n,r||{},(function(e,n){e?i(e):t(n)}))}))}t(n,r||{},(function(e,t){e&&("EACCES"===e.code||r&&r.ignoreErrors)&&(e=null,t=!1),i(e,t)}))}return ro||(ro=1,t="win32"===process.platform||Xr.TESTING_WINDOWS?function(){function e(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;n.length>r;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,n)}function t(t,r,i){n.stat(t,(function(n,o){i(n,!n&&e(o,t,r))}))}if(Zi)return Qi;Zi=1,Qi=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Ir;return Qi}():function(){function e(e,r,i){n.stat(e,(function(e,n){i(e,!e&&t(n,r))}))}function t(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=a|c;return n&parseInt("001",8)||n&c&&i===s||n&a&&r===o||n&u&&0===o}(e,t)}if(to)return eo;to=1,eo=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Ir;return eo}(),no=e,e.sync=function(e,n){try{return t.sync(e,n||{})}catch(r){if(n&&n.ignoreErrors||"EACCES"===r.code)return!1;throw r}}),no;var t}(),i=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),o=(t,r)=>{const i=r.colon||n,o=t.match(/\//)||e&&t.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)],s=e?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=e?s.split(i):[""];return e&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:s}},s=(e,n,s)=>{"function"==typeof n&&(s=n,n={}),n||(n={});const{pathEnv:a,pathExt:c,pathExtExe:u}=o(e,n),l=[],f=r=>new Promise(((o,s)=>{if(r===a.length)return n.all&&l.length?o(l):s(i(e));const c=a[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,f=t.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;o(p(d,r,0))})),p=(e,t,i)=>new Promise(((o,s)=>{if(i===c.length)return o(f(t+1));const a=c[i];r(e+a,{pathExt:u},((r,s)=>{if(!r&&s){if(!n.all)return o(e+a);l.push(e+a)}return o(p(e,t,i+1))}))}));return s?f(0).then((e=>s(null,e)),s):f(0)};return io=s,s.sync=(e,n)=>{n=n||{};const{pathEnv:s,pathExt:a,pathExtExe:c}=o(e,n),u=[];for(let i=0;s.length>i;i++){const o=s[i],f=/^".*"$/.test(o)?o.slice(1,-1):o,p=t.join(f,e),d=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;a.length>e;e++){const t=d+a[e];try{if(r.sync(t,{pathExt:c})){if(!n.all)return t;u.push(t)}}catch(l){}}}if(n.all&&u.length)return u;if(n.nothrow)return null;throw i(e)},io}function w(){if(wo)return vo;wo=1;const e=Pr,t=function(){function e(e,i){const o=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(l){}let u;try{u=n.sync(e.command,{path:o[r({env:o})],pathExt:i?t.delimiter:void 0})}catch(f){}finally{c&&process.chdir(s)}return u&&(u=t.resolve(a?e.options.cwd:"",u)),u}if(co)return ao;co=1;const t=Pr,n=v(),r=function(){if(so)return So.exports;so=1;const e=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};return So.exports=e,So.exports.default=e,So.exports}();return ao=function(t){return e(t)||e(t,!0)}}(),n=function(){if(uo)return Oo;uo=1;const e=/([()\][%!^"`<>&|;, *?])/g;return Oo.command=function(t){return t.replace(e,"^$1")},Oo.argument=function(t,n){return t=(t=`"${t=(t=(t=""+t).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e,"^$1"),n&&(t=t.replace(e,"^$1")),t},Oo}(),r=function(){if(yo)return mo;yo=1;const e=Ir,t=function(){if(ho)return po;ho=1;const e=fo?lo:(fo=1,lo=/^#!(.*)/);return po=(t="")=>{const n=t.match(e);if(!n)return null;const[r,i]=n[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o}}();return mo=function(n){const r=Buffer.alloc(150);let i;try{i=e.openSync(n,"r"),e.readSync(i,r,0,150,0),e.closeSync(i)}catch(o){}return t(""+r)}}(),i="win32"===process.platform,o=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;return vo=function(a,c,u){c&&!Array.isArray(c)&&(u=c,c=null);const l={command:a,args:c=c?c.slice(0):[],options:u=Object.assign({},u),file:void 0,original:{command:a,args:c}};return u.shell?l:function(a){if(!i)return a;const c=function(e){e.file=t(e);const n=e.file&&r(e.file);return n?(e.args.unshift(e.file),e.command=n,t(e)):e.file}(a),u=!o.test(c);if(a.options.forceShell||u){const t=s.test(c);a.command=e.normalize(a.command),a.command=n.command(a.command),a.args=a.args.map((e=>n.argument(e,t)));const r=[a.command].concat(a.args).join(" ");a.args=["/d","/s","/c",`"${r}"`],a.command=process.env.comspec||"cmd.exe",a.options.windowsVerbatimArguments=!0}return a}(l)}}function E(e={}){const{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}function g(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function _(e){return g(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function b(e,t,n){const r=Is(e,t,n),i=Es(e,t),o=gs(e,t);let s;Rs(o,r.options),(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(r.options);try{s=kr.spawn(r.file,r.args,r.options)}catch(f){const e=new kr.ChildProcess,t=Promise.reject(Go({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return ms(e,t),e}const a=(e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))})))(s),c=((e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let i;const o=new Promise(((r,o)=>{i=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,o)}),t)})),s=r.finally((()=>{clearTimeout(i)}));return Promise.race([o,s])})(s,r.options,a),u=(async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const i=Xo((()=>{e.kill()}));return r.finally((()=>{i()}))})(s,r.options,c);s.kill=Ko.bind(null,s.kill.bind(s)),s.cancel=es.bind(null,s,{isCanceled:!1});const l=Ao((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},c,l,f]=await(async({stdout:t,stderr:n,all:r},{encoding:i,buffer:o,maxBuffer:s},a)=>{const c=ps(t,{encoding:i,buffer:o,maxBuffer:s}),u=ps(n,{encoding:i,buffer:o,maxBuffer:s}),l=ps(r,{encoding:i,buffer:o,maxBuffer:2*s});try{return await Promise.all([a,c,u,l])}catch(e){return Promise.all([{error:e,signal:e.signal,timedOut:e.timedOut},fs(t,c),fs(n,u),fs(r,l)])}})(s,r.options,u),p=Ts(r.options,c),d=Ts(r.options,l),h=Ts(r.options,f);if(e||0!==t||null!==n){const c=Go({error:e,exitCode:t,signal:n,stdout:p,stderr:d,all:h,command:i,escapedCommand:o,parsed:r,timedOut:a,isCanceled:!!r.options.signal&&r.options.signal.aborted,killed:s.killed});if(!r.options.reject)return c;throw c}return{command:i,escapedCommand:o,exitCode:0,stdout:p,stderr:d,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((e,t)=>{const n=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ls(e),Ir.createReadStream(t)))(t);void 0!==n&&(g(n)?n.pipe(e.stdin):e.stdin.end(n))})(s,r.options),s.all=((e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=us();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=ts.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ts.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ts.bind(void 0,e,"all"))})(s),ms(s,l),s}function S(e,t,n){const r=Is(e,t,n),i=Es(e,t),o=gs(e,t);Rs(o,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ls(e),Ir.readFileSync(t)))(e);if(g(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(r.options);let a;try{a=kr.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Go({error:l,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=Ts(r.options,a.stdout,a.error),u=Ts(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Go({stdout:c,stderr:u,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:o,parsed:r,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!r.options.reject)return e;throw e}return{command:i,escapedCommand:o,exitCode:0,stdout:c,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function O(){return sa||(sa=1,function(e){var t=Ps.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Ps.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Ps.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=Ps.__exportStar||function(e,n){for(var r in e)"default"===r||{}.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;const o=r(function(){if(ra)return Cs;ra=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.sync=Cs.isexe=void 0;const e=Ir,t=na;Cs.isexe=async(e,r={})=>{const{ignoreErrors:i=!1}=r;try{return n(await(0,t.stat)(e),r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}},Cs.sync=(t,r={})=>{const{ignoreErrors:i=!1}=r;try{return n((0,e.statSync)(t),r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}};const n=(e,t)=>e.isFile()&&r(e,t),r=(e,t)=>{var n,r,i,o,s,a,c,u;const l=null!=(r=t.uid)?r:null==(n=process.getuid)?void 0:n.call(process),f=null!=(s=null!=(o=t.groups)?o:null==(i=process.getgroups)?void 0:i.call(process))?s:[],p=null!=(u=null!=(c=t.gid)?c:null==(a=process.getgid)?void 0:a.call(process))?u:f[0];if(void 0===l||void 0===p)throw Error("cannot get uid or gid");const d=new Set([p,...f]),h=e.mode,m=e.uid,y=e.gid,v=parseInt("100",8),w=parseInt("010",8),E=v|w;return!!(h&parseInt("001",8)||h&w&&d.has(y)||h&v&&m===l||h&E&&0===l)};return Cs}());e.posix=o;const s=r(function(){if(ia)return ua;ia=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.sync=ua.isexe=void 0;const e=Ir,t=na;ua.isexe=async(e,r={})=>{const{ignoreErrors:i=!1}=r;try{return n(await(0,t.stat)(e),e,r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}},ua.sync=(t,r={})=>{const{ignoreErrors:i=!1}=r;try{return n((0,e.statSync)(t),t,r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}};const n=(e,t,n)=>e.isFile()&&((e,t)=>{const{pathExt:n=process.env.PATHEXT||""}=t,r=n.split(";");if(-1!==r.indexOf(""))return!0;for(let i=0;r.length>i;i++){const t=r[i].toLowerCase(),n=e.substring(e.length-t.length).toLowerCase();if(t&&n===t)return!0}return!1})(t,n);return ua}());e.win32=s,i((oa||(oa=1,Object.defineProperty(la,"__esModule",{value:!0})),la),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:o;e.isexe=a.isexe,e.sync=a.sync}(Ps)),Ps}function R(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return b(function(){if(void 0===pa){const e=fa.sync("pwsh",{nothrow:!0});null!==e&&(pa=e);const t=fa.sync("powershell",{nothrow:!0});null!==t&&(pa=t)}if(void 0===pa)throw Error("Could not find powershell");return pa}(),[...t,"-c",e],n)}function I(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function T(){return null!==fa.sync("sudo",{nothrow:!0})}function P(){var e;return 0===(null==(e=process.getuid)?void 0:e.call(process))||!!process.env.CI}function C(){return P()&&T()}function x(e){return C()?"sudo "+e:e}function N(e,t=[],n=ma){return C()?function(e,t){const[n,...r]=bs(e);return S(n,r,t)}(A(e,t),n):S(e,$(t),n)}function L(e,t=[],n=ma){return C()?function(e,t){const[n,...r]=bs(e);return b(n,r,t)}(A(e,t),n):b(e,$(t),n)}function A(e,t){return"sudo "+$([e,...t]).join(" ")}function $(e){return e.map((e=>`'${e}'`))}function D(){return"win32"===process.platform?ya():P()}async function k(e){if(("linux"===process.platform||"darwin"===process.platform)&&C()&&void 0!==process.env.SUDO_USER){let t=Ir.statSync(e).isDirectory();await L("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],ma)}}function U(){if(_a)return ga;_a=1;var e=(Ea?wa:(Ea=1,wa=function(){}))();return ga=function(t){return t!==e&&null!==t}}function j(){if(Sa)return ba;Sa=1;var e=U(),t=[].forEach,n=Object.create;return ba=function(r){var i=n(null);return t.call(arguments,(function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),i)})),i},ba}function F(){if(Aa)return La;Aa=1;var e=function(){if(Na)return xa;Na=1;var e=Ca?Pa:(Ca=1,Pa=(Ra?Oa:(Ra=1,Oa=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:Ta?Ia:(Ta=1,Ia=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return xa=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return La=function(n){return t(0,e(n))}}function M(){if(Da)return $a;Da=1;var e=F();return $a=function(t,n,r){var i;return isNaN(t)?0>(i=n)?1:r&&i?i-1:i:!1!==t&&e(t)}}function B(){return Ua?ka:(Ua=1,ka=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function G(){if(Fa)return ja;Fa=1;var e=U();return ja=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function V(){return Va||(Va=1,Ga=function(){if(Ba)return Ma;Ba=1;var e=B(),t=G(),n=function(){}.bind,r=function(){}.call,i=Object.keys,o={}.propertyIsEnumerable;return Ma=function(s,a){return function(c,u){var l,f=arguments[2],p=arguments[3];return c=Object(t(c)),e(u),l=i(c),p&&l.sort("function"==typeof p?n.call(p,c):void 0),"function"!=typeof s&&(s=l[s]),r.call(s,l,(function(e,t){return o.call(c,e)?r.call(u,f,c[e],e,c,t):a}))}},Ma}()("forEach")),Ga}function H(){return Ha||(Ha=1),pl}function q(){return nc||(nc=1,tc=(za?qa:(za=1,qa=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}))()?Object.assign:function(){if(ec)return Za;ec=1;var e=Qa?Ja:(Qa=1,Ja=(Xa?Wa:(Xa=1,Wa=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(Ya)return Ka;Ya=1;var e=U(),t=Object.keys;return Ka=function(n){return t(e(n)?Object(n):n)}}()),t=G(),n=Math.max;return Za=function(r,i){var o,s,a,c=n(arguments.length,2);for(r=Object(t(r)),a=function(e){try{r[e]=i[e]}catch(t){o||(o=t)}},s=1;c>s;++s)e(i=arguments[s]).forEach(a);if(void 0!==o)throw o;return r},Za}()),tc}function z(){if(ac)return sc;ac=1;var e=G(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return sc=function(o,s){var a,c=Object(e(s));if(o=Object(e(o)),r(c).forEach((function(e){try{t(o,e,n(s,e))}catch(r){a=r}})),"function"==typeof i&&i(c).forEach((function(e){try{t(o,e,n(s,e))}catch(r){a=r}})),void 0!==a)throw a;return o}}function W(){if(cc)return hl.exports;cc=1;var e,t,n=F();try{Object.defineProperty((function(e,t){return t}),"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(r){}return t=z(),e=function(){var e=[];return function(t){var n,r=0;if(e[t])return e[t];for(n=[];t--;)n.push("a"+(++r).toString(36));return Function("fn","return function ("+n.join(", ")+") { return fn.apply(this, arguments); };")}}(),hl.exports=function(i,o){var s;if(o=n(o),i.length===o)return i;s=e(o)(i);try{t(s,i)}catch(r){}return s},hl.exports}function X(){return lc?uc:(lc=1,uc=function(e){return null!=e})}function K(){if(wc)return vc;wc=1;var e=function(){if(yc)return mc;yc=1;var e=function(){if(hc)return dc;hc=1;var e=function(){if(pc)return fc;pc=1;var e=X(),t={object:!0,function:!0,undefined:!0};return fc=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return dc=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return mc=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(n){return!1}return!e(t)}}(),t=/^\s*class[\s{/}]/,n=function(){}.toString;return vc=function(r){return!!e(r)&&!t.test(n.call(r))}}function Y(){if(Rc)return ml.exports;Rc=1;var e=X(),t=K(),n=q(),r=j(),i=(Oc||(Oc=1,Sc=function(){if(gc)return Ec;gc=1;var e="razdwatrzy";return Ec=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(bc)return _c;bc=1;var e="".indexOf;return _c=function(t){return e.call(this,t,arguments[1])>-1},_c}()),Sc),o=ml.exports=function(t,o){var s,a,c,u,l;return 2>arguments.length||"string"!=typeof t?(u=o,o=t,t=null):u=arguments[2],e(t)?(s=i.call(t,"c"),a=i.call(t,"e"),c=i.call(t,"w")):(s=c=!0,a=!1),l={value:o,configurable:s,enumerable:a,writable:c},u?n(r(u),l):l};return o.gs=function(o,s,a){var c,u,l,f;return"string"!=typeof o?(l=a,a=s,s=o,o=null):l=arguments[3],e(s)?t(s)?e(a)?t(a)||(l=a,a=void 0):a=void 0:(l=s,s=a=void 0):s=void 0,e(o)?(c=i.call(o,"c"),u=i.call(o,"e")):(c=!0,u=!1),f={get:s,set:a,configurable:c,enumerable:u},l?n(r(l),f):f},ml.exports}function J(){return $c?Ac:($c=1,Ac=(xc?Cc:(xc=1,Cc=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(Lc)return Nc;Lc=1;var e=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};return Nc=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}()}())}function Q(){if(Mc)return Fc;Mc=1;var e=jc?Uc:(jc=1,Uc=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return Fc=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function Z(){return Yc?Kc:(Yc=1,Kc=function(){if(kc)return Dc;kc=1;var e=J(),t={object:!0,symbol:!0};return Dc=function(){var n=e.Symbol;return"function"==typeof n&&(n("test symbol"),!!t[typeof n.iterator]&&!!t[typeof n.toPrimitive]&&!!t[typeof n.toStringTag])}}()()?J().Symbol:function(){if(Xc)return Wc;Xc=1;var e,t,n,r=Y(),i=Q(),o=J().Symbol,s=function(){if(Gc)return Bc;Gc=1;var e=Y(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return Bc=function(i){for(var o,s,a=0;r[i+(a||"")];)++a;return r[i+=a||""]=!0,t(n,o="@@"+i,e.gs(null,(function(n){s||(s=!0,t(this,o,e(n)),s=!1)}))),o}}(),a=function(){if(Hc)return Vc;Hc=1;var e=Y(),t=J().Symbol;return Vc=function(n){return Object.defineProperties(n,{hasInstance:e("",t&&t.hasInstance||n("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||n("isConcatSpreadable")),iterator:e("",t&&t.iterator||n("iterator")),match:e("",t&&t.match||n("match")),replace:e("",t&&t.replace||n("replace")),search:e("",t&&t.search||n("search")),species:e("",t&&t.species||n("species")),split:e("",t&&t.split||n("split")),toPrimitive:e("",t&&t.toPrimitive||n("toPrimitive")),toStringTag:e("",t&&t.toStringTag||n("toStringTag")),unscopables:e("",t&&t.unscopables||n("unscopables"))})}}(),c=function(){if(zc)return qc;zc=1;var e=Y(),t=Q(),n=Object.create(null);return qc=function(r){return Object.defineProperties(r,{for:e((function(e){return n[e]?n[e]:n[e]=r(e+"")})),keyFor:e((function(e){var r;for(r in t(e),n)if(n[r]===e)return r}))})}}(),u=Object.create,l=Object.defineProperties,f=Object.defineProperty;if("function"==typeof o)try{o(),n=!0}catch(p){}else o=null;return t=function(n){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return e(n)},Wc=e=function e(i){var a;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return n?o(i):(a=u(t.prototype),l(a,{__description__:r("",i=void 0===i?"":i+""),__name__:r("",s(i))}))},a(e),c(e),l(t.prototype,{constructor:r(e),toString:r("",(function(){return this.__name__}))}),l(e.prototype,{toString:r((function(){return"Symbol ("+i(this).__description__+")"})),valueOf:r((function(){return i(this)}))}),f(e.prototype,e.toPrimitive,r("",(function(){var e=i(this);return"symbol"==typeof e?e:""+e}))),f(e.prototype,e.toStringTag,r("c","Symbol")),f(t.prototype,e.toStringTag,r("c",e.prototype[e.toStringTag])),f(t.prototype,e.toPrimitive,r("c",e.prototype[e.toPrimitive])),Wc}())}function ee(){return su?ou:(su=1,ou=(Pc?Tc:(Pc=1,Tc=function(){var e,t,n=Array.from;return"function"==typeof n&&!(!(t=n(e=["raz","dwa"]))||t===e||"dwa"!==t[1])}))()?Array.from:function(){if(iu)return ru;iu=1;var e=Z().iterator,t=function(){if(Qc)return Jc;Qc=1;var e={}.toString,t=e.call(function(){return arguments}());return Jc=function(n){return e.call(n)===t}}(),n=function(){if(eu)return Zc;eu=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Zc=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=F(),i=B(),o=G(),s=U(),a=function(){if(nu)return tu;nu=1;var e={}.toString,t=e.call("");return tu=function(n){return"string"==typeof n||n&&"object"==typeof n&&(n instanceof String||e.call(n)===t)||!1}}(),c=Array.isArray,u=function(){}.call,l={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;return ru=function(p){var d,h,m,y,v,w,E,g,_,b,S=arguments[1],O=arguments[2];if(p=Object(o(p)),s(S)&&i(S),this&&this!==Array&&n(this))d=this;else{if(!S){if(t(p))return 1!==(v=p.length)?Array.apply(null,p):((y=[,])[0]=p[0],y);if(c(p)){for(y=Array(v=p.length),h=0;v>h;++h)y[h]=p[h];return y}}y=[]}if(!c(p))if(void 0!==(_=p[e])){for(E=i(_).call(p),d&&(y=new d),g=E.next(),h=0;!g.done;)b=S?u.call(S,O,g.value,h):g.value,d?(l.value=b,f(y,h,l)):y[h]=b,g=E.next(),++h;v=h}else if(a(p)){for(v=p.length,d&&(y=new d),h=0,m=0;v>h;++h)b=p[h],v>h+1&&(55296>(w=b.charCodeAt(0))||w>56319||(b+=p[++h])),b=S?u.call(S,O,b,m):b,d?(l.value=b,f(y,m,l)):y[m]=b,++m;v=m}if(void 0===v)for(v=r(p.length),d&&(y=new d(v)),h=0;v>h;++h)b=S?u.call(S,O,p[h],h):p[h],d?(l.value=b,f(y,h,l)):y[h]=b;return d&&(l.value=null,y.length=v),y},ru}())}function te(){if(hu)return du;hu=1;var e,t,n,r,i,o=(oc||(oc=1,e=dl,t=q(),n=function(){if(ic)return rc;ic=1;var e=U(),t={function:!0,object:!0};return rc=function(n){return e(n)&&t[typeof n]||!1}}(),r=U(),i=Error.captureStackTrace,e.exports=function(o){var s=Error(o),a=arguments[1],c=arguments[2];return r(c)||n(a)&&(c=a,a=null),r(c)&&t(s,c),r(a)&&(s.code=a),i&&i(s,e.exports),s}),dl.exports),s=W(),a=Y(),c=function(){return Ic||(Ic=1,e=yl,yl.exports,u=Y(),l=B(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,y={}.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0},r=function(e,t){var r,o;return l(t),o=this,n.call(this,e,r=function(){i.call(o,e,r),f.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e){var t,n,r,i,o;if(y.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(o=Array((n=arguments.length)-1),t=1;n>t;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)f.call(r,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(o=Array((n=arguments.length)-1),t=1;n>t;++t)o[t-1]=arguments[t];f.call(i,this,o)}},s={on:n=function(e,t){var n;return l(t),y.call(this,"__ee__")?n=this.__ee__:(n=v.value=d(null),h(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:i=function(e,t){var n,r,i,o;if(l(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:o},a={on:u(n),once:u(r),off:u(i),emit:u(o)},c=m({},a),e.exports=t=function(e){return null==e?d(c):m(Object(e),a)},t.methods=s),yl.exports;var e,t,n,r,i,o,s,a,c,u,l,f,p,d,h,m,y,v}().methods,u=function(){if(lu)return uu;lu=1;var e,t=function(){if(cu)return au;cu=1;var e=ee(),t=Array.isArray;return au=function(n){return t(n)?n:e(n)}}(),n=U(),r=B(),i=[].slice;return e=function(e){return this.map((function(t,n){return t?t(e[n]):e[n]})).concat(i.call(e,this.length))},uu=function(i){return(i=t(i)).forEach((function(e){n(e)&&r(e)})),e.bind(i)}}(),l=function(){if(pu)return fu;pu=1;var e=B();return fu=function(t){var n;return"function"==typeof t?{set:t,get:t}:(n={get:e(t.get)},void 0!==t.set?(n.set=e(t.set),t.delete&&(n.delete=e(t.delete)),t.clear&&(n.clear=e(t.clear)),n):(n.set=n.get,n))}}(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperties,m=c.on,y=c.emit;return du=function(e,t,n){var r,i,c,v,w,E,g,_,b,S,O,R,I,T,P,C=d(null);return i=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(S=l(n.normalizer),c=S.get,v=S.set,w=S.delete,E=S.clear),null!=n.resolvers&&(P=u(n.resolvers)),T=c?s((function(t){var n,i,s=arguments;if(P&&(s=P(s)),null!==(n=c(s))&&hasOwnProperty.call(C,n))return O&&r.emit("get",n,s,this),C[n];if(i=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),null===n){if(null!==(n=c(s)))throw o("Circular invocation","CIRCULAR_INVOCATION");n=v(s)}else if(hasOwnProperty.call(C,n))throw o("Circular invocation","CIRCULAR_INVOCATION");return C[n]=i,R&&r.emit("set",n,null,i),i}),i):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return O&&r.emit("get","data",arguments,this),C.data;if(t=arguments.length?f.call(e,this,arguments):p.call(e,this),hasOwnProperty.call(C,"data"))throw o("Circular invocation","CIRCULAR_INVOCATION");return C.data=t,R&&r.emit("set","data",null,t),t}:function(t){var n,i,s=arguments;if(P&&(s=P(arguments)),i=s[0]+"",hasOwnProperty.call(C,i))return O&&r.emit("get",i,s,this),C[i];if(n=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),hasOwnProperty.call(C,i))throw o("Circular invocation","CIRCULAR_INVOCATION");return C[i]=n,R&&r.emit("set",i,null,n),n},r={original:e,memoized:T,profileName:n.profileName,get:function(e){return P&&(e=P(e)),c?c(e):e[0]+""},has:function(e){return hasOwnProperty.call(C,e)},delete:function(e){var t;hasOwnProperty.call(C,e)&&(w&&w(e),t=C[e],delete C[e],I&&r.emit("delete",e,t))},clear:function(){var e=C;E&&E(),C=d(null),r.emit("clear",e)},on:function(e,t){return"get"===e?O=!0:"set"===e?R=!0:"delete"===e&&(I=!0),m.call(this,e,t)},emit:y,updateEnv:function(){e=r.original}},g=c?s((function(e){var t,n=arguments;P&&(n=P(n)),null!==(t=c(n))&&r.delete(t)}),i):0===t?function(){return r.delete("data")}:function(e){return P&&(e=P(arguments)[0]),r.delete(e)},_=s((function(){var e,n=arguments;return 0===t?C.data:(P&&(n=P(n)),e=c?c(n):n[0]+"",C[e])})),b=s((function(){var e,n=arguments;return 0===t?r.has("data"):(P&&(n=P(n)),null!==(e=c?c(n):n[0]+"")&&r.has(e))})),h(T,{__memoized__:a(!0),delete:a(g),clear:a(r.clear),_get:a(_),_has:a(b)}),r},du}function ne(){if(Pu)return Tu;Pu=1;var e=Iu?Ru:(Iu=1,Ru=(bu?_u:(bu=1,_u=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:Ou?Su:(Ou=1,Su=function(e){return e!=e})),t=F(),n=G(),r=[].indexOf,i={}.hasOwnProperty,o=Math.abs,s=Math.floor;return Tu=function(a){var c,u,l;if(!e(a))return r.apply(this,arguments);for(u=t(n(this).length),c=l=isNaN(l=arguments[1])?0:0>l?t(this.length)-s(o(l)):s(l);u>c;++c)if(i.call(this,c)&&e(this[c]))return c;return-1},Tu}function re(){if(ku)return Du;ku=1;var e=B(),t=V(),n=function(){}.call;return Du=function(r,i){var o={},s=arguments[2];return e(i),t(r,(function(e,t,r,a){o[t]=n.call(i,s,e,t,r,a)})),o},Du}function ie(){if(ju)return Uu;ju=1;var e=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},t=function(t){var n,r,i=document.createTextNode(""),o=0;return new t((function(){var e;if(n)r&&(n=r.concat(n));else{if(!r)return;n=r}if(r=n,n=null,"function"==typeof r)return e=r,r=null,void e();for(i.data=o=++o%2;r;)e=r.shift(),r.length||(r=null),e()})).observe(i,{characterData:!0}),function(t){e(t),n?"function"==typeof n?n=[n,t]:n.push(t):(n=t,i.data=o=++o%2)}};return Uu=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(t){queueMicrotask(e(t))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return t(MutationObserver);if("function"==typeof WebKitMutationObserver)return t(WebKitMutationObserver)}return"function"==typeof setImmediate?function(t){setImmediate(e(t))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(t){setTimeout(e(t),0)}:null}()}function oe(){return Vu?Gu:(Vu=1,Gu=function(e){return"function"==typeof e})}function se(){function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return Qu||(Qu=1,El.exports=e,El.exports.default=e),El.exports}function ae(){if(Zu)return wl;Zu=1;var e=re(),t=function(){if(Bu)return Mu;Bu=1;var e=[].forEach,t=Object.create;return Mu=function(n){var r=t(null);return e.call(arguments,(function(e){r[e]=!0})),r},Mu}(),n=function(){if(Wu)return zu;Wu=1;var e=G(),t=function(){if(qu)return Hu;qu=1;var e=oe();return Hu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return zu=function(n){return t(e(n))}}(),r=function(){if(Ju)return Yu;Ju=1;var e=function(){if(Ku)return Xu;Ku=1;var e=oe();return Xu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return""}}}();return Yu=function(t){var n=e(t);return n.length>100&&(n=n.slice(0,99)+"…"),n.replace(/[\n\r\u2028\u2029]/g,(function(e){return JSON.stringify(e).slice(1,-1)}))}}(),i=se(),o=ie(),s=Object.create,a=t("then","then:finally","done","done:finally");return H().promise=function(t,c){var u=s(null),l=s(null),f=s(null);if(!0===t)t=null;else if(t=n(t),!a[t])throw new TypeError("'"+r(t)+"' is not valid promise mode");c.on("set",(function(e,n,r){var s=!1;if(!i(r))return l[e]=r,void c.emit("setasync",e,1);u[e]=1,f[e]=r;var a=function(t){var n=u[e];if(s)throw Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");n&&(delete u[e],l[e]=t,c.emit("setasync",e,n))},p=function(){s=!0,u[e]&&(delete u[e],delete f[e],c.delete(e))},d=t;if(d||(d="then"),"then"===d){var h=function(){o(p)};"function"==typeof(r=r.then((function(e){o(a.bind(this,e))}),h)).finally&&r.finally(h)}else if("done"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");r.done(a,p)}else if("done:finally"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof r.finally)throw Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");r.done(a),r.finally(p)}})),c.on("get",(function(e,t,n){var r;if(u[e])++u[e];else{var s=function(){c.emit("getasync",e,t,n)};i(r=f[e])?"function"==typeof r.done?r.done(s):r.then((function(){o(s)})):s()}})),c.on("delete",(function(e){if(delete f[e],u[e])delete u[e];else if(hasOwnProperty.call(l,e)){var t=l[e];delete l[e],c.emit("deleteasync",e,[t])}})),c.on("clear",(function(){var t=l;l=s(null),u=s(null),f=s(null),c.emit("clearasync",e(t,(function(e){return[e]})))}))},wl}async function ce(e){try{return await Ir.promises.access(e),!0}catch{return!1}}function ue(e){const t=function(){if(C()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?Pr.join("/Users/",process.env.SUDO_USER):Pr.join("/home/",process.env.SUDO_USER);{const e=Rr.homedir();if(""===e)return;return e}}();return void 0===t?e:e.replace(Rl,t)}async function le(e){const t=void 0===e.guard?"\n# Automatically Generated by envosman\n":`\n# Automatically Generated by envosman ${e.guard}\nexport SOURCE_${e.guard.toUpperCase()}RC=0\n`;await ce(e.rcPath)&&((await Tl(e.rcPath,"utf8")).includes(t)||(await Il(e.rcPath,`\n${t}\n`),y(`Added ${t} to ${e.rcPath}`)))}async function fe(e,t){await ce(t)&&((await Tl(t,"utf-8")).includes(e)||(await Il(t,e),y(`${e} was added to ${t}`)))}async function pe(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:Cl,...n},i=function(e,t=!1){const n=t?Al(e):e;return Ml(n,'"',"\\")}(null!=t?t:"",r.escapeSpace);try{if(Bl)try{if(!r.overwrite&&void 0!==process.env[e])return void y(`Environment variable ${e} is already defined. Skipping.`);zi.exportVariable(e,i)}catch(o){d(o),await de(e,i,r)}else await de(e,i,r)}catch(o){d(`${o}\nFailed to export environment variable ${e}=${i}. You should add it manually.`)}}async function de(e,t,n){const r=null!=t?t:"";switch(process.platform){case"win32":return n.overwrite||void 0===process.env[e]?(await R(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void y(`${e}='${r}' was set in the environment.`)):void y(`Environment variable ${e} is already defined. Skipping.`);case"linux":case"darwin":return await xl(n),void(n.overwrite?(await Gl(n.rcPath,`\nexport ${e}="${r}"\n`),y(`${e}="${r}" was added to "${n.rcPath}`)):(await Gl(n.rcPath,`\nif [ -z "\${${e}}" ]; then export ${e}="${r}"; fi\n`),y(`if not defined ${e} then ${e}="${r}" was added to "${n.rcPath}`)))}process.env[e]=r}async function he(e,t={}){const n={rcPath:Cl,...t};if(!function(e){var t,n;return!!ql.some((t=>t.test(e)))&&(null!=(n=null==(t=process.env.PATH)?void 0:t.split(Pr.delimiter))?n:[]).includes(e)}(e)){process.env.PATH=`${e}${Pr.delimiter}${process.env.PATH}`;try{if(Vl)try{zi.addPath(e)}catch(r){d(r),await me(e,n)}else await me(e,n)}catch(r){d(`${r}\nFailed to add ${e} to the percistent PATH. You should add it manually.`)}}}async function me(e,t){switch(process.platform){case"win32":return await R(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void y(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await xl(t),await Hl(t.rcPath,`\nexport PATH="${e}:$PATH"\n`),void y(`"${e}" was added to "${t.rcPath}"`);default:return}}function ye(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function ve(){return zl||(zl=1,e=Kl,function(){function t(e,t,i){if(n(e),"object"!=typeof i)throw Error("List of variants should be specified as an object");var o=r[e](t);return void 0!==i[o]?i[o]:null}function n(e){(function(e){return void 0!==r[e]})(e)||function(e){try{ye(__dirname+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}}(e)}var r={};e.exports={create:function(e){return n(e),{pluralize:function(n,r){return t(e,n,r)}}},addLocale:function(e,t){r[e]=t},pluralize:t}}()),Kl.exports;var e}function we(){return Xl?Wl:(Xl=1,Wl=ve())}function Ee(){return ff?lf:(ff=1,lf={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function ge(){if(df)return pf;df=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return pf=e}function _e(){return hf||(hf=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Ee(),o=ge(),s=(t=e.exports={}).re=[],a=t.safeRe=[],c=t.src=[],u=t.t={};let l=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[f,r]],d=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(t+"*").join(`${t}{0,${n}}`).split(t+"+").join(`${t}{1,${n}}`);return e})(t),i=l++;o(e,i,t),u[e]=i,c[i]=t,s[i]=RegExp(t,n?"g":void 0),a[i]=RegExp(r,n?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),d("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",f+"+"),d("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),d("FULL",`^${c[u.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),d("LOOSE",`^${c[u.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",c[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),d("XRANGEIDENTIFIER",c[u.NUMERICIDENTIFIER]+"|x|X|\\*"),d("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),d("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),d("COERCE",c[u.COERCEPLAIN]+"(?:$|[^\\d])"),d("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",c[u.COERCE],!0),d("COERCERTLFULL",c[u.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Wp,Wp.exports)),Wp.exports}function be(){if(yf)return mf;yf=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return mf=n=>n?"object"!=typeof n?e:n:t}function Se(){if(wf)return vf;wf=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),i=e.test(n);return r&&i&&(t=+t,n=+n),t===n?0:r&&!i?-1:i&&!r?1:n>t?-1:1};return vf={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function Oe(){if(gf)return Ef;gf=1;const e=ge(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Ee(),{safeRe:r,t:i}=_e(),o=be(),{compareIdentifiers:s}=Se();class a{constructor(s,c){if(c=o(c),s instanceof a){if(s.loose===!!c.loose&&s.includePrerelease===!!c.includePrerelease)return s;s=s.version}else if("string"!=typeof s)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",s,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const u=s.trim().match(c.loose?r[i.LOOSE]:r[i.FULL]);if(!u)throw new TypeError("Invalid Version: "+s);if(this.raw=s,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>n||0>this.major)throw new TypeError("Invalid major version");if(this.minor>n||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>n||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=u[4]?u[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof a)){if("string"==typeof t&&t===this.version)return 0;t=new a(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof a||(e=new a(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)}comparePre(t){if(t instanceof a||(t=new a(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(e("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return s(r,i)}while(++n)}compareBuild(t){t instanceof a||(t=new a(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(e("build compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return s(r,i)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===s(this.prerelease[0],t)?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}}return Ef=a}function Re(){if(bf)return _f;bf=1;const e=Oe();return _f=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(i){if(!r)return null;throw i}}}function Ie(){if(Of)return Sf;Of=1;const e=Re();return Sf=(t,n)=>{const r=e(t,n);return r?r.version:null}}function Te(){if(Lf)return Nf;Lf=1;const e=Oe();return Nf=(t,n)=>new e(t,n).major}function Pe(){if(Mf)return Ff;Mf=1;const e=Oe();return Ff=(t,n,r)=>new e(t,r).compare(new e(n,r))}function Ce(){if(zf)return qf;zf=1;const e=Oe();return qf=(t,n,r)=>{const i=new e(t,r),o=new e(n,r);return i.compare(o)||i.compareBuild(o)}}function xe(){if(Qf)return Jf;Qf=1;const e=Pe();return Jf=(t,n,r)=>e(t,n,r)>0}function Ne(){if(ep)return Zf;ep=1;const e=Pe();return Zf=(t,n,r)=>0>e(t,n,r)}function Le(){if(np)return tp;np=1;const e=Pe();return tp=(t,n,r)=>0===e(t,n,r)}function Ae(){if(ip)return rp;ip=1;const e=Pe();return rp=(t,n,r)=>0!==e(t,n,r)}function $e(){if(sp)return op;sp=1;const e=Pe();return op=(t,n,r)=>e(t,n,r)>=0}function De(){if(cp)return ap;cp=1;const e=Pe();return ap=(t,n,r)=>0>=e(t,n,r)}function ke(){if(lp)return up;lp=1;const e=Le(),t=Ae(),n=xe(),r=$e(),i=Ne(),o=De();return up=(s,a,c,u)=>{switch(a){case"===":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s===c;case"!==":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s!==c;case"":case"=":case"==":return e(s,c,u);case"!=":return t(s,c,u);case">":return n(s,c,u);case">=":return r(s,c,u);case"<":return i(s,c,u);case"<=":return o(s,c,u);default:throw new TypeError("Invalid operator: "+a)}}}function Ue(){if(pp)return fp;pp=1;const e=Oe(),t=Re(),{safeRe:n,t:r}=_e();return fp=(i,o)=>{if(i instanceof e)return i;if("number"==typeof i&&(i+=""),"string"!=typeof i)return null;let s=null;if((o=o||{}).rtl){const e=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(i))&&(!s||s.index+s[0].length!==i.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else s=i.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);return null===s?null:t(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}${o.includePrerelease&&s[5]?"-"+s[5]:""}${o.includePrerelease&&s[6]?"+"+s[6]:""}`,o)}}function je(){if(yp)return mp;yp=1;const e=/\s+/g;class t{constructor(n,o){if(o=r(o),n instanceof t)return n.loose===!!o.loose&&n.includePrerelease===!!o.includePrerelease?n:new t(n.raw,o);if(n instanceof i)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;this.set.length>e;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;t.length>e;e++)e>0&&(this.formatted+=" "),this.formatted+=(""+t[e]).trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&d))+":"+e,r=n.get(t);if(r)return r;const s=this.options.loose;e=e.replace(s?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE],T(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],u),o("comparator trim",e),e=e.replace(a[c.TILDETRIM],l),o("tilde trim",e),e=e.replace(a[c.CARETTRIM],f),o("caret trim",e);let m=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));s&&(m=m.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[c.COMPARATORLOOSE]))))),o("range list",m);const y=new Map,w=m.map((e=>new i(e,this.options)));for(const n of w){if(h(n))return[n];y.set(n.value,n)}y.size>1&&y.has("")&&y.delete("");const E=[...y.values()];return n.set(t,E),E}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>y(t,n)&&e.set.some((e=>y(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options)}catch(t){return!1}for(let n=0;this.set.length>n;n++)if(P(this.set[n],e,this.options))return!0;return!1}}mp=t;const n=new(hp?dp:(hp=1,dp=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=be(),i=Fe(),o=ge(),s=Oe(),{safeRe:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:f}=_e(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:d}=Ee(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},v=(e,t)=>(o("comp",e,t),e=_(e,t),o("caret",e),e=E(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=R(e,t),o("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>g(e,t))).join(" "),g=(e,t)=>e.replace(t.loose?a[c.TILDELOOSE]:a[c.TILDE],((t,n,r,i,s)=>{let a;return o("tilde",e,t,n,r,i,s),w(n)?a="":w(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(o("replaceTilde pr",s),a=`>=${n}.${r}.${i}-${s} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",a),a})),_=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[c.CARETLOOSE]:a[c.CARET],((t,r,i,s,a)=>{let c;return o("caret",e,t,r,i,s,a),w(r)?c="":w(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(s)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(o("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${s}-${a} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${a} <${+r+1}.0.0-0`):(o("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),o("caret return",c),c}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?a[c.XRANGELOOSE]:a[c.XRANGE],((n,r,i,s,a,c)=>{o("xRange",e,n,r,i,s,a,c);const u=w(i),l=u||w(s),f=l||w(a);return"="===r&&f&&(r=""),c=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(l&&(s=0),a=0,">"===r?(r=">=",l?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):"<="===r&&(r="<",l?i=+i+1:s=+s+1),"<"===r&&(c="-0"),n=`${r+i}.${s}.${a}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${s}.0${c} <${i}.${+s+1}.0-0`),o("xRange return",n),n})),R=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),I=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),T=e=>(t,n,r,i,o,s,a,c,u,l,f,p)=>`${n=w(r)?"":w(i)?`>=${r}.0.0${e?"-0":""}`:w(o)?`>=${r}.${i}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=w(u)?"":w(l)?`<${+u+1}.0.0-0`:w(f)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${f}-${p}`:e?`<${u}.${l}.${+f+1}-0`:"<="+c}`.trim(),P=(e,t,n)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;e.length>n;n++)if(o(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return mp}function Fe(){if(wp)return vp;wp=1;const e=Symbol();class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),s("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,s("comp",this)}parse(t){const n=t.match(this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR]);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new a(n[2],this.options.loose):e}toString(){return this.value}test(t){if(s("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new a(t,this.options)}catch(n){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,r).test(this.value):""===e.operator?""===e.value||new c(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.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("="))&&!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}vp=t;const n=be(),{safeRe:r,t:i}=_e(),o=ke(),s=ge(),a=Oe(),c=je();return vp}function Me(){if(gp)return Ep;gp=1;const e=je();return Ep=(t,n,r)=>{try{n=new e(n,r)}catch(i){return!1}return n.test(t)}}function Be(){if(Lp)return Np;Lp=1;const e=Oe(),t=Fe(),{ANY:n}=t,r=je(),i=Me(),o=xe(),s=Ne(),a=De(),c=$e();return Np=(u,l,f,p)=>{let d,h,m,y,v;switch(u=new e(u,p),l=new r(l,p),f){case">":d=o,h=a,m=s,y=">",v=">=";break;case"<":d=s,h=c,m=o,y="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(u,l,p))return!1;for(let e=0;l.set.length>e;++e){let r=null,i=null;if(l.set[e].forEach((e=>{e.semver===n&&(e=new t(">=0.0.0")),r=r||e,i=i||e,d(e.semver,r.semver,p)?r=e:m(e.semver,i.semver,p)&&(i=e)})),r.operator===y||r.operator===v)return!1;if((!i.operator||i.operator===y)&&h(u,i.semver))return!1;if(i.operator===v&&m(u,i.semver))return!1}return!0}}function Ge(){if(Hp)return Vp;Hp=1;const e=_e(),t=Ee(),n=Oe(),r=Se(),i=Re(),o=Ie(),s=function(){if(If)return Rf;If=1;const e=Re();return Rf=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),a=function(){if(Pf)return Tf;Pf=1;const e=Oe();return Tf=(t,n,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,i,o).version}catch(s){return null}}}(),c=function(){if(xf)return Cf;xf=1;const e=Re();return Cf=(t,n)=>{const r=e(t,null,!0),i=e(n,null,!0),o=r.compare(i);if(0===o)return null;const s=o>0,a=s?r:i,c=s?i:r,u=!!a.prerelease.length;if(c.prerelease.length&&!u)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const l=u?"pre":"";return r.major!==i.major?l+"major":r.minor!==i.minor?l+"minor":r.patch!==i.patch?l+"patch":"prerelease"}}(),u=Te(),l=function(){if($f)return Af;$f=1;const e=Oe();return Af=(t,n)=>new e(t,n).minor}(),f=function(){if(kf)return Df;kf=1;const e=Oe();return Df=(t,n)=>new e(t,n).patch}(),p=function(){if(jf)return Uf;jf=1;const e=Re();return Uf=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),d=Pe(),h=function(){if(Gf)return Bf;Gf=1;const e=Pe();return Bf=(t,n,r)=>e(n,t,r)}(),m=function(){if(Hf)return Vf;Hf=1;const e=Pe();return Vf=(t,n)=>e(t,n,!0)}(),y=Ce(),v=function(){if(Xf)return Wf;Xf=1;const e=Ce();return Wf=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),w=function(){if(Yf)return Kf;Yf=1;const e=Ce();return Kf=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),E=xe(),g=Ne(),_=Le(),b=Ae(),S=$e(),O=De(),R=ke(),I=Ue(),T=Fe(),P=je(),C=Me(),x=function(){if(bp)return _p;bp=1;const e=je();return _p=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),N=function(){if(Op)return Sp;Op=1;const e=Oe(),t=je();return Sp=(n,r,i)=>{let o=null,s=null,a=null;try{a=new t(r,i)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(o&&-1!==s.compare(t)||(o=t,s=new e(o,i)))})),o}}(),L=function(){if(Ip)return Rp;Ip=1;const e=Oe(),t=je();return Rp=(n,r,i)=>{let o=null,s=null,a=null;try{a=new t(r,i)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(o&&1!==s.compare(t)||(o=t,s=new e(o,i)))})),o}}(),A=function(){if(Pp)return Tp;Pp=1;const e=Oe(),t=je(),n=xe();return Tp=(r,i)=>{r=new t(r,i);let o=new e("0.0.0");if(r.test(o))return o;if(o=new e("0.0.0-0"),r.test(o))return o;o=null;for(let t=0;r.set.length>t;++t){let i=null;r.set[t].forEach((t=>{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":i&&!n(r,i)||(i=r);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+t.operator)}})),!i||o&&!n(o,i)||(o=i)}return o&&r.test(o)?o:null}}(),$=function(){if(xp)return Cp;xp=1;const e=je();return Cp=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),D=Be(),k=function(){if($p)return Ap;$p=1;const e=Be();return Ap=(t,n,r)=>e(t,n,">",r)}(),U=function(){if(kp)return Dp;kp=1;const e=Be();return Dp=(t,n,r)=>e(t,n,"<",r)}(),j=function(){if(jp)return Up;jp=1;const e=je();return Up=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),F=function(){if(Mp)return Fp;Mp=1;const e=Me(),t=Pe();return Fp=(n,r,i)=>{const o=[];let s=null,a=null;const c=n.sort(((e,n)=>t(e,n,i)));for(const t of c)e(t,r,i)?(a=t,s||(s=t)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const u=[];for(const[e,t]of o)u.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const l=u.join(" || ");return("string"==typeof r.raw?r.raw:r+"").length>l.length?l:r}}(),M=function(){if(Gp)return Bp;Gp=1;const e=je(),t=Fe(),{ANY:n}=t,r=Me(),i=Pe(),o=[new t(">=0.0.0-0")],s=[new t(">=0.0.0")],a=(e,t,a)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=a.includePrerelease?o:s}if(1===t.length&&t[0].semver===n){if(a.includePrerelease)return!0;t=s}const l=new Set;let f,p,d,h,m,y,v;for(const n of e)">"===n.operator||">="===n.operator?f=c(f,n,a):"<"===n.operator||"<="===n.operator?p=u(p,n,a):l.add(n.semver);if(l.size>1)return null;if(f&&p){if(d=i(f.semver,p.semver,a),d>0)return null;if(0===d&&(">="!==f.operator||"<="!==p.operator))return null}for(const n of l){if(f&&!r(n,f+"",a))return null;if(p&&!r(n,p+"",a))return null;for(const e of t)if(!r(n,e+"",a))return!1;return!0}let w=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,E=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;w&&1===w.prerelease.length&&"<"===p.operator&&0===w.prerelease[0]&&(w=!1);for(const n of t){if(v=v||">"===n.operator||">="===n.operator,y=y||"<"===n.operator||"<="===n.operator,f)if(E&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===E.major&&n.semver.minor===E.minor&&n.semver.patch===E.patch&&(E=!1),">"===n.operator||">="===n.operator){if(h=c(f,n,a),h===n&&h!==f)return!1}else if(">="===f.operator&&!r(f.semver,n+"",a))return!1;if(p)if(w&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===w.major&&n.semver.minor===w.minor&&n.semver.patch===w.patch&&(w=!1),"<"===n.operator||"<="===n.operator){if(m=u(p,n,a),m===n&&m!==p)return!1}else if("<="===p.operator&&!r(p.semver,n+"",a))return!1;if(!n.operator&&(p||f)&&0!==d)return!1}return!(f&&y&&!p&&0!==d||p&&v&&!f&&0!==d||E||w)},c=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r>0?e:0>r||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return 0>r?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return Bp=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let i=!1;e:for(const e of t.set){for(const t of n.set){const n=a(e,t,r);if(i=i||null!==n,n)continue e}if(i)return!1}return!0}}();return Vp={parse:i,valid:o,clean:s,inc:a,diff:c,major:u,minor:l,patch:f,prerelease:p,compare:d,rcompare:h,compareLoose:m,compareBuild:y,sort:v,rsort:w,gt:E,lt:g,eq:_,neq:b,gte:S,lte:O,cmp:R,coerce:I,Comparator:T,Range:P,satisfies:C,toComparators:x,maxSatisfying:N,minSatisfying:L,minVersion:A,validRange:$,outside:D,gtr:k,ltr:U,intersects:j,simplifyRange:F,subset:M,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}function Ve(){return Yp||(Yp=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.toCommandProperties=fd.toCommandValue=void 0,fd.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},fd.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}:{}}),fd}function He(){return ed||(ed=1,function(e){var t=hd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Rr,r=Ir,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;return yield r(n,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,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(hd)),hd}function qe(){return nd||(nd=1,function(e){function t(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,r=gd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=gd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=gd.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=gd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const a=o(Ir),c=o(Pr);e.chmod=(n=a.promises).chmod,e.copyFile=n.copyFile,e.lstat=n.lstat,e.mkdir=n.mkdir,e.open=n.open,e.readdir=n.readdir,e.readlink=n.readlink,e.rename=n.rename,e.rm=n.rm,e.rmdir=n.rmdir,e.stat=n.stat,e.symlink=n.symlink,e.unlink=n.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=a.constants.O_RDONLY,e.exists=function(t){return s(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(n){if("ENOENT"===n.code)return!1;throw n}return!0}))},e.isDirectory=function(t,n=!1){return s(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){return t=t||"",e.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")}(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(n,r){return s(this,void 0,void 0,(function*(){let i;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile())if(e.IS_WINDOWS){const e=c.extname(n).toUpperCase();if(r.some((t=>t.toUpperCase()===e)))return n}else if(t(i))return n;const o=n;for(const a of r){n=o+a,i=void 0;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile()){if(e.IS_WINDOWS){try{const t=c.dirname(n),r=c.basename(n).toUpperCase();for(const i of yield e.readdir(t))if(r===i.toUpperCase()){n=c.join(t,i);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${n}': ${s}`)}return n}if(t(i))return n}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(gd)),gd}function ze(){function e(e){return c(this,void 0,void 0,(function*(){if(f.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield f.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(t){throw Error("File was unable to be removed "+t)}}))}function t(e){return c(this,void 0,void 0,(function*(){u.ok(e,"a path argument must be provided"),yield f.mkdir(e,{recursive:!0})}))}function n(e){return c(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(f.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(l.delimiter))e&&t.push(e);if(f.isRooted(e)){const n=yield f.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(l.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(l.delimiter))e&&n.push(e);const r=[];for(const i of n){const n=yield f.tryGetExecutablePath(l.join(i,e),t);n&&r.push(n)}return r}))}function r(e,n,o,s){return c(this,void 0,void 0,(function*(){if(o>=255)return;o++,yield t(n);const a=yield f.readdir(e);for(const t of a){const a=`${e}/${t}`,c=`${n}/${t}`;(yield f.lstat(a)).isDirectory()?yield r(a,c,o,s):yield i(a,c,s)}yield f.chmod(n,(yield f.stat(e)).mode)}))}function i(e,t,n){return c(this,void 0,void 0,(function*(){if((yield f.lstat(e)).isSymbolicLink()){try{yield f.lstat(t),yield f.unlink(t)}catch(r){"EPERM"===r.code&&(yield f.chmod(t,"0666"),yield f.unlink(t))}const n=yield f.readlink(e);yield f.symlink(n,t,f.IS_WINDOWS?"junction":null)}else(yield f.exists(t))&&!n||(yield f.copyFile(e,t))}))}if(rd)return Ed;rd=1;var o=Ed.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=Ed.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Ed.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},c=Ed.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.findInPath=Ed.which=Ed.mkdirP=Ed.rmRF=Ed.mv=Ed.cp=void 0;const u=Ur,l=a(Pr),f=a(qe());return Ed.cp=function(e,t,n={}){return c(this,void 0,void 0,(function*(){const{force:o,recursive:s,copySourceDirectory:a}=function(e){return{force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}}(n),c=(yield f.exists(t))?yield f.stat(t):null;if(c&&c.isFile()&&!o)return;const u=c&&c.isDirectory()&&a?l.join(t,l.basename(e)):t;if(!(yield f.exists(e)))throw Error("no such file or directory: "+e);if((yield f.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield r(e,u,0,o)}else{if(""===l.relative(e,u))throw Error(`'${u}' and '${e}' are the same file`);yield i(e,u,o)}}))},Ed.mv=function(n,r,i={}){return c(this,void 0,void 0,(function*(){if(yield f.exists(r)){let t=!0;if((yield f.isDirectory(r))&&(r=l.join(r,l.basename(n)),t=yield f.exists(r)),t){if(null!=i.force&&!i.force)throw Error("Destination already exists");yield e(r)}}yield t(l.dirname(r)),yield f.rename(n,r)}))},Ed.rmRF=e,Ed.mkdirP=t,Ed.which=function e(t,r){return c(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const n=yield e(t,!1);if(!n)throw Error(f.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}const i=yield n(t);return i&&i.length>0?i[0]:""}))},Ed.findInPath=n,Ed}function We(){function e(e,t,n){return i(this,void 0,void 0,(function*(){const r=s.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];return t=r.slice(1).concat(t||[]),new s.ToolRunner(i,t,n).exec()}))}if(od)return vd;od=1;var t=vd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=vd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=vd.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=vd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(vd,"__esModule",{value:!0}),vd.getExecOutput=vd.exec=void 0;const o=Mr,s=r(function(){if(id)return wd;id=1;var e=wd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=wd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=wd.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=wd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(wd,"__esModule",{value:!0}),wd.argStringToArray=wd.ToolRunner=void 0;const i=n(Rr),o=n(Lr),s=n(kr),a=n(Pr),c=n(ze()),u=n(qe()),l=Br,f="win32"===process.platform;wd.ToolRunner=class extends o.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let i=t?"":"[command]";if(f)if(this._isCmdFile()){i+=n;for(const e of r)i+=" "+e}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of r)i+=" "+e}else{i+=this._windowsQuoteCmdArg(n);for(const e of r)i+=" "+this._windowsQuoteCmdArg(e)}else{i+=n;for(const e of r)i+=" "+e}return i}_processLineBuffer(e,t,n){try{let r=t+""+e,o=r.indexOf(i.EOL);for(;o>-1;)n(r.substring(0,o)),r=r.substring(o+i.EOL.length),o=r.indexOf(i.EOL);return r}catch(r){return this._debug("error processing line. Failed with error "+r),""}}_getSpawnFileName(){return f&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(f&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const o of e)if(t.some((e=>e===o))){n=!0;break}if(!n)return e;let r='"',i=!0;for(let o=e.length;o>0;o--)r+=e[o-1],i&&"\\"===e[o-1]?r+="\\":'"'===e[o-1]?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const n={};return n.cwd=(e=e||{}).cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))&&(this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+i.EOL);const r=new p(n,this.toolPath);if(r.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield u.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),a=s.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(a.stderr&&a.stderr.on("data",(e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.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",((n,r)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}},wd.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1}const n=[];let r=!1,i=!1,o="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&i?t(a):"\\"===a&&r?i=!0:" "!==a||r?t(a):o.length>0&&(n.push(o),o=""):i?t(a):r=!r}return o.length>0&&n.push(o.trim()),n};class p extends o.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=l.setTimeout(p.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}return wd}());return vd.exec=e,vd.getExecOutput=function(t,n,r){var s,a;return i(this,void 0,void 0,(function*(){let i="",c="";const u=new o.StringDecoder("utf8"),l=new o.StringDecoder("utf8"),f=null===(s=null==r?void 0:r.listeners)||void 0===s?void 0:s.stdout,p=null===(a=null==r?void 0:r.listeners)||void 0===a?void 0:a.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{i+=u.write(e),f&&f(e)},stderr:e=>{c+=l.write(e),p&&p(e)}}),h=yield e(t,n,Object.assign(Object.assign({},r),{listeners:d}));return i+=u.end(),c+=l.end(),{exitCode:h,stdout:i,stderr:c}}))},vd}function Xe(){return ad||(ad=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function n(e,t={}){(0,u.issueCommand)("error",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)}function r(e){(0,u.issue)("group",e)}function i(){(0,u.issue)("endgroup")}var o=ud.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=ud.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=ud.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},c=ud.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const u=function(){function e(e,t,n){const r=new s(e,t,n);process.stdout.write(""+r+i.EOL)}if(Jp)return ld;Jp=1;var t=ld.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=ld.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ld.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(ld,"__esModule",{value:!0}),ld.issue=ld.issueCommand=void 0;const i=r(Rr),o=Ve();ld.issueCommand=e,ld.issue=function(t,n=""){e(t,{},n)};class s{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const i=this.properties[r];i&&(n?n=!1:e+=",",e+=`${r}=${t=i,(0,o.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return ld}(),f=function(){if(Qp)return pd;Qp=1;var e=pd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=pd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=pd.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(pd,"__esModule",{value:!0}),pd.prepareKeyValueMessage=pd.issueFileCommand=void 0;const r=n(Tr),i=n(Ir),o=n(Rr),s=Ve();return pd.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!i.existsSync(n))throw Error("Missing file at path: "+n);i.appendFileSync(n,`${(0,s.toCommandValue)(t)}${o.EOL}`,{encoding:"utf8"})},pd.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+r.randomUUID(),i=(0,s.toCommandValue)(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(i.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${o.EOL}${i}${o.EOL}${n}`},pd}(),p=Ve(),d=a(Rr),h=a(Pr),m=function(){if(Zp)return dd;Zp=1;var e=dd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(dd,"__esModule",{value:!0}),dd.OidcClient=void 0;const t=Ui,r=l(),i=Xe();class o{static createHttpClient(e=!0,n=10){const i={allowRetries:e,maxRetries:n};return new t.HttpClient("actions/oidc-client",[new r.BearerCredentialHandler(o.getRequestToken())],i)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=o.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),i=null===(n=r.result)||void 0===n?void 0:n.value;if(!i)throw Error("Response json body do not have ID Token field");return i}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=o.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),(0,i.debug)("ID token url is "+e);const n=yield o.getCall(e);return(0,i.setSecret)(n),n}catch(n){throw Error("Error message: "+n.message)}}))}}return dd.OidcClient=o,dd}();var y,v;(v=y||(e.ExitCode=y={}))[v.Success=0]="Success",v[v.Failure=1]="Failure",e.exportVariable=function(e,t){const n=(0,p.toCommandValue)(t);if(process.env[e]=n,process.env.GITHUB_ENV)return(0,f.issueFileCommand)("ENV",(0,f.prepareKeyValueMessage)(e,t));(0,u.issueCommand)("set-env",{name:e},n)},e.setSecret=function(e){(0,u.issueCommand)("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?(0,f.issueFileCommand)("PATH",e):(0,u.issueCommand)("add-path",{},e),process.env.PATH=`${e}${h.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return(0,f.issueFileCommand)("OUTPUT",(0,f.prepareKeyValueMessage)(e,t));process.stdout.write(d.EOL),(0,u.issueCommand)("set-output",{name:e},(0,p.toCommandValue)(t))},e.setCommandEcho=function(e){(0,u.issue)("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=y.Failure,n(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,u.issueCommand)("debug",{},e)},e.error=n,e.warning=function(e,t={}){(0,u.issueCommand)("warning",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){(0,u.issueCommand)("notice",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+d.EOL)},e.startGroup=r,e.endGroup=i,e.group=function(e,t){return c(this,void 0,void 0,(function*(){let n;r(e);try{n=yield t()}finally{i()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return(0,f.issueFileCommand)("STATE",(0,f.prepareKeyValueMessage)(e,t));(0,u.issueCommand)("save-state",{name:e},(0,p.toCommandValue)(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return c(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))};var w=He();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return w.summary}});var E=He();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return E.markdownSummary}});var g=function(){if(td)return md;td=1;var e=md.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=md.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=md.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(md,"__esModule",{value:!0}),md.toPlatformPath=md.toWin32Path=md.toPosixPath=void 0;const r=n(Pr);return md.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},md.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},md.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},md}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return g.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return g.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return g.toPlatformPath}}),e.platform=a((sd||(sd=1,function(e){var t=yd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=yd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=yd.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=yd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=yd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0;const s=o(Rr),a=r(We());e.platform=s.default.platform(),e.arch=s.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield i(void 0,void 0,void 0,e.isWindows?function*(){const{stdout:e}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:t}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0});return{name:t.trim(),version:e.trim()}}:e.isMacOS?function*(){var e,t,n,r;const{stdout:i}=yield a.getExecOutput("sw_vers",void 0,{silent:!0}),o=null!==(t=null===(e=i.match(/ProductVersion:\s*(.+)/))||void 0===e?void 0:e[1])&&void 0!==t?t:"";return{name:null!==(r=null===(n=i.match(/ProductName:\s*(.+)/))||void 0===n?void 0:n[1])&&void 0!==r?r:"",version:o}}:function*(){const{stdout:e}=yield a.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,n]=e.trim().split("\n");return{name:t,version:n}})),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}}(yd)),yd))}(ud)),ud}function Ke(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ye(e,t,n,r){var i,o=e[t],s=~r.string.indexOf(t)?null==n||!0===n?"":n+"":"boolean"==typeof n?n:~r.boolean.indexOf(t)?"false"!==n&&("true"===n||(e._.push(0*(i=+n)==0?i:n),!!n)):0*(i=+n)==0?i:n;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s]}async function Je(e,t,n,r=40){Od?await async function(e,t,n=40){await L("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await xl(n),await Rd(n.rcPath,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi\n`))}function Qe(e){const t={...process.env,DEBIAN_FRONTEND:"noninteractive"};return"nala"===e&&(void 0===t.LANG&&(t.LANG="C.UTF-8"),void 0===t.LC_ALL&&(t.LC_ALL="C.UTF-8")),t}function Ze(){return null!==fa.sync("nala",{nothrow:!0})}function et(){let e;return e=Ze()?"nala":"apt-get",e}function tt(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}async function nt(e){try{const{stdout:t}=await b("dpkg",["-s",e],{env:Qe("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("Status: install ok installed")))}catch{return!1}}async function rt(e,t=et()){return(await Promise.all(e.map((e=>it(e,t))))).filter((e=>void 0!==e))}async function it(e,t=et()){const n=await async function(e,t){const{name:n,version:r,fallBackToLatest:i=!1}=t;switch(await ot(e,n,r)){case Cd.NameDashVersion:return`${n}-${r}`;case Cd.NameEqualsVersion:return`${n}=${r}`;case Cd.Name:return void 0!==r&&""!==r&&i&&h(`Could not find package ${n} with version ${r}. Installing the latest version.`),n;default:throw Error(`Could not find package ${n} ${null!=r?r:""}`)}}(t,e);return await nt(n)?void 0:n}async function ot(e,t,n){if(void 0!==n&&""!==n){const{stdout:r}=await b("apt-cache",["search","--names-only",`^${tt(t)}-${tt(n)}$`],{env:Qe(e),stdio:"pipe"});if(""!==r.trim())return Cd.NameDashVersion;try{const{stdout:r}=await b("apt-cache",["show",`${t}=${n}`],{env:Qe(e)});if(""===r.trim())return Cd.NameEqualsVersion}catch{}}try{const{stdout:n}=await b("apt-cache",["show",t],{env:Qe(e),stdio:"pipe"});if(""!==n.trim())return Cd.Name}catch{}return Td?Cd.None:(Pd(e),ot(e,t,n))}async function st(e,t=!1){try{const r=et();for(const{name:t,version:n}of e)y(`Installing ${t} ${null!=n?n:""} via ${r}`);t&&Pd(r),await async function(e,t){const n=[...new Set(t.flatMap((e=>{var t;return null!=(t=e.repository)?t:[]})))];await Promise.all(n.map((t=>async function(e,t=et()){await Nd(t),await async function(e){await nt("software-properties-common")||N(e,["install","-y","--fix-broken","-o",Id,"software-properties-common"],{...ma,env:Qe(e)})}(t),N("add-apt-repository",["-y","--no-update",e],{...ma,env:Qe(t)}),Pd.clear(),Pd(t)}(t,e))))}(r,e);const i=await rt(e,r);if(0===i.length)return y("All packages are already installed"),{binDir:"/usr/bin/"};await Nd(r);try{await async function(e){await Promise.all(e.map((async e=>{var t;void 0!==e.key&&await(t=e.key,"keyUrl"in t?at(t):async function({key:e,keyServer:t=$d,fileName:n,keyStorePath:r=$d}){try{ut(n);const i=Pr.join(r,n);return await ce(i)||(ct(),await L("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+i,"--keyserver",t,"--recv-keys",e]),await L("chmod",["644",i])),i}catch(i){return void h(`Failed to add apt key via server ${t}: ${i}`)}}(t))})))}(e),N(r,["install","--fix-broken","-y",...i],{...ma,env:Qe(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;Ld.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(h(`Failed to install packages ${i}. Retrying...`),N(r,["install","--fix-broken","-y","-o",Id,...i],{...ma,env:Qe(r)}))}return{binDir:"/usr/bin/"}}catch(n){throw Error("Failed to install apt packages: "+(n instanceof Error?`${n.message}\n${n.stack}`:n+""))}}async function at({keyUrl:e,fileName:t,keyStorePath:n=Ad}){try{ut(t);const r=Pr.join(n,t);if(!(await ce(r))){ct(),await st([{name:"ca-certificates"}]);const n=Pr.join(Rr.tmpdir(),t),i=new Sd.DownloaderHelper(e,Rr.tmpdir(),{fileName:t});i.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await i.start(),N("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),N("chmod",["644",r])}return r}catch(r){return void h(`Failed to add apt key via download ${e}: ${r}`)}}function ct(){N("gpg",["-k"])}function ut(e){if(!e.endsWith(".gpg"))throw Error("Key file name must end with .gpg: "+e)}async function lt(e={}){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof Dd)return{binDir:Dd};const t=await fa("brew",{nothrow:!0});if(null!==t)return Dd=Pr.dirname(t),{binDir:Dd};await st([{name:"ca-certificates"}]);const n=new Sd.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Rr.tmpdir(),{fileName:"install-brew.sh"});return n.on("error",(e=>{throw Error("Failed to download the brew installer script: "+e)})),await n.start(),S("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),Dd=ft(),await he(Dd,e.rcOptions),{binDir:Dd}}function ft(){return Pr.join(pt(),"bin")}function pt(){if("darwin"===process.platform)return"arm64"===process.arch?"/opt/homebrew":"/usr/local";if("linux"===process.platform)return"/home/linuxbrew/.linuxbrew";throw Error("Unsupported platform for brew")}async function dt(e,t,n={}){"overwrite"in n||(n.overwrite=!0),!0===n.cask&&(n.overwrite=!1),y(`Installing ${e} ${null!=t?t:""} via brew`),Md&&null!==fa.sync("brew",{nothrow:!0})||(await lt(),Md=!0);const r=ft(),i=Pr.join(r,"brew"),o=["install",void 0!==t&&""!==t?`${e}@${t}`:e];for(const[s,a]of Object.entries(n))"boolean"==typeof a&&a?o.push("--"+s):"string"==typeof a&&o.push("--"+s,a);return S(i,o,{stdio:"inherit"}),{binDir:r}}function ht(){return"linux"===process.platform&&(void 0===kd&&(kd=null!==fa.sync("dnf",{nothrow:!0})),kd)}function mt(){return"linux"===process.platform&&(void 0===Ud&&(Ud=null!==fa.sync("pacman",{nothrow:!0})),Ud)}function yt(){return"linux"===process.platform&&(void 0===jd&&(jd=null!==fa.sync("apt-get",{nothrow:!0})),jd)}async function vt(e,t,n){var r;if("win32"!==process.platform)return;if("string"==typeof Fd)return{binDir:Fd};const i=fa.sync("choco",{nothrow:!0});if(null!==i)return Fd=Pr.dirname(i),{binDir:Fd};let o="powershell.exe";const s=fa.sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(o=s),S(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await he(a,lv);const c=fa.sync("choco",{nothrow:!0});return Fd=null!==c?Pr.dirname(c):(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin",await ce(Fd)?{binDir:Fd}:void 0}async function wt(e,t,n=[]){var r;y(`Installing ${e} ${null!=t?t:""} via chocolatey`),Bd&&null!==fa.sync("choco",{nothrow:!0})||(await vt(0,0,process),Bd=!0);const i=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=i,void 0!==t&&""!==t)S("choco",["install","-y",e,"--version="+t,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{S("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(a){if(!a.message.includes("exit code 3010"))throw a;y(e+" might require a reboot for the completion of the installation.")}const s=(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin";return await he(s,lv),{binDir:s}}async function Et(e){for(const{name:t,version:n}of e)y(`Installing ${t} ${null!=n?n:""} via dnf`);return N("dnf",["-y","install",...await Promise.all(e.map((e=>async function(e,t){if(void 0!==t&&""!==t){const{stdout:n}=await b("dnf",["search","-q",`${e}-${t}`]);if(""!==n.trim())return`${e}-${t}`;{const{stdout:n}=await b("dnf",["search","-q",`${e}${t}`]);if(""!==n.trim())return`${e}${t}`;h(`Failed to install ${e} ${t} via dnf, trying without version`)}}return e}(e.name,e.version))))]),{binDir:"/usr/bin/"}}async function gt(e,t,n){y(`Installing ${e} ${null!=t?t:""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===fa.sync("yay",{nothrow:!0}))try{N("pacman",["-S","--noconfirm","base-devel","git"]);const e=Pr.join(Rr.tmpdir(),"yay");N("mkdir",["-p",e]),P()?(h("Creating a non-root user to build yay"),N("useradd",["-m","-G","wheel","builder"]),N("passwd",["-d","builder"]),N("chown",["-R","builder:builder",e]),N("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),qd=!0,S("su",["-","builder","-c","git clone https://aur.archlinux.org/yay.git "+e],{stdio:"inherit"}),S("su",["-","builder","-c",`cd ${e} && makepkg -si --noconfirm`],{stdio:"inherit"})):(S("git",["clone","https://aur.archlinux.org/yay.git",e],{stdio:"inherit",cwd:Rr.tmpdir()}),S("makepkg",["-si","--noconfirm"],{stdio:"inherit",cwd:e})),S("rm",["-rf",e],{stdio:"inherit"})}catch(e){throw Error(`Failed to install yay: ${e}. Install yay manually and re-run the script.`)}}(),Gd||"yay"===n||(N(r,["-Sy","--noconfirm"]),Gd=!0),Vd||"yay"===n||(N(r,["-S","--noconfirm","base-devel"]),Vd=!0);const i=e=>"yay"===n?P()&&qd?N("su",["-","builder","-c","yay -S --noconfirm "+e]):S(n,["-S","--noconfirm",e]):N(null!=n?n:r,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){const n=await async function(e,t){const n=[];try{const{stdout:r}=await b(e,["-Si",t]);for(const e of r.matchAll(Hd))n.push(e[1])}catch(r){h(`Failed to get available versions for ${t}: ${r}`)}return n}(r,e);if(n.includes(t))try{i(`${e}=${t}`)}catch{i(`${e}${t}`)}else y(`Failed to install ${e} ${t} via pacman, trying without version`),i(e)}else i(e);return{binDir:"/usr/bin/"}}function _t(e,t){return Object.keys(t).forEach((n=>{"default"===n||"__esModule"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:()=>t[n]})})),e}function bt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function St(e,t=!0){return t?Pr.basename(e):Pr.basename(e,Pr.extname(e))}function Ot(e){return Pr.normalize(e).replace(RegExp(tt(Pr.sep)+"$"),"")}function Rt(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function It(e,t){const n=Pr.extname(e),r=`${t}${Pr.basename(e,n)}${n}`;return Pr.join(Pr.dirname(e),r)}function Tt(e,t){const n=Pr.extname(e),r=`${Pr.basename(e,n)}${t}${n}`;return Pr.join(Pr.dirname(e),r)}function Pt(e,t=".cmd",n=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function Ct(e){return"win32"===process.platform?e:"./"+e}function xt(e){const t=Pr.extname(e).length;return e.slice(0,-t)}function Nt(e,t){return Xd(e,t)}function Lt(e,t){const n=Pr.relative(t,e);return!(!n||".."===n||n.startsWith(".."+Pr.sep)||n===Pr.resolve(e))}function At(){return mh||(mh=1,function(e,t){function n(e){x[e]=N++}function r(e){for(var t=0;A.length>t;t++){var n=A[t][0],r=A[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o)return e;if("string"!=typeof e)return null;if(e.length>O)return null;if(!(t.loose?P[x.LOOSE]:P[x.FULL]).test(e))return null;try{return new o(e,t)}catch(n){return null}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>O)throw new TypeError("version is longer than "+O+" characters");if(!(this instanceof o))return new o(e,t);S("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?P[x.LOOSE]:P[x.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>R||0>this.major)throw new TypeError("Invalid major version");if(this.minor>R||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>R||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&R>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}function s(e,t){var n=D.test(e),r=D.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:t>e?-1:1}function a(e,t,n){return new o(e,n).compare(new o(t,n))}function c(e,t,n){return a(e,t,n)>0}function u(e,t,n){return 0>a(e,t,n)}function l(e,t,n){return 0===a(e,t,n)}function f(e,t,n){return 0!==a(e,t,n)}function p(e,t,n){return a(e,t,n)>=0}function d(e,t,n){return 0>=a(e,t,n)}function h(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return l(e,n,r);case"!=":return f(e,n,r);case">":return c(e,n,r);case">=":return p(e,n,r);case"<":return u(e,n,r);case"<=":return d(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),S("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===k?"":this.operator+this.semver.version,S("comp",this)}function y(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof y)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new y(e.raw,t);if(e instanceof m)return new y(e.value,t);if(!(this instanceof y))return new y(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.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 new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function v(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function w(e){return!e||"x"===e.toLowerCase()||"*"===e}function E(e,t,n,r,i,o,s,a,c,u,l,f,p){return((t=w(n)?"":w(r)?">="+n+".0.0":w(i)?">="+n+"."+r+".0":">="+t)+" "+(a=w(c)?"":w(u)?"<"+(+c+1)+".0.0":w(l)?"<"+c+"."+(+u+1)+".0":f?"<="+c+"."+u+"."+l+"-"+f:"<="+a)).trim()}function g(e,t,n){for(var r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(r=0;e.length>r;r++)if(S(e[r].semver),e[r].semver!==k&&e[r].semver.prerelease.length>0){var i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function _(e,t,n){try{t=new y(t,n)}catch(r){return!1}return t.test(e)}function b(e,t,n,r){var i,s,a,l,f;switch(e=new o(e,r),t=new y(t,r),n){case">":i=c,s=d,a=u,l=">",f=">=";break;case"<":i=u,s=p,a=c,l="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var v=null,w=null;if(t.set[h].forEach((function(e){e.semver===k&&(e=new m(">=0.0.0")),w=w||e,i(e.semver,(v=v||e).semver,r)?v=e:a(e.semver,w.semver,r)&&(w=e)})),v.operator===l||v.operator===f)return!1;if((!w.operator||w.operator===l)&&s(e,w.semver))return!1;if(w.operator===f&&a(e,w.semver))return!1}return!0}var S;t=Ph.exports=o,S="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var O=256,R=Number.MAX_SAFE_INTEGER||9007199254740991,I=O-6,T=t.re=[],P=t.safeRe=[],C=t.src=[],x=t.tokens={},N=0,L="[a-zA-Z0-9-]",A=[["\\s",1],["\\d",O],[L,I]];n("NUMERICIDENTIFIER"),C[x.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),C[x.NUMERICIDENTIFIERLOOSE]="\\d+",n("NONNUMERICIDENTIFIER"),C[x.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+L+"*",n("MAINVERSION"),C[x.MAINVERSION]="("+C[x.NUMERICIDENTIFIER]+")\\.("+C[x.NUMERICIDENTIFIER]+")\\.("+C[x.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),C[x.MAINVERSIONLOOSE]="("+C[x.NUMERICIDENTIFIERLOOSE]+")\\.("+C[x.NUMERICIDENTIFIERLOOSE]+")\\.("+C[x.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),C[x.PRERELEASEIDENTIFIER]="(?:"+C[x.NUMERICIDENTIFIER]+"|"+C[x.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),C[x.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[x.NUMERICIDENTIFIERLOOSE]+"|"+C[x.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),C[x.PRERELEASE]="(?:-("+C[x.PRERELEASEIDENTIFIER]+"(?:\\."+C[x.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),C[x.PRERELEASELOOSE]="(?:-?("+C[x.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[x.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),C[x.BUILDIDENTIFIER]=L+"+",n("BUILD"),C[x.BUILD]="(?:\\+("+C[x.BUILDIDENTIFIER]+"(?:\\."+C[x.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),C[x.FULLPLAIN]="v?"+C[x.MAINVERSION]+C[x.PRERELEASE]+"?"+C[x.BUILD]+"?",C[x.FULL]="^"+C[x.FULLPLAIN]+"$",n("LOOSEPLAIN"),C[x.LOOSEPLAIN]="[v=\\s]*"+C[x.MAINVERSIONLOOSE]+C[x.PRERELEASELOOSE]+"?"+C[x.BUILD]+"?",n("LOOSE"),C[x.LOOSE]="^"+C[x.LOOSEPLAIN]+"$",n("GTLT"),C[x.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),C[x.XRANGEIDENTIFIERLOOSE]=C[x.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),C[x.XRANGEIDENTIFIER]=C[x.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),C[x.XRANGEPLAIN]="[v=\\s]*("+C[x.XRANGEIDENTIFIER]+")(?:\\.("+C[x.XRANGEIDENTIFIER]+")(?:\\.("+C[x.XRANGEIDENTIFIER]+")(?:"+C[x.PRERELEASE]+")?"+C[x.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),C[x.XRANGEPLAINLOOSE]="[v=\\s]*("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:"+C[x.PRERELEASELOOSE]+")?"+C[x.BUILD]+"?)?)?",n("XRANGE"),C[x.XRANGE]="^"+C[x.GTLT]+"\\s*"+C[x.XRANGEPLAIN]+"$",n("XRANGELOOSE"),C[x.XRANGELOOSE]="^"+C[x.GTLT]+"\\s*"+C[x.XRANGEPLAINLOOSE]+"$",n("COERCE"),C[x.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),T[x.COERCERTL]=RegExp(C[x.COERCE],"g"),P[x.COERCERTL]=RegExp(r(C[x.COERCE]),"g"),n("LONETILDE"),C[x.LONETILDE]="(?:~>?)",n("TILDETRIM"),C[x.TILDETRIM]="(\\s*)"+C[x.LONETILDE]+"\\s+",T[x.TILDETRIM]=RegExp(C[x.TILDETRIM],"g"),P[x.TILDETRIM]=RegExp(r(C[x.TILDETRIM]),"g"),n("TILDE"),C[x.TILDE]="^"+C[x.LONETILDE]+C[x.XRANGEPLAIN]+"$",n("TILDELOOSE"),C[x.TILDELOOSE]="^"+C[x.LONETILDE]+C[x.XRANGEPLAINLOOSE]+"$",n("LONECARET"),C[x.LONECARET]="(?:\\^)",n("CARETTRIM"),C[x.CARETTRIM]="(\\s*)"+C[x.LONECARET]+"\\s+",T[x.CARETTRIM]=RegExp(C[x.CARETTRIM],"g"),P[x.CARETTRIM]=RegExp(r(C[x.CARETTRIM]),"g"),n("CARET"),C[x.CARET]="^"+C[x.LONECARET]+C[x.XRANGEPLAIN]+"$",n("CARETLOOSE"),C[x.CARETLOOSE]="^"+C[x.LONECARET]+C[x.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),C[x.COMPARATORLOOSE]="^"+C[x.GTLT]+"\\s*("+C[x.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),C[x.COMPARATOR]="^"+C[x.GTLT]+"\\s*("+C[x.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),C[x.COMPARATORTRIM]="(\\s*)"+C[x.GTLT]+"\\s*("+C[x.LOOSEPLAIN]+"|"+C[x.XRANGEPLAIN]+")",T[x.COMPARATORTRIM]=RegExp(C[x.COMPARATORTRIM],"g"),P[x.COMPARATORTRIM]=RegExp(r(C[x.COMPARATORTRIM]),"g"),n("HYPHENRANGE"),C[x.HYPHENRANGE]="^\\s*("+C[x.XRANGEPLAIN]+")\\s+-\\s+("+C[x.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),C[x.HYPHENRANGELOOSE]="^\\s*("+C[x.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[x.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),C[x.STAR]="(<|>)?=?\\s*\\*";for(var $=0;N>$;$++)S($,C[$]),T[$]||(T[$]=RegExp(C[$]),P[$]=RegExp(r(C[$])));t.parse=i,t.valid=function(e,t){var n=i(e,t);return n?n.version:null},t.clean=function(e,t){var n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},o.prototype.toString=function(){return this.version},o.prototype.compare=function(e){return S("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e)},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],r=e.prerelease[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var n=this.build[t],r=e.build[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new o(e,n).inc(t,r).version}catch(i){return null}},t.diff=function(e,t){if(l(e,t))return null;var n=i(e),r=i(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var s="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return s},t.compareIdentifiers=s;var D=/^[0-9]+$/;t.rcompareIdentifiers=function(e,t){return s(t,e)},t.major=function(e,t){return new o(e,t).major},t.minor=function(e,t){return new o(e,t).minor},t.patch=function(e,t){return new o(e,t).patch},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0)},t.compareBuild=function(e,t,n){var r=new o(e,n),i=new o(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return a(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=c,t.lt=u,t.eq=l,t.neq=f,t.gte=p,t.lte=d,t.cmp=h,t.Comparator=m;var k={};m.prototype.parse=function(e){var t=e.match(this.options.loose?P[x.COMPARATORLOOSE]:P[x.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new o(t[2],this.options.loose):k},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(S("Comparator.test",e,this.options.loose),this.semver===k||e===k)return!0;if("string"==typeof e)try{e=new o(e,this.options)}catch(t){return!1}return h(e,this.operator,this.semver,this.options)},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new y(e.value,t),_(this.value,n,t));if(""===e.operator)return""===e.value||(n=new y(this.value,t),_(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=y,y.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},y.prototype.toString=function(){return this.range},y.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[x.HYPHENRANGELOOSE]:P[x.HYPHENRANGE],E),S("hyphen replace",e),e=e.replace(P[x.COMPARATORTRIM],"$1$2$3"),S("comparator trim",e,P[x.COMPARATORTRIM]),e=(e=(e=e.replace(P[x.TILDETRIM],"$1~")).replace(P[x.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?P[x.COMPARATORLOOSE]:P[x.COMPARATOR],r=e.split(" ").map((function(e){return function(e,t){return S("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return S("caret",e,t),e.replace(t.loose?P[x.CARETLOOSE]:P[x.CARET],(function(t,n,r,i,o){var s;return S("caret",e,t,n,r,i,o),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(i)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":o?(S("replaceCaret pr",o),s="0"===n?"0"===r?">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+"-"+o+" <"+(+n+1)+".0.0"):(S("no pr"),s="0"===n?"0"===r?">="+n+"."+r+"."+i+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+" <"+(+n+1)+".0.0"),S("caret return",s),s}))}(e,t)})).join(" ")}(e,t),S("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return e.replace(t.loose?P[x.TILDELOOSE]:P[x.TILDE],(function(t,n,r,i,o){var s;return S("tilde",e,t,n,r,i,o),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(i)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":o?(S("replaceTilde pr",o),s=">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0",S("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),S("tildes",e),e=function(e,t){return S("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){return(e=e.trim()).replace(t.loose?P[x.XRANGELOOSE]:P[x.XRANGE],(function(n,r,i,o,s,a){S("xRange",e,n,r,i,o,s,a);var c=w(i),u=c||w(o),l=u||w(s);return"="===r&&l&&(r=""),a=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),n=r+i+"."+o+"."+s+a):u?n=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:l&&(n=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),S("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),S("xrange",e),e=function(e,t){return S("replaceStars",e,t),e.trim().replace(P[x.STAR],"")}(e,t),S("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(r=r.filter((function(e){return!!e.match(n)}))),r.map((function(e){return new m(e,this.options)}),this)},y.prototype.intersects=function(e,t){if(!(e instanceof y))throw new TypeError("a Range is required");return this.set.some((function(n){return v(n,t)&&e.set.some((function(e){return v(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new y(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},y.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options)}catch(n){return!1}for(var t=0;this.set.length>t;t++)if(g(this.set[t],e,this.options))return!0;return!1},t.satisfies=_,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&-1!==i.compare(e)||(i=new o(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&1!==i.compare(e)||(i=new o(r=e,n)))})),r},t.minVersion=function(e,t){e=new y(e,t);var n=new o("0.0.0");if(e.test(n))return n;if(n=new o("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;e.set.length>r;++r)e.set[r].forEach((function(e){var t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!c(n,t)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new y(e,t).range||"*"}catch(n){return null}},t.ltr=function(e,t,n){return b(e,t,"<",n)},t.gtr=function(e,t,n){return b(e,t,">",n)},t.outside=b,t.prerelease=function(e,t){var n=i(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new y(e,n),t=new y(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=P[x.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),P[x.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;P[x.COERCERTL].lastIndex=-1}else n=e.match(P[x.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,Ph.exports)),Ph.exports}function $t(){return $h||($h=1,qm.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{t.push(((e,t)=>null!=e?r(e):n(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},qm.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>n(null,e)),n)}),"name",{value:e.name})}),qm}function Dt(){function e(e,t){Object.defineProperty(e,o,{get:function(){return t}})}function t(e){function r(e,t){return this instanceof r?(m.apply(this,arguments),this):r.apply(Object.create(r.prototype),arguments)}function i(e,t){return this instanceof i?(y.apply(this,arguments),this):i.apply(Object.create(i.prototype),arguments)}function o(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return E(t,r,i,(function(a,c){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)}c(e),e.gracefulify=t,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var s=e.readFile;e.readFile=function(e,t,r){return"function"==typeof t&&(r=t,t=null),function e(t,r,i,o){return s(t,r,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,i],s,o||Date.now(),Date.now()])}))}(e,t,r)};var a=e.writeFile;e.writeFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return a(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)};var l=e.appendFile;l&&(e.appendFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return l(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)});var f=e.copyFile;f&&(e.copyFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=0),function e(t,r,i,o,s){return f(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)});var p=e.readdir;e.readdir=function(e,t,r){function i(e,t,r,i){return function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,s,a)):n([o,[e,t,r],s,i||Date.now(),Date.now()])}}"function"==typeof t&&(r=t,t=null);var o=d.test(process.version)?function(e,t,n,r){return p(e,i(e,t,n,r))}:function(e,t,n,r){return p(e,t,i(e,t,n,r))};return o(e,t,r)};var d=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var h=u(e);r=h.ReadStream,i=h.WriteStream}var m=e.ReadStream;m&&(r.prototype=Object.create(m.prototype),r.prototype.open=function(){var e=this;o(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var y=e.WriteStream;y&&(i.prototype=Object.create(y.prototype),i.prototype.open=function(){var e=this;o(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return i},set:function(e){i=e},enumerable:!0,configurable:!0});var v=r;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:!0,configurable:!0});var w=i;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(e){w=e},enumerable:!0,configurable:!0});var E=e.open;return e.open=o,e}function n(e){d("ENQUEUE",e[0].name,e[1]),a[o].push(e),i()}function r(){for(var e=Date.now(),t=0;a[o].length>t;++t)a[o][t].length>2&&(a[o][t][3]=e,a[o][t][4]=e);i()}function i(){if(clearTimeout(p),p=void 0,0!==a[o].length){var e=a[o].shift(),t=e[0],n=e[1],r=e[2],s=e[3],c=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(6e4>Date.now()-s){var u=Date.now()-c;Math.min(1.2*Math.max(c-s,1),100)>u?a[o].push(e):(d("RETRY",t.name,n),t.apply(null,n.concat([s])))}else{d("TIMEOUT",t.name,n);var l=n.pop();"function"==typeof l&&l.call(null,r)}void 0===p&&(p=setTimeout(i,0))}}if(Gh)return Bh;Gh=1;var o,s,a=Ir,c=function(){if(kh)return Dh;kh=1;var e=Gr,t=process.cwd,n=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=t.call(process)),n};try{process.cwd()}catch(o){}if("function"==typeof process.chdir){var i=process.chdir;process.chdir=function(e){n=null,i.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,i)}return Dh=function(t){function n(e){return e?function(n,r,i){return e.call(t,n,r,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(o){if(!l(o))throw o}}:e}function s(e){return e?function(n,r,i,o){return e.call(t,n,r,i,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:e}function a(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(o){if(!l(o))throw o}}:e}function c(e){return e?function(n,r,i){function o(e,t){t&&(0>t.uid&&(t.uid+=4294967296),0>t.gid&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function u(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i&&(0>i.uid&&(i.uid+=4294967296),0>i.gid&&(i.gid+=4294967296)),i}:e}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var f;e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&((f=t).lchmod=function(t,n,r){f.open(t,e.O_WRONLY|e.O_SYMLINK,n,(function(e,t){e?r&&r(e):f.fchmod(t,n,(function(e){f.close(t,(function(t){r&&r(e||t)}))}))}))},f.lchmodSync=function(t,n){var r,i=f.openSync(t,e.O_WRONLY|e.O_SYMLINK,n),s=!0;try{r=f.fchmodSync(i,n),s=!1}finally{if(s)try{f.closeSync(i)}catch(o){}else f.closeSync(i)}return r}),t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(n,r,i,o){t.open(n,e.O_SYMLINK,(function(e,n){e?o&&o(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){o&&o(e||t)}))}))}))},t.lutimesSync=function(n,r,i){var s,a=t.openSync(n,e.O_SYMLINK),c=!0;try{s=t.futimesSync(a,r,i),c=!1}finally{if(c)try{t.closeSync(a)}catch(o){}else t.closeSync(a)}return s}):t.futimes&&(t.lutimes=function(e,t,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,n){n&&process.nextTick(n)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(e,t,n,r){r&&process.nextTick(r)},t.lchownSync=function(){}),"win32"===r&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,i){var o=Date.now(),s=0;e(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&6e4>Date.now()-o)return setTimeout((function(){t.stat(r,(function(t,o){t&&"ENOENT"===t.code?e(n,r,a):i(c)}))}),s),void(100>s&&(s+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename)),t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,i,o,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,f,p){if(l&&"EAGAIN"===l.code&&10>u)return u++,e.call(t,n,r,i,o,s,c);a.apply(this,arguments)}}return e.call(t,n,r,i,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:function(e){return function(n,r,i,s,a){for(var c=0;;)try{return e.call(t,n,r,i,s,a)}catch(o){if("EAGAIN"===o.code&&10>c){c++;continue}throw o}}}(t.readSync)},Dh}(),u=function(){if(jh)return Uh;jh=1;var e=jr.Stream;return Uh=function(t){return{ReadStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(i=i||{}),a=0,c=s.length;c>a;a++){var u=s[a];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null===this.fd?t.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()})):process.nextTick((function(){o._read()}))},WriteStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var o=Object.keys(i=i||{}),s=0,a=o.length;a>s;s++){var c=o[s];this[c]=i[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(0>this.start)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}(),l=function(){if(Mh)return Fh;Mh=1,Fh=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(e){return e.__proto__};return Fh}(),f=Ar;"function"==typeof Symbol&&"function"==typeof Symbol.for?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");var p,d=function(){};return f.debuglog?d=f.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=f.format.apply(f,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),a[o]||(e(a,Xr[o]||[]),a.close=function(e){function t(t,n){return e.call(a,t,(function(e){e||r(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,s,{value:e}),t}(a.close),a.closeSync=function(e){function t(t){e.apply(a,arguments),r()}return Object.defineProperty(t,s,{value:e}),t}(a.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(a[o]),Ur.equal(a[o].length,0)}))),Xr[o]||e(Xr,a[o]),Bh=t(l(a)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched&&(Bh=t(a),a.__patched=!0),Bh}function kt(){return Vh||(Vh=1,function(e){const t=$t().fromCallback,n=Dt(),r=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.assign(e,n),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},e.read=function(e,t,r,i,o,s){return"function"==typeof s?n.read(e,t,r,i,o,s):new Promise(((s,a)=>{n.read(e,t,r,i,o,((e,t,n)=>{if(e)return a(e);s({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeof r[r.length-1]?n.write(e,t,...r):new Promise(((i,o)=>{n.write(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffer:n})}))}))},e.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?n.readv(e,t,...r):new Promise(((i,o)=>{n.readv(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesRead:t,buffers:n})}))}))},e.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?n.writev(e,t,...r):new Promise(((i,o)=>{n.writev(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffers:n})}))}))},"function"==typeof n.realpath.native?e.realpath.native=t(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}(Hm)),Hm}function Ut(){if(Hh)return Wm;Hh=1;const e=Pr;return Wm.checkPath=function(t){if("win32"===process.platform&&/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=Error("Path contains invalid characters: "+t);throw e.code="EINVAL",e}},Wm}function jt(){if(qh)return zm;qh=1;const e=kt(),{checkPath:t}=Ut(),n=e=>"number"==typeof e?e:{mode:511,...e}.mode;return zm.makeDir=async(r,i)=>(t(r),e.mkdir(r,{mode:n(i),recursive:!0})),zm.makeDirSync=(r,i)=>(t(r),e.mkdirSync(r,{mode:n(i),recursive:!0})),zm}function Ft(){if(Wh)return zh;Wh=1;const e=$t().fromPromise,{makeDir:t,makeDirSync:n}=jt(),r=e(t);return zh={mkdirs:r,mkdirsSync:n,mkdirp:r,mkdirpSync:n,ensureDir:r,ensureDirSync:n}}function Mt(){if(Kh)return Xh;Kh=1;const e=$t().fromPromise,t=kt();return Xh={pathExists:e((function(e){return t.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:t.existsSync}}function Bt(){if(Jh)return Yh;Jh=1;const e=kt(),t=$t().fromPromise;return Yh={utimesMillis:t((async function(t,n,r){const i=await e.open(t,"r+");let o=null;try{await e.futimes(i,n,r)}finally{try{await e.close(i)}catch(s){o=s}}if(o)throw o})),utimesMillisSync:function(t,n,r){const i=e.openSync(t,"r+");return e.futimesSync(i,n,r),e.closeSync(i)}}}function Gt(){function e(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function t(e,t){const n=i.resolve(e).split(i.sep).filter((e=>e)),r=i.resolve(t).split(i.sep).filter((e=>e));return n.every(((e,t)=>r[t]===e))}function n(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}if(Zh)return Qh;Zh=1;const r=kt(),i=Pr,o=$t().fromPromise;return Qh={checkPaths:o((async function(o,s,a,c){const{srcStat:u,destStat:l}=await function(e,t,n){const i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(o,s,c);if(l){if(e(u,l)){const e=i.basename(o),t=i.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${o}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${o}'.`)}if(u.isDirectory()&&t(o,s))throw Error(n(o,s,a));return{srcStat:u,destStat:l}})),checkPathsSync:function(o,s,a,c){const{srcStat:u,destStat:l}=function(e,t,n){let i;const o=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),s=o(e);try{i=o(t)}catch(a){if("ENOENT"===a.code)return{srcStat:s,destStat:null};throw a}return{srcStat:s,destStat:i}}(o,s,c);if(l){if(e(u,l)){const e=i.basename(o),t=i.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${o}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${o}'.`)}if(u.isDirectory()&&t(o,s))throw Error(n(o,s,a));return{srcStat:u,destStat:l}},checkParentPaths:o((async function t(o,s,a,c){const u=i.resolve(i.dirname(o)),l=i.resolve(i.dirname(a));if(l===u||l===i.parse(l).root)return;let f;try{f=await r.stat(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(o,a,c));return t(o,s,l,c)})),checkParentPathsSync:function t(o,s,a,c){const u=i.resolve(i.dirname(o)),l=i.resolve(i.dirname(a));if(l===u||l===i.parse(l).root)return;let f;try{f=r.statSync(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(o,a,c));return t(o,s,l,c)},isSrcSubdir:t,areIdentical:e}}function Vt(){async function e(e,t,n){return!n.filter||n.filter(e,t)}async function t(o,s,a,u){const l=u.dereference?r.stat:r.lstat,f=await l(s);if(f.isDirectory())return async function(n,o,s,a,u){o||await r.mkdir(a);const l=[];for await(const f of await r.opendir(s)){const n=i.join(s,f.name),r=i.join(a,f.name);l.push(e(n,r,u).then((e=>{if(e)return c.checkPaths(n,r,"copy",u).then((({destStat:e})=>t(e,n,r,u)))})))}await Promise.all(l),o||await r.chmod(a,n.mode)}(f,o,s,a,u);if(f.isFile()||f.isCharacterDevice()||f.isBlockDevice())return async function(e,t,i,o,s){if(!t)return n(e,i,o,s);if(s.overwrite)return await r.unlink(o),n(e,i,o,s);if(s.errorOnExist)throw Error(`'${o}' already exists`)}(f,o,s,a,u);if(f.isSymbolicLink())return async function(e,t,n,o){let s=await r.readlink(t);if(o.dereference&&(s=i.resolve(process.cwd(),s)),!e)return r.symlink(s,n);let a=null;try{a=await r.readlink(n)}catch(u){if("EINVAL"===u.code||"UNKNOWN"===u.code)return r.symlink(s,n);throw u}if(o.dereference&&(a=i.resolve(process.cwd(),a)),c.isSrcSubdir(s,a))throw Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`);if(c.isSrcSubdir(a,s))throw Error(`Cannot overwrite '${a}' with '${s}'.`);return await r.unlink(n),r.symlink(s,n)}(o,s,a,u);if(f.isSocket())throw Error("Cannot copy a socket file: "+s);if(f.isFIFO())throw Error("Cannot copy a FIFO pipe: "+s);throw Error("Unknown file: "+s)}async function n(e,t,n,i){if(await r.copyFile(t,n),i.preserveTimestamps){128&e.mode||await function(e,t){return r.chmod(e,128|t)}(n,e.mode);const i=await r.stat(t);await a(n,i.atime,i.mtime)}return r.chmod(n,e.mode)}if(tm)return em;tm=1;const r=kt(),i=Pr,{mkdirs:o}=Ft(),{pathExists:s}=Mt(),{utimesMillis:a}=Bt(),c=Gt();return em=async function(n,r,a={}){"function"==typeof a&&(a={filter:a}),a.clobber=!("clobber"in a)||!!a.clobber,a.overwrite="overwrite"in a?!!a.overwrite:a.clobber,a.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:u,destStat:l}=await c.checkPaths(n,r,"copy",a);if(await c.checkParentPaths(n,u,r,"copy"),!(await e(n,r,a)))return;const f=i.dirname(r);await s(f)||await o(f),await t(l,n,r,a)}}function Ht(){function e(e,i,a,c){const l=(c.dereference?o.statSync:o.lstatSync)(i);if(l.isDirectory())return function(e,t,i,s,a){return t?r(i,s,a):function(e,t,i,s){return o.mkdirSync(i),r(t,i,s),n(i,e)}(e.mode,i,s,a)}(l,e,i,a,c);if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return function(e,n,r,i,s){return n?function(e,n,r,i){if(i.overwrite)return o.unlinkSync(r),t(e,n,r,i);if(i.errorOnExist)throw Error(`'${r}' already exists`)}(e,r,i,s):t(e,r,i,s)}(l,e,i,a,c);if(l.isSymbolicLink())return function(e,t,n,r){let i=o.readlinkSync(t);if(r.dereference&&(i=s.resolve(process.cwd(),i)),e){let e;try{e=o.readlinkSync(n)}catch(a){if("EINVAL"===a.code||"UNKNOWN"===a.code)return o.symlinkSync(i,n);throw a}if(r.dereference&&(e=s.resolve(process.cwd(),e)),u.isSrcSubdir(i,e))throw Error(`Cannot copy '${i}' to a subdirectory of itself, '${e}'.`);if(u.isSrcSubdir(e,i))throw Error(`Cannot overwrite '${e}' with '${i}'.`);return function(e,t){return o.unlinkSync(t),o.symlinkSync(e,t)}(i,n)}return o.symlinkSync(i,n)}(e,i,a,c);if(l.isSocket())throw Error("Cannot copy a socket file: "+i);if(l.isFIFO())throw Error("Cannot copy a FIFO pipe: "+i);throw Error("Unknown file: "+i)}function t(e,t,r,i){return o.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){n(e,128|t)}(r,e),function(e,t){const n=o.statSync(e);c(t,n.atime,n.mtime)}(t,r)}(e.mode,t,r),n(r,e.mode)}function n(e,t){return o.chmodSync(e,t)}function r(e,t,n){const r=o.opendirSync(e);try{let o;for(;null!==(o=r.readSync());)i(o.name,e,t,n)}finally{r.closeSync()}}function i(t,n,r,i){const o=s.join(n,t),a=s.join(r,t);if(i.filter&&!i.filter(o,a))return;const{destStat:c}=u.checkPathsSync(o,a,"copy",i);return e(c,o,a,i)}if(rm)return nm;rm=1;const o=Dt(),s=Pr,a=Ft().mkdirsSync,c=Bt().utimesMillisSync,u=Gt();return nm=function(t,n,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:i,destStat:c}=u.checkPathsSync(t,n,"copy",r);if(u.checkParentPathsSync(t,i,n,"copy"),r.filter&&!r.filter(t,n))return;const l=s.dirname(n);return o.existsSync(l)||a(l),e(c,t,n,r)}}function qt(){if(om)return im;om=1;const e=$t().fromPromise;return im={copy:e(Vt()),copySync:Ht()}}function zt(){if(am)return sm;am=1;const e=Dt(),t=$t().fromCallback;return sm={remove:t((function(t,n){e.rm(t,{recursive:!0,force:!0},n)})),removeSync:function(t){e.rmSync(t,{recursive:!0,force:!0})}}}function Wt(){function e(e){let t;try{t=n.readdirSync(e)}catch{return i.mkdirsSync(e)}t.forEach((t=>{t=r.join(e,t),o.removeSync(t)}))}if(um)return cm;um=1;const t=$t().fromPromise,n=kt(),r=Pr,i=Ft(),o=zt(),s=t((async function(e){let t;try{t=await n.readdir(e)}catch{return i.mkdirs(e)}return Promise.all(t.map((t=>o.remove(r.join(e,t)))))}));return cm={emptyDirSync:e,emptydirSync:e,emptyDir:s,emptydir:s}}function Xt(){if(fm)return lm;fm=1;const e=$t().fromPromise,t=Pr,n=kt(),r=Ft();return lm={createFile:e((async function(e){let i;try{i=await n.stat(e)}catch{}if(i&&i.isFile())return;const o=t.dirname(e);let s=null;try{s=await n.stat(o)}catch(a){if("ENOENT"===a.code)return await r.mkdirs(o),void(await n.writeFile(e,""));throw a}s.isDirectory()?await n.writeFile(e,""):await n.readdir(o)})),createFileSync:function(e){let i;try{i=n.statSync(e)}catch{}if(i&&i.isFile())return;const o=t.dirname(e);try{n.statSync(o).isDirectory()||n.readdirSync(o)}catch(s){if(!s||"ENOENT"!==s.code)throw s;r.mkdirsSync(o)}n.writeFileSync(e,"")}}}function Kt(){if(dm)return pm;dm=1;const e=$t().fromPromise,t=Pr,n=kt(),r=Ft(),{pathExists:i}=Mt(),{areIdentical:o}=Gt();return pm={createLink:e((async function(e,s){let a,c;try{a=await n.lstat(s)}catch{}try{c=await n.lstat(e)}catch(l){throw l.message=l.message.replace("lstat","ensureLink"),l}if(a&&o(c,a))return;const u=t.dirname(s);await i(u)||await r.mkdirs(u),await n.link(e,s)})),createLinkSync:function(e,i){let s;try{s=n.lstatSync(i)}catch{}try{const t=n.lstatSync(e);if(s&&o(t,s))return}catch(c){throw c.message=c.message.replace("lstat","ensureLink"),c}const a=t.dirname(i);return n.existsSync(a)||r.mkdirsSync(a),n.linkSync(e,i)}}}function Yt(){if(mm)return hm;mm=1;const e=Pr,t=kt(),{pathExists:n}=Mt(),r=$t().fromPromise;return hm={symlinkPaths:r((async function(r,i){if(e.isAbsolute(r)){try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:r}}const o=e.dirname(i),s=e.join(o,r);if(await n(s))return{toCwd:s,toDst:r};try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:e.relative(o,r)}})),symlinkPathsSync:function(n,r){if(e.isAbsolute(n)){if(!t.existsSync(n))throw Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}const i=e.dirname(r),o=e.join(i,n);if(t.existsSync(o))return{toCwd:o,toDst:n};if(!t.existsSync(n))throw Error("relative srcpath does not exist");return{toCwd:n,toDst:e.relative(i,n)}}}}function Jt(){if(vm)return ym;vm=1;const e=kt(),t=$t().fromPromise;return ym={symlinkType:t((async function(t,n){if(n)return n;let r;try{r=await e.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(t,n){if(n)return n;let r;try{r=e.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}}function Qt(){if(Em)return wm;Em=1;const e=$t().fromPromise,t=Pr,n=kt(),{mkdirs:r,mkdirsSync:i}=Ft(),{symlinkPaths:o,symlinkPathsSync:s}=Yt(),{symlinkType:a,symlinkTypeSync:c}=Jt(),{pathExists:u}=Mt(),{areIdentical:l}=Gt();return wm={createSymlink:e((async function(e,i,s){let c;try{c=await n.lstat(i)}catch{}if(c&&c.isSymbolicLink()){const[t,r]=await Promise.all([n.stat(e),n.stat(i)]);if(l(t,r))return}const f=await o(e,i);e=f.toDst;const p=await a(f.toCwd,s),d=t.dirname(i);return await u(d)||await r(d),n.symlink(e,i,p)})),createSymlinkSync:function(e,r,o){let a;try{a=n.lstatSync(r)}catch{}if(a&&a.isSymbolicLink()){const t=n.statSync(e),i=n.statSync(r);if(l(t,i))return}const u=s(e,r);e=u.toDst,o=c(u.toCwd,o);const f=t.dirname(r);return n.existsSync(f)||i(f),n.symlinkSync(e,r,o)}}}function Zt(){if(_m)return gm;_m=1;const{createFile:e,createFileSync:t}=Xt(),{createLink:n,createLinkSync:r}=Kt(),{createSymlink:i,createSymlinkSync:o}=Qt();return gm={createFile:e,createFileSync:t,ensureFile:e,ensureFileSync:t,createLink:n,createLinkSync:r,ensureLink:n,ensureLinkSync:r,createSymlink:i,createSymlinkSync:o,ensureSymlink:i,ensureSymlinkSync:o}}function en(){return Sm?bm:(Sm=1,bm={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:i}={}){const o=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}})}function tn(){if(Tm)return Im;Tm=1;const e=function(){if(Rm)return Om;let e;Rm=1;try{e=Dt()}catch(s){e=Ir}const t=$t(),{stringify:n,stripBom:r}=en(),i=t.fromPromise((async function(n,i={}){"string"==typeof i&&(i={encoding:i});const o=i.fs||e,s=!("throws"in i)||i.throws;let a,c=await t.fromCallback(o.readFile)(n,i);c=r(c);try{a=JSON.parse(c,i?i.reviver:null)}catch(u){if(s)throw u.message=`${n}: ${u.message}`,u;return null}return a})),o=t.fromPromise((async function(r,i,o={}){const s=o.fs||e,a=n(i,o);await t.fromCallback(s.writeFile)(r,a,o)}));return Om={readFile:i,readFileSync:function(t,n={}){"string"==typeof n&&(n={encoding:n});const i=n.fs||e,o=!("throws"in n)||n.throws;try{let e=i.readFileSync(t,n);return e=r(e),JSON.parse(e,n.reviver)}catch(s){if(o)throw s.message=`${t}: ${s.message}`,s;return null}},writeFile:o,writeFileSync:function(t,r,i={}){const o=i.fs||e,s=n(r,i);return o.writeFileSync(t,s,i)}}}();return Im={readJson:e.readFile,readJsonSync:e.readFileSync,writeJson:e.writeFile,writeJsonSync:e.writeFileSync}}function nn(){if(Cm)return Pm;Cm=1;const e=$t().fromPromise,t=kt(),n=Pr,r=Ft(),i=Mt().pathExists;return Pm={outputFile:e((async function(e,o,s="utf-8"){const a=n.dirname(e);return await i(a)||await r.mkdirs(a),t.writeFile(e,o,s)})),outputFileSync:function(e,...i){const o=n.dirname(e);t.existsSync(o)||r.mkdirsSync(o),t.writeFileSync(e,...i)}}}function rn(){if(Nm)return xm;Nm=1;const{stringify:e}=en(),{outputFile:t}=nn();return xm=async function(n,r,i={}){const o=e(r,i);await t(n,o,i)}}function on(){if(Am)return Lm;Am=1;const{stringify:e}=en(),{outputFileSync:t}=nn();return Lm=function(n,r,i){const o=e(r,i);t(n,o,i)}}function sn(){if(Dm)return $m;Dm=1;const e=$t().fromPromise,t=tn();return t.outputJson=e(rn()),t.outputJsonSync=on(),t.outputJSON=t.outputJson,t.outputJSONSync=t.outputJsonSync,t.writeJSON=t.writeJson,t.writeJSONSync=t.writeJsonSync,t.readJSON=t.readJson,t.readJSONSync=t.readJsonSync,$m=t}function an(){if(Um)return km;Um=1;const e=kt(),t=Pr,{copy:n}=qt(),{remove:r}=zt(),{mkdirp:i}=Ft(),{pathExists:o}=Mt(),s=Gt();return km=async function(a,c,u={}){const l=u.overwrite||u.clobber||!1,{srcStat:f,isChangingCase:p=!1}=await s.checkPaths(a,c,"move",u);await s.checkParentPaths(a,f,c,"move");const d=t.dirname(c);return t.parse(d).root!==d&&await i(d),async function(t,i,s,a){if(!a)if(s)await r(i);else if(await o(i))throw Error("dest already exists.");try{await e.rename(t,i)}catch(c){if("EXDEV"!==c.code)throw c;await async function(e,t,i){const o={overwrite:i,errorOnExist:!0,preserveTimestamps:!0};return await n(e,t,o),r(e)}(t,i,s)}}(a,c,l,p)}}function cn(){function e(e,n,o){try{t.renameSync(e,n)}catch(s){if("EXDEV"!==s.code)throw s;return function(e,t,n){return r(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),i(e)}(e,n,o)}}if(Fm)return jm;Fm=1;const t=Dt(),n=Pr,r=qt().copySync,i=zt().removeSync,o=Ft().mkdirpSync,s=Gt();return jm=function(r,a,c){const u=(c=c||{}).overwrite||c.clobber||!1,{srcStat:l,isChangingCase:f=!1}=s.checkPathsSync(r,a,"move",c);return s.checkParentPathsSync(r,l,a,"move"),function(e){const t=n.dirname(e);return n.parse(t).root===t}(a)||o(n.dirname(a)),function(n,r,o,s){if(s)return e(n,r,o);if(o)return i(r),e(n,r,o);if(t.existsSync(r))throw Error("dest already exists.");return e(n,r,o)}(r,a,u,f)}}function un(){if(Bm)return Mm;Bm=1;const e=$t().fromPromise;return Mm={move:e(an()),moveSync:cn()}}function ln(){return Vm?Gm:(Vm=1,Gm={...kt(),...qt(),...Wt(),...Zt(),...sn(),...Ft(),...un(),...nn(),...Mt(),...zt()})}function fn(e,t,n){switch(process.platform){case"win32":return wt("7zip",e);case"darwin":return dt("p7zip",e);case"linux":if(mt())return gt("p7zip",e);if(ht())return Et([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(yt())return st([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function pn(e){const t=e.split(".").pop();return"tar"===t?0:"gz"===t||"tgz"===t?1:"xz"===t||"txz"===t?2:"zip"===t?3:("7z"===t||"exe"===t||h(`Unknown archive type: ${t}. Defaulting to 7z`),4)}function dn(e){switch(e){case 0:case 1:case 2:return vn;case 3:return yn;default:return hn}}async function hn(e,t){const n=Pr.basename(e);if(/.*\.tar\..+$/.test(n)){const r=Pr.dirname(e);await mn(e,r);const i=n.slice(0,-3),o=Pr.join(r,i);await mn(o,r),await ta(o);const s=i.slice(0,-4),a=Pr.join(r,s);y(`Moving ${a} to ${t}`),await Xm.move(a,t,{overwrite:!0})}else await mn(e,t);return t}async function mn(e,t){y(`7z: extracting ${e} to ${t}`),await b(await async function(){return void 0===Km&&(null===fa.sync("7z",{nothrow:!0})&&await fn("",0,process),Km="7z"),Km}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await k(t)}async function yn(e,t){return null!==fa.sync("7z",{nothrow:!0})?hn(e,t):null!==fa.sync("unzip",{nothrow:!0})?(await b("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await k(t),t):hn(e,t)}async function vn(e,t,n=0,r=[]){await async function(e){switch(y("Installing tar extraction dependencies"),e){case 1:"linux"===process.platform&&(mt()?(await gt("gzip"),await gt("tar")):ht()?await Et([{name:"gzip"},{name:"tar"}]):yt()&&await st([{name:"gzip"},{name:"tar"}]));break;case 2:"linux"===process.platform&&(mt()?(await gt("xz"),await gt("tar")):ht()?await Et([{name:"xz"},{name:"tar"}]):yt()&&await st([{name:"xz-utils"},{name:"tar"}]));break;default:throw Error(`Unsupported archive type: ${e} for tar extraction`)}}(pn(e));try{await Xm.mkdirp(t)}catch{}try{await b("tar",["xf",e,"-C",t,"--strip-components="+n,...r],{stdio:"inherit"})}catch(i){"win32"===process.platform&&i.message.includes("Can't create '\\\\?\\C:")&&h(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`)}return await k(t),t}async function wn(e,t,n,r,i){var o,s;y(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!=(o=process.env.RUNNER_TEMP)?o:Rr.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!=(s=process.env.RUNNER_TOOL_CACHE)?s:Pr.join(Rr.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:u,extractedFolderName:l,extractFunction:f}=await n(t,process.platform,i);if(Ym)try{const n=Nh.find(e,t);if(n){const r=Pr.join(n,l),i=Pr.join(r,c);if(await ce(Pr.join(i,u)))return y(`${e} ${t} was found in the cache at ${i}.`),await he(i,lv),{installDir:r,binDir:i}}}catch{}const p=Pr.join(r,l),d=Pr.join(p,c),m=Pr.join(d,u);return await async function(e,t,n,r,i,o,s,a){if((await Promise.all([ce(e),ce(t)])).includes(!1))try{const e=await async function(e,t,n){y(`Download ${e} ${t}`);const r=await Ah((()=>{var e;const t=Pr.join(null!=(e=process.env.RUNNER_TEMP)?e:Rr.tmpdir(),`${Date.now()}-${Pr.basename(n)}`);return Nh.downloadTool(n,t)}),{name:n,max:4,backoffBase:2e3,report:e=>y(e)});return r}(n,r,i);y(`Extracting ${e} to ${o}`);const t=null!=s?s:dn(pn(i));await t(e,o)}catch(c){throw Error(`Failed to download ${n} ${r} ${a} from ${i}: ${c}`)}if(y(`Add ${e} to PATH`),await he(e,lv),!(await ce(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await As(t,"755")}catch(c){h(`Failed to make ${t} executable: ${c}`)}}(d,m,e,t,a,r,f,i),await async function(e,t,n){Ym&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==Sr("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await Nh.cacheDir(e,t,n))}(r,e,t),{installDir:p,binDir:d}}function En(e,t,n){var r;const i=null!=(r=sh(e))?r:e;switch(t){case"win32":{const t=ah(i,"v3.19.6");let r;ch.includes(n)?r=t?"win64-x64":"windows-x86_64":uh.includes(n)?r=t?"win32-x86":"windows-i386":lh.includes(n)?r="windows-arm64":(y(`Trying unsupported arch '${n}' for cmake on Windows`),r="windows-"+n);const o=`cmake-${e}-${r}`;return{binRelativeDir:"bin/",binFileName:Rt("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`}}case"darwin":{const t=`cmake-${e}-${ah(i,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:Rt("cmake"),extractedFolderName:t,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`}}case"linux":{const t=ah(i,"v3.19.8");let r;lh.includes(n)?r=t?"Linux-aarch64":"linux-aarch64":ch.includes(n)?r=t?"Linux-x86_64":"linux-x86_64":(y(`Trying unsupported arch '${n}' for cmake on Linux`),r="linux-"+n);const o=`cmake-${e}-${r}`;return{binRelativeDir:"bin/",binFileName:Rt("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function gn(e,t,n){return wn("cmake",e,En,t,n)}async function _n(e,t,n=yy){const r=await async function(e,t=yy){var n,r;try{const i=await py.getExecOutput(e,["--version"]),o=null==(n=(i.stdout||i.stderr||"").trim().match(t))?void 0:n[1];return null!=(r=sh(o))?r:void 0}catch(i){return void console.error(i)}}(e,n);if(void 0===r||""===t)return!1;try{return-1!==dy(r,t)}catch{return hy(r,t)}}function bn(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}function Sn(e,t,n=null){var r;return Rn(t)?null!=(r=On(e,n))?r:"":t}function On(e,t=null){var n,r,i;const o=vy()[e];if(void 0===o)return;if("string"==typeof o)return o;const s=null!=(n=o[process.platform])?n:o.else;if(void 0===s)throw Error(`Platform "${process.platform}" not found in versions data for tool "${e}"`);if("string"==typeof s)return s;const a=s,c=yt()?"ubuntu":mt()?"archlinux":"else",u=null!=(r=a[c])?r:a.else;if(void 0===u)throw Error(`Distro "${c}" not found in versions data for tool "${e}"`);if("string"==typeof u)return u;const l=u,f=null!==t?function(e,t){var n;const r=e[0],i=Object.keys(t).map((e=>Number.parseInt(e,10))).filter((e=>!Number.isNaN(e))).sort(((e,t)=>t-e)).find((e=>r>=e));return void 0!==i&&null!=(n=t[i])?n:t.else}(t,l):l.else;if(void 0===f)throw Error(`Architecture "${process.arch}" not found in versions data for tool "${e}"`);return"string"==typeof f?f:null!=(i=f[process.arch])?i:f.else}function Rn(e){return"true"===e||void 0===e}async function In(e,t,n){const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let i,o=await Tn(t);if(void 0!==o){const e=Pr.dirname(o);i={bin:o,installDir:e,binDir:e}}else{if(wy)try{y("Installing python in GitHub Actions");const{setupActionsPython:e}=await Promise.resolve().then((()=>require("./assets/actions_python-Dd4yvI9c.js")));if(await e(r,t,n),o=await Tn(t),void 0===o)throw Error("Python binary could not be found");const s=Pr.dirname(o);i={bin:o,installDir:s,binDir:s}}catch(s){h(""+s)}void 0===i&&(i=await async function(e,t){let n;switch(process.platform){case"win32":{e?await wt("python3",t,["--params=/InstallDir:"+e]):await wt("python3",t);const r=await Tn(e);if(void 0===r)throw Error("Python binary could not be found");const i=Pr.dirname(r);await he(i,lv),n={installDir:i,binDir:i,bin:r};break}case"darwin":{n=await dt("python3",t);const e=await b("brew",["--prefix","python"],{stdio:"pipe"}),r=Pr.join(e.stdout,"libexec","bin");await he(r,lv);break}case"linux":if(mt())n=await gt("python",t);else if(ht())n=await Et([{name:"python3",version:t}]);else{if(!yt())throw Error("Unsupported linux distributions");n=await st([{name:"python3",version:t},{name:"python-is-python3"}])}break;default:throw Error("Unsupported platform")}return n}(t,r))}if(void 0===o||void 0===i.bin){if(o=await Tn(t),void 0===o)throw Error("Python binary could not be found");i={bin:o,installDir:Pr.dirname(o),binDir:Pr.dirname(o)}}return i}(e,t,n);Ur(void 0!==r.bin);const i=r.bin;await async function(e){if(await async function(e){try{return await b(e,["-m","venv","-h"],{stdio:"ignore"}),!0}catch{}return!1}(e))y("venv module already installed.");else try{await jn("venv")}catch(t){y(`Failed to install venv: ${""+t}. Ignoring...`)}}(i);const o=await async function(e){const t=await Cn();return void 0===t?(y("pip was not found. Installing pip"),await async function(e){await Nn(e)||(await jn("pip"),await Nn(e))}(e),Cn()):t}(i);if(void 0===o)throw Error("pip was not installed correctly");return await async function(e){try{if(!(await Un(e)))try{await jn("pipx",mt()),await $n(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){throw Error("pipx was not installed completely: "+t)}if(await Un(e))return void(await b(e,["-m","pipx","ensurepath"],{stdio:"inherit"}));if(await async function(){return null!==await fa("pipx",{nothrow:!0})}())return m("pipx module not found. Trying to install with pipx binary..."),void(await b("pipx",["ensurepath"],{stdio:"inherit"}));throw Error("pipx module or pipx binary not found. Corrput pipx installation.")}catch(t){m(`Failed to install pipx: ${""+t}. Ignoring...`)}}(i),await async function(e){try{await $n(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await $n(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){y(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(i),r}async function Tn(e){for(const t of["python","python3"]){const n=await Pn(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=Pr.parse(Rr.homedir()).root,t=(await Vs(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await Pn(t,Pr.join(e,n));if(void 0!==r)return r}}}async function Pn(e,t){var n;try{const r=On("python");if(void 0!==t){const n=Pr.join(t,Rt(e));if(await ce(n)&&await _n(n,r))return n}const i=null!=(n=await fa(e,{nothrow:!0,all:!0}))?n:[];for(const e of i)if(await _n(e,r))return e}catch{}}async function Cn(){for(const e of["pip3","pip"]){const t=await xn(e);if(void 0!==t)return t}}async function xn(e){var t;try{const n=On("pip"),r=null!=(t=await fa(e,{nothrow:!0,all:!0}))?t:[];for(const e of r)if(await _n(e,n))return e}catch{}}async function Nn(e){try{return await b(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){y(""+t);try{return await b(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){y(""+n)}}return!1}function Ln(){if(!("version"in Rr)||"function"!=typeof Rr.version)return null;const e=Rr.version().match(/(\d+)\.(\d+)\.(\d+)/);return null===e?null:[Number.parseInt(e[1],10),Number.parseInt(e[2],10),Number.parseInt(e[3],10)]}async function An(e,t,n={}){return $n(await async function(e){if(void 0!==Iy)return Iy;const t=null!=e?e:Sn("python",void 0,await Sy());return Iy=(await In(t,"",process.arch)).bin,Iy}(n.pythonVersion),e,t,n)}async function $n(e,t,n,r={}){const{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=i&&!a&&await Un(e),u=c?"pipx":"pip",l=t.replace(/\[.*]/g,"").trim();if(!s){const t=c?await async function(e,t){try{const n=await b(e,["-m","pipx","list","--json"],{stdio:"ignore",reject:!1});if(0!==n.exitCode||"string"!=typeof n.stdout)return!1;const r=JSON.parse(n.stdout);if(t in r.venvs)return!0;for(const e of Object.values(r.venvs))if(e.metadata.main_package.package_or_url===t||e.metadata.main_package.package===t)return!0}catch{}return!1}(e,l):await async function(e,t){try{return 0===(await b(e,["-m","pip","-qq","show",t],{stdio:"ignore",reject:!1})).exitCode}catch{return!1}}(e,l);if(t)return{binDir:c?await Dn():await kn(e,l)}}const f=await async function(e,t){return 0===(await b(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode}(e,l);if(f)try{_d.info(`Installing ${t} ${null!=n?n:""} via ${u}`);const r=void 0!==n&&""!==n?`${t}==${n}`:t,i=s?c?["upgrade"]:["install","--upgrade"]:["install"],a=!c&&o?["--user"]:[],l=process.env;c&&o&&(l.PIPX_HOME=await Oy(),l.PIPX_BIN_DIR=await Ry()),S(e,["-m",u,...i,...a,r],{stdio:"inherit",env:l})}catch(p){if(_d.info(`Failed to install ${t} via ${u}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await jn(t))throw Error(`Failed to install ${t} via ${u}: ${p}.`)}else if(null===await jn(t))throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);return{binDir:c?await Dn():await kn(e,l)}}function Dn(){return Ry()}async function kn(e,t){const n=await Ey(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>ce(Pr.join(e,Rt(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=fa.sync(Rt(t),{nothrow:!0});return null!==r?Pr.dirname(r):e[e.length-1]}(n,t);return await he(r,lv),r}async function Un(e){return 0===(await b(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}function jn(e,t=!0){if("linux"===process.platform){if(_d.info(`Installing ${e} via the system package manager`),mt())return gt(t?"python-"+e:e);if(ht())return Et([{name:t?"python3-"+e:e}]);if(yt())return st([{name:t?"python3-"+e:e}])}else if("darwin"===process.platform)return["venv"].includes(e)?null:dt(e);return null}function Fn(e,t,n){return An("cmakelang[YAML]",e)}async function Mn(e,t,n){switch(process.platform){case"win32":return await wt("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await he(e,lv),{binDir:e}}throw Error("Unsupported platform")}();case"darwin":return dt("graphviz",e);case"linux":if(mt())return gt("graphviz",e);if(ht())return Et([{name:"graphviz",version:e}]);if(yt())return st([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function Bn(e,t){const{ArchiveHdi:n}=await Promise.resolve().then((()=>require("./assets/hdi-KnshNzDE.js"))),r=new n(e);await r.read((async e=>{await e.extract(Pr.join(t,e.path))}))}function Gn(e,t,n){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:Rt("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:Rt("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}case"darwin":{const t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:Rt("doxygen"),extractedFolderName:t,extractFunction:Bn,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Vn(){if("darwin"===process.platform)try{const e=await py.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await pe("SDKROOT",t.trim(),lv):d("SDKROOT not set")}catch(e){d(e)}}async function Hn(){const e=Pr.join(Ay,"gcc_matcher.json");if(!(await ce(e)))return h("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");y("::add-matcher::"+e)}async function qn(e){const t=await Hs(e,"utf-8");return JSON.parse(t)}function zn(e,t){var n;const r=Object.keys(e),i=new Map;if(void 0===t.filterMapTag)for(const c of r)i.set(c,c);else for(const c of r){const e=t.filterMapTag(c);void 0!==e&&i.set(e,c)}if(0===i.size)return;const o=null!=(n=t.versionSatisfies)?n:hy,s=function(e){if(null===my(e))try{const t=sh(e);if(null!==t){const n=/^[<=>^~]/.test(t.version)?t.version:"^"+t.version;return y(`Coerced version '${e}' to '${n}'`),n}}catch(t){}return e}(t.version),a=[];for(const[c,u]of i.entries())o(c,s)&&a.push(u);if(0!==a.length)for(const c of a){let n=e[c];if(void 0===n)continue;if(void 0!==t.filterName&&(n=n.filter(t.filterName)),0===n.length)continue;const r=Wn(c,n,t);if(void 0!==r)return r}}function Wn(e,t,n){if(!(void 0!==n.keywords&&0!==n.keywords.length||void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length))return{tag:e,name:t[0]};let r=[];if(void 0!==n.keywords&&0!==n.keywords.length)for(const i of t)n.keywords.every((e=>!("string"!=typeof e||!i.includes(e))||Array.isArray(e)&&e.some((e=>i.includes(e)))))&&r.push(i);else r=t;if(0!==r.length){if(void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length){const t=r.map((e=>{let t=0;for(const r of n.optionalKeywords)("string"==typeof r&&e.includes(r)||Array.isArray(r)&&r.some((t=>e.includes(t))))&&t++;return t})),i=Math.max(...t);return{tag:e,name:r[t.indexOf(i)]}}return{tag:e,name:r[0]}}}async function Xn(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await wt("gcc-arm-embedded",e));try{r=await wn("g++",e,Kn,t,n)}catch(i){y(`Failed to download g++ binary. ${i}. Falling back to chocolatey.`),r=await async function(e,t){var n,r;let i;if(await wt("mingw",e),"x64"===t&&await ce("C:/tools/mingw64/bin")?(i="C:/tools/mingw64/bin",await he(i,lv)):"ia32"===t&&await ce("C:/tools/mingw32/bin")?(i="C:/tools/mingw32/bin",await he(i,lv)):await ce((null!=(n=process.env.ChocolateyInstall)?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(i=(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin"),void 0!==i)return{binDir:i}}(e,n)}break;case"linux":if(mt())r=await gt("mingw-w64-gcc",e);else if(ht())r=await Et([{name:"mingw64-gcc",version:e}]);else{if(!yt())throw Error("Unsupported Linux distro for "+n);r=await st([{name:"mingw-w64",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}return void 0!==r&&await async function(e){const t=[];"win32"===process.platform&&t.push(pe("CC",Rt(e+"/gcc"),lv),pe("CXX",Rt(e+"/g++"),lv)),xy&&await Hn(),await Promise.all(t)}(r.binDir),r}async function Kn(e,t,n){var r;if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const i=await qn(Pr.join(Ny,"github_brechtsanders_winlibs_mingw.json")),o=Yn(e),s=Jn(e),a=Qn(e),c=zn(i,{version:e,keywords:[null!=(r={x64:"x86_64",ia32:"i386"}[n])?r:n],filterName:e=>!(void 0!==o&&o!==Yn(e)||void 0!==s&&s!==Jn(e)||void 0!==a&&a!==Qn(e)),versionSatisfies:(e,t)=>{const n=sh(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return hy(n,t)&&(void 0===o||o===Yn(e))&&(void 0===s||s===Jn(e))}});if(void 0===c)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:Rt("g++"),extractedFolderName:"mingw64",extractFunction:hn,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${c.tag}/${c.name}`}}function Yn(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function Jn(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function Qn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function Zn(e,t,n,r=40){let i;switch(process.platform){case"win32":i=await Xn(e,t,n);break;case"darwin":i=await dt("gcc",e);break;case"linux":if(mt())i=await gt("gcc",e);else if(ht())i=await Et([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]);else if(yt())if(""===e)i=await st([{name:"gcc"},{name:"g++"}]);else try{i=await st([{name:"gcc",version:e},{name:"g++",version:e}])}catch(o){i=await st([{name:"gcc",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}},{name:"g++",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}if(void 0!==i)return await async function(e,t,n=40){var r;if("win32"===process.platform)return;const i=[];{let s=e;""===e&&(s=await async function(e,t){try{let n="gcc";if(await ce(e+"/gcc"))n=e+"/gcc";else{const t=(await Vs(e)).sort(((e,t)=>{var n,r,i,o;return function(e,t){const n=sh(e),r=sh(t);return null!==n&&null!==r?r.compare(n):t.localeCompare(e)}(null!=(r=null==(n=e.match(/^gcc-?(.*)(\.exe)?$/))?void 0:n[1])?r:"",null!=(o=null==(i=t.match(/^gcc-?(.*)(\.exe)?$/))?void 0:i[1])?o:"")}));for(const r of t)if(r.startsWith("gcc")){n=`${e}/${r}`;break}}const{stdout:r}=await b(n,["--version"],{stdio:"pipe"}),i=r.match(/gcc.* \(.*\) ([\d.]+)/);return null!==i?i[1]:(h("Failed to parse gcc version from: "+r),t)}catch(o){return d("Failed to get gcc version: "+o),t}}(t,s),y("Using gcc version "+s));const a=Cy(null!=(r=sh(s))?r:s);5>a?(i.push(pe("CC",`${t}/gcc-${s}`,lv),pe("CXX",`${t}/g++-${s}`,lv)),yt()&&i.push(Je("cc",`${t}/gcc-${s}`,lv,n),Je("cxx",`${t}/g++-${s}`,lv,n),Je("gcc",`${t}/gcc-${s}`,lv,n),Je("g++",`${t}/g++-${s}`,lv,n))):(i.push(pe("CC",`${t}/gcc-${a}`,lv),pe("CXX",`${t}/g++-${a}`,lv)),yt()&&i.push(Je("cc",`${t}/gcc-${a}`,lv,n),Je("cxx",`${t}/g++-${a}`,lv,n),Je("gcc",`${t}/gcc-${a}`,lv,n),Je("g++",`${t}/g++-${a}`,lv,n)))}i.push(Vn()),Ly&&await Hn(),await Promise.all(i)}(e,i.binDir,r),i}function er(e){const t=my(e),n=null!==t?Cy(t):e;return pe("GCOV",""!==n?"gcov-"+n:"gcov",lv)}async function tr(e,t,n){const{keywords:r,optionalKeywords:i}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),ch.includes(t)?(r.push("64"),r.push("x86_64")):(y(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),ch.includes(t)?r.push("x86_64"):lh.includes(t)?r.push("arm64"):(y(`Using arch ${t} for infer`),n.push(t));break;default:y(`Using ${e} ${t} for infer`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(t,n),o=zn(await qn(Pr.join($y,"github_facebook_infer.json")),{version:e,keywords:r,optionalKeywords:i,filterMapTag:e=>e.replace(/^v/,"")});if(void 0!==o)return{url:`https://github.com/facebook/infer/releases/download/${o.tag}/${o.name}`,extractedFolderName:""+Pr.basename(o.name,".tar.xz"),binRelativeDir:"bin",binFileName:Rt("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${i}`)}function nr(e,t,n){const r=function(e,t){switch(e){case"win32":return ch.includes(t)||uh.includes(t)?"win":lh.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return ch.includes(t)||uh.includes(t)?"linux":lh.includes(t)?"linux-aarch64":"linux";default:throw Error(`Unsupported platform '${e}'`)}}(t,n);return{binRelativeDir:"",binFileName:Rt("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function rr(e,t,n){return wn("ninja",e,nr,t,n)}function ir(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:Rt("kcov")}}function or(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:Rt("kcov"),extractFunction:sr}}async function sr(e,t){const n=await vn(e,t,1),r=await async function(){let e=fa.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await gn(Sn("cmake",void 0,await Sy()),Pr.join(ue("~"),"cmake"),"");e=Pr.join(t,"cmake")}return null===fa.sync("ninja",{nothrow:!0})&&await rr(Sn("ninja",void 0,await Sy()),Pr.join(ue("~"),"ninja"),""),e}();"linux"===process.platform&&(mt()?await Promise.all([gt("libdwarf"),gt("libcurl-openssl")]):ht()?await Et([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):yt()&&await st([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==fa.sync("patch",{nothrow:!0})){const e=Pr.join(Dy,"gcc13.patch");await b("patch",["-N","-p1","-i",e],{cwd:n,stdio:"inherit"})}else y("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13")}catch{}const i=Pr.join(n,"build");return await b(r,["-S",n,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await b(r,["--build",i,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function ar(){"darwin"===process.platform&&(null!==await fa("clang",{nothrow:!0})&&null!==await fa("clang++",{nothrow:!0})&&(m("Assuming clang is an Apple Clang compiler"),await Promise.all([pe("CC","clang",lv),pe("CXX","clang++",lv)])),Vr.error("Apple Clang automatic installation is not supported yet"))}async function cr(e,t,n,r,i,o,s){void 0!==t&&await ce(t)&&(y(`Adding ${t} to PATH`),await pe("VCTargetsPath",t,lv)),await Gy.setupMSVCDevCmd(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}}(n),i,r,o,s,e)}async function ur(e,t,n,r,i,o,s,a=12e5){_d.startGroup(`Installing ${e} ${t}`);try{await function(e,t){const{milliseconds:n,fallback:r,message:i,customTimers:o={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t;let s,a;const c=new Promise(((c,u)=>{if("number"!=typeof n||1!==Math.sign(n))throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:e}=t;e.aborted&&u(Fy(e)),a=()=>{u(Fy(e))},e.addEventListener("abort",a,{once:!0})}if(n===1/0)return void e.then(c,u);const l=new ky;s=o.setTimeout.call(void 0,(()=>{if(r)try{c(r())}catch(t){u(t)}else"function"==typeof e.cancel&&e.cancel(),!1===i?c():i instanceof Error?u(i):(l.message=null!=i?i:`Promise timed out after ${n} milliseconds`,u(l))}),n),(async()=>{try{c(await e)}catch(t){u(t)}})()})).finally((()=>{c.clear(),a&&t.signal&&t.signal.removeEventListener("abort",a)}));return c.clear=()=>{o.clearTimeout.call(void 0,s),s=void 0},c}(async function(e,t,n,r,i,o){const s=sv.includes(e);let a;if("vcvarsall"===e)await cr(Sn(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await lt({rcOptions:lv});else{const o=Pr.join(i,s?"llvm":e),c=Sn(e,t,n),u=av[e];a=await u(c,o,r)}o.push(Or(e,a))}(e,t,n,r,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`})}catch(c){d(c),c instanceof Error&&void 0!==c.stack&&d(c.stack),s.push(e+" failed to install")}_d.endGroup()}async function lr(e,t,n){const r=await async function(e,t,n){const{keywords:r,optionalKeywords:i}=await async function(e,t){const n=[],r=[];switch(e){case"win32":{r.push(".exe",".exe");const e=[];ch.includes(t)?(e.push("win64"),r.push(["x86_64","X64"])):uh.includes(t)?e.push("win32"):lh.includes(t)?e.push("woa64"):(y(`Using arch ${t} for LLVM`),e.push(t)),e.push("windows","Windows"),n.push(e);break}case"linux":{const e=["linux","Linux"];if(yt()){r.push("ubuntu");const e=await Sy();if(null!==e){r.push(""+e[0]);const t=10>e[1]?"0"+e[1]:""+e[1];r.push(`${e[0]}.${t}`),r.push(`${e[0]}.${t}.${e[2]}`)}}else ht()&&r.push("rhel");ch.includes(t)?n.push(["x86_64","X64"]):uh.includes(t)?n.push("x86"):lh.includes(t)?n.push("aarch64"):fh.includes(t)?n.push("armv7a"):ph.includes(t)?n.push("powerpc64le"):dh.includes(t)?n.push("sparc64"):(y(`Using arch ${t} for LLVM`),n.push(t)),n.push(e);break}case"darwin":n.push(["apple","macos","macOS"]),ch.includes(t)?r.push(["x86_64","X64"]):lh.includes(t)?r.push(["arm64","ARM64"]):(y(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),ch.includes(t)?n.push("amd64"):uh.includes(t)?n.push("i386"):(y(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),ch.includes(t)?n.push("amd64"):hh.includes(t)?n.push("sparcv9"):(y(`Using arch ${t} for LLVM`),n.push(t));break;default:y(`Using ${e} ${t} for LLVM`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(e,t),o=zn(await qn(Pr.join(Hy,"github_llvm_llvm-project.json")),{version:n,keywords:r,optionalKeywords:i,filterMapTag:e=>e.replace(/^llvmorg-/,"")});if(void 0!==o)return`https://github.com/llvm/llvm-project/releases/download/${o.tag}/${o.name}`;const s=zn(await qn(Pr.join(Hy,"llvm_org_releases.json")),{version:n,keywords:r,optionalKeywords:i});if(void 0!==s)return`https://releases.llvm.org/${s.tag}/${s.name}`;throw Error(`No asset found for version ${n} matching ${r} and ${i}`)}(t,n,e);return y("Downloading LLVM from "+r),{url:r,extractedFolderName:"",binRelativeDir:"bin",binFileName:Rt("clang"),extractFunction:"win32"===t?dn(pn(r)):(e,t)=>vn(e,t,1)}}async function fr(e,t,n){var r;const i=await Wy(e,t,n);return await async function(e,t){var n,r;const i=null!=(n=process.env.LD_LIBRARY_PATH)?n:"",o=null!=(r=process.env.DYLD_LIBRARY_PATH)?r:"",s=mr(t),a=[pe("CC",Rt(e+"/bin/clang"),lv),pe("CXX",Rt(e+"/bin/clang++"),lv),pe("LLVM_PATH",e,lv),pe("LD_LIBRARY_PATH",`${i}${Pr.delimiter}${e}/lib`,lv),pe("DYLD_LIBRARY_PATH",`${o}${Pr.delimiter}${e}/lib`,lv),pe("LLVM_LDFLAGS","-L"+bn(e+"/lib"),lv),pe("LLVM_CPPFLAGS","-I"+bn(e+"/include"),lv),await ce(`${e}/lib/clang/${t}/include`)?pe("LLVM_CPATH",`${e}/lib/clang/${t}/include`,lv):await ce(`${e}/lib/clang/${s}/include`)?pe("LLVM_CPATH",`${e}/lib/clang/${s}/include`,lv):Promise.resolve(),pe("LIBRARY_PATH",e+"/lib",lv),Vn()];if(yt()){const t=60;a.push(Je("cc",e+"/bin/clang",lv,t),Je("cxx",e+"/bin/clang++",lv,t),Je("clang",e+"/bin/clang",lv),Je("clang++",e+"/bin/clang++",lv),Je("lld",e+"/bin/lld",lv),Je("ld.lld",e+"/bin/ld.lld",lv),Je("llvm-ar",e+"/bin/llvm-ar",lv))}await Promise.all(a)}(null!=(r=i.installDir)?r:t,e),i}function pr(e,t,n){return hr(e,t,n,Vy.ClangFormat)}function dr(e,t,n){return hr(e,t,n)}async function hr(e,t,n,r=Vy.All){const i=mr(e);if(yt())try{return await async function(e,t=0){const n="/usr/lib/llvm-"+e;await st([{name:"ca-certificates"}]);const r=new Sd.DownloaderHelper("https://apt.llvm.org/llvm.sh",Rr.tmpdir(),{fileName:"llvm.sh"});r.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await r.start();const i=await Hs(r.getDownloadPath(),"utf-8"),o=Pr.join(Rr.tmpdir(),"llvm-setup-cpp.sh"),s=await async function(e,t,n,r){let i=function(e){return"1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?e.replace(/set -eux/g,"set -eu"):e}(e);return i=function(e){return e.replace(/add-apt-repository\s*(-y)?\s*"\${REPO_NAME}"/g,`add-apt-repository -y -n "\${REPO_NAME}"\napt-get update -o ${Id} -y`)}(i),i=function(e,t,n){return 1===e?t.replace(/ -y \$PKG/g," -y clang-format-"+n):t}(r,i,n),i=await async function(e){let t=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${Id} -y --fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map((async e=>{const n=e.replace("$LLVM_VERSION","*");await async function(e){try{const{stdout:t}=await b("dpkg",["-l",e],{env:Qe("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("ii")))}catch{return!1}}(n)&&(Vr.info("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(i),i=function(e){return Ze()?e.replace(/apt-get/g,"nala"):e}(i),await ea(t,i),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}]}(i,o,e,t);return await st(s),await As(o,"755"),await L("bash",[o,""+e,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:12e5}),await he(n+"/bin",lv),{installDir:""+n,binDir:n+"/bin",bin:n+"/bin/clang++"}}(i,r)}catch(s){y(`Failed to install llvm via system package manager ${s}. Trying to remove the repository`);try{N(Pr.join(zy,"llvm_repo_remove.bash"),[""+i])}catch(a){y("Failed to remove llvm repository "+a)}}const o=await wn("llvm",e,lr,t,n);return await Xy(i),o}function mr(e){const t=function(e){if(null===my(e))try{const t=sh(e);if(null!==t)return y(`Coerced version '${e}' to '${t}'`),t.version}catch(t){}return e}(e);return Number.parseInt(t.split(".")[0],10)}async function yr(){if(qy){const e=Pr.join(zy,"llvm_matcher.json");if(!(await ce(e)))return h("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");y("::add-matcher::"+e)}}async function vr(e,t,n,r,i,o){if("win32"!==process.platform)return;const s=Gy.vsversion_to_versionnumber(e);y(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=Gy.findVcvarsall(s);u=!0,y("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===s?(a="14.0",await wt("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),c="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===s?(a="14.16",await wt("visualstudio2017buildtools","15.9.41.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===s?(a="14.29",await wt("visualstudio2019buildtools","16.11.7.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===s?(a=void 0,await wt("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):d(`The given MSVC versions ${e} is not supported yet.`)}catch(l){d(l)}await cr(s,c,n,a,r,i,o),Yy&&await async function(){const e=Pr.join(Jy,"msvc_matcher.json");if(!(await ce(e)))return h("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");y("::add-matcher::"+e)}()}async function wr(e,t,n){if("win32"===process.platform)return await wt("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await he(e,lv),e}()}}function Er(e,t,n){return{url:gr(t,n,e),binRelativeDir:"",binFileName:Rt("pwsh"),extractedFolderName:""}}function gr(e,t,n){var r;switch(e){case"win32":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/PowerShell-${n}-${["ia32","x86","i386","x32"].includes(t)?"win-x86":"win-x64"}.zip`;case"darwin":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${["arm","arm64"].includes(t)?"osx-arm64":"osx-x64"}.tar.gz`;case"linux":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${null!=(r={arm64:"linux-arm64",arm:"linux-arm64",arm32:"linux-arm32",aarch64:"linux-arm64",x64:"linux-x64"}[t])?r:"linux-x64"}.tar.gz`;default:throw Error(`Unsupported platform '${e}'`)}}async function _r(e,t,n){try{return await wn("pwsh",e,Er,t,n)}catch(r){return d(`Failed to setup pwsh via download: ${r}. Trying package managers...`),async function(e){switch(process.platform){case"win32":{await wt("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await he(t,lv),{binDir:t}}case"darwin":return dt("powershell",e,{cask:!0,overwrite:!1});case"linux":if(mt())return gt("powershell-bin",e,"yay");if(ht())return await Et([{name:"curl"}]),N("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),Et([{name:"powershell",version:e}]);if(yt()){await st([{name:"curl"}]);const t=await Sy();return N("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),N("dpkg",["-i","packages-microsoft-prod.deb"]),st([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}(e)}}function br(e,t,n){const r=function(e){return"win32"===e?"windows":e}(t),i=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}}(n),o="win32"===t?"zip":"tar.gz";return{binRelativeDir:"",binFileName:Rt("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${i}.${o}`}}function Sr(e){const t=_d.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function Or(e,t){let n=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(n+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(n+="\n- The binary directory is "+t.binDir)),n}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Rr=require("os"),Ir=require("fs"),Tr=require("crypto"),Pr=require("path"),Cr=require("http"),xr=require("https");require("net");const Nr=require("tls"),Lr=require("events"),Ar=require("util"),$r=require("buffer"),Dr=require("process"),kr=require("child_process"),Ur=require("assert"),jr=require("stream"),Fr=require("url"),Mr=require("string_decoder"),Br=require("timers"),Gr=require("constants"),Vr=require("console");var Hr="undefined"!=typeof document?document.currentScript:null;const qr=e(Ir),zr=e(Cr),Wr=e(xr);var Xr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Kr={};const Yr=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{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"}];var Jr,Qr=(Jr||(Jr=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=Yr,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,e.id=null,n.forEach((function(n){const i=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));e[n.constant]=i,i&&(e.name=n.name,e.isPR=function(e){switch(typeof e.pr){case"string":return!!r[e.pr];case"object":return"env"in e.pr?"any"in e.pr?e.pr.any.some((function(t){return r[e.pr.env]===t})):e.pr.env in r&&r[e.pr.env]!==e.pr.ne:"any"in e.pr?e.pr.any.some((function(e){return!!r[e]})):t(e.pr);default:return null}}(n),e.id=n.constant)})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(Kr)),Kr);const Zr=t(Qr);var ei,ti,ni={},ri={},ii={},oi={};const si=new Uint8Array(256);let ai=si.length;const ci=/^(?:[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,ui=[];for(let fv=0;256>fv;++fv)ui.push((fv+256).toString(16).substr(1));let li,fi,pi=0,di=0;const hi=c("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Tr.createHash("md5").update(e).digest()})),mi=c("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Tr.createHash("sha1").update(e).digest()})),yi=n(Object.freeze(Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:a,stringify:s,v1:function(e,t,n){let r=t&&n||0;const o=t||Array(16);let a=(e=e||{}).node||li,c=void 0!==e.clockseq?e.clockseq:fi;if(null==a||null==c){const t=e.random||(e.rng||i)();null==a&&(a=li=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==c&&(c=fi=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:di+1;const f=u-pi+(l-di)/1e4;if(0>f&&void 0===e.clockseq&&(c=c+1&16383),(0>f||u>pi)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");pi=u,di=l,fi=c,u+=122192928e5;const p=(1e4*(268435455&u)+l)%4294967296;o[r++]=p>>>24&255,o[r++]=p>>>16&255,o[r++]=p>>>8&255,o[r++]=255&p;const d=u/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=c>>>8|128,o[r++]=255&c;for(let i=0;6>i;++i)o[r+i]=a[i];return t||s(o)},v3:hi,v4:function(e,t,n){const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;16>e;++e)t[n+e]=r[e];return t}return s(r)},v5:mi,validate:o,version:function(e){if(!o(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var vi,wi={};class Ei extends URL{_decodedUsername;_decodedPassword;constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var gi,_i,bi,Si,Oi,Ri,Ii,Ti,Pi={},Ci=(bi||(bi=1,_i=function(){function e(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,r,i,o){for(var s=n(r,i,o),a=0,c=t.requests.length;c>a;++a){var u=t.requests[a];if(u.host===s.host&&u.port===s.port)return t.requests.splice(a,1),void u.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function t(t,n){var i=this;e.prototype.createSocket.call(i,t,(function(e){var s=t.request.getHeader("host"),a=r({},i.options,{socket:e,servername:s?s.replace(/:.*$/,""):t.host}),c=o.connect(0,a);i.sockets[i.sockets.indexOf(e)]=c,n(c)}))}function n(e,t,n){return"string"==typeof e?{host:e,port:t,localAddress:n}:e}function r(e){for(var t=1,n=arguments.length;n>t;++t){var r=arguments[t];if("object"==typeof r)for(var i=Object.keys(r),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==r[a]&&(e[a]=r[a])}}return e}if(gi)return Pi;gi=1;var i,o=Nr,s=Cr,a=xr,c=Lr,u=Ar;return Pi.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},Pi.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},Pi.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},Pi.httpsOverHttps=function(n){var r=new e(n);return r.request=a.request,r.createSocket=t,r.defaultPort=443,r},u.inherits(e,c.EventEmitter),e.prototype.addRequest=function(e,t,i,o){var s=this,a=r({request:e},s.options,n(t,i,o));this.maxSockets>s.sockets.length?s.createSocket(a,(function(t){function n(){s.emit("free",t,a)}function r(e){s.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)})):s.requests.push(a)},e.prototype.createSocket=function(e,t){function n(n,r,a){var u;return c.removeAllListeners(),r.removeAllListeners(),200!==n.statusCode?(i("tunneling socket could not be established, statusCode=%d",n.statusCode),r.destroy(),(u=Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",u),void o.removeSocket(s)):a.length>0?(i("got illegal response body from proxy"),r.destroy(),(u=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",u),void o.removeSocket(s)):(i("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=r,t(r))}var o=this,s={};o.sockets.push(s);var a=r({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(a.localAddress=e.localAddress),a.proxyAuth&&(a.headers=a.headers||{},a.headers["Proxy-Authorization"]="Basic "+new Buffer(a.proxyAuth).toString("base64")),i("making CONNECT request");var c=o.request(a);c.useChunkedEncodingByDefault=!1,c.once("response",(function(e){e.upgrade=!0})),c.once("upgrade",(function(e,t,r){process.nextTick((function(){n(e,t,r)}))})),c.once("connect",n),c.once("error",(function(t){c.removeAllListeners(),i("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),o.removeSocket(s)})),c.end()},e.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},i=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},Pi.debug=i,Pi}()),_i);(Oi=Si||(Si={}))[Oi.OK=200]="OK",Oi[Oi.MultipleChoices=300]="MultipleChoices",Oi[Oi.MovedPermanently=301]="MovedPermanently",Oi[Oi.ResourceMoved=302]="ResourceMoved",Oi[Oi.SeeOther=303]="SeeOther",Oi[Oi.NotModified=304]="NotModified",Oi[Oi.UseProxy=305]="UseProxy",Oi[Oi.SwitchProxy=306]="SwitchProxy",Oi[Oi.TemporaryRedirect=307]="TemporaryRedirect",Oi[Oi.PermanentRedirect=308]="PermanentRedirect",Oi[Oi.BadRequest=400]="BadRequest",Oi[Oi.Unauthorized=401]="Unauthorized",Oi[Oi.PaymentRequired=402]="PaymentRequired",Oi[Oi.Forbidden=403]="Forbidden",Oi[Oi.NotFound=404]="NotFound",Oi[Oi.MethodNotAllowed=405]="MethodNotAllowed",Oi[Oi.NotAcceptable=406]="NotAcceptable",Oi[Oi.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Oi[Oi.RequestTimeout=408]="RequestTimeout",Oi[Oi.Conflict=409]="Conflict",Oi[Oi.Gone=410]="Gone",Oi[Oi.TooManyRequests=429]="TooManyRequests",Oi[Oi.InternalServerError=500]="InternalServerError",Oi[Oi.NotImplemented=501]="NotImplemented",Oi[Oi.BadGateway=502]="BadGateway",Oi[Oi.ServiceUnavailable=503]="ServiceUnavailable",Oi[Oi.GatewayTimeout=504]="GatewayTimeout",(Ii=Ri||(Ri={})).Accept="accept",Ii.ContentType="content-type",(Ti||(Ti={})).ApplicationJson="application/json";const xi=[Si.MovedPermanently,Si.ResourceMoved,Si.SeeOther,Si.TemporaryRedirect,Si.PermanentRedirect],Ni=[Si.BadGateway,Si.ServiceUnavailable,Si.GatewayTimeout],Li=["OPTIONS","GET","DELETE","HEAD"];class Ai extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,Ai.prototype)}statusCode;result}class $i{constructor(e){this.message=e}message;async readBody(){return new Promise((async e=>{let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))}async readBodyBuffer(){return new Promise((async e=>{const t=[];this.message.on("data",(e=>{t.push(e)})),this.message.on("end",(()=>{e(Buffer.concat(t))}))}))}}class Di{userAgent;handlers;requestOptions;_ignoreSslError=!1;_socketTimeout;_allowRedirects=!0;_allowRedirectDowngrade=!1;_maxRedirects=50;_allowRetries=!1;_maxRetries=1;_agent;_proxyAgent;_proxyAgentDispatcher;_keepAlive=!1;_disposed=!1;constructor(e,t,n){this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}async options(e,t){return this.request("OPTIONS",e,null,t||{})}async get(e,t){return this.request("GET",e,null,t||{})}async del(e,t){return this.request("DELETE",e,null,t||{})}async post(e,t,n){return this.request("POST",e,t,n||{})}async patch(e,t,n){return this.request("PATCH",e,t,n||{})}async put(e,t,n){return this.request("PUT",e,t,n||{})}async head(e,t){return this.request("HEAD",e,null,t||{})}async sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[Ri.Accept]=this._getExistingOrDefaultHeader(t,Ri.Accept,Ti.ApplicationJson);const n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[Ri.Accept]=this._getExistingOrDefaultHeader(n,Ri.Accept,Ti.ApplicationJson),n[Ri.ContentType]=this._getExistingOrDefaultHeader(n,Ri.ContentType,Ti.ApplicationJson);const i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[Ri.Accept]=this._getExistingOrDefaultHeader(n,Ri.Accept,Ti.ApplicationJson),n[Ri.ContentType]=this._getExistingOrDefaultHeader(n,Ri.ContentType,Ti.ApplicationJson);const i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[Ri.Accept]=this._getExistingOrDefaultHeader(n,Ri.Accept,Ti.ApplicationJson),n[Ri.ContentType]=this._getExistingOrDefaultHeader(n,Ri.ContentType,Ti.ApplicationJson);const i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,r){if(this._disposed)throw Error("Client has already been disposed.");const i=new URL(t);let o=this._prepareRequest(e,i,r);const s=this._allowRetries&&Li.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(o,n),a&&a.message&&a.message.statusCode===Si.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,o,n):a}let t=this._maxRedirects;for(;a.message.statusCode&&xi.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const c=new URL(s);if("https:"===i.protocol&&i.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await a.readBody(),c.hostname!==i.hostname)for(const e in r)"authorization"===e.toLowerCase()&&delete r[e];o=this._prepareRequest(e,c,r),a=await this.requestRaw(o,n),t--}if(!a.message.statusCode||!Ni.includes(a.message.statusCode))return a;c+=1,s>c&&(await a.readBody(),await this._performExponentialBackoff(c))}while(s>c);return a}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}async requestRaw(e,t){return new Promise(((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e?r(e):t?n(t):r(Error("Unknown error"))}))}))}requestRawWithCallback(e,t,n){function r(e,t){i||(i=!0,n(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1;const o=e.httpModule.request(e.options,(e=>{r(void 0,new $i(e))}));let s;o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),r(Error("Request timeout: "+e.options.path))})),o.on("error",(function(e){r(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}async getAgentDispatcher(e){const t=new URL(e),n=u(t);if(n&&n.hostname)return await this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const i="https:"===r.parsedUrl.protocol;r.httpModule=i?Wr:zr;const o=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):o,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(const s of this.handlers)s.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},ki(this.requestOptions.headers),ki(e||{})):ki(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=ki(this.requestOptions.headers)[t]),e[t]||r||n}_getAgent(e){let t;const n=u(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;const i="https:"===e.protocol;let o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||zr.globalAgent.maxSockets),n&&n.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:{...(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`},host:n.hostname,port:n.port}};let r;const s="https:"===n.protocol;r=i?s?Ci.httpsOverHttps:Ci.httpsOverHttp:s?Ci.httpOverHttps:Ci.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=i?new Wr.Agent(e):new zr.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}async _getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;const r="https:"===e.protocol;return n=new(await Promise.resolve().then((()=>require("./assets/proxy-agent-Bxzdb3SZ.js"))).then((e=>e.proxyAgent)))({uri:t.href,pipelining:this._keepAlive?1:0,...(t.username||t.password)&&{token:"Basic "+Buffer.from(`${t.username}:${t.password}`).toString("base64")}}),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}async _performExponentialBackoff(e){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}async _processResponse(e,t){return new Promise((async(n,r)=>{const i=e.message.statusCode||0,o={statusCode:i,result:null,headers:{}};let s,a;i===Si.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,(function(e,t){if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(c){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${i})`;const t=new Ai(e,i);t.result=o.result,r(t)}else n(o)}))}}const ki=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),Ui=n(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return Ri},HttpClient:Di,HttpClientError:Ai,HttpClientResponse:$i,get HttpCodes(){return Si},get MediaTypes(){return Ti},getProxyUrl:function(e){const t=u(new URL(e));return t?t.href:""},isHttps:function(e){return"https:"===new URL(e).protocol}},Symbol.toStringTag,{value:"Module"})));var ji,Fi,Mi,Bi,Gi,Vi={},Hi={},qi={},zi=p(),Wi={};const Xi=[{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"}];var Ki;const Yi=t((Ki||(Ki=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=Xi,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,n.forEach((function(n){const i=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));if(e[n.constant]=i,i)switch(e.name=n.name,typeof n.pr){case"string":e.isPR=!!r[n.pr];break;case"object":e.isPR="env"in n.pr?n.pr.env in r&&r[n.pr.env]!==n.pr.ne:"any"in n.pr?n.pr.any.some((function(e){return!!r[e]})):t(n.pr);break;default:e.isPR=null}})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(Wi)),Wi)),{GITHUB_ACTIONS:Ji}=Yi;var Qi,Zi,eo,to,no,ro,io,oo,so,ao,co,uo,lo,fo,po,ho,mo,yo,vo,wo,Eo,go,_o,bo={exports:{}},So={exports:{}},Oo={};const Ro=t(function(){function e(e,i,o){const s=n(e,i,o),a=t.spawn(s.command,s.args,s.options);return r.hookChildProcess(a,s),a}if(_o)return bo.exports;_o=1;const t=kr,n=w(),r=function(){function e(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function t(t,r){return n&&1===t&&!r.file?e(r.original,"spawn"):null}if(go)return Eo;go=1;const n="win32"===process.platform;return Eo={hookChildProcess:function(e,r){if(!n)return;const i=e.emit;e.emit=function(n,o){if("exit"===n){const n=t(o,r);if(n)return i.call(e,"error",n)}return i.apply(e,arguments)}},verifyENOENT:t,verifyENOENTSync:function(t,r){return n&&1===t&&!r.file?e(r.original,"spawnSync"):null},notFoundError:e},Eo}();return bo.exports=e,bo.exports.spawn=e,bo.exports.sync=function(e,i,o){const s=n(e,i,o),a=t.spawnSync(s.command,s.args,s.options);return a.error=a.error||r.verifyENOENTSync(a.status,s),a},bo.exports._parse=n,bo.exports._enoent=r,bo.exports}()),Io=({env:e=Dr.env,...t}={})=>{const n=E({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=Dr.cwd(),path:t=Dr.env[E()],preferLocal:n=!0,execPath:r=Dr.execPath,addExecPath:i=!0}={})=>{const o=e instanceof URL?Fr.fileURLToPath(e):e,s=Pr.resolve(o),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(Pr.join(t,"node_modules/.bin")),n=t,t=Pr.resolve(t,"..")})(a,s),i&&((e,t,n)=>{const r=t instanceof URL?Fr.fileURLToPath(t):t;e.push(Pr.resolve(n,r,".."))})(a,r,s),[...a,t].join(Pr.delimiter)})(t),e},To=(e,t,n,r)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const i=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!Po(i,o)&&r||Object.defineProperty(e,n,o)},Po=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Co=(e,t)=>`/* Wrapped ${e}*/\n${t}`,xo=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),No=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),Lo=new WeakMap,Ao=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const i=e.displayName||e.name||"",o=function(...s){if(Lo.set(o,++r),1===r)n=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return n};return function(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:r}=e;for(const i of Reflect.ownKeys(t))To(e,t,i,n);((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,t),((e,t,n)=>{const r=""===n?"":`with ${n.trim()}() `,i=Co.bind(null,r,""+t);Object.defineProperty(i,"name",No),Object.defineProperty(e,"toString",{...xo,value:i})})(e,t,r)}(o,e),Lo.set(o,r),o};Ao.callCount=e=>{if(!Lo.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Lo.get(e)};const $o=(e,t)=>({name:"SIGRT"+(t+1),number:Do+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Do=34,ko=[{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"}],Uo=()=>{const e=Array.from({length:64-Do+1},$o);return[...ko,...e].map(jo)},jo=({name:e,number:t,description:n,action:r,forced:i=!1,standard:o})=>{const{signals:{[e]:s}}=Rr.constants,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:i,standard:o}},Fo=({name:e,number:t,description:n,supported:r,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:n,supported:r,action:i,forced:o,standard:s}],Mo=(()=>{const e=Uo();return Object.fromEntries(e.map(Fo))})(),Bo=(e,t)=>{const n=t.find((({name:t})=>Rr.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=Uo(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=Bo(e,t);if(void 0===n)return{};const{name:r,description:i,supported:o,action:s,forced:a,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:o,action:s,forced:a,standard:c}}})(n,e)));Object.assign({},...t)})();const Go=({stdout:e,stderr:t,all:n,error:r,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:u,killed:l,parsed:{options:{timeout:f,cwd:p=Dr.cwd()}}})=>{const d=void 0===(i=null===i?void 0:i)?void 0:Mo[i].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==n?"failed with "+n:void 0!==r?`was killed with ${r} (${i})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:c,timeout:f,errorCode:r&&r.code,signal:i,signalDescription:d,exitCode:o=null===o?void 0:o,isCanceled:u}),m=`Command ${h}: ${s}`,y="[object Error]"==={}.toString.call(r),v=y?`${m}\n${r.message}`:m,w=[v,t,e].filter(Boolean).join("\n");return y?(r.originalMessage=r.message,r.message=w):r=Error(w),r.shortMessage=v,r.command=s,r.escapedCommand=a,r.exitCode=o,r.signal=i,r.signalDescription=d,r.stdout=e,r.stderr=t,r.cwd=p,void 0!==n&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=u,r.killed=l&&!c,r},Vo=["stdin","stdout","stderr"];var Ho,qo,zo={exports:{}},Wo={exports:{}};const Xo=t(function(){if(qo)return zo.exports;qo=1;var e=Xr.process;const t=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(t(e)){var n,r=Ur,i=(Ho||(Ho=1,(y=Wo).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&y.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&y.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Wo.exports),o=/^win/i.test(e.platform),s=Lr;"function"!=typeof s&&(s=s.EventEmitter),e.__signal_exit_emitter__?n=e.__signal_exit_emitter__:((n=e.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),zo.exports=function(e,i){if(!t(Xr.process))return function(){};r.equal(typeof e,"function","a callback must be provided for exit handler"),!1===l&&f();var o="exit";return i&&i.alwaysLast&&(o="afterexit"),n.on(o,e),function(){n.removeListener(o,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&a()}};var a=function(){l&&t(Xr.process)&&(l=!1,i.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};zo.exports.unload=a;var c=function(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))},u={};i.forEach((function(r){u[r]=function(){t(Xr.process)&&e.listeners(r).length===n.count&&(a(),c("exit",null,r),c("afterexit",null,r),o&&"SIGHUP"===r&&(r="SIGINT"),e.kill(e.pid,r))}})),zo.exports.signals=function(){return i};var l=!1,f=function(){!l&&t(Xr.process)&&(l=!0,n.count+=1,i=i.filter((function(t){try{return e.on(t,u[t]),!0}catch(n){return!1}})),e.emit=m,e.reallyExit=d)};zo.exports.load=f;var p=e.reallyExit,d=function(n){t(Xr.process)&&(e.exitCode=n||0,c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),p.call(e,e.exitCode))},h=e.emit,m=function(n,r){if("exit"===n&&t(Xr.process)){void 0!==r&&(e.exitCode=r);var i=h.apply(this,arguments);return c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),i}return h.apply(this,arguments)}}else zo.exports=function(){return function(){}};var y;return zo.exports}()),Ko=(e,t="SIGTERM",n={})=>{const r=e(t);return Yo(e,t,n,r),r},Yo=(e,t,n,r)=>{if(!Jo(t,n,r))return;const i=Zo(n),o=setTimeout((()=>{e("SIGKILL")}),i);o.unref&&o.unref()},Jo=(e,{forceKillAfterTimeout:t},n)=>Qo(e)&&!1!==t&&n,Qo=e=>e===Rr.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),Zo=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},es=(e,t)=>{e.kill()&&(t.isCanceled=!0)},ts=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(Ir.createWriteStream(n)),e;if(_(n))return e[t].pipe(n),e;if(!(e=>e instanceof kr.ChildProcess&&"function"==typeof e.then)(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!_(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n};var ns,rs,is,os={exports:{}};const ss=t(function(){async function e(e,n){if(!e)throw Error("Expected a stream");n={maxBuffer:1/0,...n};const{maxBuffer:r}=n,a=i(n);return await new Promise(((n,i)=>{const c=e=>{e&&a.getBufferedLength()<=t.MAX_LENGTH&&(e.bufferedData=a.getBufferedValue()),i(e)};(async()=>{try{await o(e,a),n()}catch(t){c(t)}})(),a.on("data",(()=>{a.getBufferedLength()>r&&c(new s)}))})),a.getBufferedValue()}if(is)return os.exports;is=1;const{constants:t}=$r,n=jr,{promisify:r}=Ar,i=function(){if(rs)return ns;rs=1;const{PassThrough:e}=jr;return ns=t=>{t={...t};const{array:n}=t;let{encoding:r}=t;const i="buffer"===r;let o=!1;n?o=!(r||i):r=r||"utf8",i&&(r=null);const s=new e({objectMode:o});r&&s.setEncoding(r);let a=0;const c=[];return s.on("data",(e=>{c.push(e),o?a=c.length:a+=e.length})),s.getBufferedValue=()=>n?c:i?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s}}(),o=r(n.pipeline);class s extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}return os.exports=e,os.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),os.exports.array=(t,n)=>e(t,{...n,array:!0}),os.exports.MaxBufferError=s,os.exports}());var as,cs;const us=t(function(){if(cs)return as;cs=1;const{PassThrough:e}=jr;return as=function(){function t(e){return Array.isArray(e)?(e.forEach(t),this):(r.push(e),e.once("end",n.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function n(e){!(r=r.filter((function(t){return t!==e}))).length&&i.readable&&i.end()}var r=[],i=new e({objectMode:!0});return i.setMaxListeners(0),i.add=t,i.isEmpty=function(){return 0==r.length},i.on("unpipe",n),[].slice.call(arguments).forEach(t),i}}()),ls=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},fs=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},ps=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?ss(e,{encoding:t,maxBuffer:r}):ss.buffer(e,{maxBuffer:r})},ds=(async()=>{})().constructor.prototype,hs=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(ds,e)])),ms=(e,t)=>{for(const[n,r]of hs){const i="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:i})}},ys=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],vs=/^[\w.-]+$/,ws=/"/g,Es=(e,t)=>ys(e,t).join(" "),gs=(e,t)=>ys(e,t).map((e=>(e=>"string"!=typeof e||vs.test(e)?e:`"${e.replace(ws,'\\"')}"`)(e))).join(" "),_s=/ +/g,bs=e=>{const t=[];for(const n of e.trim().split(_s)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},Ss=Ar.debuglog("execa").enabled,Os=(e,t)=>(e+"").padStart(t,"0"),Rs=(e,{verbose:t})=>{t&&Dr.stderr.write(`[${(()=>{const e=new Date;return`${Os(e.getHours(),2)}:${Os(e.getMinutes(),2)}:${Os(e.getSeconds(),2)}.${Os(e.getMilliseconds(),3)}`})()}] ${e}\n`)},Is=(e,t,n={})=>{const r=Ro._parse(e,t,n);return e=r.command,t=r.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=r.options).cwd||Dr.cwd(),execPath:Dr.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Ss,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:i})=>{const o=t?{...Dr.env,...e}:e;return n?Io({env:o,cwd:r,execPath:i}):o})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Vo.map((t=>e[t]));if((e=>Vo.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Vo.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Vo.length)},((e,n)=>t[n]))})(n),"win32"===Dr.platform&&"cmd"===Pr.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Ts=(e,t,n)=>"string"==typeof t||$r.Buffer.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e}(t):t:void 0===n?void 0:"";var Ps={},Cs={};const xs=qr.promises,{access:Ns,appendFile:Ls,chmod:As,chown:$s,copyFile:Ds,lchmod:ks,lchown:Us,link:js,lstat:Fs,mkdir:Ms,mkdtemp:Bs,open:Gs,readdir:Vs,readFile:Hs,readlink:qs,realpath:zs,rename:Ws,rmdir:Xs,stat:Ks,symlink:Ys,truncate:Js,unlink:Qs,utimes:Zs,writeFile:ea}=qr.promises,ta="rm"in qr.promises?qr.promises.rm:Ar.promisify(qr.unlink),na=n(Object.freeze(Object.defineProperty({__proto__:null,access:Ns,appendFile:Ls,chmod:As,chown:$s,copyFile:Ds,default:xs,lchmod:ks,lchown:Us,link:js,lstat:Fs,mkdir:Ms,mkdtemp:Bs,open:Gs,readFile:Hs,readdir:Vs,readlink:qs,realpath:zs,rename:Ws,rm:ta,rmdir:Xs,stat:Ks,symlink:Ys,truncate:Js,unlink:Qs,utimes:Zs,writeFile:ea},Symbol.toStringTag,{value:"Module"})));var ra,ia,oa,sa,aa,ca,ua={},la={};const fa=t(function(){if(ca)return aa;ca=1;const{isexe:e,sync:t}=O(),{join:n,delimiter:r,sep:i,posix:o}=Pr,s="win32"===process.platform,a=RegExp(`[${o.sep}${i===o.sep?"":i}]`.replace(/(\\)/g,"\\$1")),c=RegExp("^\\."+a.source),u=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),l=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:i=r})=>{const o=e.match(a)?[""]:[...s?[process.cwd()]:[],...(t||"").split(i)];if(s){const t=n||[".EXE",".CMD",".BAT",".COM"].join(i),r=t.split(i).flatMap((e=>[e,e.toLowerCase()]));return e.includes(".")&&""!==r[0]&&r.unshift(""),{pathEnv:o,pathExt:r,pathExtExe:t}}return{pathEnv:o,pathExt:[""]}},f=(e,t)=>{const r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&c.test(t)?t.slice(0,2):"")+n(r,t)},p=async(t,n={})=>{const{pathEnv:r,pathExt:i,pathExtExe:o}=l(t,n),s=[];for(const a of r){const r=f(a,t);for(const t of i){const i=r+t;if(await e(i,{pathExt:o,ignoreErrors:!0})){if(!n.all)return i;s.push(i)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(t)};return aa=p,p.sync=(e,n={})=>{const{pathEnv:r,pathExt:i,pathExtExe:o}=l(e,n),s=[];for(const a of r){const r=f(a,e);for(const e of i){const i=r+e;if(t(i,{pathExt:o,ignoreErrors:!0})){if(!n.all)return i;s.push(i)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(e)},aa}());let pa;var da,ha={};I(ha,"hasSudo",(()=>T)),I(ha,"isRoot",(()=>P)),I(ha,"isSudo",(()=>C)),I(ha,"prependSudo",(()=>x)),I(ha,"defaultExecOptions",(()=>ma)),I(ha,"execRootSync",(()=>N)),I(ha,"execRoot",(()=>L));let ma={stdio:"inherit",shell:!0};I(da={},"isAdminWindows",(()=>ya)),I(da,"isAdminPosix",(()=>va)),I(da,"isAdmin",(()=>D));let ya=async function(){var e;if("win32"!==process.platform)return!1;try{return await b("fsutil",["dirty","query",null!=(e=process.env.systemdrive)?e:""]),!0}catch(t){return"ENOENT"===t.code&&async function(){try{return await b("fltmc"),!0}catch{return!1}}()}},va=P;var wa,Ea,ga,_a,ba,Sa,Oa,Ra,Ia,Ta,Pa,Ca,xa,Na,La,Aa,$a,Da,ka,Ua,ja,Fa,Ma,Ba,Ga,Va;I({},"grantUserWriteAccess",(()=>k));var Ha,qa,za,Wa,Xa,Ka,Ya,Ja,Qa,Za,ec,tc,nc,rc,ic,oc,sc,ac,cc,uc,lc,fc,pc,dc,hc,mc,yc,vc,wc,Ec,gc,_c,bc,Sc,Oc,Rc,Ic,Tc,Pc,Cc,xc,Nc,Lc,Ac,$c,Dc,kc,Uc,jc,Fc,Mc,Bc,Gc,Vc,Hc,qc,zc,Wc,Xc,Kc,Yc,Jc,Qc,Zc,eu,tu,nu,ru,iu,ou,su,au,cu,uu,lu,fu,pu,du,hu,mu,yu,vu,wu,Eu,gu,_u,bu,Su,Ou,Ru,Iu,Tu,Pu,Cu,xu,Nu,Lu,Au,$u,Du,ku,Uu,ju,Fu,Mu,Bu,Gu,Vu,Hu,qu,zu,Wu,Xu,Ku,Yu,Ju,Qu,Zu,el,tl,nl,rl,il,ol,sl,al,cl,ul,ll,fl,pl={},dl={exports:{}},hl={exports:{}},ml={exports:{}},yl={exports:{}},vl={},wl={},El={exports:{}},gl={},_l={},bl={},Sl={};const Ol=t(function(){if(fl)return ll;fl=1;var e=j(),t=M(),n=function(){if(yu)return mu;yu=1;var e=B(),t=V(),n=H(),r=te(),i=M();return mu=function o(s){var a,c,u;if(e(s),(a=Object(arguments[1])).async&&a.promise)throw Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(s,"__memoized__")&&!a.force?s:(c=i(a.length,s.length,a.async&&n.async),u=r(s,c,a),t(n,(function(e,t){a[t]&&e(a[t],u,a)})),o.__profiler__&&o.__profiler__(u),u.updateEnv(),u.memoized)},mu}();return ll=function(r){var i,o=e(arguments[1]);return o.normalizer||0!==(i=o.length=t(o.length,r.length,o.async))&&(o.primitive?!1===i?o.normalizer=wu?vu:(wu=1,vu=function(e){var t,n,r=e.length;if(!r)return"";for(t=e[n=0]+"";--r;)t+=""+e[++n];return t}):i>1&&(o.normalizer=(gu?Eu:(gu=1,Eu=function(e){return e?function(t){for(var n=t[0]+"",r=0,i=e;--i;)n+=""+t[++r];return n}:function(){return""}}))(i)):o.normalizer=!1===i?function(){if(xu)return Cu;xu=1;var e=ne(),t=Object.create;return Cu=function(){var n=0,r=[],i=t(null);return{get:function(t){var n,i=0,o=r,s=t.length;if(0===s)return o[s]||null;if(o=o[s]){for(;s-1>i;){if(-1===(n=e.call(o[0],t[i])))return null;o=o[1][n],++i}return-1===(n=e.call(o[0],t[i]))?null:o[1][n]||null}return null},set:function(t){var o,s=0,a=r,c=t.length;if(0===c)a[c]=++n;else{for(a[c]||(a[c]=[[],[]]),a=a[c];c-1>s;)-1===(o=e.call(a[0],t[s]))&&(o=a[0].push(t[s])-1,a[1].push([[],[]])),a=a[1][o],++s;-1===(o=e.call(a[0],t[s]))&&(o=a[0].push(t[s])-1),a[1][o]=++n}return i[n]=t,n},delete:function(t){var n,o=0,s=r,a=i[t],c=a.length,u=[];if(0===c)delete s[c];else if(s=s[c]){for(;c-1>o;){if(-1===(n=e.call(s[0],a[o])))return;u.push(s,n),s=s[1][n],++o}if(-1===(n=e.call(s[0],a[o])))return;for(t=s[1][n],s[0].splice(n,1),s[1].splice(n,1);!s[0].length&&u.length;)n=u.pop(),(s=u.pop())[0].splice(n,1),s[1].splice(n,1)}delete i[t]},clear:function(){r=[],i=t(null)}}}}()():1===i?function(){if(Lu)return Nu;Lu=1;var e=ne();return Nu=function(){var t=0,n=[],r=[];return{get:function(t){var i=e.call(n,t[0]);return-1===i?null:r[i]},set:function(e){return n.push(e[0]),r.push(++t),t},delete:function(t){var i=e.call(r,t);-1!==i&&(n.splice(i,1),r.splice(i,1))},clear:function(){n=[],r=[]}}}}()():function(){if($u)return Au;$u=1;var e=ne(),t=Object.create;return Au=function(n){var r=0,i=[[],[]],o=t(null);return{get:function(t){for(var r,o=0,s=i;n-1>o;){if(-1===(r=e.call(s[0],t[o])))return null;s=s[1][r],++o}return-1===(r=e.call(s[0],t[o]))?null:s[1][r]||null},set:function(t){for(var s,a=0,c=i;n-1>a;)-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1,c[1].push([[],[]])),c=c[1][s],++a;return-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1),c[1][s]=++r,o[r]=t,r},delete:function(t){for(var r,s=0,a=i,c=[],u=o[t];n-1>s;){if(-1===(r=e.call(a[0],u[s])))return;c.push(a,r),a=a[1][r],++s}if(-1!==(r=e.call(a[0],u[s]))){for(t=a[1][r],a[0].splice(r,1),a[1].splice(r,1);!a[0].length&&c.length;)r=c.pop(),(a=c.pop())[0].splice(r,1),a[1].splice(r,1);delete o[t]}},clear:function(){i=[[],[]],o=t(null)}}}}()(i)),o.async&&function(){if(Fu)return vl;Fu=1;var e=ee(),t=re(),n=z(),r=W(),i=ie(),o=[].slice,s=function(){}.apply,a=Object.create;H().async=function(c,u){var l,f,p,d=a(null),h=a(null),m=u.memoized,y=u.original;u.memoized=r((function(e){var t=arguments,n=t[t.length-1];return"function"==typeof n&&(l=n,t=o.call(t,0,-1)),m.apply(f=this,p=t)}),m);try{n(u.memoized,m)}catch(v){}u.on("get",(function(e){var t,n,r;if(l){if(d[e])return"function"==typeof d[e]?d[e]=[d[e],l]:d[e].push(l),void(l=null);t=l,n=f,r=p,l=f=p=null,i((function(){var i;hasOwnProperty.call(h,e)?(i=h[e],u.emit("getasync",e,r,n),s.call(t,i.context,i.args)):(l=t,f=n,p=r,m.apply(n,r))}))}})),u.original=function(){var t,n,r,o;return l?(t=e(arguments),n=function t(n){var r,a,c=t.id;if(null!=c){if(delete t.id,r=d[c],delete d[c],r)return a=e(arguments),u.has(c)&&(n?u.delete(c):(h[c]={context:this,args:a},u.emit("setasync",c,"function"==typeof r?1:r.length))),"function"==typeof r?o=s.call(r,this,a):r.forEach((function(e){o=s.call(e,this,a)}),this),o}else i(s.bind(t,this,arguments))},r=l,l=f=p=null,t.push(n),o=s.call(y,this,t),n.cb=r,l=n,o):s.call(y,this,arguments)},u.on("set",(function(e){l?(d[e]?"function"==typeof d[e]?d[e]=[d[e],l.cb]:d[e].push(l.cb):d[e]=l.cb,delete l.cb,l.id=e,l=null):u.delete(e)})),u.on("delete",(function(e){var t;hasOwnProperty.call(d,e)||h[e]&&(t=h[e],delete h[e],u.emit("deleteasync",e,o.call(t.args,1)))})),u.on("clear",(function(){var e=h;h=a(null),u.emit("clearasync",t(e,(function(e){return o.call(e.args,1)})))}))}}(),o.promise&&ae(),o.dispose&&function(){if(el)return gl;el=1;var e=B(),t=V(),n=H(),r=function(){}.apply;n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise)return o.on("deleteasync",a=function(e,t){r.call(i,null,t)}),void o.on("clearasync",(function(e){t(e,(function(e,t){a(t,e)}))}));o.on("delete",a=function(e,t){i(t)}),o.on("clear",(function(e){t(e,(function(e,t){a(t,e)}))}))}}(),o.maxAge&&function(){if(ol)return _l;ol=1;var e=ee(),t=V(),n=ie(),r=se(),i=function(){if(il)return rl;il=1;var e=F(),t=nl?tl:(nl=1,tl=2147483647);return rl=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}(),o=H(),s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;o.maxAge=function(l,f,p){var d,h,m,y;(l=i(l))&&(d=u(null),f.on("set"+(h=p.async&&o.async||p.promise&&o.promise?"async":""),(function(e){d[e]=setTimeout((function(){f.delete(e)}),l),"function"==typeof d[e].unref&&d[e].unref(),y&&(y[e]&&"nextTick"!==y[e]&&clearTimeout(y[e]),y[e]=setTimeout((function(){delete y[e]}),m),"function"==typeof y[e].unref&&y[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],y&&("nextTick"!==y[e]&&clearTimeout(y[e]),delete y[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(y={},m=(1-m)*l,f.on("get"+h,(function(t,i,o){y[t]||(y[t]="nextTick",n((function(){var n;"nextTick"===y[t]&&(delete y[t],f.delete(t),p.async&&(i=e(i)).push(s),n=f.memoized.apply(o,i),p.promise&&r(n)&&("function"==typeof n.done?n.done(s,s):n.then(s,s)))})))}))),f.on("clear"+h,(function(){t(d,(function(e){clearTimeout(e)})),d={},y&&(t(y,(function(e){"nextTick"!==e&&clearTimeout(e)})),y={})})))}}(),o.max&&function(){if(cl)return bl;cl=1;var e=F(),t=function(){if(al)return sl;al=1;var e=F(),t=Object.create,n={}.hasOwnProperty;return sl=function(r){var i,o=0,s=1,a=t(null),c=t(null),u=0;return r=e(r),{hit:function(e){var t=c[e],l=++u;if(a[l]=e,c[e]=l,!t){if(++o,r>=o)return;return i(e=a[s]),e}if(delete a[t],s===t)for(;!n.call(a,++s);)continue},delete:i=function(e){var t=c[e];if(t&&(delete a[t],delete c[e],--o,s===t)){if(!o)return u=0,void(s=1);for(;!n.call(a,++s);)continue}},clear:function(){o=0,s=1,a=t(null),c=t(null),u=0}}}}(),n=H();n.max=function(r,i,o){var s,a,c;(r=e(r))&&(a=t(r),i.on("set"+(s=o.async&&n.async||o.promise&&n.promise?"async":""),c=function(e){void 0!==(e=a.hit(e))&&i.delete(e)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))}}(),o.refCounter&&function(){if(ul)return Sl;ul=1;var e=Y(),t=H(),n=Object.create,r=Object.defineProperties;t.refCounter=function(i,o,s){var a,c;a=n(null),o.on("set"+(c=s.async&&t.async||s.promise&&t.promise?"async":""),(function(e,t){a[e]=t||1})),o.on("get"+c,(function(e){++a[e]})),o.on("delete"+c,(function(e){delete a[e]})),o.on("clear"+c,(function(){a={}})),r(o.memoized,{deleteRef:e((function(){var e=o.get(arguments);return null===e?null:a[e]?! --a[e]&&(o.delete(e),!0):null})),getRefCount:e((function(){var e=o.get(arguments);return null===e?0:a[e]?a[e]:0}))})}}(),n(r,o)}}()),Rl=/^~(?=$|\/|\\)/,{appendFile:Il,readFile:Tl,writeFile:Pl}=Ir.promises,Cl=ue("~/.bashrc"),xl=Ol((async function(e){const t=void 0===e.guard?`\nsource "${e.rcPath}"\n`:`\n# ${e.guard}\nif [[ "$SOURCE_${e.guard.toUpperCase()}RC" != 0 && -f "${e.rcPath}" ]]; then source "${e.rcPath}"; fi\n`;try{await Promise.all([le(e),fe(t,ue("~/.bashrc")),fe(t,ue("~/.profile"))])}catch(n){h(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${n}`)}}),{promise:!0});var Nl,Ll;const Al=t(function(){if(Ll)return Nl;Ll=1;const e=Rr,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return Nl=function(e){return t?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&Number(t)>=17134.1184)(...r.exec(n).splice(1))?e:e.replace(/(\s+)/g,"%20")}}());var $l,Dl,kl,Ul,jl,Fl={exports:{}};const Ml=t((kl||(kl=1,Ul=function(){if(Dl)return $l;Dl=1;var e=/[|\\{}()[\]^$+*?.]/g;return $l=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),jl=function(e){return e.split("").reverse().join("")},Fl.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+Ul(t)+"])(?!"+Ul(n)+")","g"),jl(jl(e).replace(r,"$1"+n)))}),Fl.exports)),{GITHUB_ACTIONS:Bl}=Yi,{appendFile:Gl}=Ir.promises,{GITHUB_ACTIONS:Vl}=Yi,{appendFile:Hl}=Ir.promises,ql=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var zl,Wl,Xl,Kl={exports:{}};const Yl=t(we());var Jl;const Ql=t((Jl||(Jl=1,ve().addLocale("en",(function(e){var t=Math.floor(Math.abs(e)),n=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===n?"one":"other"}))),{}));var Zl,ef,tf,nf,rf,of={exports:{}};const sf=t(rf?nf:(rf=1,nf=function(){function e(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:n}=t;s[e]=n}}function t(e,t,r){const i=function(e){const t=s[e.locale];let n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),n=Array.from(new Set(n));let r=null;if(n.some((function(e){if(void 0!==t[e])return r=t[e],!0})),null===r)throw Error("Can not find any unit type data for locale: "+e.locale);return r}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t)}if(tf)return ef;tf=1;const n=we(),r=Zl?of.exports:(Zl=1,of.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)),i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],o={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},s={};return ef={create:function(n){return n=Object.assign({},o,n||{}),{format:function(o,a,c){return function(n,o,a){if(function(t,n){const{autoload:i}=n;if(!s[t]){if(!r||!i)throw Error(`Missing locale: ${t}, you must load it manually before using it`);!function(t){try{e(ye(`../locales/${t}.js`))}catch(n){throw Error(`Failed to load locale: ${t} from ../locales/${t}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${n}`)}}(t)}}(a.locale,{autoload:a.autoloadLocales}),!n)throw Error("Missing first date argument");if(!o)throw Error("Missing second date argument");const c=function(e,t){let n=t-e;const r=[];return i.some((function(e){const t=e[0],i=e[1],o=Math.floor(n/i);if(n-=o*i,r.push([t,o]),0>=n)return!0})),r}(n,o),u=[];for(const e of c){const[n,r]=e;if(r>0&&u.push(t(n,r,a)),u.length>=a.span)break}return u.join(a.delimiter)}(o,a,c=Object.assign({},n,c||{}))}}},addLocale:e,defaultConfig:o}}()));var af,cf;const uf=t(cf?af:(cf=1,af={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}}));var lf,ff,pf,df,hf,mf,yf,vf,wf,Ef,gf,_f,bf,Sf,Of,Rf,If,Tf,Pf,Cf,xf,Nf,Lf,Af,$f,Df,kf,Uf,jf,Ff,Mf,Bf,Gf,Vf,Hf,qf,zf,Wf,Xf,Kf,Yf,Jf,Qf,Zf,ep,tp,np,rp,ip,op,sp,ap,cp,up,lp,fp,pp,dp,hp,mp,yp,vp,wp,Ep,gp,_p,bp,Sp,Op,Rp,Ip,Tp,Pp,Cp,xp,Np,Lp,Ap,$p,Dp,kp,Up,jp,Fp,Mp,Bp,Gp,Vp,Hp,qp,zp,Wp={exports:{}};const Xp=t(function(){function e(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{a(r.next(e))}catch(t){i(t)}}function s(e){try{a(r.throw(e))}catch(t){i(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,s)}a((r=r.call(e)).next())}))}function t(e,t){function n(n){return function(c){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,n[0]&&(a=0)),a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&o[3]>n[1])){a.label=n[1];break}if(6===n[0]&&o[1]>a.label){a.label=o[1],o=n;break}if(o&&o[2]>a.label){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(c){n=[6,c],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,c])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}if(zp)return qp;zp=1;var n=Dr,r=Ge(),i=Rr,o=Pr,s=Ir,a=xr,c=n.env.npm_package_json,u=n.env.npm_config_user_agent,l=!(!u||!u.startsWith("npm")),f=!(!c||!c.endsWith("package.json")),p=l||f,d=!(!u||!u.startsWith("yarn")),h=p||d,m=i.homedir(),y=process.env.XDG_CONFIG_HOME||o.join(m,".config","simple-update-notifier"),v=function(e){return o.join(y,"".concat(e.replace("@","").replace("/","__"),".json"))},w=function(n,r){return e(void 0,0,void 0,(function(){var e;return t(this,(function(t){return e="https://registry.npmjs.org/-/package/".concat(n,"/dist-tags"),[2,new Promise((function(t,n){a.get(e,(function(e){var i="";e.on("data",(function(e){return i+=e})),e.on("end",(function(){try{var e=JSON.parse(i)[r];e||n(Error("Error getting version")),t(e)}catch(o){n(Error("Could not parse version response"))}}))})).on("error",(function(e){return n(e)}))}))]}))}))},E=function(n){var i=n.pkg,o=n.updateCheckInterval,a=void 0===o?864e5:o,c=n.distTag,u=void 0===c?"latest":c,l=n.alwaysRun,f=n.debug;return e(void 0,0,void 0,(function(){var e,o;return t(this,(function(t){switch(t.label){case 0:return s.existsSync(y)||s.mkdirSync(y,{recursive:!0}),e=function(e){var t=v(e);try{if(!s.existsSync(t))return;return JSON.parse(s.readFileSync(t,"utf8")).lastUpdateCheck}catch(n){return}}(i.name),l||!e||e<(new Date).getTime()-a?[4,w(i.name,u)]:[3,2];case 1:return o=t.sent(),c=v(i.name),s.writeFileSync(c,JSON.stringify({lastUpdateCheck:(new Date).getTime()})),r.gt(o,i.version)?[2,o]:(f&&console.error("Latest version (".concat(o,") not newer than current version (").concat(i.version,")")),[3,3]);case 2:f&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(a,"ms but only ").concat((new Date).getTime()-e,"ms since last check.")),t.label=3;case 3:return[2,!1]}var c}))}))};return qp=function(n){return e(void 0,0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:if(!n.alwaysRun&&(!process.stdout.isTTY||h&&!n.shouldNotifyInNpmScript))return n.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,E(n)];case 2:return(e=t.sent())&&console.error(function(e){for(var t=e.split("\n"),n=Math.max.apply(Math,t.map((function(e){return e.length}))),r=["┌".concat("─".repeat(n+2),"┐")],i=0,o=t;o.length>i;i++)r.push("│ ".concat(o[i].padEnd(n)," │"));return r.push("└".concat("─".repeat(n+2),"┘")),r.join("\n")}("New version of ".concat(n.pkg.name," available!\nCurrent Version: ").concat(n.pkg.version,"\nLatest Version: ").concat(e))),[3,4];case 3:return r=t.sent(),n.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2]}}))}))}}()),Kp={name:"setup-cpp",version:"0.46.0"};var Yp,Jp,Qp,Zp,ed,td,nd,rd,id,od,sd,ad,cd,ud={},ld={},fd={},pd={},dd={},hd={},md={},yd={},vd={},wd={},Ed={},gd={},_d=Xe(),bd={},Sd=(cd||(cd=1,function(e){function t(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(e,"__esModule",{value:!0}),e.DownloaderHelper=e.DH_STATES=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n,r=0;t.length>r;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=t(Ir),s=Fr,a=t(Pr),c=t(Cr),u=t(xr),l=Lr,f=e.DH_STATES={IDLE:"IDLE",SKIPPED:"SKIPPED",STARTED:"STARTED",DOWNLOADING:"DOWNLOADING",RETRY:"RETRY",PAUSED:"PAUSED",RESUMED:"RESUMED",STOPPED:"STOPPED",FINISHED:"FINISHED",FAILED:"FAILED"};e.DownloaderHelper=function(e){function t(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{captureRejections:!0}));return o.__validate(e,r)?(o.url=o.requestURL=e.trim(),o.state=f.IDLE,o.__defaultOpts={body:null,retry:!1,method:"GET",headers:{},fileName:"",timeout:-1,metadata:null,override:!1,forceResume:!1,removeOnStop:!0,removeOnFail:!0,progressThrottle:1e3,httpRequestOptions:{},httpsRequestOptions:{},resumeOnIncomplete:!0,resumeIfFileExists:!1,resumeOnIncompleteMaxRetry:5},o.__opts=Object.assign({},o.__defaultOpts),o.__pipes=[],o.__total=0,o.__downloaded=0,o.__progress=0,o.__retryCount=0,o.__retryTimeout=null,o.__resumeRetryCount=0,o.__states=f,o.__promise=null,o.__request=null,o.__response=null,o.__isAborted=!1,o.__isResumed=!1,o.__isResumable=!1,o.__isRedirected=!1,o.__destFolder=r,o.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0},o.__fileName="",o.__filePath="",o.updateOptions(i),o):n(o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"start",value:function(){var e=this,t=function(){return new Promise((function(t,n){e.__promise={resolve:t,reject:n},e.__start()}))};return this.__opts.resumeIfFileExists&&this.state!==this.__states.RESUMED?this.getTotalSize().then((function(n){var r=n.name,i=n.total,s=e.__opts.override;return e.__opts.override=!0,e.__filePath=e.__getFilePath(r),e.__opts.override=s,e.__filePath&&o.existsSync(e.__filePath)?e.__getFilesizeInBytes(e.__filePath)===i?t():e.resumeFromFile(e.__filePath,{total:i,fileName:r}):t()})):t()}},{key:"pause",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return e.__setState(e.__states.PAUSED),e.emit("pause"),!0})))}},{key:"resume",value:function(){return this.__promise?this.state===this.__states.STOPPED?Promise.resolve(!1):(this.__setState(this.__states.RESUMED),this.__isResumable&&(this.__isResumed=!0,this.__reqOptions.headers.range="bytes="+this.__downloaded+"-"),this.emit("resume",this.__isResumed),this.__start()):this.start()}},{key:"stop",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__requestAbort(),this.__closeFileStream().then((function(){return e.__opts.removeOnStop?new Promise((function(t,n){o.access(e.__filePath,(function(r){return r?(e.__emitStop(),t(!0)):void o.unlink(e.__filePath,(function(r){return r?(e.__setState(e.__states.FAILED),e.emit("error",r),n(r)):(e.__emitStop(),void t(!0))}))}))})):(e.__emitStop(),Promise.resolve(!0))})))}},{key:"pipe",value:function(e){return this.__pipes.push({stream:e,options:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}),e}},{key:"unpipe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=function(t){return e.__response?e.__response.unpipe(t):t.unpipe()};t?this.__pipes.find((function(e){return e.stream===t}))&&(n(t),this.__pipes=this.__pipes.filter((function(e){return e.stream!==t}))):(this.__pipes.forEach((function(e){return n(e.stream)})),this.__pipes=[])}},{key:"getDownloadPath",value:function(){return this.__filePath}},{key:"isResumable",value:function(){return this.__isResumable}},{key:"updateOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.__opts=Object.assign({},this.__opts,e),this.__headers=this.__opts.headers,this.__opts.timeout>-1&&(this.__opts.httpRequestOptions.timeout=this.__opts.timeout,this.__opts.httpsRequestOptions.timeout=this.__opts.timeout),("number"!=typeof this.__opts.progressThrottle||0>this.__opts.progressThrottle)&&(this.__opts.progressThrottle=this.__defaultOpts.progressThrottle),this.url=t||this.url,this.__reqOptions=this.__getReqOptions(this.__opts.method,this.url,this.__opts.headers),this.__initProtocol(this.url)}},{key:"getOptions",value:function(){return this.__opts}},{key:"getMetadata",value:function(){return this.__opts.metadata}},{key:"getStats",value:function(){return{total:this.__total,name:this.__fileName,downloaded:this.__downloaded,progress:this.__progress,speed:this.__statsEstimate.bytes}}},{key:"getTotalSize",value:function(){var e=this;return new Promise((function(t,n){var r=function(t){e.__initProtocol(t);var n=Object.assign({},e.__headers);n.hasOwnProperty("range")&&delete n.range;var r=e.__getReqOptions("HEAD",t,n);return Object.assign({},e.__reqOptions,r)},i=function(o,a){var c=e.__protocol.request(a,(function(a){if(e.__isRequireRedirect(a)){var c=/^https?:\/\//.test(a.headers.location)?a.headers.location:new s.URL(a.headers.location,o).href;return e.emit("redirected",c,o),i(c,r(c))}return 200===a.statusCode?void t({name:e.__getFileNameFromHeaders(a.headers,a),total:parseInt(a.headers["content-length"])||null}):n(Error("Response status was "+a.statusCode))}));c.on("error",(function(e){return n(e)})),c.on("timeout",(function(){return n(Error("timeout"))})),c.on("uncaughtException",(function(e){return n(e)})),c.end()};i(e.url,r(e.url))}))}},{key:"getResumeState",value:function(){return{downloaded:this.__downloaded,filePath:this.__filePath,fileName:this.__fileName,total:this.__total}}},{key:"resumeFromFile",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.__opts.override=!0,this.__filePath=e,(n.total&&n.fileName?Promise.resolve({name:n.fileName,total:n.total}):this.getTotalSize()).then((function(e){var r=e.name;return t.__total=n.total||e.total,t.__fileName=n.fileName||r,t.__downloaded=n.downloaded||t.__getFilesizeInBytes(t.__filePath),t.__reqOptions.headers.range="bytes="+t.__downloaded+"-",t.__isResumed=!0,t.__isResumable=!0,t.__setState(t.__states.RESUMED),t.emit("resume",t.__isResumed),new Promise((function(e,n){t.__promise={resolve:e,reject:n},t.__start()}))}))}},{key:"__start",value:function(){this.__isRedirected||this.state===this.__states.RESUMED||(this.emit("start"),this.__setState(this.__states.STARTED),this.__initProtocol(this.url)),this.__response=null,this.__isAborted=!1,this.__request&&!this.__request.destroyed&&this.__request.destroy(),this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__request=this.__downloadRequest(this.__promise.resolve,this.__promise.reject),this.__request.on("error",this.__onError(this.__promise.resolve,this.__promise.reject)),this.__request.on("timeout",this.__onTimeout(this.__promise.resolve,this.__promise.reject)),this.__request.on("uncaughtException",this.__onError(this.__promise.resolve,this.__promise.reject,!0)),this.__opts.body&&this.__request.write(this.__opts.body),this.__request.end()}},{key:"__resolvePending",value:function(){if(this.__promise){var e=this.__promise.resolve;return this.__promise=null,e(!0)}}},{key:"__downloadRequest",value:function(e,t){var n=this;return this.__protocol.request(this.__reqOptions,(function(r){if(n.__response=r,n.__isResumed||(n.__total=parseInt(r.headers["content-length"])||null,n.__resetStats()),n.__isRequireRedirect(r)){var i=/^https?:\/\//.test(r.headers.location)?r.headers.location:new s.URL(r.headers.location,n.url).href;return n.__isRedirected=!0,n.__initProtocol(i),n.emit("redirected",i,n.url),n.__start()}if(200!==r.statusCode&&206!==r.statusCode){var o=Error("Response status was "+r.statusCode);return o.status=r.statusCode||0,o.body=r.body||"",n.__setState(n.__states.FAILED),n.emit("error",o),t(o)}(n.__opts.forceResume||r.headers.hasOwnProperty("accept-ranges")&&"none"!==r.headers["accept-ranges"])&&(n.__isResumable=!0),n.__startDownload(r,e,t)}))}},{key:"__startDownload",value:function(e,t,n){var i=this,s=e;if(this.__isResumed)this.__fileStream=o.createWriteStream(this.__filePath,{flags:"a"});else{var c=this.__getFileNameFromHeaders(e.headers);if(this.__filePath=this.__getFilePath(c),this.__fileName=this.__filePath.split(a.sep).pop(),o.existsSync(this.__filePath)){var u=this.__getFilesizeInBytes(this.__filePath),l=this.__total?this.__total:0;if("object"===r(this.__opts.override)&&this.__opts.override.skip&&(this.__opts.override.skipSmaller||u>=l))return this.emit("skip",{totalSize:this.__total,fileName:this.__fileName,filePath:this.__filePath,downloadedSize:u}),this.__setState(this.__states.SKIPPED),t(!0)}this.__fileStream=o.createWriteStream(this.__filePath,{})}this.emit("download",{fileName:this.__fileName,filePath:this.__filePath,totalSize:this.__total,isResumed:this.__isResumed,downloadedSize:this.__downloaded}),this.__retryCount=0,this.__isResumed=!1,this.__isRedirected=!1,this.__setState(this.__states.DOWNLOADING),this.__statsEstimate.time=new Date,this.__statsEstimate.throttleTime=new Date,s.on("data",(function(e){return i.__calculateStats(e.length)})),this.__pipes.forEach((function(e){s.pipe(e.stream,e.options),s=e.stream})),s.pipe(this.__fileStream),s.on("error",this.__onError(t,n)),this.__fileStream.on("finish",this.__onFinished(t,n)),this.__fileStream.on("error",this.__onError(t,n))}},{key:"__hasFinished",value:function(){return!this.__isAborted&&-1===[this.__states.PAUSED,this.__states.STOPPED,this.__states.RETRY,this.__states.FAILED,this.__states.RESUMED].indexOf(this.state)}},{key:"__isRequireRedirect",value:function(e){return e.statusCode>300&&400>e.statusCode&&e.headers.hasOwnProperty("location")&&e.headers.location}},{key:"__onFinished",value:function(e,t){var n=this;return function(){n.__fileStream.close((function(r){if(r)return t(r);if(n.__hasFinished()){var i=!!n.__total&&n.__downloaded!==n.__total;if(i&&n.__isResumable&&n.__opts.resumeOnIncomplete&&n.__opts.resumeOnIncompleteMaxRetry>=n.__resumeRetryCount)return n.__resumeRetryCount++,n.emit("warning",Error("uncomplete download, retrying")),n.resume();n.__setState(n.__states.FINISHED),n.__pipes=[],n.emit("end",{fileName:n.__fileName,filePath:n.__filePath,totalSize:n.__total,incomplete:i,onDiskSize:n.__getFilesizeInBytes(n.__filePath),downloadedSize:n.__downloaded})}return e(n.__downloaded===n.__total)}))}}},{key:"__closeFileStream",value:function(){var e=this;return this.__fileStream?new Promise((function(t,n){e.__fileStream.close((function(e){return e?n(e):t(!0)}))})):Promise.resolve(!0)}},{key:"__onError",value:function(e,t){var n=this,r=!(2>=arguments.length||void 0===arguments[2])&&arguments[2];return function(e){return n.__pipes=[],r&&n.__requestAbort(),n.state===n.__states.STOPPED||n.state===n.__states.FAILED?void 0:n.__opts.retry?n.__retry(e).catch((function(r){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",r||e),t(r||e)}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",e),t(e)}))}}},{key:"__retry",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.__opts.retry||"object"!==r(this.__opts.retry))return Promise.reject(t||Error("wrong retry options"));var n=this.__opts.retry,i=n.delay,o=void 0===i?0:i,s=n.maxRetries;return(void 0===s?999:s)>this.__retryCount?(this.__retryCount++,this.__setState(this.__states.RETRY),this.emit("retry",this.__retryCount,this.__opts.retry,t),this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return new Promise((function(t){return e.__retryTimeout=setTimeout((function(){return t(e.__downloaded>0?e.resume():e.__start())}),o)}))}))):Promise.reject(t||Error("reached the maximum retries"))}},{key:"__onTimeout",value:function(e,t){var n=this;return function(){return n.__requestAbort(),n.__opts.retry?n.__retry(Error("timeout")).catch((function(e){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),e?t(e):(n.emit("timeout"),t(Error("timeout")))}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("timeout"),t(Error("timeout"))}))}}},{key:"__resetStats",value:function(){this.__retryCount=0,this.__downloaded=0,this.__progress=0,this.__resumeRetryCount=0,this.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0}}},{key:"__getFileNameFromHeaders",value:function(e,t){var n="",r=e.hasOwnProperty("content-disposition"),i=r?e["content-disposition"].match(/.*filename\*=.*?'.*?'([^"].+?[^"])(?:(?:;)|$)/i):null,o=!r||i?null:e["content-disposition"].match(/.*filename="(.*?)";?/i),c=!r||i||o?null:e["content-disposition"].match(/.*filename=([^"].+?[^"])(?:(?:;)|$)/i);return r&&(i||o||c)?(n=(n=e["content-disposition"]).trim(),i?n=i[1]:o?n=o[1]:c&&(n=c[1]),n=n.replace(/[/\\]/g,"")):n=a.basename(new s.URL(this.requestURL).pathname).length>0?a.basename(new s.URL(this.requestURL).pathname):new s.URL(this.requestURL).hostname+".html",this.__opts.fileName?this.__getFileNameFromOpts(n,t):n.replace(/\.*$/,"")}},{key:"__getFilePath",value:function(e){var t=a.join(this.__destFolder,e),n=t;return this.__opts.override||this.state===this.__states.RESUMED||t!==(n=this.__uniqFileNameSync(n))&&this.emit("renamed",{path:n,fileName:n.split(a.sep).pop(),prevPath:t,prevFileName:t.split(a.sep).pop()}),n}},{key:"__getFileNameFromOpts",value:function(e,t){if(!this.__opts.fileName)return e;if("string"==typeof this.__opts.fileName)return this.__opts.fileName;if("function"==typeof this.__opts.fileName){var n=a.join(this.__destFolder,e);return t&&t.headers||this.__response&&this.__response.headers?this.__opts.fileName(e,n,(t||this.__response).headers["content-type"]):this.__opts.fileName(e,n)}if("object"===r(this.__opts.fileName)){var i=this.__opts.fileName,o=i.name,s=!!i.hasOwnProperty("ext")&&i.ext;if("string"==typeof s)return o+"."+s;if("boolean"==typeof s){if(s)return o;var c=e.includes(".")?e.split(".").pop():"";return""===c?o:o+"."+c}}return e}},{key:"__calculateStats",value:function(e){var t=new Date,n=t-this.__statsEstimate.time,r=t-this.__statsEstimate.throttleTime,i=this.__total||0;e&&(this.__downloaded+=e,this.__progress=0===i?0:this.__downloaded/i*100,(this.__downloaded===i||n>1e3)&&(this.__statsEstimate.time=t,this.__statsEstimate.bytes=this.__downloaded-this.__statsEstimate.prevBytes,this.__statsEstimate.prevBytes=this.__downloaded),(this.__downloaded===i||r>this.__opts.progressThrottle)&&(this.__statsEstimate.throttleTime=t,this.emit("progress.throttled",this.getStats())),this.emit("progress",this.getStats()))}},{key:"__setState",value:function(e){this.state=e,this.emit("stateChanged",this.state)}},{key:"__getReqOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new s.URL(t),i={protocol:r.protocol,host:r.hostname,port:r.port,path:r.pathname+r.search,method:e};return n&&(i.headers=n),i}},{key:"__getFilesizeInBytes",value:function(e){try{return o.statSync(e,{throwIfNoEntry:!1}).size||0}catch(t){this.emit("warning",t)}return 0}},{key:"__validate",value:function(e,t){if("string"!=typeof e)throw Error("URL should be an string");if(""===e.trim())throw Error("URL couldn't be empty");if("string"!=typeof t)throw Error("Destination Folder should be an string");if(""===t.trim())throw Error("Destination Folder couldn't be empty");if(!o.existsSync(t))throw Error("Destination Folder must exist");if(!o.statSync(t).isDirectory())throw Error("Destination Folder must be a directory");try{o.accessSync(t,o.constants.W_OK)}catch(n){throw Error("Destination Folder must be writable")}return!0}},{key:"__initProtocol",value:function(e){var t=this.__getReqOptions(this.__opts.method,e,this.__headers);this.requestURL=e,e.indexOf("https://")>-1?(this.__protocol=u,t.agent=new u.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpsRequestOptions)):(this.__protocol=c,t.agent=new c.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpRequestOptions))}},{key:"__uniqFileNameSync",value:function(e){if("string"!=typeof e||""===e)return e;try{o.accessSync(e,o.F_OK);var t=e.match(/(.*)(\([0-9]+\))(\..*)$/),n=t?t[1].trim():e,r=t?parseInt(t[2].replace(/\(|\)/,"")):0,i=e.split(".").pop();return i!==e&&i.length>0?n=n.replace(i="."+i,""):i="",this.__uniqFileNameSync(n+" ("+ ++r+")"+i)}catch(s){return e}}},{key:"__removeFile",value:function(){var e=this;return new Promise((function(t){return e.__fileStream?void e.__fileStream.close((function(n){return n&&e.emit("warning",n),e.__opts.removeOnFail?o.access(e.__filePath,(function(r){return r?t():void o.unlink(e.__filePath,(function(r){r&&e.emit("warning",n),t()}))})):void t()})):t()}))}},{key:"__requestAbort",value:function(){this.__isAborted=!0,this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__response&&this.__response.destroy(),this.__request&&(this.__request.destroy?this.__request.destroy():this.__request.abort())}},{key:"__emitStop",value:function(){this.__resolvePending(),this.__setState(this.__states.STOPPED),this.emit("stop")}}]),t}(l.EventEmitter)}(bd)),bd);const{GITHUB_ACTIONS:Od}=Yi,{appendFile:Rd}=Ir.promises,Id="Dpkg::Lock::Timeout=300";let Td=!1;const Pd=Ol((function(e=et()){N(e,"nala"!==e?["update","-y","-o",Id]:["update","-o",Id],{...ma,env:Qe(e)}),Td=!0}));var Cd,xd;(xd=Cd||(Cd={}))[xd.NameDashVersion=0]="NameDashVersion",xd[xd.NameEqualsVersion=1]="NameEqualsVersion",xd[xd.Name=2]="Name",xd[xd.None=3]="None";const Nd=Ol((async function(e){Pd(e);const t=await rt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&N(e,["install","-y","--fix-broken","-o",Id,...t],{...ma,env:Qe(e)})}),{promise:!0}),Ld=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"],Ad="/etc/apt/trusted.gpg.d",$d="keyserver.ubuntu.com";let Dd,kd,Ud,jd,Fd,Md=!1,Bd=!1,Gd=!1,Vd=!1;const Hd=/Version\s*:\s*(.*)/g;let qd=!1;var zd,Wd;const Xd=t(function(){if(Wd)return zd;Wd=1;var e=Pr;return zd=function(t,n){if("string"!=typeof t)return t;if(0===t.length)return t;var r,i=e.basename(t,e.extname(t))+n,o=e.join(e.dirname(t),i);return(r=t.slice(0,2))==="."+e.sep||"./"===r?"."+e.sep+o:o}}());var Kd={},Yd={};bt(Yd,"name",(()=>St));var Jd={};bt(Jd,"normalizeTrim",(()=>Ot));var Qd={};bt(Qd,"addExeExt",(()=>Rt));var Zd={};bt(Zd,"addNamePrefix",(()=>It));var eh={};bt(eh,"addNameSuffix",(()=>Tt));var th={};bt(th,"addShExt",(()=>Pt));var nh={};bt(nh,"addShRelativePrefix",(()=>Ct));var rh={};bt(rh,"removeExt",(()=>xt));var ih={};bt(ih,"replaceExt",(()=>Nt));var oh={};bt(oh,"isPathInside",(()=>Lt)),_t(Kd,Yd),_t(Kd,Jd),_t(Kd,Qd),_t(Kd,Zd),_t(Kd,eh),_t(Kd,th),_t(Kd,nh),_t(Kd,rh),_t(Kd,ih),_t(Kd,oh);const sh=t(Ue()),ah=t(De()),ch=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],uh=["x86","i386","ia32","win32","32","x32"],lh=["aarch64","arm64","woa64","arm"],fh=["armv7","armv7a"],ph=["powerpc64le","ppc64le"],dh=["sparc64"],hh=["sparcv9"];var mh,yh,vh,wh,Eh,gh,_h,bh,Sh,Oh,Rh,Ih={},Th={exports:{}},Ph={exports:{}},Ch=Th.exports,xh={},Nh=function(){function e(e,t){const n=[];t=t||w.arch();const r=E.join(s(),e);if(y.existsSync(r)){const e=y.readdirSync(r);for(const o of e)if(i(o)){const e=E.join(r,o,t||"");y.existsSync(e)&&y.existsSync(e+".complete")&&n.push(o)}}return n}function t(e){return p(this,void 0,void 0,(function*(){return e||(e=E.join(a(),R.default())),yield m.mkdirP(e),e}))}function n(e,t,n){return p(this,void 0,void 0,(function*(){const r=E.join(s(),e,_.clean(t)||t,n||"");h.debug("destination "+r);const i=r+".complete";return yield m.rmRF(r),yield m.rmRF(i),yield m.mkdirP(r),r}))}function r(e,t,n){const r=E.join(s(),e,_.clean(t)||t,n||"");y.writeFileSync(r+".complete",""),h.debug("finished caching tool")}function i(e){const t=_.clean(e)||"";h.debug("isExplicit: "+t);const n=null!=_.valid(t);return h.debug("explicit? "+n),n}function o(e,t){let n="";h.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort(((e,t)=>_.gt(e,t)?1:-1))).length-1;r>=0;r--){const i=e[r];if(_.satisfies(i,t)){n=i;break}}return h.debug(n?"matched: "+n:"match not found"),n}function s(){const e=process.env.RUNNER_TOOL_CACHE||"";return O.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return O.ok(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=Xr[e];return void 0!==n?n:t}if(Oh)return Ih;Oh=1;var u=Ih.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=Ih.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=Ih.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&u(t,e,n);return l(t,e),t},p=Ih.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},d=Ih.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.evaluateVersions=Ih.isExplicitVersion=Ih.findFromManifest=Ih.getManifestFromRepo=Ih.findAllVersions=Ih.find=Ih.cacheFile=Ih.cacheDir=Ih.extractZip=Ih.extractXar=Ih.extractTar=Ih.extract7z=Ih.downloadTool=Ih.HTTPError=void 0;const h=f(Xe()),m=f(ze()),y=f(Ir),v=f((yh||(yh=1,function(e,t){var n=Ch&&Ch.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=Ch&&Ch.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Ch&&Ch.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},o=Ch&&Ch.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const s=i(At()),a=Xe(),c=Rr,u=kr,l=Ir;t._findMatch=function(t,n,r,i){return o(this,void 0,void 0,(function*(){const o=c.platform();let u,l,f;for(const c of r){const r=c.version;if(a.debug(`check ${r} satisfies ${t}`),s.satisfies(r,t)&&(!n||c.stable===n)&&(f=c.files.find((t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${o}`);let n=t.arch===i&&t.platform===o;if(n&&t.platform_version){const r=e.exports._getOsVersion();n=r===t.platform_version||s.satisfies(r,t.platform_version)}return n})),f)){a.debug("matched "+c.version),l=c;break}}return l&&f&&(u=Object.assign({},l),u.files=[f]),u}))},t._getOsVersion=function(){const t=c.platform();let n="";if("darwin"===t)n=""+u.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){n=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return n},t._readLinuxVersionFile=function(){const e="/etc/lsb-release",t="/etc/os-release";let n="";return l.existsSync(e)?n=""+l.readFileSync(e):l.existsSync(t)&&(n=""+l.readFileSync(t)),n}}(Th,Th.exports)),Th.exports)),w=f(Rr),E=f(Pr),g=f(Ui),_=f(At()),b=f(jr),S=f(Ar),O=Ur,R=d(function(){if(bh)return _h;bh=1;var e=function(){if(wh)return vh;wh=1;var e=Tr;return vh=function(){return e.randomBytes(16)}}(),t=function(){if(gh)return Eh;gh=1;for(var e=[],t=0;256>t;++t)e[t]=(t+256).toString(16).substr(1);return Eh=function(t,n){var r=n||0;return""+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]}}();return _h=function(n,r,i){var o=r&&i||0;"string"==typeof n&&(r="binary"===n?Array(16):null,n=null);var s=(n=n||{}).random||(n.rng||e)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,r)for(var a=0;16>a;++a)r[o+a]=s[a];return r||t(s)}}()),I=We(),T=function(){if(Sh)return xh;Sh=1;var e=xh.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=xh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=xh.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=xh.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(xh,"__esModule",{value:!0}),xh.RetryHelper=void 0;const i=n(Xe());return xh.RetryHelper=class{constructor(e,t,n){if(1>e)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(e,t){return r(this,void 0,void 0,(function*(){let n=1;for(;this.maxAttempts>n;){try{return yield e()}catch(r){if(t&&!t(r))throw r;i.info(r.message)}const o=this.getSleepAmount();i.info(`Waiting ${o} seconds before trying again`),yield this.sleep(o),n++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return r(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}},xh}();class P extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}Ih.HTTPError=P;const C="win32"===process.platform,x="darwin"===process.platform;return Ih.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||E.join(a(),R.default()),yield m.mkdirP(E.dirname(t)),h.debug("Downloading "+e),h.debug("Destination "+t);const i=c("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=c("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new T.RetryHelper(3,i,o);return yield s.execute((()=>p(this,void 0,void 0,(function*(){return yield function(e,t,n,r){return p(this,void 0,void 0,(function*(){if(y.existsSync(t))throw Error(`Destination file path ${t} already exists`);const i=new g.HttpClient("actions/tool-cache",[],{allowRetries:!1});n&&(h.debug("set auth"),void 0===r&&(r={}),r.authorization=n);const o=yield i.get(e,r);if(200!==o.message.statusCode){const t=new P(o.message.statusCode);throw h.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}const s=S.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message))();let u=!1;try{return yield s(a,y.createWriteStream(t)),h.debug("download complete"),u=!0,t}finally{if(!u){h.debug("download failed");try{yield m.rmRF(t)}catch(l){h.debug(`Failed to delete '${t}'. ${l.message}`)}}}}))}(e,t||"",n,r)}))),(e=>!(e instanceof P&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},Ih.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){O.ok(C,"extract7z() not supported on current OS"),O.ok(e,'parameter "file" is required'),n=yield t(n);const i=process.cwd();if(process.chdir(n),r)try{const t=["x",h.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield I.exec(`"${r}"`,t,n)}finally{process.chdir(i)}else{const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${E.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],r={silent:!0};try{const e=yield m.which("powershell",!0);yield I.exec(`"${e}"`,t,r)}finally{process.chdir(i)}}return n}))},Ih.extractTar=function(e,n,r="xz"){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");n=yield t(n),h.debug("Checking tar --version");let i="";yield I.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=""+e,stderr:e=>i+=""+e}}),h.debug(i.trim());const o=i.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],h.isDebug()&&!r.includes("v")&&s.push("-v");let a=n,c=e;return C&&o&&(s.push("--force-local"),a=n.replace(/\\/g,"/"),c=e.replace(/\\/g,"/")),o&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",a,"-f",c),yield I.exec("tar",s),n}))},Ih.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let i;O.ok(x,"extractXar() not supported on current OS"),O.ok(e,'parameter "file" is required'),n=yield t(n),i=r instanceof Array?r:[r],i.push("-x","-C",n,"-f",e),h.isDebug()&&i.push("-v");const o=yield m.which("xar",!0);var s;return yield I.exec(`"${o}"`,(s=i,Array.from(new Set(s)))),n}))},Ih.extractZip=function(e,n){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return n=yield t(n),C?yield function(e,t){return p(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield m.which("pwsh",!1);if(i){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(" ")];h.debug("Using pwsh at path: "+i),yield I.exec(`"${i}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`].join(" ")],t=yield m.which("powershell",!0);h.debug("Using powershell at path: "+t),yield I.exec(`"${t}"`,e)}}))}(e,n):yield function(e,t){return p(this,void 0,void 0,(function*(){const n=yield m.which("unzip",!0),r=[e];h.isDebug()||r.unshift("-q"),r.unshift("-o"),yield I.exec(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},Ih.cacheDir=function(e,t,i,o){return p(this,void 0,void 0,(function*(){if(i=_.clean(i)||i,o=o||w.arch(),h.debug(`Caching tool ${t} ${i} ${o}`),h.debug("source dir: "+e),!y.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,i,o);for(const t of y.readdirSync(e)){const n=E.join(e,t);yield m.cp(n,s,{recursive:!0})}return r(t,i,o),s}))},Ih.cacheFile=function(e,t,i,o,s){return p(this,void 0,void 0,(function*(){if(o=_.clean(o)||o,s=s||w.arch(),h.debug(`Caching tool ${i} ${o} ${s}`),h.debug("source file: "+e),!y.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield n(i,o,s),c=E.join(a,t);return h.debug("destination file "+c),yield m.cp(e,c),r(i,o,s),a}))},Ih.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||w.arch(),i(n)||(n=o(e(t,r),n));let a="";if(n){n=_.clean(n)||"";const e=E.join(s(),t,n,r);h.debug("checking cache: "+e),y.existsSync(e)&&y.existsSync(e+".complete")?(h.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):h.debug("not found")}return a},Ih.findAllVersions=e,Ih.getManifestFromRepo=function(e,t,n,r="master"){return p(this,void 0,void 0,(function*(){let i=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${r}`,s=new g.HttpClient("tool-cache"),a={};n&&(h.debug("set auth"),a.authorization=n);const c=yield s.getJson(o,a);if(!c.result)return i;let u="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){u=e.url;break}a.accept="application/vnd.github.VERSION.raw";let l=yield(yield s.get(u,a)).readBody();if(l){l=l.replace(/^\uFEFF/,"");try{i=JSON.parse(l)}catch(f){h.debug("Invalid json")}}return i}))},Ih.findFromManifest=function(e,t,n,r=w.arch()){return p(this,void 0,void 0,(function*(){return yield v._findMatch(e,t,n,r)}))},Ih.isExplicitVersion=i,Ih.evaluateVersions=o,Ih}(),Lh={};const Ah=t(function(){function e(n,r){if(!n||!r)throw Error("retry-as-promised must be passed a callback and a options set");const i={$current:"$current"in(r="number"==typeof r?{max:r}:r)?r.$current:1,max:r.max,timeout:r.timeout||void 0,match:r.match?Array.isArray(r.match)?r.match:[r.match]:[],backoffBase:void 0===r.backoffBase?100:r.backoffBase,backoffExponent:r.backoffExponent||1.1,report:r.report,name:r.name||n.name||"unknown"};return i.match&&!Array.isArray(i.match)&&(i.match=[i.match]),i.report&&i.report("Trying "+i.name+" #"+i.$current+" at "+(new Date).toLocaleTimeString(),i),new Promise((function(r,o){let s,a,c;i.timeout&&(s=setTimeout((function(){a&&clearTimeout(a),o(new t(i.name+" timed out",c))}),i.timeout)),Promise.resolve(n({current:i.$current})).then(r).then((function(){s&&clearTimeout(s),a&&clearTimeout(a)})).catch((function(t){s&&clearTimeout(s),a&&clearTimeout(a),c=t,i.report&&i.report(t&&""+t||t,i,t);var u=i.max>i.$current;if(!u)return o(t);if(u=0===i.match.length||i.match.some((function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0}catch(n){return!!e(t)}return e===""+t||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(""+t))}(e,t)})),!u)return o(t);var l=i.backoffBase*Math.pow(i.backoffExponent,i.$current-1);i.$current++,i.report&&i.report(`Retrying ${i.name} (${i.$current})`,i),l?(i.report&&i.report(`Delaying retry of ${i.name} by ${l}`,i),a=setTimeout((function(){e(n,i).then(r).catch(o)}),l)):e(n,i).then(r).catch(o)}))}))}if(Rh)return Lh;Rh=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.retryAsPromised=Lh.TimeoutError=void 0;class t extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return Lh.TimeoutError=t,Lh.retryAsPromised=e,Lh.default=e,Lh}());var $h,Dh,kh,Uh,jh,Fh,Mh,Bh,Gh,Vh,Hh,qh,zh,Wh,Xh,Kh,Yh,Jh,Qh,Zh,em,tm,nm,rm,im,om,sm,am,cm,um,lm,fm,pm,dm,hm,mm,ym,vm,wm,Em,gm,_m,bm,Sm,Om,Rm,Im,Tm,Pm,Cm,xm,Nm,Lm,Am,$m,Dm,km,Um,jm,Fm,Mm,Bm,Gm,Vm,Hm={},qm={},zm={},Wm={},Xm=ln();let Km;const{GITHUB_ACTIONS:Ym}=Zr,Jm=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||Ir.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise(((r,i)=>t.mkdir(e,n,((e,t)=>e?i(e):r(t))))),e.stat=e.stat||n.stat||Ir.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise(((n,r)=>t.stat(e,((e,t)=>e?r(e):n(t))))),e.statSync=e.statSync||n.statSync||Ir.statSync,e.mkdirSync=e.mkdirSync||n.mkdirSync||Ir.mkdirSync,t},Qm=(e,t,n)=>{const r=Pr.dirname(e),i={...Jm(t),recursive:!1};if(r===e)try{return i.mkdirSync(e,i)}catch(o){if(o&&"EISDIR"!==o.code)throw o;return}try{return i.mkdirSync(e,i),n||e}catch(o){const t=o;if(t&&"ENOENT"===t.code)return Qm(e,i,Qm(r,i,n));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw o;try{if(!i.statSync(e).isDirectory())throw o}catch(s){throw o}}},Zm=Object.assign((async(e,t,n)=>{const r=Jm(t);r.recursive=!1;const i=Pr.dirname(e);return i===e?r.mkdirAsync(e,r).catch((e=>{if(e&&"EISDIR"!==e.code)throw e})):r.mkdirAsync(e,r).then((()=>n||e),(async t=>{const o=t;if(o&&"ENOENT"===o.code)return Zm(i,r).then((t=>Zm(e,r,t)));if(o&&"EEXIST"!==o.code&&"EROFS"!==o.code)throw t;return r.statAsync(e).then((e=>{if(e.isDirectory())return n;throw t}),(()=>{throw t}))}))}),{sync:Qm}),ey=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?ey(e,Pr.dirname(t),t):void 0))},ty=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?ty(e,Pr.dirname(t),t):void 0}},ny=(e,t)=>{const n=Jm(t);if(n.recursive=!0,Pr.dirname(e)===e)return n.mkdirSync(e,n);const r=ty(n,e);try{return n.mkdirSync(e,n),r}catch(i){if(i&&"ENOENT"===i.code)return Qm(e,n);throw i}},ry=Object.assign((async(e,t)=>{const n={...Jm(t),recursive:!0};return Pr.dirname(e)===e?await n.mkdirAsync(e,n):ey(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return Zm(e,n);throw t}))))}),{sync:ny}),iy=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,oy=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=Pr.resolve(e),"win32"===iy){const t=/[*|"<>?:]/,{root:n}=Pr.parse(e);if(t.test(e.substring(n.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("."),ay=+sy[0]>10||10==+sy[0]&&+sy[1]>=12,cy=ay?e=>Jm(e).mkdirSync===Ir.mkdirSync:()=>!1,uy=Object.assign(ay?e=>Jm(e).mkdir===Ir.mkdir:()=>!1,{sync:cy}),ly=(e,t)=>{e=oy(e);const n=Jm(t);return cy(n)?ny(e,n):Qm(e,n)},fy=Object.assign((async(e,t)=>{e=oy(e);const n=Jm(t);return uy(n)?ry(e,n):Zm(e,n)}),{mkdirpSync:ly,mkdirpNative:ry,mkdirpNativeSync:ny,mkdirpManual:Zm,mkdirpManualSync:Qm,sync:ly,native:ry,nativeSync:ny,manual:Zm,manualSync:Qm,useNative:uy,useNativeSync:cy});var py=We();const dy=t(Pe()),hy=t(Me()),my=t(Ie()),yy=/v?(\d\S*)/,vy=Ol((function(){const e="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),t=Pr.join(e,"versions.json");return JSON.parse(Ir.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:wy}=Zr,Ey=Ol((async function(e){const t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");const n=(await py.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push(Pr.join(n,"Scripts"),Pr.join(n,"Scripts","bin"),Pr.join(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0});var gy,_y={},by=function(){if(gy)return _y;gy=1,Object.defineProperty(_y,"__esModule",{value:!0}),_y.getUbuntuVersion=void 0;const e=kr;return _y.getUbuntuVersion=async function(){if("linux"!==process.platform)return[];const t=await(n="lsb_release",r=["-a"],new Promise(((t,i)=>{e.execFile(n,r,{encoding:"utf8",shell:!1},((e,o,s)=>{if(e)return"errno"in e&&"ENOENT"===e.code?void t(null):void i(Error(`Could not execute \`${n} ${r.join(" ")}\`: ${e} (stderr=${s})`));t(o)}))})));var n,r;if(null===t)return[];const i=/^Distributor ID:\s*(.+)$/,o=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,s=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let a=null,c=null,u=!1;for(const e of t.split("\n")){const t=e.match(i);if(null!==t){if("Ubuntu"!==t[1])return[];u=!0}const n=e.match(o);n&&(a=n);const r=e.match(s);if(r&&(c=r),u&&a&&c)break}if(!u)return[];for(const e of[a,c])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},_y}();const Sy=Ol((async function(){try{if(yt()){try{null===fa.sync("lsb_release",{nothrow:!0})&&await st([{name:"lsb-release"}])}catch{return Ln()}const e=await by.getUbuntuVersion();return 0===e.length?Ln():e}return null}catch(e){return h(""+e),null}}),{promise:!0}),Oy=Ol((async function(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;const t=ue("~/.local/pipx");if(await ce(t))return t;switch(process.platform){case"win32":e=ue("~/AppData/Local/pipx");break;case"darwin":e=ue("~/Library/Application Support/pipx");break;default:e=ue("~/.local/share/pipx")}return await fy(e),await fy(Pr.join(e,"trash")),await fy(Pr.join(e,"shared")),await fy(Pr.join(e,"venv")),e}),{promise:!0}),Ry=Ol((async function(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;const e=ue("~/.local/bin");return await he(e,lv),await fy(e),e}),{promise:!0});let Iy;const Ty=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"]]]),Py=Ol((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||Rr.release()).split(".")[0]);const[t,n]=Ty.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),Cy=t(Te()),{GITHUB_ACTIONS:xy}=Zr,Ny="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:Ly}=Zr,Ay="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),$y="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),Dy="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href));class ky extends Error{constructor(e){super(e),this.name="TimeoutError"}}class Uy extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const jy=e=>void 0===globalThis.DOMException?new Uy(e):new DOMException(e),Fy=e=>{const t=void 0===e.reason?jy("This operation was aborted."):e.reason;return t instanceof Error?t:jy(t)};var My,By={},Gy=function(){function e(e){return Object.values(h).includes(e)?e:e in h?h[e]:e}function t(e){if(Object.keys(h).includes(e))return e;for(const[t,n]of Object.entries(h))if(n===e)return t;return e}function n(e,t){try{return(""+s.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\"+e}catch(n){o.warning("vswhere failed: "+n)}return null}function r(r){const i=e(r);let s;if(i){const e=i.split(".")[0]+".9";s=`-version "${i},${e}"`}else s="-latest";let c=n("VC\\Auxiliary\\Build\\vcvarsall.bat",s);if(c&&a.existsSync(c))return o.info("Found with vswhere: "+c),c;o.info("Not found with vswhere");const u=r?[t(r)]:d;for(const e of f)for(const t of u)for(const n of p)if(c=`${e}\\Microsoft Visual Studio\\${t}\\${n}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,o.info("Trying standard location: "+c),a.existsSync(c))return o.info("Found standard location: "+c),c;if(o.info("Not found in standard locations"),c=l+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",a.existsSync(c))return o.info("Found VS 2015: "+c),c;throw o.info("Not found in VS 2015 location: "+c),Error("Microsoft Visual Studio not found")}function i(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}if(My)return By;My=1;const o=Xe(),s=kr,a=Ir,c=Pr,u=Dr,l=u.env["ProgramFiles(x86)"],f=[u.env["ProgramFiles(x86)"],u.env.ProgramFiles],p=["Enterprise","Professional","Community","BuildTools"],d=["2022","2019","2017"],h={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};By.vsversion_to_versionnumber=e,By.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return By.findWithVswhere=n,By.findVcvarsall=r,By.setupMSVCDevCmd=function(e,t,n,a,l,f){if("win32"!=u.platform)return void o.info("This is not a Windows virtual environment, bye!");u.env.PATH+=c.delimiter+m;let p={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in p&&(e=p[e.toLowerCase()]);var d=[e];a&&!0===JSON.parse(a)&&d.push("uwp"),t&&d.push(t),n&&d.push("-vcvars_ver="+n),l&&!0===JSON.parse(l)&&d.push("-vcvars_spectre_libs=spectre");const h=`"${r(f)}" ${d.join(" ")}`;o.debug("vcvars command-line: "+h);const y=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),v=y[0].split("\r\n"),w=y[1].split("\r\n"),E=y[2].split("\r\n"),g=w.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(g.length>0)throw Error("invalid parameters\r\n"+g.join("\r\n"));let _={};for(let r of v){const[e,t]=r.split("=");_[e]=t}o.startGroup("Environment variables");for(let r of E){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==_[e]&&(o.info("Setting "+e),i(e)&&(t=t.split(";").filter((function(e,t,n){return n.indexOf(e)===t})).join(";")),o.exportVariable(e,t))}o.endGroup(),o.info("Configured Developer Command Prompt")},By}(),Vy=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(Vy||{});const Hy="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:qy}=Zr,zy="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),Wy=Ol((async function(e,t,n){const[r,i]=await Promise.all([hr(e,t,n),yr()]);return await Ky(n),r}),{promise:!0}),Xy=Ol((async function(e){if(yt())for(const r of["libtinfo5","libtinfo6"])try{await st([{name:r}])}catch(t){try{if("libtinfo5"===r){y(`Failed to install ${r}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${ch.includes(process.arch)?"amd64":lh.includes(process.arch)?"arm64":process.arch}.deb`,t="http://launchpadlibrarian.net/666971015/"+e,n=new Sd.DownloaderHelper(t,Rr.tmpdir(),{fileName:e});n.on("error",(async e=>{y(`Failed to download ${t}: ${e}`),await n.stop()})),await n.start(),N("dpkg",["-i",Pr.join(Rr.tmpdir(),e)])}}catch(n){y(`Failed to install ${r}. Ignoring`)}}else mt()?await gt("ncurses5-compat-libs",void 0,"yay"):ht()&&await Et([{name:"ncurses-compat-libs"}])}),{promise:!0}),Ky=Ol((async function(e){"linux"===process.platform&&await Zn(Sn("gcc",void 0,await Sy()),"",e,40)}),{promise:!0}),{GITHUB_ACTIONS:Yy}=Zr,Jy="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href));let Qy,Zy=!1;const ev={llvm:fr,clang:fr,"clang++":fr},tv={gcc:Zn,"g++":Zn},nv={mingw:Xn},rv={msvc:vr,cl:vr,msbuild:vr,visualstudio:vr},iv={appleclang:ar,applellvm:ar,"apple-clang":ar,"apple-llvm":ar},ov={cmakelang:Fn,"cmake-lint":Fn,"cmake-format":Fn,cmakelint:Fn,cmakeformat:Fn},sv=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],av={nala:async function(e,t,n){if(!yt())return;if("string"==typeof Qy)return{binDir:Qy};const r=fa.sync("nala",{nothrow:!0});if(null!==r)return Qy=Pr.dirname(r),{binDir:Qy};await st([{name:"python3-apt"}]),Qy="/usr/bin";try{const t=await it({name:"nala",version:e});if(void 0!==t)return await st([{name:t}]),{binDir:Qy}}catch(i){y("Failed to install nala: "+i)}try{const e=await it({name:"nala-legacy"});if(void 0!==e)return await st([{name:e}],!0),{binDir:Qy}}catch(i){y("Failed to install nala-legacy: "+i)}return await async function(){const e=new Sd.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh",Rr.tmpdir(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=Pr.join(Rr.tmpdir(),"install-nala.sh"),n=await Hs(t,"utf8");await ea(t,n.replace(/sudo/g,"")),await st([{name:"wget"}]);try{N("bash",[t])}catch(i){d("Failed to install nala via installer: "+i),N("apt",["install","-y","-t","nala","nala"])}}(),{binDir:Qy}},brew:lt,choco:vt,python:In,powershell:_r,pwsh:_r,...ev,...tv,...nv,...rv,...iv,...ov,cmake:gn,ninja:rr,vcpkg:async function(e,t,n){return Zy&&null!==fa.sync("vcpkg",{nothrow:!0})?{binDir:Pr.dirname(fa.sync("vcpkg"))}:("linux"===process.platform&&(mt()?await Promise.all([gt("curl"),gt("zip"),gt("unzip"),gt("tar"),gt("git"),gt("pkg-config")]):ht()?await Et([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):yt()&&await st([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}])),await ce(Pr.join(t,Pt("bootstrap-vcpkg",".bat")))?m(`Vcpkg folder already exists at ${t}. Skipping the clone`):S("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Pr.dirname(t),stdio:"inherit"}),""!==e&&"true"!==e&&(y("Checking out vcpkg version "+e),S("git",["checkout",e],{cwd:t,stdio:"inherit"})),S(Pt(Ct("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await k(t),await he(t,lv),Zy=!0,{binDir:t})},bazel:async function(e,t,n){switch(process.platform){case"win32":return wt("bazelisk",e);case"darwin":return dt("bazelisk",e);case"linux":if(mt())throw Error("installing bazel on Arch linux is not supported yet");if(ht())return await Et([{name:"dnf-plugins-core"}]),N("dnf",["copr","enable","vbatts/bazel"]),Et([{name:"bazel4"}]);if(yt())return N("bash",["-c",`echo "deb [arch=amd64 signed-by=${await at({fileName:"bazel-archive-keyring.gpg",keyUrl:"https://bazel.build/bazel-release.pub.gpg"})}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),st([{name:"bazel",version:e}],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},conan:function(e,t,n){return An("conan",e)},meson:function(e,t,n){return An("meson",e)},gcovr:function(e,t,n){return An("gcovr",e)},opencppcoverage:wr,OpenCppCoverage:wr,ccache:function(e,t,n){switch(process.platform){case"win32":return wt("ccache",e);case"darwin":return dt("ccache",e);case"linux":if(mt())return gt("ccache",e);if(ht())return Et([{name:"ccache",version:e}]);if(yt())return st([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},sccache:function(e,t,n){switch(process.platform){case"win32":return wt("sccache",e);case"linux":case"darwin":return dt("sccache",e);default:throw Error("Unsupported platform")}},doxygen:async function(e,t,n){switch(process.platform){case"win32":{await Ah((()=>wt("doxygen.install",e)),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>y(e)});const t={binDir:await async function(){if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await ce(Pr.join(e,"doxygen.exe")))return await he(e,lv),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await Mn(Sn("graphviz",void 0)),t}case"darwin":{const e=await dt("doxygen",void 0,{formula:!0});return Py()[0]>11&&await Mn(Sn("graphviz",void 0)),e}case"linux":{let i;if(""===e||mt()||ht())if(mt())i=await gt("doxygen",e);else{if(ht())return Et([{name:"doxygen",version:e}]);if(!yt())throw Error("Unsupported linux distributions");i=await st([{name:"doxygen",version:e}])}else{if(!yt())throw Error("Unsupported linux distributions");try{i=await wn("doxygen",e,Gn,t,n);try{await st([{name:"libclang-cpp9"}])}catch(r){y("Failed to download libclang-cpp9 that might be needed for running doxygen. "+r)}}catch(r){m(`Failed to download doxygen binary. ${r}. Falling back to apt-get.`),i=await st([{name:"doxygen"}])}}return await Mn(Sn("graphviz",void 0,await Sy())),i}default:throw Error("Unsupported platform")}},graphviz:Mn,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await wt("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await he(e,lv),e}()};case"darwin":return dt("cppcheck",e);case"linux":if(mt())return gt("cppcheck",e);if(ht())return Et([{name:"ccache",version:e}]);if(yt())return st([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},cpplint:function(e,t,n){return An("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return An("flawfinder",e)},lizard:function(e,t,n){return An("lizard",e)},infer:function(e,t,n){return wn("infer",e,tr,t,n)},"clang-tidy":dr,clangtidy:dr,"clang-format":pr,clangformat:pr,vcvarsall:cr,kcov:async function(e,t,n){if("linux"!==process.platform)return void y("Kcov is not supported on non-linux");const r=e.split("-");let i=function(e){return e.match(/^v/)?e:"v"+e}(r[0]);const o=r[1],s=function(e){return Number.parseInt(e.replace(/^v/,""),10)}(i);let a;return 38===s&&(i="v38"),"binary"!==o||39>s?(a=await wn("kcov",i,or,t,n),a):(a=await wn("kcov",i,ir,t,n),mt()?await gt("binutils"):ht()?await Et([{name:"binutils"}]):yt()&&await st([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return wt("make",e);case"darwin":{await dt("make",e);const t=Pr.join(pt(),"opt/make/libexec/gnubin");return await he(t,lv),{binDir:t}}case"linux":if(mt())return gt("make",e);if(ht())return Et([{name:"make",version:e}]);if(yt())return st([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task:function(e,t,n){return wn("task",e,br,t,n)},sevenzip:fn,"7zip":fn,"7z":fn},cv=Object.keys(av),uv=["compiler","architecture","timeout",...cv],lv={rcPath:ue("~/.cpprc"),guard:"cpp"};(async function(e){var t,n,r;let i=Promise.resolve();Qr.GITHUB_ACTIONS||(i=async function(){try{await Xp({pkg:Kp})}catch(e){h("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const o=function(e){return function(e,t){var n,r,i,o,s,a={_:[]},c=0,u=0,l=0,f=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,d=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=Ke(t.string),t.boolean=Ke(t.boolean),p)for(n in t.alias)for(r=t.alias[n]=Ke(t.alias[n]),c=0;r.length>c;c++)(t.alias[r[c]]=r.concat(n)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(u=(r=t.alias[t.boolean[c]]||[]).length;u-- >0;)t.boolean.push(r[u]);for(c=t.string.length;c-- >0;)for(u=(r=t.alias[t.string[c]]||[]).length;u-- >0;)t.string.push(r[u]);if(h)for(n in t.default)if(o=typeof t.default[n],r=t.alias[n]=t.alias[n]||[],void 0!==t[o])for(t[o].push(n),c=0;r.length>c;c++)t[o].push(r[c]);const m=d?Object.keys(t.alias):[];for(c=0;f>c;c++){if("--"===(i=e[c])){a._=a._.concat(e.slice(++c));break}for(u=0;i.length>u&&45===i.charCodeAt(u);u++);if(0===u)a._.push(i);else if("no-"===i.substring(u,u+3)){if(o=i.substring(u+3),d&&!~m.indexOf(o))return t.unknown(i);a[o]=!1}else{for(l=u+1;i.length>l&&61!==i.charCodeAt(l);l++);for(o=i.substring(u,l),s=i.substring(++l)||c+1===f||45===(""+e[c+1]).charCodeAt(0)||e[++c],r=2===u?[o]:o,l=0;r.length>l;l++){if(o=r[l],d&&!~m.indexOf(o))return t.unknown("-".repeat(u)+o);Ye(a,o,r.length>l+1||s,t)}}}if(h)for(n in t.default)void 0===a[n]&&(a[n]=t.default[n]);if(p)for(n in a)for(r=t.alias[n]||[];r.length>0;)a[r.shift()]=a[n];return a}(e,{string:[...uv,"timeout"],default:Object.fromEntries(uv.map((e=>[e,Sr(e)]))),alias:{h:"help"},boolean:"help"})}(e);o.help&&(y('\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\t the to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n--$tool_name\t pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n'),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --apple-clang, --vcvarsall"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},"analyzer/linter":{tools:"--clang-tidy, --clang-format, --cppcheck, --cpplint, --flawfinder, --lizard, --infer, , --cmakelang, --cmake-lint, --cmake-format"},cache:{tools:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));const s=null!=(t=o.architecture)?t:process.arch,a=null!=(n=process.env.SETUP_CPP_DIR)?n:ue("~"),c=[],u=[],l=sf.create({autoloadLocales:!0});let f,p;sf.addLocale(uf),Yl.addLocale(Ql);const m=await Sy(),v=void 0!==o.compiler?function(e){try{const t=e.split("-"),n=t[0];if(1 in t){const e=t[1];return null===my(e)&&y(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}catch(t){return d(`Failed to parse the compiler info ${e}: ${t}`),{compiler:e,version:void 0}}}(o.compiler):void 0;if(!function(e,t,n){var r,i;const o=void 0!==n&&t.includes(n.compiler),s=(o?t:t.filter((e=>"compiler"!==e))).filter((t=>void 0!==e[t])),a=s.filter((t=>!Rn(o&&"compiler"===t&&void 0!==n?n.version:e[t]))),c=0!==a.length?o&&"compiler"===a[0]&&void 0!==n?null!=(r=n.version)?r:"true":null!=(i=e[a[0]])?i:"true":"true";if(a.some((t=>o&&"compiler"===t&&void 0!==n?e.compiler!==`${n.compiler}-${c}`:e[t]!==c)))return!1;for(const u of s)e[u]=o&&"compiler"===u&&void 0!==n?`${n.compiler}-${c}`:c;return!0}(o,[...sv,"compiler"],v))return d("The same version must be used for llvm, clang-format and clang-tidy"),1;mt()&&"string"==typeof o.cppcheck&&"string"==typeof o.gcovr&&(y("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await gt("python-pygments"));let w=!1;for(const d of cv){if(Qr.isCI&&0!==u.length){w=!0;break}const e=o[d];void 0!==e&&(f=Date.now(),await ur(d,e,m,s,a,c,u,60*Number.parseFloat(null!=(r=o.timeout)?r:"20")*1e3),p=Date.now(),y("took "+(l.format(f,p)||"0 seconds")))}if(!w&&void 0!==v){const e=Date.now();await async function(e,t,n,r,i,o,s){let a;try{if(_d.startGroup(`Installing ${e} ${null!=t?t:""}`),e in ev)a=await fr(Sn("llvm",t,n),Pr.join(r,"llvm"),i),await pe("GCOV","llvm-cov gcov",lv);else if(e in tv){const e=Sn("gcc",t,n);a=await Zn(e,Pr.join(r,"gcc"),i),await er(e)}else if(e in nv){const e=Sn("mingw",t,n);a=await Xn(e,Pr.join(r,"gcc"),i),await er(e)}else e in rv?a=await vr(Sn("msvc",t,n),Pr.join(r,"msvc"),i):e in iv?await ar():(a=null,s.push("Unsupported compiler "+e))}catch(c){d(c),s.push(`Failed to install the ${e} ${t}`)}null!==a&&o.push(Or(e,a)),_d.endGroup()}(v.compiler,v.version,m,a,s,c,u);const t=Date.now();y("took "+(l.format(e,t)||"0 seconds"))}if(await async function(e){if(await ce(e.rcPath)){const t=(await Tl(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await Pl(e.rcPath,n.join("\n")),await k(e.rcPath)}}(lv),0===c.length&&0===u.length)return h("setup-cpp was called without any arguments. Nothing to do."),0;for(const d of c)console.log(`${d}`);for(const h of u)d(h);if(y("setup-cpp finished"),!Qr.GITHUB_ACTIONS)switch(process.platform){case"win32":h("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":h("Run `source ~/.cpprc` or restart your shell to update the environment.")}return await i,0===u.length?0:1})(process.argv).then((e=>{process.exitCode=e})).catch((e=>{d("main() panicked!"),d(e),process.exitCode=1})),exports.HttpClient=Di,exports.ciInfo=Zr,exports.commonjsGlobal=Xr,exports.coreExports=_d,exports.execExports=py,exports.getAugmentedNamespace=n,exports.getDefaultExportFromCjs=t,exports.info=y,exports.pathExists=ce,exports.requireSemver=Ge,exports.toolCacheExports=Nh,exports.warning=h; +"use strict";function e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}function t(e){return e&&e.__esModule&&{}.hasOwnProperty.call(e,"default")?e.default:e}function n(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function r(){return ei||(ei=1,Object.defineProperty(ii,"__esModule",{value:!0}),ii.toCommandProperties=ii.toCommandValue=void 0,ii.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},ii.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}:{}}),ii}function i(){return ai>si.length-16&&(Tr.randomFillSync(si),ai=0),si.slice(ai,ai+=16)}function o(e){return"string"==typeof e&&ci.test(e)}function s(e,t=0){const n=(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase();if(!o(n))throw TypeError("Stringified UUID is invalid");return n}function a(e){if(!o(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function c(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;e.length>n;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=a(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,i){o=o||0;for(let e=0;16>e;++e)i[o+e]=c[e];return i}return s(c)}try{r.name=e}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function u(e){const t="https:"===e.protocol;if(function(e){if(!e.hostname)return!1;if(function(e){const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let n;e.port?n=Number(e.port):"http:"===e.protocol?n=80:"https:"===e.protocol&&(n=443);const r=[e.hostname.toUpperCase()];"number"==typeof n&&r.push(`${r[0]}:${n}`);for(const i of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===i||r.some((e=>e===i||e.endsWith("."+i)||i.startsWith(".")&&e.endsWith(""+i))))return!0;return!1}(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new Ei(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new Ei("http://"+n)}}function l(){if(ji)return Vi;ji=1;var e=Vi.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};return Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.PersonalAccessTokenCredentialHandler=Vi.BearerCredentialHandler=Vi.BasicCredentialHandler=void 0,Vi.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Vi.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Vi.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Vi}function f(){return Mi||(Mi=1,function(e){var t=Hi.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Rr,r=Ir,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;return yield r(n,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,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(Hi)),Hi}function p(){return Gi||(Gi=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function n(e,t={}){d.issueCommand("error",m.toCommandProperties(t),e instanceof Error?""+e:e)}function i(e){d.issue("group",e)}function o(){d.issue("endgroup")}var s=ni.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=ni.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=ni.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&s(t,e,n);return a(t,e),t},u=ni.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const d=function(){function e(e,t,n){const r=new a(e,t,n);process.stdout.write(""+r+o.EOL)}if(ti)return ri;ti=1;var t=ri.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=ri.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=ri.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(ri,"__esModule",{value:!0}),ri.issue=ri.issueCommand=void 0;const o=i(Rr),s=r();ri.issueCommand=e,ri.issue=function(t,n=""){e(t,{},n)};class a{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const i=this.properties[r];i&&(n?n=!1:e+=",",e+=`${r}=${t=i,s.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return ri}(),h=function(){if(vi)return oi;vi=1;var e=oi.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=oi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=oi.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(oi,"__esModule",{value:!0}),oi.prepareKeyValueMessage=oi.issueFileCommand=void 0;const i=n(Ir),o=n(Rr),s=yi,a=r();return oi.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!i.existsSync(n))throw Error("Missing file at path: "+n);i.appendFileSync(n,`${a.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})},oi.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+s.v4(),r=a.toCommandValue(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(r.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${o.EOL}${r}${o.EOL}${n}`},oi}(),m=r(),y=c(Rr),v=c(Pr),w=function(){if(Fi)return wi;Fi=1;var e=wi.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(wi,"__esModule",{value:!0}),wi.OidcClient=void 0;const t=Ui,r=l(),i=p();class o{static createHttpClient(e=!0,n=10){const i={allowRetries:e,maxRetries:n};return new t.HttpClient("actions/oidc-client",[new r.BearerCredentialHandler(o.getRequestToken())],i)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=o.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),i=null===(n=r.result)||void 0===n?void 0:n.value;if(!i)throw Error("Response json body do not have ID Token field");return i}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=o.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),i.debug("ID token url is "+e);const n=yield o.getCall(e);return i.setSecret(n),n}catch(n){throw Error("Error message: "+n.message)}}))}}return wi.OidcClient=o,wi}();var E,g;(g=E=e.ExitCode||(e.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exportVariable=function(e,t){const n=m.toCommandValue(t);if(process.env[e]=n,process.env.GITHUB_ENV)return h.issueFileCommand("ENV",h.prepareKeyValueMessage(e,t));d.issueCommand("set-env",{name:e},n)},e.setSecret=function(e){d.issueCommand("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?h.issueFileCommand("PATH",e):d.issueCommand("add-path",{},e),process.env.PATH=`${e}${v.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return h.issueFileCommand("OUTPUT",h.prepareKeyValueMessage(e,t));process.stdout.write(y.EOL),d.issueCommand("set-output",{name:e},m.toCommandValue(t))},e.setCommandEcho=function(e){d.issue("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=E.Failure,n(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){d.issueCommand("debug",{},e)},e.error=n,e.warning=function(e,t={}){d.issueCommand("warning",m.toCommandProperties(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){d.issueCommand("notice",m.toCommandProperties(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+y.EOL)},e.startGroup=i,e.endGroup=o,e.group=function(e,t){return u(this,void 0,void 0,(function*(){let n;i(e);try{n=yield t()}finally{o()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return h.issueFileCommand("STATE",h.prepareKeyValueMessage(e,t));d.issueCommand("save-state",{name:e},m.toCommandValue(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return u(this,void 0,void 0,(function*(){return yield w.OidcClient.getIDToken(e)}))};var _=f();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return _.summary}});var b=f();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var S=function(){if(Bi)return qi;Bi=1;var e=qi.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=qi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=qi.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(qi,"__esModule",{value:!0}),qi.toPlatformPath=qi.toWin32Path=qi.toPosixPath=void 0;const r=n(Pr);return qi.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},qi.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},qi.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},qi}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return S.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return S.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return S.toPlatformPath}})}(ni)),ni}function d(e){return Ji?zi.error(e):console.log(`${e}`)}function h(e){return Ji?zi.warning(e):console.log(`${e}`)}function m(e){return Ji?zi.notice(e):console.log(`${e}`)}function y(e){return Ji?zi.info(e):console.log(e)}function v(){if(oo)return io;oo=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=Pr,n=e?";":":",r=function(){function e(n,r,i){if("function"==typeof r&&(i=r,r={}),!i){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(t,i){e(n,r||{},(function(e,n){e?i(e):t(n)}))}))}t(n,r||{},(function(e,t){e&&("EACCES"===e.code||r&&r.ignoreErrors)&&(e=null,t=!1),i(e,t)}))}return ro||(ro=1,t="win32"===process.platform||Xr.TESTING_WINDOWS?function(){function e(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;n.length>r;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,n)}function t(t,r,i){n.stat(t,(function(n,o){i(n,!n&&e(o,t,r))}))}if(Zi)return Qi;Zi=1,Qi=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Ir;return Qi}():function(){function e(e,r,i){n.stat(e,(function(e,n){i(e,!e&&t(n,r))}))}function t(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=a|c;return n&parseInt("001",8)||n&c&&i===s||n&a&&r===o||n&u&&0===o}(e,t)}if(to)return eo;to=1,eo=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Ir;return eo}(),no=e,e.sync=function(e,n){try{return t.sync(e,n||{})}catch(r){if(n&&n.ignoreErrors||"EACCES"===r.code)return!1;throw r}}),no;var t}(),i=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),o=(t,r)=>{const i=r.colon||n,o=t.match(/\//)||e&&t.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)],s=e?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=e?s.split(i):[""];return e&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:s}},s=(e,n,s)=>{"function"==typeof n&&(s=n,n={}),n||(n={});const{pathEnv:a,pathExt:c,pathExtExe:u}=o(e,n),l=[],f=r=>new Promise(((o,s)=>{if(r===a.length)return n.all&&l.length?o(l):s(i(e));const c=a[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,f=t.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;o(p(d,r,0))})),p=(e,t,i)=>new Promise(((o,s)=>{if(i===c.length)return o(f(t+1));const a=c[i];r(e+a,{pathExt:u},((r,s)=>{if(!r&&s){if(!n.all)return o(e+a);l.push(e+a)}return o(p(e,t,i+1))}))}));return s?f(0).then((e=>s(null,e)),s):f(0)};return io=s,s.sync=(e,n)=>{n=n||{};const{pathEnv:s,pathExt:a,pathExtExe:c}=o(e,n),u=[];for(let i=0;s.length>i;i++){const o=s[i],f=/^".*"$/.test(o)?o.slice(1,-1):o,p=t.join(f,e),d=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;a.length>e;e++){const t=d+a[e];try{if(r.sync(t,{pathExt:c})){if(!n.all)return t;u.push(t)}}catch(l){}}}if(n.all&&u.length)return u;if(n.nothrow)return null;throw i(e)},io}function w(){if(wo)return vo;wo=1;const e=Pr,t=function(){function e(e,i){const o=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(l){}let u;try{u=n.sync(e.command,{path:o[r({env:o})],pathExt:i?t.delimiter:void 0})}catch(f){}finally{c&&process.chdir(s)}return u&&(u=t.resolve(a?e.options.cwd:"",u)),u}if(co)return ao;co=1;const t=Pr,n=v(),r=function(){if(so)return So.exports;so=1;const e=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};return So.exports=e,So.exports.default=e,So.exports}();return ao=function(t){return e(t)||e(t,!0)}}(),n=function(){if(uo)return Oo;uo=1;const e=/([()\][%!^"`<>&|;, *?])/g;return Oo.command=function(t){return t.replace(e,"^$1")},Oo.argument=function(t,n){return t=(t=`"${t=(t=(t=""+t).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e,"^$1"),n&&(t=t.replace(e,"^$1")),t},Oo}(),r=function(){if(yo)return mo;yo=1;const e=Ir,t=function(){if(ho)return po;ho=1;const e=fo?lo:(fo=1,lo=/^#!(.*)/);return po=(t="")=>{const n=t.match(e);if(!n)return null;const[r,i]=n[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o}}();return mo=function(n){const r=Buffer.alloc(150);let i;try{i=e.openSync(n,"r"),e.readSync(i,r,0,150,0),e.closeSync(i)}catch(o){}return t(""+r)}}(),i="win32"===process.platform,o=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;return vo=function(a,c,u){c&&!Array.isArray(c)&&(u=c,c=null);const l={command:a,args:c=c?c.slice(0):[],options:u=Object.assign({},u),file:void 0,original:{command:a,args:c}};return u.shell?l:function(a){if(!i)return a;const c=function(e){e.file=t(e);const n=e.file&&r(e.file);return n?(e.args.unshift(e.file),e.command=n,t(e)):e.file}(a),u=!o.test(c);if(a.options.forceShell||u){const t=s.test(c);a.command=e.normalize(a.command),a.command=n.command(a.command),a.args=a.args.map((e=>n.argument(e,t)));const r=[a.command].concat(a.args).join(" ");a.args=["/d","/s","/c",`"${r}"`],a.command=process.env.comspec||"cmd.exe",a.options.windowsVerbatimArguments=!0}return a}(l)}}function E(e={}){const{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}function g(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function _(e){return g(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function b(e,t,n){const r=Is(e,t,n),i=Es(e,t),o=gs(e,t);let s;Rs(o,r.options),(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(r.options);try{s=kr.spawn(r.file,r.args,r.options)}catch(f){const e=new kr.ChildProcess,t=Promise.reject(Go({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return ms(e,t),e}const a=(e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))})))(s),c=((e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let i;const o=new Promise(((r,o)=>{i=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,o)}),t)})),s=r.finally((()=>{clearTimeout(i)}));return Promise.race([o,s])})(s,r.options,a),u=(async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const i=Xo((()=>{e.kill()}));return r.finally((()=>{i()}))})(s,r.options,c);s.kill=Ko.bind(null,s.kill.bind(s)),s.cancel=es.bind(null,s,{isCanceled:!1});const l=Ao((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},c,l,f]=await(async({stdout:t,stderr:n,all:r},{encoding:i,buffer:o,maxBuffer:s},a)=>{const c=ps(t,{encoding:i,buffer:o,maxBuffer:s}),u=ps(n,{encoding:i,buffer:o,maxBuffer:s}),l=ps(r,{encoding:i,buffer:o,maxBuffer:2*s});try{return await Promise.all([a,c,u,l])}catch(e){return Promise.all([{error:e,signal:e.signal,timedOut:e.timedOut},fs(t,c),fs(n,u),fs(r,l)])}})(s,r.options,u),p=Ts(r.options,c),d=Ts(r.options,l),h=Ts(r.options,f);if(e||0!==t||null!==n){const c=Go({error:e,exitCode:t,signal:n,stdout:p,stderr:d,all:h,command:i,escapedCommand:o,parsed:r,timedOut:a,isCanceled:!!r.options.signal&&r.options.signal.aborted,killed:s.killed});if(!r.options.reject)return c;throw c}return{command:i,escapedCommand:o,exitCode:0,stdout:p,stderr:d,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((e,t)=>{const n=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ls(e),Ir.createReadStream(t)))(t);void 0!==n&&(g(n)?n.pipe(e.stdin):e.stdin.end(n))})(s,r.options),s.all=((e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=us();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=ts.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ts.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ts.bind(void 0,e,"all"))})(s),ms(s,l),s}function S(e,t,n){const r=Is(e,t,n),i=Es(e,t),o=gs(e,t);Rs(o,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ls(e),Ir.readFileSync(t)))(e);if(g(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(r.options);let a;try{a=kr.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Go({error:l,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=Ts(r.options,a.stdout,a.error),u=Ts(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Go({stdout:c,stderr:u,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:o,parsed:r,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!r.options.reject)return e;throw e}return{command:i,escapedCommand:o,exitCode:0,stdout:c,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function O(){return sa||(sa=1,function(e){var t=Ps.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Ps.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Ps.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=Ps.__exportStar||function(e,n){for(var r in e)"default"===r||{}.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;const o=r(function(){if(ra)return Cs;ra=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.sync=Cs.isexe=void 0;const e=Ir,t=na;Cs.isexe=async(e,r={})=>{const{ignoreErrors:i=!1}=r;try{return n(await(0,t.stat)(e),r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}},Cs.sync=(t,r={})=>{const{ignoreErrors:i=!1}=r;try{return n((0,e.statSync)(t),r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}};const n=(e,t)=>e.isFile()&&r(e,t),r=(e,t)=>{var n,r,i,o,s,a,c,u;const l=null!=(r=t.uid)?r:null==(n=process.getuid)?void 0:n.call(process),f=null!=(s=null!=(o=t.groups)?o:null==(i=process.getgroups)?void 0:i.call(process))?s:[],p=null!=(u=null!=(c=t.gid)?c:null==(a=process.getgid)?void 0:a.call(process))?u:f[0];if(void 0===l||void 0===p)throw Error("cannot get uid or gid");const d=new Set([p,...f]),h=e.mode,m=e.uid,y=e.gid,v=parseInt("100",8),w=parseInt("010",8),E=v|w;return!!(h&parseInt("001",8)||h&w&&d.has(y)||h&v&&m===l||h&E&&0===l)};return Cs}());e.posix=o;const s=r(function(){if(ia)return ua;ia=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.sync=ua.isexe=void 0;const e=Ir,t=na;ua.isexe=async(e,r={})=>{const{ignoreErrors:i=!1}=r;try{return n(await(0,t.stat)(e),e,r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}},ua.sync=(t,r={})=>{const{ignoreErrors:i=!1}=r;try{return n((0,e.statSync)(t),t,r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}};const n=(e,t,n)=>e.isFile()&&((e,t)=>{const{pathExt:n=process.env.PATHEXT||""}=t,r=n.split(";");if(-1!==r.indexOf(""))return!0;for(let i=0;r.length>i;i++){const t=r[i].toLowerCase(),n=e.substring(e.length-t.length).toLowerCase();if(t&&n===t)return!0}return!1})(t,n);return ua}());e.win32=s,i((oa||(oa=1,Object.defineProperty(la,"__esModule",{value:!0})),la),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:o;e.isexe=a.isexe,e.sync=a.sync}(Ps)),Ps}function R(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return b(function(){if(void 0===pa){const e=fa.sync("pwsh",{nothrow:!0});null!==e&&(pa=e);const t=fa.sync("powershell",{nothrow:!0});null!==t&&(pa=t)}if(void 0===pa)throw Error("Could not find powershell");return pa}(),[...t,"-c",e],n)}function I(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function T(){return null!==fa.sync("sudo",{nothrow:!0})}function P(){var e;return 0===(null==(e=process.getuid)?void 0:e.call(process))||!!process.env.CI}function C(){return P()&&T()}function x(e){return C()?"sudo "+e:e}function N(e,t=[],n=ma){return C()?function(e,t){const[n,...r]=bs(e);return S(n,r,t)}(A(e,t),n):S(e,$(t),n)}function L(e,t=[],n=ma){return C()?function(e,t){const[n,...r]=bs(e);return b(n,r,t)}(A(e,t),n):b(e,$(t),n)}function A(e,t){return"sudo "+$([e,...t]).join(" ")}function $(e){return e.map((e=>`'${e}'`))}function D(){return"win32"===process.platform?ya():P()}async function k(e){if(("linux"===process.platform||"darwin"===process.platform)&&C()&&void 0!==process.env.SUDO_USER){let t=Ir.statSync(e).isDirectory();await L("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],ma)}}function U(){if(_a)return ga;_a=1;var e=(Ea?wa:(Ea=1,wa=function(){}))();return ga=function(t){return t!==e&&null!==t}}function j(){if(Sa)return ba;Sa=1;var e=U(),t=[].forEach,n=Object.create;return ba=function(r){var i=n(null);return t.call(arguments,(function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),i)})),i},ba}function F(){if(Aa)return La;Aa=1;var e=function(){if(Na)return xa;Na=1;var e=Ca?Pa:(Ca=1,Pa=(Ra?Oa:(Ra=1,Oa=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:Ta?Ia:(Ta=1,Ia=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return xa=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return La=function(n){return t(0,e(n))}}function M(){if(Da)return $a;Da=1;var e=F();return $a=function(t,n,r){var i;return isNaN(t)?0>(i=n)?1:r&&i?i-1:i:!1!==t&&e(t)}}function B(){return Ua?ka:(Ua=1,ka=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function G(){if(Fa)return ja;Fa=1;var e=U();return ja=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function V(){return Va||(Va=1,Ga=function(){if(Ba)return Ma;Ba=1;var e=B(),t=G(),n=function(){}.bind,r=function(){}.call,i=Object.keys,o={}.propertyIsEnumerable;return Ma=function(s,a){return function(c,u){var l,f=arguments[2],p=arguments[3];return c=Object(t(c)),e(u),l=i(c),p&&l.sort("function"==typeof p?n.call(p,c):void 0),"function"!=typeof s&&(s=l[s]),r.call(s,l,(function(e,t){return o.call(c,e)?r.call(u,f,c[e],e,c,t):a}))}},Ma}()("forEach")),Ga}function H(){return Ha||(Ha=1),pl}function q(){return nc||(nc=1,tc=(za?qa:(za=1,qa=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}))()?Object.assign:function(){if(ec)return Za;ec=1;var e=Qa?Ja:(Qa=1,Ja=(Xa?Wa:(Xa=1,Wa=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(Ya)return Ka;Ya=1;var e=U(),t=Object.keys;return Ka=function(n){return t(e(n)?Object(n):n)}}()),t=G(),n=Math.max;return Za=function(r,i){var o,s,a,c=n(arguments.length,2);for(r=Object(t(r)),a=function(e){try{r[e]=i[e]}catch(t){o||(o=t)}},s=1;c>s;++s)e(i=arguments[s]).forEach(a);if(void 0!==o)throw o;return r},Za}()),tc}function z(){if(ac)return sc;ac=1;var e=G(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return sc=function(o,s){var a,c=Object(e(s));if(o=Object(e(o)),r(c).forEach((function(e){try{t(o,e,n(s,e))}catch(r){a=r}})),"function"==typeof i&&i(c).forEach((function(e){try{t(o,e,n(s,e))}catch(r){a=r}})),void 0!==a)throw a;return o}}function W(){if(cc)return hl.exports;cc=1;var e,t,n=F();try{Object.defineProperty((function(e,t){return t}),"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(r){}return t=z(),e=function(){var e=[];return function(t){var n,r=0;if(e[t])return e[t];for(n=[];t--;)n.push("a"+(++r).toString(36));return Function("fn","return function ("+n.join(", ")+") { return fn.apply(this, arguments); };")}}(),hl.exports=function(i,o){var s;if(o=n(o),i.length===o)return i;s=e(o)(i);try{t(s,i)}catch(r){}return s},hl.exports}function X(){return lc?uc:(lc=1,uc=function(e){return null!=e})}function K(){if(wc)return vc;wc=1;var e=function(){if(yc)return mc;yc=1;var e=function(){if(hc)return dc;hc=1;var e=function(){if(pc)return fc;pc=1;var e=X(),t={object:!0,function:!0,undefined:!0};return fc=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return dc=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return mc=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(n){return!1}return!e(t)}}(),t=/^\s*class[\s{/}]/,n=function(){}.toString;return vc=function(r){return!!e(r)&&!t.test(n.call(r))}}function Y(){if(Rc)return ml.exports;Rc=1;var e=X(),t=K(),n=q(),r=j(),i=(Oc||(Oc=1,Sc=function(){if(gc)return Ec;gc=1;var e="razdwatrzy";return Ec=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(bc)return _c;bc=1;var e="".indexOf;return _c=function(t){return e.call(this,t,arguments[1])>-1},_c}()),Sc),o=ml.exports=function(t,o){var s,a,c,u,l;return 2>arguments.length||"string"!=typeof t?(u=o,o=t,t=null):u=arguments[2],e(t)?(s=i.call(t,"c"),a=i.call(t,"e"),c=i.call(t,"w")):(s=c=!0,a=!1),l={value:o,configurable:s,enumerable:a,writable:c},u?n(r(u),l):l};return o.gs=function(o,s,a){var c,u,l,f;return"string"!=typeof o?(l=a,a=s,s=o,o=null):l=arguments[3],e(s)?t(s)?e(a)?t(a)||(l=a,a=void 0):a=void 0:(l=s,s=a=void 0):s=void 0,e(o)?(c=i.call(o,"c"),u=i.call(o,"e")):(c=!0,u=!1),f={get:s,set:a,configurable:c,enumerable:u},l?n(r(l),f):f},ml.exports}function J(){return $c?Ac:($c=1,Ac=(xc?Cc:(xc=1,Cc=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(Lc)return Nc;Lc=1;var e=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};return Nc=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}()}())}function Q(){if(Mc)return Fc;Mc=1;var e=jc?Uc:(jc=1,Uc=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return Fc=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function Z(){return Yc?Kc:(Yc=1,Kc=function(){if(kc)return Dc;kc=1;var e=J(),t={object:!0,symbol:!0};return Dc=function(){var n=e.Symbol;return"function"==typeof n&&(n("test symbol"),!!t[typeof n.iterator]&&!!t[typeof n.toPrimitive]&&!!t[typeof n.toStringTag])}}()()?J().Symbol:function(){if(Xc)return Wc;Xc=1;var e,t,n,r=Y(),i=Q(),o=J().Symbol,s=function(){if(Gc)return Bc;Gc=1;var e=Y(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return Bc=function(i){for(var o,s,a=0;r[i+(a||"")];)++a;return r[i+=a||""]=!0,t(n,o="@@"+i,e.gs(null,(function(n){s||(s=!0,t(this,o,e(n)),s=!1)}))),o}}(),a=function(){if(Hc)return Vc;Hc=1;var e=Y(),t=J().Symbol;return Vc=function(n){return Object.defineProperties(n,{hasInstance:e("",t&&t.hasInstance||n("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||n("isConcatSpreadable")),iterator:e("",t&&t.iterator||n("iterator")),match:e("",t&&t.match||n("match")),replace:e("",t&&t.replace||n("replace")),search:e("",t&&t.search||n("search")),species:e("",t&&t.species||n("species")),split:e("",t&&t.split||n("split")),toPrimitive:e("",t&&t.toPrimitive||n("toPrimitive")),toStringTag:e("",t&&t.toStringTag||n("toStringTag")),unscopables:e("",t&&t.unscopables||n("unscopables"))})}}(),c=function(){if(zc)return qc;zc=1;var e=Y(),t=Q(),n=Object.create(null);return qc=function(r){return Object.defineProperties(r,{for:e((function(e){return n[e]?n[e]:n[e]=r(e+"")})),keyFor:e((function(e){var r;for(r in t(e),n)if(n[r]===e)return r}))})}}(),u=Object.create,l=Object.defineProperties,f=Object.defineProperty;if("function"==typeof o)try{o(),n=!0}catch(p){}else o=null;return t=function(n){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return e(n)},Wc=e=function e(i){var a;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return n?o(i):(a=u(t.prototype),l(a,{__description__:r("",i=void 0===i?"":i+""),__name__:r("",s(i))}))},a(e),c(e),l(t.prototype,{constructor:r(e),toString:r("",(function(){return this.__name__}))}),l(e.prototype,{toString:r((function(){return"Symbol ("+i(this).__description__+")"})),valueOf:r((function(){return i(this)}))}),f(e.prototype,e.toPrimitive,r("",(function(){var e=i(this);return"symbol"==typeof e?e:""+e}))),f(e.prototype,e.toStringTag,r("c","Symbol")),f(t.prototype,e.toStringTag,r("c",e.prototype[e.toStringTag])),f(t.prototype,e.toPrimitive,r("c",e.prototype[e.toPrimitive])),Wc}())}function ee(){return su?ou:(su=1,ou=(Pc?Tc:(Pc=1,Tc=function(){var e,t,n=Array.from;return"function"==typeof n&&!(!(t=n(e=["raz","dwa"]))||t===e||"dwa"!==t[1])}))()?Array.from:function(){if(iu)return ru;iu=1;var e=Z().iterator,t=function(){if(Qc)return Jc;Qc=1;var e={}.toString,t=e.call(function(){return arguments}());return Jc=function(n){return e.call(n)===t}}(),n=function(){if(eu)return Zc;eu=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Zc=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=F(),i=B(),o=G(),s=U(),a=function(){if(nu)return tu;nu=1;var e={}.toString,t=e.call("");return tu=function(n){return"string"==typeof n||n&&"object"==typeof n&&(n instanceof String||e.call(n)===t)||!1}}(),c=Array.isArray,u=function(){}.call,l={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;return ru=function(p){var d,h,m,y,v,w,E,g,_,b,S=arguments[1],O=arguments[2];if(p=Object(o(p)),s(S)&&i(S),this&&this!==Array&&n(this))d=this;else{if(!S){if(t(p))return 1!==(v=p.length)?Array.apply(null,p):((y=[,])[0]=p[0],y);if(c(p)){for(y=Array(v=p.length),h=0;v>h;++h)y[h]=p[h];return y}}y=[]}if(!c(p))if(void 0!==(_=p[e])){for(E=i(_).call(p),d&&(y=new d),g=E.next(),h=0;!g.done;)b=S?u.call(S,O,g.value,h):g.value,d?(l.value=b,f(y,h,l)):y[h]=b,g=E.next(),++h;v=h}else if(a(p)){for(v=p.length,d&&(y=new d),h=0,m=0;v>h;++h)b=p[h],v>h+1&&(55296>(w=b.charCodeAt(0))||w>56319||(b+=p[++h])),b=S?u.call(S,O,b,m):b,d?(l.value=b,f(y,m,l)):y[m]=b,++m;v=m}if(void 0===v)for(v=r(p.length),d&&(y=new d(v)),h=0;v>h;++h)b=S?u.call(S,O,p[h],h):p[h],d?(l.value=b,f(y,h,l)):y[h]=b;return d&&(l.value=null,y.length=v),y},ru}())}function te(){if(hu)return du;hu=1;var e,t,n,r,i,o=(oc||(oc=1,e=dl,t=q(),n=function(){if(ic)return rc;ic=1;var e=U(),t={function:!0,object:!0};return rc=function(n){return e(n)&&t[typeof n]||!1}}(),r=U(),i=Error.captureStackTrace,e.exports=function(o){var s=Error(o),a=arguments[1],c=arguments[2];return r(c)||n(a)&&(c=a,a=null),r(c)&&t(s,c),r(a)&&(s.code=a),i&&i(s,e.exports),s}),dl.exports),s=W(),a=Y(),c=function(){return Ic||(Ic=1,e=yl,yl.exports,u=Y(),l=B(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,y={}.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0},r=function(e,t){var r,o;return l(t),o=this,n.call(this,e,r=function(){i.call(o,e,r),f.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e){var t,n,r,i,o;if(y.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(o=Array((n=arguments.length)-1),t=1;n>t;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)f.call(r,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(o=Array((n=arguments.length)-1),t=1;n>t;++t)o[t-1]=arguments[t];f.call(i,this,o)}},s={on:n=function(e,t){var n;return l(t),y.call(this,"__ee__")?n=this.__ee__:(n=v.value=d(null),h(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:i=function(e,t){var n,r,i,o;if(l(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:o},a={on:u(n),once:u(r),off:u(i),emit:u(o)},c=m({},a),e.exports=t=function(e){return null==e?d(c):m(Object(e),a)},t.methods=s),yl.exports;var e,t,n,r,i,o,s,a,c,u,l,f,p,d,h,m,y,v}().methods,u=function(){if(lu)return uu;lu=1;var e,t=function(){if(cu)return au;cu=1;var e=ee(),t=Array.isArray;return au=function(n){return t(n)?n:e(n)}}(),n=U(),r=B(),i=[].slice;return e=function(e){return this.map((function(t,n){return t?t(e[n]):e[n]})).concat(i.call(e,this.length))},uu=function(i){return(i=t(i)).forEach((function(e){n(e)&&r(e)})),e.bind(i)}}(),l=function(){if(pu)return fu;pu=1;var e=B();return fu=function(t){var n;return"function"==typeof t?{set:t,get:t}:(n={get:e(t.get)},void 0!==t.set?(n.set=e(t.set),t.delete&&(n.delete=e(t.delete)),t.clear&&(n.clear=e(t.clear)),n):(n.set=n.get,n))}}(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperties,m=c.on,y=c.emit;return du=function(e,t,n){var r,i,c,v,w,E,g,_,b,S,O,R,I,T,P,C=d(null);return i=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(S=l(n.normalizer),c=S.get,v=S.set,w=S.delete,E=S.clear),null!=n.resolvers&&(P=u(n.resolvers)),T=c?s((function(t){var n,i,s=arguments;if(P&&(s=P(s)),null!==(n=c(s))&&hasOwnProperty.call(C,n))return O&&r.emit("get",n,s,this),C[n];if(i=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),null===n){if(null!==(n=c(s)))throw o("Circular invocation","CIRCULAR_INVOCATION");n=v(s)}else if(hasOwnProperty.call(C,n))throw o("Circular invocation","CIRCULAR_INVOCATION");return C[n]=i,R&&r.emit("set",n,null,i),i}),i):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return O&&r.emit("get","data",arguments,this),C.data;if(t=arguments.length?f.call(e,this,arguments):p.call(e,this),hasOwnProperty.call(C,"data"))throw o("Circular invocation","CIRCULAR_INVOCATION");return C.data=t,R&&r.emit("set","data",null,t),t}:function(t){var n,i,s=arguments;if(P&&(s=P(arguments)),i=s[0]+"",hasOwnProperty.call(C,i))return O&&r.emit("get",i,s,this),C[i];if(n=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),hasOwnProperty.call(C,i))throw o("Circular invocation","CIRCULAR_INVOCATION");return C[i]=n,R&&r.emit("set",i,null,n),n},r={original:e,memoized:T,profileName:n.profileName,get:function(e){return P&&(e=P(e)),c?c(e):e[0]+""},has:function(e){return hasOwnProperty.call(C,e)},delete:function(e){var t;hasOwnProperty.call(C,e)&&(w&&w(e),t=C[e],delete C[e],I&&r.emit("delete",e,t))},clear:function(){var e=C;E&&E(),C=d(null),r.emit("clear",e)},on:function(e,t){return"get"===e?O=!0:"set"===e?R=!0:"delete"===e&&(I=!0),m.call(this,e,t)},emit:y,updateEnv:function(){e=r.original}},g=c?s((function(e){var t,n=arguments;P&&(n=P(n)),null!==(t=c(n))&&r.delete(t)}),i):0===t?function(){return r.delete("data")}:function(e){return P&&(e=P(arguments)[0]),r.delete(e)},_=s((function(){var e,n=arguments;return 0===t?C.data:(P&&(n=P(n)),e=c?c(n):n[0]+"",C[e])})),b=s((function(){var e,n=arguments;return 0===t?r.has("data"):(P&&(n=P(n)),null!==(e=c?c(n):n[0]+"")&&r.has(e))})),h(T,{__memoized__:a(!0),delete:a(g),clear:a(r.clear),_get:a(_),_has:a(b)}),r},du}function ne(){if(Pu)return Tu;Pu=1;var e=Iu?Ru:(Iu=1,Ru=(bu?_u:(bu=1,_u=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:Ou?Su:(Ou=1,Su=function(e){return e!=e})),t=F(),n=G(),r=[].indexOf,i={}.hasOwnProperty,o=Math.abs,s=Math.floor;return Tu=function(a){var c,u,l;if(!e(a))return r.apply(this,arguments);for(u=t(n(this).length),c=l=isNaN(l=arguments[1])?0:0>l?t(this.length)-s(o(l)):s(l);u>c;++c)if(i.call(this,c)&&e(this[c]))return c;return-1},Tu}function re(){if(ku)return Du;ku=1;var e=B(),t=V(),n=function(){}.call;return Du=function(r,i){var o={},s=arguments[2];return e(i),t(r,(function(e,t,r,a){o[t]=n.call(i,s,e,t,r,a)})),o},Du}function ie(){if(ju)return Uu;ju=1;var e=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},t=function(t){var n,r,i=document.createTextNode(""),o=0;return new t((function(){var e;if(n)r&&(n=r.concat(n));else{if(!r)return;n=r}if(r=n,n=null,"function"==typeof r)return e=r,r=null,void e();for(i.data=o=++o%2;r;)e=r.shift(),r.length||(r=null),e()})).observe(i,{characterData:!0}),function(t){e(t),n?"function"==typeof n?n=[n,t]:n.push(t):(n=t,i.data=o=++o%2)}};return Uu=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(t){queueMicrotask(e(t))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return t(MutationObserver);if("function"==typeof WebKitMutationObserver)return t(WebKitMutationObserver)}return"function"==typeof setImmediate?function(t){setImmediate(e(t))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(t){setTimeout(e(t),0)}:null}()}function oe(){return Vu?Gu:(Vu=1,Gu=function(e){return"function"==typeof e})}function se(){function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return Qu||(Qu=1,El.exports=e,El.exports.default=e),El.exports}function ae(){if(Zu)return wl;Zu=1;var e=re(),t=function(){if(Bu)return Mu;Bu=1;var e=[].forEach,t=Object.create;return Mu=function(n){var r=t(null);return e.call(arguments,(function(e){r[e]=!0})),r},Mu}(),n=function(){if(Wu)return zu;Wu=1;var e=G(),t=function(){if(qu)return Hu;qu=1;var e=oe();return Hu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return zu=function(n){return t(e(n))}}(),r=function(){if(Ju)return Yu;Ju=1;var e=function(){if(Ku)return Xu;Ku=1;var e=oe();return Xu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return""}}}();return Yu=function(t){var n=e(t);return n.length>100&&(n=n.slice(0,99)+"…"),n.replace(/[\n\r\u2028\u2029]/g,(function(e){return JSON.stringify(e).slice(1,-1)}))}}(),i=se(),o=ie(),s=Object.create,a=t("then","then:finally","done","done:finally");return H().promise=function(t,c){var u=s(null),l=s(null),f=s(null);if(!0===t)t=null;else if(t=n(t),!a[t])throw new TypeError("'"+r(t)+"' is not valid promise mode");c.on("set",(function(e,n,r){var s=!1;if(!i(r))return l[e]=r,void c.emit("setasync",e,1);u[e]=1,f[e]=r;var a=function(t){var n=u[e];if(s)throw Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");n&&(delete u[e],l[e]=t,c.emit("setasync",e,n))},p=function(){s=!0,u[e]&&(delete u[e],delete f[e],c.delete(e))},d=t;if(d||(d="then"),"then"===d){var h=function(){o(p)};"function"==typeof(r=r.then((function(e){o(a.bind(this,e))}),h)).finally&&r.finally(h)}else if("done"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");r.done(a,p)}else if("done:finally"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof r.finally)throw Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");r.done(a),r.finally(p)}})),c.on("get",(function(e,t,n){var r;if(u[e])++u[e];else{var s=function(){c.emit("getasync",e,t,n)};i(r=f[e])?"function"==typeof r.done?r.done(s):r.then((function(){o(s)})):s()}})),c.on("delete",(function(e){if(delete f[e],u[e])delete u[e];else if(hasOwnProperty.call(l,e)){var t=l[e];delete l[e],c.emit("deleteasync",e,[t])}})),c.on("clear",(function(){var t=l;l=s(null),u=s(null),f=s(null),c.emit("clearasync",e(t,(function(e){return[e]})))}))},wl}async function ce(e){try{return await Ir.promises.access(e),!0}catch{return!1}}function ue(e){const t=function(){if(C()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?Pr.join("/Users/",process.env.SUDO_USER):Pr.join("/home/",process.env.SUDO_USER);{const e=Rr.homedir();if(""===e)return;return e}}();return void 0===t?e:e.replace(Rl,t)}async function le(e){const t=void 0===e.guard?"\n# Automatically Generated by envosman\n":`\n# Automatically Generated by envosman ${e.guard}\nexport SOURCE_${e.guard.toUpperCase()}RC=0\n`;await ce(e.rcPath)&&((await Tl(e.rcPath,"utf8")).includes(t)||(await Il(e.rcPath,`\n${t}\n`),y(`Added ${t} to ${e.rcPath}`)))}async function fe(e,t){await ce(t)&&((await Tl(t,"utf-8")).includes(e)||(await Il(t,e),y(`${e} was added to ${t}`)))}async function pe(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:Cl,...n},i=function(e,t=!1){const n=t?Al(e):e;return Ml(n,'"',"\\")}(null!=t?t:"",r.escapeSpace);try{if(Bl)try{if(!r.overwrite&&void 0!==process.env[e])return void y(`Environment variable ${e} is already defined. Skipping.`);zi.exportVariable(e,i)}catch(o){d(o),await de(e,i,r)}else await de(e,i,r)}catch(o){d(`${o}\nFailed to export environment variable ${e}=${i}. You should add it manually.`)}}async function de(e,t,n){const r=null!=t?t:"";switch(process.platform){case"win32":return n.overwrite||void 0===process.env[e]?(await R(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void y(`${e}='${r}' was set in the environment.`)):void y(`Environment variable ${e} is already defined. Skipping.`);case"linux":case"darwin":return await xl(n),void(n.overwrite?(await Gl(n.rcPath,`\nexport ${e}="${r}"\n`),y(`${e}="${r}" was added to "${n.rcPath}`)):(await Gl(n.rcPath,`\nif [ -z "\${${e}}" ]; then export ${e}="${r}"; fi\n`),y(`if not defined ${e} then ${e}="${r}" was added to "${n.rcPath}`)))}process.env[e]=r}async function he(e,t={}){const n={rcPath:Cl,...t};if(!function(e){var t,n;return!!ql.some((t=>t.test(e)))&&(null!=(n=null==(t=process.env.PATH)?void 0:t.split(Pr.delimiter))?n:[]).includes(e)}(e)){process.env.PATH=`${e}${Pr.delimiter}${process.env.PATH}`;try{if(Vl)try{zi.addPath(e)}catch(r){d(r),await me(e,n)}else await me(e,n)}catch(r){d(`${r}\nFailed to add ${e} to the percistent PATH. You should add it manually.`)}}}async function me(e,t){switch(process.platform){case"win32":return await R(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void y(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await xl(t),await Hl(t.rcPath,`\nexport PATH="${e}:$PATH"\n`),void y(`"${e}" was added to "${t.rcPath}"`);default:return}}function ye(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function ve(){return zl||(zl=1,e=Kl,function(){function t(e,t,i){if(n(e),"object"!=typeof i)throw Error("List of variants should be specified as an object");var o=r[e](t);return void 0!==i[o]?i[o]:null}function n(e){(function(e){return void 0!==r[e]})(e)||function(e){try{ye(__dirname+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}}(e)}var r={};e.exports={create:function(e){return n(e),{pluralize:function(n,r){return t(e,n,r)}}},addLocale:function(e,t){r[e]=t},pluralize:t}}()),Kl.exports;var e}function we(){return Xl?Wl:(Xl=1,Wl=ve())}function Ee(){return ff?lf:(ff=1,lf={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function ge(){if(df)return pf;df=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return pf=e}function _e(){return hf||(hf=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Ee(),o=ge(),s=(t=e.exports={}).re=[],a=t.safeRe=[],c=t.src=[],u=t.t={};let l=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[f,r]],d=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(t+"*").join(`${t}{0,${n}}`).split(t+"+").join(`${t}{1,${n}}`);return e})(t),i=l++;o(e,i,t),u[e]=i,c[i]=t,s[i]=RegExp(t,n?"g":void 0),a[i]=RegExp(r,n?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),d("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",f+"+"),d("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),d("FULL",`^${c[u.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),d("LOOSE",`^${c[u.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",c[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),d("XRANGEIDENTIFIER",c[u.NUMERICIDENTIFIER]+"|x|X|\\*"),d("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),d("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),d("COERCE",c[u.COERCEPLAIN]+"(?:$|[^\\d])"),d("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",c[u.COERCE],!0),d("COERCERTLFULL",c[u.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Wp,Wp.exports)),Wp.exports}function be(){if(yf)return mf;yf=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return mf=n=>n?"object"!=typeof n?e:n:t}function Se(){if(wf)return vf;wf=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),i=e.test(n);return r&&i&&(t=+t,n=+n),t===n?0:r&&!i?-1:i&&!r?1:n>t?-1:1};return vf={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function Oe(){if(gf)return Ef;gf=1;const e=ge(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Ee(),{safeRe:r,t:i}=_e(),o=be(),{compareIdentifiers:s}=Se();class a{constructor(s,c){if(c=o(c),s instanceof a){if(s.loose===!!c.loose&&s.includePrerelease===!!c.includePrerelease)return s;s=s.version}else if("string"!=typeof s)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",s,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const u=s.trim().match(c.loose?r[i.LOOSE]:r[i.FULL]);if(!u)throw new TypeError("Invalid Version: "+s);if(this.raw=s,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>n||0>this.major)throw new TypeError("Invalid major version");if(this.minor>n||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>n||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=u[4]?u[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof a)){if("string"==typeof t&&t===this.version)return 0;t=new a(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof a||(e=new a(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)}comparePre(t){if(t instanceof a||(t=new a(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(e("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return s(r,i)}while(++n)}compareBuild(t){t instanceof a||(t=new a(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(e("build compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return s(r,i)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===s(this.prerelease[0],t)?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}}return Ef=a}function Re(){if(bf)return _f;bf=1;const e=Oe();return _f=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(i){if(!r)return null;throw i}}}function Ie(){if(Of)return Sf;Of=1;const e=Re();return Sf=(t,n)=>{const r=e(t,n);return r?r.version:null}}function Te(){if(Lf)return Nf;Lf=1;const e=Oe();return Nf=(t,n)=>new e(t,n).major}function Pe(){if(Mf)return Ff;Mf=1;const e=Oe();return Ff=(t,n,r)=>new e(t,r).compare(new e(n,r))}function Ce(){if(zf)return qf;zf=1;const e=Oe();return qf=(t,n,r)=>{const i=new e(t,r),o=new e(n,r);return i.compare(o)||i.compareBuild(o)}}function xe(){if(Qf)return Jf;Qf=1;const e=Pe();return Jf=(t,n,r)=>e(t,n,r)>0}function Ne(){if(ep)return Zf;ep=1;const e=Pe();return Zf=(t,n,r)=>0>e(t,n,r)}function Le(){if(np)return tp;np=1;const e=Pe();return tp=(t,n,r)=>0===e(t,n,r)}function Ae(){if(ip)return rp;ip=1;const e=Pe();return rp=(t,n,r)=>0!==e(t,n,r)}function $e(){if(sp)return op;sp=1;const e=Pe();return op=(t,n,r)=>e(t,n,r)>=0}function De(){if(cp)return ap;cp=1;const e=Pe();return ap=(t,n,r)=>0>=e(t,n,r)}function ke(){if(lp)return up;lp=1;const e=Le(),t=Ae(),n=xe(),r=$e(),i=Ne(),o=De();return up=(s,a,c,u)=>{switch(a){case"===":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s===c;case"!==":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s!==c;case"":case"=":case"==":return e(s,c,u);case"!=":return t(s,c,u);case">":return n(s,c,u);case">=":return r(s,c,u);case"<":return i(s,c,u);case"<=":return o(s,c,u);default:throw new TypeError("Invalid operator: "+a)}}}function Ue(){if(pp)return fp;pp=1;const e=Oe(),t=Re(),{safeRe:n,t:r}=_e();return fp=(i,o)=>{if(i instanceof e)return i;if("number"==typeof i&&(i+=""),"string"!=typeof i)return null;let s=null;if((o=o||{}).rtl){const e=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(i))&&(!s||s.index+s[0].length!==i.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else s=i.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);return null===s?null:t(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}${o.includePrerelease&&s[5]?"-"+s[5]:""}${o.includePrerelease&&s[6]?"+"+s[6]:""}`,o)}}function je(){if(yp)return mp;yp=1;const e=/\s+/g;class t{constructor(n,o){if(o=r(o),n instanceof t)return n.loose===!!o.loose&&n.includePrerelease===!!o.includePrerelease?n:new t(n.raw,o);if(n instanceof i)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;this.set.length>e;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;t.length>e;e++)e>0&&(this.formatted+=" "),this.formatted+=(""+t[e]).trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&d))+":"+e,r=n.get(t);if(r)return r;const s=this.options.loose;e=e.replace(s?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE],T(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],u),o("comparator trim",e),e=e.replace(a[c.TILDETRIM],l),o("tilde trim",e),e=e.replace(a[c.CARETTRIM],f),o("caret trim",e);let m=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));s&&(m=m.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[c.COMPARATORLOOSE]))))),o("range list",m);const y=new Map,w=m.map((e=>new i(e,this.options)));for(const n of w){if(h(n))return[n];y.set(n.value,n)}y.size>1&&y.has("")&&y.delete("");const E=[...y.values()];return n.set(t,E),E}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>y(t,n)&&e.set.some((e=>y(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options)}catch(t){return!1}for(let n=0;this.set.length>n;n++)if(P(this.set[n],e,this.options))return!0;return!1}}mp=t;const n=new(hp?dp:(hp=1,dp=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=be(),i=Fe(),o=ge(),s=Oe(),{safeRe:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:f}=_e(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:d}=Ee(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},v=(e,t)=>(o("comp",e,t),e=_(e,t),o("caret",e),e=E(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=R(e,t),o("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>g(e,t))).join(" "),g=(e,t)=>e.replace(t.loose?a[c.TILDELOOSE]:a[c.TILDE],((t,n,r,i,s)=>{let a;return o("tilde",e,t,n,r,i,s),w(n)?a="":w(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(o("replaceTilde pr",s),a=`>=${n}.${r}.${i}-${s} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",a),a})),_=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[c.CARETLOOSE]:a[c.CARET],((t,r,i,s,a)=>{let c;return o("caret",e,t,r,i,s,a),w(r)?c="":w(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(s)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(o("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${s}-${a} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${a} <${+r+1}.0.0-0`):(o("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),o("caret return",c),c}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?a[c.XRANGELOOSE]:a[c.XRANGE],((n,r,i,s,a,c)=>{o("xRange",e,n,r,i,s,a,c);const u=w(i),l=u||w(s),f=l||w(a);return"="===r&&f&&(r=""),c=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(l&&(s=0),a=0,">"===r?(r=">=",l?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):"<="===r&&(r="<",l?i=+i+1:s=+s+1),"<"===r&&(c="-0"),n=`${r+i}.${s}.${a}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${s}.0${c} <${i}.${+s+1}.0-0`),o("xRange return",n),n})),R=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),I=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),T=e=>(t,n,r,i,o,s,a,c,u,l,f,p)=>`${n=w(r)?"":w(i)?`>=${r}.0.0${e?"-0":""}`:w(o)?`>=${r}.${i}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=w(u)?"":w(l)?`<${+u+1}.0.0-0`:w(f)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${f}-${p}`:e?`<${u}.${l}.${+f+1}-0`:"<="+c}`.trim(),P=(e,t,n)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;e.length>n;n++)if(o(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return mp}function Fe(){if(wp)return vp;wp=1;const e=Symbol();class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),s("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,s("comp",this)}parse(t){const n=t.match(this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR]);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new a(n[2],this.options.loose):e}toString(){return this.value}test(t){if(s("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new a(t,this.options)}catch(n){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,r).test(this.value):""===e.operator?""===e.value||new c(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.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("="))&&!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}vp=t;const n=be(),{safeRe:r,t:i}=_e(),o=ke(),s=ge(),a=Oe(),c=je();return vp}function Me(){if(gp)return Ep;gp=1;const e=je();return Ep=(t,n,r)=>{try{n=new e(n,r)}catch(i){return!1}return n.test(t)}}function Be(){if(Lp)return Np;Lp=1;const e=Oe(),t=Fe(),{ANY:n}=t,r=je(),i=Me(),o=xe(),s=Ne(),a=De(),c=$e();return Np=(u,l,f,p)=>{let d,h,m,y,v;switch(u=new e(u,p),l=new r(l,p),f){case">":d=o,h=a,m=s,y=">",v=">=";break;case"<":d=s,h=c,m=o,y="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(u,l,p))return!1;for(let e=0;l.set.length>e;++e){let r=null,i=null;if(l.set[e].forEach((e=>{e.semver===n&&(e=new t(">=0.0.0")),r=r||e,i=i||e,d(e.semver,r.semver,p)?r=e:m(e.semver,i.semver,p)&&(i=e)})),r.operator===y||r.operator===v)return!1;if((!i.operator||i.operator===y)&&h(u,i.semver))return!1;if(i.operator===v&&m(u,i.semver))return!1}return!0}}function Ge(){if(Hp)return Vp;Hp=1;const e=_e(),t=Ee(),n=Oe(),r=Se(),i=Re(),o=Ie(),s=function(){if(If)return Rf;If=1;const e=Re();return Rf=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),a=function(){if(Pf)return Tf;Pf=1;const e=Oe();return Tf=(t,n,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,i,o).version}catch(s){return null}}}(),c=function(){if(xf)return Cf;xf=1;const e=Re();return Cf=(t,n)=>{const r=e(t,null,!0),i=e(n,null,!0),o=r.compare(i);if(0===o)return null;const s=o>0,a=s?r:i,c=s?i:r,u=!!a.prerelease.length;if(c.prerelease.length&&!u)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const l=u?"pre":"";return r.major!==i.major?l+"major":r.minor!==i.minor?l+"minor":r.patch!==i.patch?l+"patch":"prerelease"}}(),u=Te(),l=function(){if($f)return Af;$f=1;const e=Oe();return Af=(t,n)=>new e(t,n).minor}(),f=function(){if(kf)return Df;kf=1;const e=Oe();return Df=(t,n)=>new e(t,n).patch}(),p=function(){if(jf)return Uf;jf=1;const e=Re();return Uf=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),d=Pe(),h=function(){if(Gf)return Bf;Gf=1;const e=Pe();return Bf=(t,n,r)=>e(n,t,r)}(),m=function(){if(Hf)return Vf;Hf=1;const e=Pe();return Vf=(t,n)=>e(t,n,!0)}(),y=Ce(),v=function(){if(Xf)return Wf;Xf=1;const e=Ce();return Wf=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),w=function(){if(Yf)return Kf;Yf=1;const e=Ce();return Kf=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),E=xe(),g=Ne(),_=Le(),b=Ae(),S=$e(),O=De(),R=ke(),I=Ue(),T=Fe(),P=je(),C=Me(),x=function(){if(bp)return _p;bp=1;const e=je();return _p=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),N=function(){if(Op)return Sp;Op=1;const e=Oe(),t=je();return Sp=(n,r,i)=>{let o=null,s=null,a=null;try{a=new t(r,i)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(o&&-1!==s.compare(t)||(o=t,s=new e(o,i)))})),o}}(),L=function(){if(Ip)return Rp;Ip=1;const e=Oe(),t=je();return Rp=(n,r,i)=>{let o=null,s=null,a=null;try{a=new t(r,i)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(o&&1!==s.compare(t)||(o=t,s=new e(o,i)))})),o}}(),A=function(){if(Pp)return Tp;Pp=1;const e=Oe(),t=je(),n=xe();return Tp=(r,i)=>{r=new t(r,i);let o=new e("0.0.0");if(r.test(o))return o;if(o=new e("0.0.0-0"),r.test(o))return o;o=null;for(let t=0;r.set.length>t;++t){let i=null;r.set[t].forEach((t=>{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":i&&!n(r,i)||(i=r);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+t.operator)}})),!i||o&&!n(o,i)||(o=i)}return o&&r.test(o)?o:null}}(),$=function(){if(xp)return Cp;xp=1;const e=je();return Cp=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),D=Be(),k=function(){if($p)return Ap;$p=1;const e=Be();return Ap=(t,n,r)=>e(t,n,">",r)}(),U=function(){if(kp)return Dp;kp=1;const e=Be();return Dp=(t,n,r)=>e(t,n,"<",r)}(),j=function(){if(jp)return Up;jp=1;const e=je();return Up=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),F=function(){if(Mp)return Fp;Mp=1;const e=Me(),t=Pe();return Fp=(n,r,i)=>{const o=[];let s=null,a=null;const c=n.sort(((e,n)=>t(e,n,i)));for(const t of c)e(t,r,i)?(a=t,s||(s=t)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const u=[];for(const[e,t]of o)u.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const l=u.join(" || ");return("string"==typeof r.raw?r.raw:r+"").length>l.length?l:r}}(),M=function(){if(Gp)return Bp;Gp=1;const e=je(),t=Fe(),{ANY:n}=t,r=Me(),i=Pe(),o=[new t(">=0.0.0-0")],s=[new t(">=0.0.0")],a=(e,t,a)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=a.includePrerelease?o:s}if(1===t.length&&t[0].semver===n){if(a.includePrerelease)return!0;t=s}const l=new Set;let f,p,d,h,m,y,v;for(const n of e)">"===n.operator||">="===n.operator?f=c(f,n,a):"<"===n.operator||"<="===n.operator?p=u(p,n,a):l.add(n.semver);if(l.size>1)return null;if(f&&p){if(d=i(f.semver,p.semver,a),d>0)return null;if(0===d&&(">="!==f.operator||"<="!==p.operator))return null}for(const n of l){if(f&&!r(n,f+"",a))return null;if(p&&!r(n,p+"",a))return null;for(const e of t)if(!r(n,e+"",a))return!1;return!0}let w=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,E=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;w&&1===w.prerelease.length&&"<"===p.operator&&0===w.prerelease[0]&&(w=!1);for(const n of t){if(v=v||">"===n.operator||">="===n.operator,y=y||"<"===n.operator||"<="===n.operator,f)if(E&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===E.major&&n.semver.minor===E.minor&&n.semver.patch===E.patch&&(E=!1),">"===n.operator||">="===n.operator){if(h=c(f,n,a),h===n&&h!==f)return!1}else if(">="===f.operator&&!r(f.semver,n+"",a))return!1;if(p)if(w&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===w.major&&n.semver.minor===w.minor&&n.semver.patch===w.patch&&(w=!1),"<"===n.operator||"<="===n.operator){if(m=u(p,n,a),m===n&&m!==p)return!1}else if("<="===p.operator&&!r(p.semver,n+"",a))return!1;if(!n.operator&&(p||f)&&0!==d)return!1}return!(f&&y&&!p&&0!==d||p&&v&&!f&&0!==d||E||w)},c=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r>0?e:0>r||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return 0>r?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return Bp=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let i=!1;e:for(const e of t.set){for(const t of n.set){const n=a(e,t,r);if(i=i||null!==n,n)continue e}if(i)return!1}return!0}}();return Vp={parse:i,valid:o,clean:s,inc:a,diff:c,major:u,minor:l,patch:f,prerelease:p,compare:d,rcompare:h,compareLoose:m,compareBuild:y,sort:v,rsort:w,gt:E,lt:g,eq:_,neq:b,gte:S,lte:O,cmp:R,coerce:I,Comparator:T,Range:P,satisfies:C,toComparators:x,maxSatisfying:N,minSatisfying:L,minVersion:A,validRange:$,outside:D,gtr:k,ltr:U,intersects:j,simplifyRange:F,subset:M,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}function Ve(){return Yp||(Yp=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.toCommandProperties=fd.toCommandValue=void 0,fd.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},fd.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}:{}}),fd}function He(){return ed||(ed=1,function(e){var t=hd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Rr,r=Ir,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;return yield r(n,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,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(hd)),hd}function qe(){return nd||(nd=1,function(e){function t(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,r=gd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=gd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=gd.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=gd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const a=o(Ir),c=o(Pr);e.chmod=(n=a.promises).chmod,e.copyFile=n.copyFile,e.lstat=n.lstat,e.mkdir=n.mkdir,e.open=n.open,e.readdir=n.readdir,e.readlink=n.readlink,e.rename=n.rename,e.rm=n.rm,e.rmdir=n.rmdir,e.stat=n.stat,e.symlink=n.symlink,e.unlink=n.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=a.constants.O_RDONLY,e.exists=function(t){return s(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(n){if("ENOENT"===n.code)return!1;throw n}return!0}))},e.isDirectory=function(t,n=!1){return s(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){return t=t||"",e.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")}(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(n,r){return s(this,void 0,void 0,(function*(){let i;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile())if(e.IS_WINDOWS){const e=c.extname(n).toUpperCase();if(r.some((t=>t.toUpperCase()===e)))return n}else if(t(i))return n;const o=n;for(const a of r){n=o+a,i=void 0;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile()){if(e.IS_WINDOWS){try{const t=c.dirname(n),r=c.basename(n).toUpperCase();for(const i of yield e.readdir(t))if(r===i.toUpperCase()){n=c.join(t,i);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${n}': ${s}`)}return n}if(t(i))return n}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(gd)),gd}function ze(){function e(e){return c(this,void 0,void 0,(function*(){if(f.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield f.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(t){throw Error("File was unable to be removed "+t)}}))}function t(e){return c(this,void 0,void 0,(function*(){u.ok(e,"a path argument must be provided"),yield f.mkdir(e,{recursive:!0})}))}function n(e){return c(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(f.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(l.delimiter))e&&t.push(e);if(f.isRooted(e)){const n=yield f.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(l.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(l.delimiter))e&&n.push(e);const r=[];for(const i of n){const n=yield f.tryGetExecutablePath(l.join(i,e),t);n&&r.push(n)}return r}))}function r(e,n,o,s){return c(this,void 0,void 0,(function*(){if(o>=255)return;o++,yield t(n);const a=yield f.readdir(e);for(const t of a){const a=`${e}/${t}`,c=`${n}/${t}`;(yield f.lstat(a)).isDirectory()?yield r(a,c,o,s):yield i(a,c,s)}yield f.chmod(n,(yield f.stat(e)).mode)}))}function i(e,t,n){return c(this,void 0,void 0,(function*(){if((yield f.lstat(e)).isSymbolicLink()){try{yield f.lstat(t),yield f.unlink(t)}catch(r){"EPERM"===r.code&&(yield f.chmod(t,"0666"),yield f.unlink(t))}const n=yield f.readlink(e);yield f.symlink(n,t,f.IS_WINDOWS?"junction":null)}else(yield f.exists(t))&&!n||(yield f.copyFile(e,t))}))}if(rd)return Ed;rd=1;var o=Ed.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=Ed.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Ed.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},c=Ed.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.findInPath=Ed.which=Ed.mkdirP=Ed.rmRF=Ed.mv=Ed.cp=void 0;const u=Ur,l=a(Pr),f=a(qe());return Ed.cp=function(e,t,n={}){return c(this,void 0,void 0,(function*(){const{force:o,recursive:s,copySourceDirectory:a}=function(e){return{force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}}(n),c=(yield f.exists(t))?yield f.stat(t):null;if(c&&c.isFile()&&!o)return;const u=c&&c.isDirectory()&&a?l.join(t,l.basename(e)):t;if(!(yield f.exists(e)))throw Error("no such file or directory: "+e);if((yield f.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield r(e,u,0,o)}else{if(""===l.relative(e,u))throw Error(`'${u}' and '${e}' are the same file`);yield i(e,u,o)}}))},Ed.mv=function(n,r,i={}){return c(this,void 0,void 0,(function*(){if(yield f.exists(r)){let t=!0;if((yield f.isDirectory(r))&&(r=l.join(r,l.basename(n)),t=yield f.exists(r)),t){if(null!=i.force&&!i.force)throw Error("Destination already exists");yield e(r)}}yield t(l.dirname(r)),yield f.rename(n,r)}))},Ed.rmRF=e,Ed.mkdirP=t,Ed.which=function e(t,r){return c(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const n=yield e(t,!1);if(!n)throw Error(f.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}const i=yield n(t);return i&&i.length>0?i[0]:""}))},Ed.findInPath=n,Ed}function We(){function e(e,t,n){return i(this,void 0,void 0,(function*(){const r=s.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];return t=r.slice(1).concat(t||[]),new s.ToolRunner(i,t,n).exec()}))}if(od)return vd;od=1;var t=vd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=vd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=vd.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=vd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(vd,"__esModule",{value:!0}),vd.getExecOutput=vd.exec=void 0;const o=Mr,s=r(function(){if(id)return wd;id=1;var e=wd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=wd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=wd.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=wd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(wd,"__esModule",{value:!0}),wd.argStringToArray=wd.ToolRunner=void 0;const i=n(Rr),o=n(Lr),s=n(kr),a=n(Pr),c=n(ze()),u=n(qe()),l=Br,f="win32"===process.platform;wd.ToolRunner=class extends o.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let i=t?"":"[command]";if(f)if(this._isCmdFile()){i+=n;for(const e of r)i+=" "+e}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of r)i+=" "+e}else{i+=this._windowsQuoteCmdArg(n);for(const e of r)i+=" "+this._windowsQuoteCmdArg(e)}else{i+=n;for(const e of r)i+=" "+e}return i}_processLineBuffer(e,t,n){try{let r=t+""+e,o=r.indexOf(i.EOL);for(;o>-1;)n(r.substring(0,o)),r=r.substring(o+i.EOL.length),o=r.indexOf(i.EOL);return r}catch(r){return this._debug("error processing line. Failed with error "+r),""}}_getSpawnFileName(){return f&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(f&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const o of e)if(t.some((e=>e===o))){n=!0;break}if(!n)return e;let r='"',i=!0;for(let o=e.length;o>0;o--)r+=e[o-1],i&&"\\"===e[o-1]?r+="\\":'"'===e[o-1]?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const n={};return n.cwd=(e=e||{}).cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))&&(this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+i.EOL);const r=new p(n,this.toolPath);if(r.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield u.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),a=s.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(a.stderr&&a.stderr.on("data",(e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.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",((n,r)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}},wd.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1}const n=[];let r=!1,i=!1,o="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&i?t(a):"\\"===a&&r?i=!0:" "!==a||r?t(a):o.length>0&&(n.push(o),o=""):i?t(a):r=!r}return o.length>0&&n.push(o.trim()),n};class p extends o.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=l.setTimeout(p.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}return wd}());return vd.exec=e,vd.getExecOutput=function(t,n,r){var s,a;return i(this,void 0,void 0,(function*(){let i="",c="";const u=new o.StringDecoder("utf8"),l=new o.StringDecoder("utf8"),f=null===(s=null==r?void 0:r.listeners)||void 0===s?void 0:s.stdout,p=null===(a=null==r?void 0:r.listeners)||void 0===a?void 0:a.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{i+=u.write(e),f&&f(e)},stderr:e=>{c+=l.write(e),p&&p(e)}}),h=yield e(t,n,Object.assign(Object.assign({},r),{listeners:d}));return i+=u.end(),c+=l.end(),{exitCode:h,stdout:i,stderr:c}}))},vd}function Xe(){return ad||(ad=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function n(e,t={}){(0,u.issueCommand)("error",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)}function r(e){(0,u.issue)("group",e)}function i(){(0,u.issue)("endgroup")}var o=ud.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=ud.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=ud.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},c=ud.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const u=function(){function e(e,t,n){const r=new s(e,t,n);process.stdout.write(""+r+i.EOL)}if(Jp)return ld;Jp=1;var t=ld.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=ld.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ld.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(ld,"__esModule",{value:!0}),ld.issue=ld.issueCommand=void 0;const i=r(Rr),o=Ve();ld.issueCommand=e,ld.issue=function(t,n=""){e(t,{},n)};class s{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const i=this.properties[r];i&&(n?n=!1:e+=",",e+=`${r}=${t=i,(0,o.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return ld}(),f=function(){if(Qp)return pd;Qp=1;var e=pd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=pd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=pd.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(pd,"__esModule",{value:!0}),pd.prepareKeyValueMessage=pd.issueFileCommand=void 0;const r=n(Tr),i=n(Ir),o=n(Rr),s=Ve();return pd.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!i.existsSync(n))throw Error("Missing file at path: "+n);i.appendFileSync(n,`${(0,s.toCommandValue)(t)}${o.EOL}`,{encoding:"utf8"})},pd.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+r.randomUUID(),i=(0,s.toCommandValue)(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(i.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${o.EOL}${i}${o.EOL}${n}`},pd}(),p=Ve(),d=a(Rr),h=a(Pr),m=function(){if(Zp)return dd;Zp=1;var e=dd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(dd,"__esModule",{value:!0}),dd.OidcClient=void 0;const t=Ui,r=l(),i=Xe();class o{static createHttpClient(e=!0,n=10){const i={allowRetries:e,maxRetries:n};return new t.HttpClient("actions/oidc-client",[new r.BearerCredentialHandler(o.getRequestToken())],i)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=o.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),i=null===(n=r.result)||void 0===n?void 0:n.value;if(!i)throw Error("Response json body do not have ID Token field");return i}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=o.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),(0,i.debug)("ID token url is "+e);const n=yield o.getCall(e);return(0,i.setSecret)(n),n}catch(n){throw Error("Error message: "+n.message)}}))}}return dd.OidcClient=o,dd}();var y,v;(v=y||(e.ExitCode=y={}))[v.Success=0]="Success",v[v.Failure=1]="Failure",e.exportVariable=function(e,t){const n=(0,p.toCommandValue)(t);if(process.env[e]=n,process.env.GITHUB_ENV)return(0,f.issueFileCommand)("ENV",(0,f.prepareKeyValueMessage)(e,t));(0,u.issueCommand)("set-env",{name:e},n)},e.setSecret=function(e){(0,u.issueCommand)("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?(0,f.issueFileCommand)("PATH",e):(0,u.issueCommand)("add-path",{},e),process.env.PATH=`${e}${h.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return(0,f.issueFileCommand)("OUTPUT",(0,f.prepareKeyValueMessage)(e,t));process.stdout.write(d.EOL),(0,u.issueCommand)("set-output",{name:e},(0,p.toCommandValue)(t))},e.setCommandEcho=function(e){(0,u.issue)("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=y.Failure,n(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,u.issueCommand)("debug",{},e)},e.error=n,e.warning=function(e,t={}){(0,u.issueCommand)("warning",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){(0,u.issueCommand)("notice",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+d.EOL)},e.startGroup=r,e.endGroup=i,e.group=function(e,t){return c(this,void 0,void 0,(function*(){let n;r(e);try{n=yield t()}finally{i()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return(0,f.issueFileCommand)("STATE",(0,f.prepareKeyValueMessage)(e,t));(0,u.issueCommand)("save-state",{name:e},(0,p.toCommandValue)(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return c(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))};var w=He();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return w.summary}});var E=He();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return E.markdownSummary}});var g=function(){if(td)return md;td=1;var e=md.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=md.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=md.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(md,"__esModule",{value:!0}),md.toPlatformPath=md.toWin32Path=md.toPosixPath=void 0;const r=n(Pr);return md.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},md.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},md.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},md}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return g.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return g.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return g.toPlatformPath}}),e.platform=a((sd||(sd=1,function(e){var t=yd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=yd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=yd.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=yd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=yd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0;const s=o(Rr),a=r(We());e.platform=s.default.platform(),e.arch=s.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield i(void 0,void 0,void 0,e.isWindows?function*(){const{stdout:e}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:t}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0});return{name:t.trim(),version:e.trim()}}:e.isMacOS?function*(){var e,t,n,r;const{stdout:i}=yield a.getExecOutput("sw_vers",void 0,{silent:!0}),o=null!==(t=null===(e=i.match(/ProductVersion:\s*(.+)/))||void 0===e?void 0:e[1])&&void 0!==t?t:"";return{name:null!==(r=null===(n=i.match(/ProductName:\s*(.+)/))||void 0===n?void 0:n[1])&&void 0!==r?r:"",version:o}}:function*(){const{stdout:e}=yield a.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,n]=e.trim().split("\n");return{name:t,version:n}})),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}}(yd)),yd))}(ud)),ud}function Ke(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ye(e,t,n,r){var i,o=e[t],s=~r.string.indexOf(t)?null==n||!0===n?"":n+"":"boolean"==typeof n?n:~r.boolean.indexOf(t)?"false"!==n&&("true"===n||(e._.push(0*(i=+n)==0?i:n),!!n)):0*(i=+n)==0?i:n;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s]}async function Je(e,t,n,r=40){Od?await async function(e,t,n=40){await L("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await xl(n),await Rd(n.rcPath,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi\n`))}function Qe(e){const t={...process.env,DEBIAN_FRONTEND:"noninteractive"};return"nala"===e&&(void 0===t.LANG&&(t.LANG="C.UTF-8"),void 0===t.LC_ALL&&(t.LC_ALL="C.UTF-8")),t}function Ze(){return null!==fa.sync("nala",{nothrow:!0})}function et(){let e;return e=Ze()?"nala":"apt-get",e}function tt(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}async function nt(e){try{const{stdout:t}=await b("dpkg",["-s",e],{env:Qe("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("Status: install ok installed")))}catch{return!1}}async function rt(e,t=et()){return(await Promise.all(e.map((e=>it(e,t))))).filter((e=>void 0!==e))}async function it(e,t=et()){const n=await async function(e,t){const{name:n,version:r,fallBackToLatest:i=!1}=t;switch(await ot(e,n,r)){case Cd.NameDashVersion:return`${n}-${r}`;case Cd.NameEqualsVersion:return`${n}=${r}`;case Cd.Name:return void 0!==r&&""!==r&&i&&h(`Could not find package ${n} with version ${r}. Installing the latest version.`),n;default:throw Error(`Could not find package ${n} ${null!=r?r:""}`)}}(t,e);return await nt(n)?void 0:n}async function ot(e,t,n){if(void 0!==n&&""!==n){const{stdout:r}=await b("apt-cache",["search","--names-only",`^${tt(t)}-${tt(n)}$`],{env:Qe(e),stdio:"pipe"});if(""!==r.trim())return Cd.NameDashVersion;try{const{stdout:r}=await b("apt-cache",["show",`${t}=${n}`],{env:Qe(e)});if(""===r.trim())return Cd.NameEqualsVersion}catch{}}try{const{stdout:n}=await b("apt-cache",["show",t],{env:Qe(e),stdio:"pipe"});if(""!==n.trim())return Cd.Name}catch{}return Td?Cd.None:(Pd(e),ot(e,t,n))}async function st(e,t=!1){try{const r=et();for(const{name:t,version:n}of e)y(`Installing ${t} ${null!=n?n:""} via ${r}`);t&&Pd(r),await async function(e,t){const n=[...new Set(t.flatMap((e=>{var t;return null!=(t=e.repository)?t:[]})))];await Promise.all(n.map((t=>async function(e,t=et()){await Nd(t),await async function(e){await nt("software-properties-common")||N(e,["install","-y","--fix-broken","-o",Id,"software-properties-common"],{...ma,env:Qe(e)})}(t),N("add-apt-repository",["-y","--no-update",e],{...ma,env:Qe(t)}),Pd.clear(),Pd(t)}(t,e))))}(r,e);const i=await rt(e,r);if(0===i.length)return y("All packages are already installed"),{binDir:"/usr/bin/"};await Nd(r);try{await async function(e){await Promise.all(e.map((async e=>{var t;void 0!==e.key&&await(t=e.key,"keyUrl"in t?at(t):async function({key:e,keyServer:t=$d,fileName:n,keyStorePath:r=$d}){try{ut(n);const i=Pr.join(r,n);return await ce(i)||(ct(),await L("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+i,"--keyserver",t,"--recv-keys",e]),await L("chmod",["644",i])),i}catch(i){return void h(`Failed to add apt key via server ${t}: ${i}`)}}(t))})))}(e),N(r,["install","--fix-broken","-y",...i],{...ma,env:Qe(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;Ld.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(h(`Failed to install packages ${i}. Retrying...`),N(r,["install","--fix-broken","-y","-o",Id,...i],{...ma,env:Qe(r)}))}return{binDir:"/usr/bin/"}}catch(n){throw Error("Failed to install apt packages: "+(n instanceof Error?`${n.message}\n${n.stack}`:n+""))}}async function at({keyUrl:e,fileName:t,keyStorePath:n=Ad}){try{ut(t);const r=Pr.join(n,t);if(!(await ce(r))){ct(),await st([{name:"ca-certificates"}]);const n=Pr.join(Rr.tmpdir(),t),i=new Sd.DownloaderHelper(e,Rr.tmpdir(),{fileName:t});i.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await i.start(),N("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),N("chmod",["644",r])}return r}catch(r){return void h(`Failed to add apt key via download ${e}: ${r}`)}}function ct(){N("gpg",["-k"])}function ut(e){if(!e.endsWith(".gpg"))throw Error("Key file name must end with .gpg: "+e)}async function lt(e={}){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof Dd)return{binDir:Dd};const t=await fa("brew",{nothrow:!0});if(null!==t)return Dd=Pr.dirname(t),{binDir:Dd};await st([{name:"ca-certificates"}]);const n=new Sd.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Rr.tmpdir(),{fileName:"install-brew.sh"});return n.on("error",(e=>{throw Error("Failed to download the brew installer script: "+e)})),await n.start(),S("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),Dd=ft(),await he(Dd,e.rcOptions),{binDir:Dd}}function ft(){return Pr.join(pt(),"bin")}function pt(){if("darwin"===process.platform)return"arm64"===process.arch?"/opt/homebrew":"/usr/local";if("linux"===process.platform)return"/home/linuxbrew/.linuxbrew";throw Error("Unsupported platform for brew")}async function dt(e,t,n={}){"overwrite"in n||(n.overwrite=!0),!0===n.cask&&(n.overwrite=!1),y(`Installing ${e} ${null!=t?t:""} via brew`),Md&&null!==fa.sync("brew",{nothrow:!0})||(await lt(),Md=!0);const r=ft(),i=Pr.join(r,"brew"),o=["install",void 0!==t&&""!==t?`${e}@${t}`:e];for(const[s,a]of Object.entries(n))"boolean"==typeof a&&a?o.push("--"+s):"string"==typeof a&&o.push("--"+s,a);return S(i,o,{stdio:"inherit"}),{binDir:r}}function ht(){return"linux"===process.platform&&(void 0===kd&&(kd=null!==fa.sync("dnf",{nothrow:!0})),kd)}function mt(){return"linux"===process.platform&&(void 0===Ud&&(Ud=null!==fa.sync("pacman",{nothrow:!0})),Ud)}function yt(){return"linux"===process.platform&&(void 0===jd&&(jd=null!==fa.sync("apt-get",{nothrow:!0})),jd)}async function vt(e,t,n){var r;if("win32"!==process.platform)return;if("string"==typeof Fd)return{binDir:Fd};const i=fa.sync("choco",{nothrow:!0});if(null!==i)return Fd=Pr.dirname(i),{binDir:Fd};let o="powershell.exe";const s=fa.sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(o=s),S(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await he(a,lv);const c=fa.sync("choco",{nothrow:!0});return Fd=null!==c?Pr.dirname(c):(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin",await ce(Fd)?{binDir:Fd}:void 0}async function wt(e,t,n=[]){var r;y(`Installing ${e} ${null!=t?t:""} via chocolatey`),Bd&&null!==fa.sync("choco",{nothrow:!0})||(await vt(0,0,process),Bd=!0);const i=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=i,void 0!==t&&""!==t)S("choco",["install","-y",e,"--version="+t,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{S("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(a){if(!a.message.includes("exit code 3010"))throw a;y(e+" might require a reboot for the completion of the installation.")}const s=(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin";return await he(s,lv),{binDir:s}}async function Et(e){for(const{name:t,version:n}of e)y(`Installing ${t} ${null!=n?n:""} via dnf`);return N("dnf",["-y","install",...await Promise.all(e.map((e=>async function(e,t){if(void 0!==t&&""!==t){const{stdout:n}=await b("dnf",["search","-q",`${e}-${t}`]);if(""!==n.trim())return`${e}-${t}`;{const{stdout:n}=await b("dnf",["search","-q",`${e}${t}`]);if(""!==n.trim())return`${e}${t}`;h(`Failed to install ${e} ${t} via dnf, trying without version`)}}return e}(e.name,e.version))))]),{binDir:"/usr/bin/"}}async function gt(e,t,n){y(`Installing ${e} ${null!=t?t:""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===fa.sync("yay",{nothrow:!0}))try{N("pacman",["-S","--noconfirm","base-devel","git"]);const e=Pr.join(Rr.tmpdir(),"yay");N("mkdir",["-p",e]),P()?(h("Creating a non-root user to build yay"),N("useradd",["-m","-G","wheel","builder"]),N("passwd",["-d","builder"]),N("chown",["-R","builder:builder",e]),N("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),qd=!0,S("su",["-","builder","-c","git clone https://aur.archlinux.org/yay.git "+e],{stdio:"inherit"}),S("su",["-","builder","-c",`cd ${e} && makepkg -si --noconfirm`],{stdio:"inherit"})):(S("git",["clone","https://aur.archlinux.org/yay.git",e],{stdio:"inherit",cwd:Rr.tmpdir()}),S("makepkg",["-si","--noconfirm"],{stdio:"inherit",cwd:e})),S("rm",["-rf",e],{stdio:"inherit"})}catch(e){throw Error(`Failed to install yay: ${e}. Install yay manually and re-run the script.`)}}(),Gd||"yay"===n||(N(r,["-Sy","--noconfirm"]),Gd=!0),Vd||"yay"===n||(N(r,["-S","--noconfirm","base-devel"]),Vd=!0);const i=e=>"yay"===n?P()&&qd?N("su",["-","builder","-c","yay -S --noconfirm "+e]):S(n,["-S","--noconfirm",e]):N(null!=n?n:r,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){const n=await async function(e,t){const n=[];try{const{stdout:r}=await b(e,["-Si",t]);for(const e of r.matchAll(Hd))n.push(e[1])}catch(r){h(`Failed to get available versions for ${t}: ${r}`)}return n}(r,e);if(n.includes(t))try{i(`${e}=${t}`)}catch{i(`${e}${t}`)}else y(`Failed to install ${e} ${t} via pacman, trying without version`),i(e)}else i(e);return{binDir:"/usr/bin/"}}function _t(e,t){return Object.keys(t).forEach((n=>{"default"===n||"__esModule"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:()=>t[n]})})),e}function bt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function St(e,t=!0){return t?Pr.basename(e):Pr.basename(e,Pr.extname(e))}function Ot(e){return Pr.normalize(e).replace(RegExp(tt(Pr.sep)+"$"),"")}function Rt(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function It(e,t){const n=Pr.extname(e),r=`${t}${Pr.basename(e,n)}${n}`;return Pr.join(Pr.dirname(e),r)}function Tt(e,t){const n=Pr.extname(e),r=`${Pr.basename(e,n)}${t}${n}`;return Pr.join(Pr.dirname(e),r)}function Pt(e,t=".cmd",n=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function Ct(e){return"win32"===process.platform?e:"./"+e}function xt(e){const t=Pr.extname(e).length;return e.slice(0,-t)}function Nt(e,t){return Xd(e,t)}function Lt(e,t){const n=Pr.relative(t,e);return!(!n||".."===n||n.startsWith(".."+Pr.sep)||n===Pr.resolve(e))}function At(){return mh||(mh=1,function(e,t){function n(e){x[e]=N++}function r(e){for(var t=0;A.length>t;t++){var n=A[t][0],r=A[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o)return e;if("string"!=typeof e)return null;if(e.length>O)return null;if(!(t.loose?P[x.LOOSE]:P[x.FULL]).test(e))return null;try{return new o(e,t)}catch(n){return null}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>O)throw new TypeError("version is longer than "+O+" characters");if(!(this instanceof o))return new o(e,t);S("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?P[x.LOOSE]:P[x.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>R||0>this.major)throw new TypeError("Invalid major version");if(this.minor>R||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>R||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&R>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}function s(e,t){var n=D.test(e),r=D.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:t>e?-1:1}function a(e,t,n){return new o(e,n).compare(new o(t,n))}function c(e,t,n){return a(e,t,n)>0}function u(e,t,n){return 0>a(e,t,n)}function l(e,t,n){return 0===a(e,t,n)}function f(e,t,n){return 0!==a(e,t,n)}function p(e,t,n){return a(e,t,n)>=0}function d(e,t,n){return 0>=a(e,t,n)}function h(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return l(e,n,r);case"!=":return f(e,n,r);case">":return c(e,n,r);case">=":return p(e,n,r);case"<":return u(e,n,r);case"<=":return d(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),S("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===k?"":this.operator+this.semver.version,S("comp",this)}function y(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof y)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new y(e.raw,t);if(e instanceof m)return new y(e.value,t);if(!(this instanceof y))return new y(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.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 new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function v(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function w(e){return!e||"x"===e.toLowerCase()||"*"===e}function E(e,t,n,r,i,o,s,a,c,u,l,f,p){return((t=w(n)?"":w(r)?">="+n+".0.0":w(i)?">="+n+"."+r+".0":">="+t)+" "+(a=w(c)?"":w(u)?"<"+(+c+1)+".0.0":w(l)?"<"+c+"."+(+u+1)+".0":f?"<="+c+"."+u+"."+l+"-"+f:"<="+a)).trim()}function g(e,t,n){for(var r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(r=0;e.length>r;r++)if(S(e[r].semver),e[r].semver!==k&&e[r].semver.prerelease.length>0){var i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function _(e,t,n){try{t=new y(t,n)}catch(r){return!1}return t.test(e)}function b(e,t,n,r){var i,s,a,l,f;switch(e=new o(e,r),t=new y(t,r),n){case">":i=c,s=d,a=u,l=">",f=">=";break;case"<":i=u,s=p,a=c,l="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var v=null,w=null;if(t.set[h].forEach((function(e){e.semver===k&&(e=new m(">=0.0.0")),w=w||e,i(e.semver,(v=v||e).semver,r)?v=e:a(e.semver,w.semver,r)&&(w=e)})),v.operator===l||v.operator===f)return!1;if((!w.operator||w.operator===l)&&s(e,w.semver))return!1;if(w.operator===f&&a(e,w.semver))return!1}return!0}var S;t=Ph.exports=o,S="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var O=256,R=Number.MAX_SAFE_INTEGER||9007199254740991,I=O-6,T=t.re=[],P=t.safeRe=[],C=t.src=[],x=t.tokens={},N=0,L="[a-zA-Z0-9-]",A=[["\\s",1],["\\d",O],[L,I]];n("NUMERICIDENTIFIER"),C[x.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),C[x.NUMERICIDENTIFIERLOOSE]="\\d+",n("NONNUMERICIDENTIFIER"),C[x.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+L+"*",n("MAINVERSION"),C[x.MAINVERSION]="("+C[x.NUMERICIDENTIFIER]+")\\.("+C[x.NUMERICIDENTIFIER]+")\\.("+C[x.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),C[x.MAINVERSIONLOOSE]="("+C[x.NUMERICIDENTIFIERLOOSE]+")\\.("+C[x.NUMERICIDENTIFIERLOOSE]+")\\.("+C[x.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),C[x.PRERELEASEIDENTIFIER]="(?:"+C[x.NUMERICIDENTIFIER]+"|"+C[x.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),C[x.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[x.NUMERICIDENTIFIERLOOSE]+"|"+C[x.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),C[x.PRERELEASE]="(?:-("+C[x.PRERELEASEIDENTIFIER]+"(?:\\."+C[x.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),C[x.PRERELEASELOOSE]="(?:-?("+C[x.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[x.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),C[x.BUILDIDENTIFIER]=L+"+",n("BUILD"),C[x.BUILD]="(?:\\+("+C[x.BUILDIDENTIFIER]+"(?:\\."+C[x.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),C[x.FULLPLAIN]="v?"+C[x.MAINVERSION]+C[x.PRERELEASE]+"?"+C[x.BUILD]+"?",C[x.FULL]="^"+C[x.FULLPLAIN]+"$",n("LOOSEPLAIN"),C[x.LOOSEPLAIN]="[v=\\s]*"+C[x.MAINVERSIONLOOSE]+C[x.PRERELEASELOOSE]+"?"+C[x.BUILD]+"?",n("LOOSE"),C[x.LOOSE]="^"+C[x.LOOSEPLAIN]+"$",n("GTLT"),C[x.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),C[x.XRANGEIDENTIFIERLOOSE]=C[x.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),C[x.XRANGEIDENTIFIER]=C[x.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),C[x.XRANGEPLAIN]="[v=\\s]*("+C[x.XRANGEIDENTIFIER]+")(?:\\.("+C[x.XRANGEIDENTIFIER]+")(?:\\.("+C[x.XRANGEIDENTIFIER]+")(?:"+C[x.PRERELEASE]+")?"+C[x.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),C[x.XRANGEPLAINLOOSE]="[v=\\s]*("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:"+C[x.PRERELEASELOOSE]+")?"+C[x.BUILD]+"?)?)?",n("XRANGE"),C[x.XRANGE]="^"+C[x.GTLT]+"\\s*"+C[x.XRANGEPLAIN]+"$",n("XRANGELOOSE"),C[x.XRANGELOOSE]="^"+C[x.GTLT]+"\\s*"+C[x.XRANGEPLAINLOOSE]+"$",n("COERCE"),C[x.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),T[x.COERCERTL]=RegExp(C[x.COERCE],"g"),P[x.COERCERTL]=RegExp(r(C[x.COERCE]),"g"),n("LONETILDE"),C[x.LONETILDE]="(?:~>?)",n("TILDETRIM"),C[x.TILDETRIM]="(\\s*)"+C[x.LONETILDE]+"\\s+",T[x.TILDETRIM]=RegExp(C[x.TILDETRIM],"g"),P[x.TILDETRIM]=RegExp(r(C[x.TILDETRIM]),"g"),n("TILDE"),C[x.TILDE]="^"+C[x.LONETILDE]+C[x.XRANGEPLAIN]+"$",n("TILDELOOSE"),C[x.TILDELOOSE]="^"+C[x.LONETILDE]+C[x.XRANGEPLAINLOOSE]+"$",n("LONECARET"),C[x.LONECARET]="(?:\\^)",n("CARETTRIM"),C[x.CARETTRIM]="(\\s*)"+C[x.LONECARET]+"\\s+",T[x.CARETTRIM]=RegExp(C[x.CARETTRIM],"g"),P[x.CARETTRIM]=RegExp(r(C[x.CARETTRIM]),"g"),n("CARET"),C[x.CARET]="^"+C[x.LONECARET]+C[x.XRANGEPLAIN]+"$",n("CARETLOOSE"),C[x.CARETLOOSE]="^"+C[x.LONECARET]+C[x.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),C[x.COMPARATORLOOSE]="^"+C[x.GTLT]+"\\s*("+C[x.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),C[x.COMPARATOR]="^"+C[x.GTLT]+"\\s*("+C[x.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),C[x.COMPARATORTRIM]="(\\s*)"+C[x.GTLT]+"\\s*("+C[x.LOOSEPLAIN]+"|"+C[x.XRANGEPLAIN]+")",T[x.COMPARATORTRIM]=RegExp(C[x.COMPARATORTRIM],"g"),P[x.COMPARATORTRIM]=RegExp(r(C[x.COMPARATORTRIM]),"g"),n("HYPHENRANGE"),C[x.HYPHENRANGE]="^\\s*("+C[x.XRANGEPLAIN]+")\\s+-\\s+("+C[x.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),C[x.HYPHENRANGELOOSE]="^\\s*("+C[x.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[x.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),C[x.STAR]="(<|>)?=?\\s*\\*";for(var $=0;N>$;$++)S($,C[$]),T[$]||(T[$]=RegExp(C[$]),P[$]=RegExp(r(C[$])));t.parse=i,t.valid=function(e,t){var n=i(e,t);return n?n.version:null},t.clean=function(e,t){var n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},o.prototype.toString=function(){return this.version},o.prototype.compare=function(e){return S("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e)},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],r=e.prerelease[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var n=this.build[t],r=e.build[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new o(e,n).inc(t,r).version}catch(i){return null}},t.diff=function(e,t){if(l(e,t))return null;var n=i(e),r=i(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var s="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return s},t.compareIdentifiers=s;var D=/^[0-9]+$/;t.rcompareIdentifiers=function(e,t){return s(t,e)},t.major=function(e,t){return new o(e,t).major},t.minor=function(e,t){return new o(e,t).minor},t.patch=function(e,t){return new o(e,t).patch},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0)},t.compareBuild=function(e,t,n){var r=new o(e,n),i=new o(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return a(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=c,t.lt=u,t.eq=l,t.neq=f,t.gte=p,t.lte=d,t.cmp=h,t.Comparator=m;var k={};m.prototype.parse=function(e){var t=e.match(this.options.loose?P[x.COMPARATORLOOSE]:P[x.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new o(t[2],this.options.loose):k},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(S("Comparator.test",e,this.options.loose),this.semver===k||e===k)return!0;if("string"==typeof e)try{e=new o(e,this.options)}catch(t){return!1}return h(e,this.operator,this.semver,this.options)},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new y(e.value,t),_(this.value,n,t));if(""===e.operator)return""===e.value||(n=new y(this.value,t),_(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||c},t.Range=y,y.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},y.prototype.toString=function(){return this.range},y.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[x.HYPHENRANGELOOSE]:P[x.HYPHENRANGE],E),S("hyphen replace",e),e=e.replace(P[x.COMPARATORTRIM],"$1$2$3"),S("comparator trim",e,P[x.COMPARATORTRIM]),e=(e=(e=e.replace(P[x.TILDETRIM],"$1~")).replace(P[x.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?P[x.COMPARATORLOOSE]:P[x.COMPARATOR],r=e.split(" ").map((function(e){return function(e,t){return S("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return S("caret",e,t),e.replace(t.loose?P[x.CARETLOOSE]:P[x.CARET],(function(t,n,r,i,o){var s;return S("caret",e,t,n,r,i,o),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(i)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":o?(S("replaceCaret pr",o),s="0"===n?"0"===r?">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+"-"+o+" <"+(+n+1)+".0.0"):(S("no pr"),s="0"===n?"0"===r?">="+n+"."+r+"."+i+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+" <"+(+n+1)+".0.0"),S("caret return",s),s}))}(e,t)})).join(" ")}(e,t),S("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return e.replace(t.loose?P[x.TILDELOOSE]:P[x.TILDE],(function(t,n,r,i,o){var s;return S("tilde",e,t,n,r,i,o),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(i)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":o?(S("replaceTilde pr",o),s=">="+n+"."+r+"."+i+"-"+o+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0",S("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),S("tildes",e),e=function(e,t){return S("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){return(e=e.trim()).replace(t.loose?P[x.XRANGELOOSE]:P[x.XRANGE],(function(n,r,i,o,s,a){S("xRange",e,n,r,i,o,s,a);var c=w(i),u=c||w(o),l=u||w(s);return"="===r&&l&&(r=""),a=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&l?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),n=r+i+"."+o+"."+s+a):u?n=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:l&&(n=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),S("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),S("xrange",e),e=function(e,t){return S("replaceStars",e,t),e.trim().replace(P[x.STAR],"")}(e,t),S("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(r=r.filter((function(e){return!!e.match(n)}))),r.map((function(e){return new m(e,this.options)}),this)},y.prototype.intersects=function(e,t){if(!(e instanceof y))throw new TypeError("a Range is required");return this.set.some((function(n){return v(n,t)&&e.set.some((function(e){return v(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new y(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},y.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options)}catch(n){return!1}for(var t=0;this.set.length>t;t++)if(g(this.set[t],e,this.options))return!0;return!1},t.satisfies=_,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&-1!==i.compare(e)||(i=new o(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&1!==i.compare(e)||(i=new o(r=e,n)))})),r},t.minVersion=function(e,t){e=new y(e,t);var n=new o("0.0.0");if(e.test(n))return n;if(n=new o("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;e.set.length>r;++r)e.set[r].forEach((function(e){var t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!c(n,t)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new y(e,t).range||"*"}catch(n){return null}},t.ltr=function(e,t,n){return b(e,t,"<",n)},t.gtr=function(e,t,n){return b(e,t,">",n)},t.outside=b,t.prerelease=function(e,t){var n=i(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new y(e,n),t=new y(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=P[x.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),P[x.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;P[x.COERCERTL].lastIndex=-1}else n=e.match(P[x.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,Ph.exports)),Ph.exports}function $t(){return $h||($h=1,qm.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{t.push(((e,t)=>null!=e?r(e):n(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},qm.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>n(null,e)),n)}),"name",{value:e.name})}),qm}function Dt(){function e(e,t){Object.defineProperty(e,o,{get:function(){return t}})}function t(e){function r(e,t){return this instanceof r?(m.apply(this,arguments),this):r.apply(Object.create(r.prototype),arguments)}function i(e,t){return this instanceof i?(y.apply(this,arguments),this):i.apply(Object.create(i.prototype),arguments)}function o(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return E(t,r,i,(function(a,c){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)}c(e),e.gracefulify=t,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var s=e.readFile;e.readFile=function(e,t,r){return"function"==typeof t&&(r=t,t=null),function e(t,r,i,o){return s(t,r,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,i],s,o||Date.now(),Date.now()])}))}(e,t,r)};var a=e.writeFile;e.writeFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return a(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)};var l=e.appendFile;l&&(e.appendFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=null),function e(t,r,i,o,s){return l(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)});var f=e.copyFile;f&&(e.copyFile=function(e,t,r,i){return"function"==typeof r&&(i=r,r=0),function e(t,r,i,o,s){return f(t,r,i,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,i,o],a,s||Date.now(),Date.now()])}))}(e,t,r,i)});var p=e.readdir;e.readdir=function(e,t,r){function i(e,t,r,i){return function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,s,a)):n([o,[e,t,r],s,i||Date.now(),Date.now()])}}"function"==typeof t&&(r=t,t=null);var o=d.test(process.version)?function(e,t,n,r){return p(e,i(e,t,n,r))}:function(e,t,n,r){return p(e,t,i(e,t,n,r))};return o(e,t,r)};var d=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var h=u(e);r=h.ReadStream,i=h.WriteStream}var m=e.ReadStream;m&&(r.prototype=Object.create(m.prototype),r.prototype.open=function(){var e=this;o(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var y=e.WriteStream;y&&(i.prototype=Object.create(y.prototype),i.prototype.open=function(){var e=this;o(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return i},set:function(e){i=e},enumerable:!0,configurable:!0});var v=r;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:!0,configurable:!0});var w=i;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(e){w=e},enumerable:!0,configurable:!0});var E=e.open;return e.open=o,e}function n(e){d("ENQUEUE",e[0].name,e[1]),a[o].push(e),i()}function r(){for(var e=Date.now(),t=0;a[o].length>t;++t)a[o][t].length>2&&(a[o][t][3]=e,a[o][t][4]=e);i()}function i(){if(clearTimeout(p),p=void 0,0!==a[o].length){var e=a[o].shift(),t=e[0],n=e[1],r=e[2],s=e[3],c=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(6e4>Date.now()-s){var u=Date.now()-c;Math.min(1.2*Math.max(c-s,1),100)>u?a[o].push(e):(d("RETRY",t.name,n),t.apply(null,n.concat([s])))}else{d("TIMEOUT",t.name,n);var l=n.pop();"function"==typeof l&&l.call(null,r)}void 0===p&&(p=setTimeout(i,0))}}if(Gh)return Bh;Gh=1;var o,s,a=Ir,c=function(){if(kh)return Dh;kh=1;var e=Gr,t=process.cwd,n=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=t.call(process)),n};try{process.cwd()}catch(o){}if("function"==typeof process.chdir){var i=process.chdir;process.chdir=function(e){n=null,i.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,i)}return Dh=function(t){function n(e){return e?function(n,r,i){return e.call(t,n,r,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(o){if(!l(o))throw o}}:e}function s(e){return e?function(n,r,i,o){return e.call(t,n,r,i,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:e}function a(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(o){if(!l(o))throw o}}:e}function c(e){return e?function(n,r,i){function o(e,t){t&&(0>t.uid&&(t.uid+=4294967296),0>t.gid&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?e.call(t,n,r,o):e.call(t,n,o)}:e}function u(e){return e?function(n,r){var i=r?e.call(t,n,r):e.call(t,n);return i&&(0>i.uid&&(i.uid+=4294967296),0>i.gid&&(i.gid+=4294967296)),i}:e}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var f;e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&((f=t).lchmod=function(t,n,r){f.open(t,e.O_WRONLY|e.O_SYMLINK,n,(function(e,t){e?r&&r(e):f.fchmod(t,n,(function(e){f.close(t,(function(t){r&&r(e||t)}))}))}))},f.lchmodSync=function(t,n){var r,i=f.openSync(t,e.O_WRONLY|e.O_SYMLINK,n),s=!0;try{r=f.fchmodSync(i,n),s=!1}finally{if(s)try{f.closeSync(i)}catch(o){}else f.closeSync(i)}return r}),t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(n,r,i,o){t.open(n,e.O_SYMLINK,(function(e,n){e?o&&o(e):t.futimes(n,r,i,(function(e){t.close(n,(function(t){o&&o(e||t)}))}))}))},t.lutimesSync=function(n,r,i){var s,a=t.openSync(n,e.O_SYMLINK),c=!0;try{s=t.futimesSync(a,r,i),c=!1}finally{if(c)try{t.closeSync(a)}catch(o){}else t.closeSync(a)}return s}):t.futimes&&(t.lutimes=function(e,t,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,n){n&&process.nextTick(n)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(e,t,n,r){r&&process.nextTick(r)},t.lchownSync=function(){}),"win32"===r&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,i){var o=Date.now(),s=0;e(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&6e4>Date.now()-o)return setTimeout((function(){t.stat(r,(function(t,o){t&&"ENOENT"===t.code?e(n,r,a):i(c)}))}),s),void(100>s&&(s+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename)),t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,i,o,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,f,p){if(l&&"EAGAIN"===l.code&&10>u)return u++,e.call(t,n,r,i,o,s,c);a.apply(this,arguments)}}return e.call(t,n,r,i,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:function(e){return function(n,r,i,s,a){for(var c=0;;)try{return e.call(t,n,r,i,s,a)}catch(o){if("EAGAIN"===o.code&&10>c){c++;continue}throw o}}}(t.readSync)},Dh}(),u=function(){if(jh)return Uh;jh=1;var e=jr.Stream;return Uh=function(t){return{ReadStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(i=i||{}),a=0,c=s.length;c>a;a++){var u=s[a];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null===this.fd?t.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()})):process.nextTick((function(){o._read()}))},WriteStream:function n(r,i){if(!(this instanceof n))return new n(r,i);e.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var o=Object.keys(i=i||{}),s=0,a=o.length;a>s;s++){var c=o[s];this[c]=i[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(0>this.start)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}(),l=function(){if(Mh)return Fh;Mh=1,Fh=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(e){return e.__proto__};return Fh}(),f=Ar;"function"==typeof Symbol&&"function"==typeof Symbol.for?(o=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",s="___graceful-fs.previous");var p,d=function(){};return f.debuglog?d=f.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=f.format.apply(f,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),a[o]||(e(a,Xr[o]||[]),a.close=function(e){function t(t,n){return e.call(a,t,(function(e){e||r(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,s,{value:e}),t}(a.close),a.closeSync=function(e){function t(t){e.apply(a,arguments),r()}return Object.defineProperty(t,s,{value:e}),t}(a.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(a[o]),Ur.equal(a[o].length,0)}))),Xr[o]||e(Xr,a[o]),Bh=t(l(a)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched&&(Bh=t(a),a.__patched=!0),Bh}function kt(){return Vh||(Vh=1,function(e){const t=$t().fromCallback,n=Dt(),r=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.assign(e,n),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},e.read=function(e,t,r,i,o,s){return"function"==typeof s?n.read(e,t,r,i,o,s):new Promise(((s,a)=>{n.read(e,t,r,i,o,((e,t,n)=>{if(e)return a(e);s({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeof r[r.length-1]?n.write(e,t,...r):new Promise(((i,o)=>{n.write(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffer:n})}))}))},e.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?n.readv(e,t,...r):new Promise(((i,o)=>{n.readv(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesRead:t,buffers:n})}))}))},e.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?n.writev(e,t,...r):new Promise(((i,o)=>{n.writev(e,t,...r,((e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffers:n})}))}))},"function"==typeof n.realpath.native?e.realpath.native=t(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}(Hm)),Hm}function Ut(){if(Hh)return Wm;Hh=1;const e=Pr;return Wm.checkPath=function(t){if("win32"===process.platform&&/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=Error("Path contains invalid characters: "+t);throw e.code="EINVAL",e}},Wm}function jt(){if(qh)return zm;qh=1;const e=kt(),{checkPath:t}=Ut(),n=e=>"number"==typeof e?e:{mode:511,...e}.mode;return zm.makeDir=async(r,i)=>(t(r),e.mkdir(r,{mode:n(i),recursive:!0})),zm.makeDirSync=(r,i)=>(t(r),e.mkdirSync(r,{mode:n(i),recursive:!0})),zm}function Ft(){if(Wh)return zh;Wh=1;const e=$t().fromPromise,{makeDir:t,makeDirSync:n}=jt(),r=e(t);return zh={mkdirs:r,mkdirsSync:n,mkdirp:r,mkdirpSync:n,ensureDir:r,ensureDirSync:n}}function Mt(){if(Kh)return Xh;Kh=1;const e=$t().fromPromise,t=kt();return Xh={pathExists:e((function(e){return t.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:t.existsSync}}function Bt(){if(Jh)return Yh;Jh=1;const e=kt(),t=$t().fromPromise;return Yh={utimesMillis:t((async function(t,n,r){const i=await e.open(t,"r+");let o=null;try{await e.futimes(i,n,r)}finally{try{await e.close(i)}catch(s){o=s}}if(o)throw o})),utimesMillisSync:function(t,n,r){const i=e.openSync(t,"r+");return e.futimesSync(i,n,r),e.closeSync(i)}}}function Gt(){function e(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function t(e,t){const n=i.resolve(e).split(i.sep).filter((e=>e)),r=i.resolve(t).split(i.sep).filter((e=>e));return n.every(((e,t)=>r[t]===e))}function n(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}if(Zh)return Qh;Zh=1;const r=kt(),i=Pr,o=$t().fromPromise;return Qh={checkPaths:o((async function(o,s,a,c){const{srcStat:u,destStat:l}=await function(e,t,n){const i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(o,s,c);if(l){if(e(u,l)){const e=i.basename(o),t=i.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${o}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${o}'.`)}if(u.isDirectory()&&t(o,s))throw Error(n(o,s,a));return{srcStat:u,destStat:l}})),checkPathsSync:function(o,s,a,c){const{srcStat:u,destStat:l}=function(e,t,n){let i;const o=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),s=o(e);try{i=o(t)}catch(a){if("ENOENT"===a.code)return{srcStat:s,destStat:null};throw a}return{srcStat:s,destStat:i}}(o,s,c);if(l){if(e(u,l)){const e=i.basename(o),t=i.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${o}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${o}'.`)}if(u.isDirectory()&&t(o,s))throw Error(n(o,s,a));return{srcStat:u,destStat:l}},checkParentPaths:o((async function t(o,s,a,c){const u=i.resolve(i.dirname(o)),l=i.resolve(i.dirname(a));if(l===u||l===i.parse(l).root)return;let f;try{f=await r.stat(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(o,a,c));return t(o,s,l,c)})),checkParentPathsSync:function t(o,s,a,c){const u=i.resolve(i.dirname(o)),l=i.resolve(i.dirname(a));if(l===u||l===i.parse(l).root)return;let f;try{f=r.statSync(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(o,a,c));return t(o,s,l,c)},isSrcSubdir:t,areIdentical:e}}function Vt(){async function e(e,t,n){return!n.filter||n.filter(e,t)}async function t(o,s,a,u){const l=u.dereference?r.stat:r.lstat,f=await l(s);if(f.isDirectory())return async function(n,o,s,a,u){o||await r.mkdir(a);const l=[];for await(const f of await r.opendir(s)){const n=i.join(s,f.name),r=i.join(a,f.name);l.push(e(n,r,u).then((e=>{if(e)return c.checkPaths(n,r,"copy",u).then((({destStat:e})=>t(e,n,r,u)))})))}await Promise.all(l),o||await r.chmod(a,n.mode)}(f,o,s,a,u);if(f.isFile()||f.isCharacterDevice()||f.isBlockDevice())return async function(e,t,i,o,s){if(!t)return n(e,i,o,s);if(s.overwrite)return await r.unlink(o),n(e,i,o,s);if(s.errorOnExist)throw Error(`'${o}' already exists`)}(f,o,s,a,u);if(f.isSymbolicLink())return async function(e,t,n,o){let s=await r.readlink(t);if(o.dereference&&(s=i.resolve(process.cwd(),s)),!e)return r.symlink(s,n);let a=null;try{a=await r.readlink(n)}catch(u){if("EINVAL"===u.code||"UNKNOWN"===u.code)return r.symlink(s,n);throw u}if(o.dereference&&(a=i.resolve(process.cwd(),a)),c.isSrcSubdir(s,a))throw Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`);if(c.isSrcSubdir(a,s))throw Error(`Cannot overwrite '${a}' with '${s}'.`);return await r.unlink(n),r.symlink(s,n)}(o,s,a,u);if(f.isSocket())throw Error("Cannot copy a socket file: "+s);if(f.isFIFO())throw Error("Cannot copy a FIFO pipe: "+s);throw Error("Unknown file: "+s)}async function n(e,t,n,i){if(await r.copyFile(t,n),i.preserveTimestamps){128&e.mode||await function(e,t){return r.chmod(e,128|t)}(n,e.mode);const i=await r.stat(t);await a(n,i.atime,i.mtime)}return r.chmod(n,e.mode)}if(tm)return em;tm=1;const r=kt(),i=Pr,{mkdirs:o}=Ft(),{pathExists:s}=Mt(),{utimesMillis:a}=Bt(),c=Gt();return em=async function(n,r,a={}){"function"==typeof a&&(a={filter:a}),a.clobber=!("clobber"in a)||!!a.clobber,a.overwrite="overwrite"in a?!!a.overwrite:a.clobber,a.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:u,destStat:l}=await c.checkPaths(n,r,"copy",a);if(await c.checkParentPaths(n,u,r,"copy"),!(await e(n,r,a)))return;const f=i.dirname(r);await s(f)||await o(f),await t(l,n,r,a)}}function Ht(){function e(e,i,a,c){const l=(c.dereference?o.statSync:o.lstatSync)(i);if(l.isDirectory())return function(e,t,i,s,a){return t?r(i,s,a):function(e,t,i,s){return o.mkdirSync(i),r(t,i,s),n(i,e)}(e.mode,i,s,a)}(l,e,i,a,c);if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return function(e,n,r,i,s){return n?function(e,n,r,i){if(i.overwrite)return o.unlinkSync(r),t(e,n,r,i);if(i.errorOnExist)throw Error(`'${r}' already exists`)}(e,r,i,s):t(e,r,i,s)}(l,e,i,a,c);if(l.isSymbolicLink())return function(e,t,n,r){let i=o.readlinkSync(t);if(r.dereference&&(i=s.resolve(process.cwd(),i)),e){let e;try{e=o.readlinkSync(n)}catch(a){if("EINVAL"===a.code||"UNKNOWN"===a.code)return o.symlinkSync(i,n);throw a}if(r.dereference&&(e=s.resolve(process.cwd(),e)),u.isSrcSubdir(i,e))throw Error(`Cannot copy '${i}' to a subdirectory of itself, '${e}'.`);if(u.isSrcSubdir(e,i))throw Error(`Cannot overwrite '${e}' with '${i}'.`);return function(e,t){return o.unlinkSync(t),o.symlinkSync(e,t)}(i,n)}return o.symlinkSync(i,n)}(e,i,a,c);if(l.isSocket())throw Error("Cannot copy a socket file: "+i);if(l.isFIFO())throw Error("Cannot copy a FIFO pipe: "+i);throw Error("Unknown file: "+i)}function t(e,t,r,i){return o.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){n(e,128|t)}(r,e),function(e,t){const n=o.statSync(e);c(t,n.atime,n.mtime)}(t,r)}(e.mode,t,r),n(r,e.mode)}function n(e,t){return o.chmodSync(e,t)}function r(e,t,n){const r=o.opendirSync(e);try{let o;for(;null!==(o=r.readSync());)i(o.name,e,t,n)}finally{r.closeSync()}}function i(t,n,r,i){const o=s.join(n,t),a=s.join(r,t);if(i.filter&&!i.filter(o,a))return;const{destStat:c}=u.checkPathsSync(o,a,"copy",i);return e(c,o,a,i)}if(rm)return nm;rm=1;const o=Dt(),s=Pr,a=Ft().mkdirsSync,c=Bt().utimesMillisSync,u=Gt();return nm=function(t,n,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:i,destStat:c}=u.checkPathsSync(t,n,"copy",r);if(u.checkParentPathsSync(t,i,n,"copy"),r.filter&&!r.filter(t,n))return;const l=s.dirname(n);return o.existsSync(l)||a(l),e(c,t,n,r)}}function qt(){if(om)return im;om=1;const e=$t().fromPromise;return im={copy:e(Vt()),copySync:Ht()}}function zt(){if(am)return sm;am=1;const e=Dt(),t=$t().fromCallback;return sm={remove:t((function(t,n){e.rm(t,{recursive:!0,force:!0},n)})),removeSync:function(t){e.rmSync(t,{recursive:!0,force:!0})}}}function Wt(){function e(e){let t;try{t=n.readdirSync(e)}catch{return i.mkdirsSync(e)}t.forEach((t=>{t=r.join(e,t),o.removeSync(t)}))}if(um)return cm;um=1;const t=$t().fromPromise,n=kt(),r=Pr,i=Ft(),o=zt(),s=t((async function(e){let t;try{t=await n.readdir(e)}catch{return i.mkdirs(e)}return Promise.all(t.map((t=>o.remove(r.join(e,t)))))}));return cm={emptyDirSync:e,emptydirSync:e,emptyDir:s,emptydir:s}}function Xt(){if(fm)return lm;fm=1;const e=$t().fromPromise,t=Pr,n=kt(),r=Ft();return lm={createFile:e((async function(e){let i;try{i=await n.stat(e)}catch{}if(i&&i.isFile())return;const o=t.dirname(e);let s=null;try{s=await n.stat(o)}catch(a){if("ENOENT"===a.code)return await r.mkdirs(o),void(await n.writeFile(e,""));throw a}s.isDirectory()?await n.writeFile(e,""):await n.readdir(o)})),createFileSync:function(e){let i;try{i=n.statSync(e)}catch{}if(i&&i.isFile())return;const o=t.dirname(e);try{n.statSync(o).isDirectory()||n.readdirSync(o)}catch(s){if(!s||"ENOENT"!==s.code)throw s;r.mkdirsSync(o)}n.writeFileSync(e,"")}}}function Kt(){if(dm)return pm;dm=1;const e=$t().fromPromise,t=Pr,n=kt(),r=Ft(),{pathExists:i}=Mt(),{areIdentical:o}=Gt();return pm={createLink:e((async function(e,s){let a,c;try{a=await n.lstat(s)}catch{}try{c=await n.lstat(e)}catch(l){throw l.message=l.message.replace("lstat","ensureLink"),l}if(a&&o(c,a))return;const u=t.dirname(s);await i(u)||await r.mkdirs(u),await n.link(e,s)})),createLinkSync:function(e,i){let s;try{s=n.lstatSync(i)}catch{}try{const t=n.lstatSync(e);if(s&&o(t,s))return}catch(c){throw c.message=c.message.replace("lstat","ensureLink"),c}const a=t.dirname(i);return n.existsSync(a)||r.mkdirsSync(a),n.linkSync(e,i)}}}function Yt(){if(mm)return hm;mm=1;const e=Pr,t=kt(),{pathExists:n}=Mt(),r=$t().fromPromise;return hm={symlinkPaths:r((async function(r,i){if(e.isAbsolute(r)){try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:r}}const o=e.dirname(i),s=e.join(o,r);if(await n(s))return{toCwd:s,toDst:r};try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:e.relative(o,r)}})),symlinkPathsSync:function(n,r){if(e.isAbsolute(n)){if(!t.existsSync(n))throw Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}const i=e.dirname(r),o=e.join(i,n);if(t.existsSync(o))return{toCwd:o,toDst:n};if(!t.existsSync(n))throw Error("relative srcpath does not exist");return{toCwd:n,toDst:e.relative(i,n)}}}}function Jt(){if(vm)return ym;vm=1;const e=kt(),t=$t().fromPromise;return ym={symlinkType:t((async function(t,n){if(n)return n;let r;try{r=await e.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(t,n){if(n)return n;let r;try{r=e.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}}function Qt(){if(Em)return wm;Em=1;const e=$t().fromPromise,t=Pr,n=kt(),{mkdirs:r,mkdirsSync:i}=Ft(),{symlinkPaths:o,symlinkPathsSync:s}=Yt(),{symlinkType:a,symlinkTypeSync:c}=Jt(),{pathExists:u}=Mt(),{areIdentical:l}=Gt();return wm={createSymlink:e((async function(e,i,s){let c;try{c=await n.lstat(i)}catch{}if(c&&c.isSymbolicLink()){const[t,r]=await Promise.all([n.stat(e),n.stat(i)]);if(l(t,r))return}const f=await o(e,i);e=f.toDst;const p=await a(f.toCwd,s),d=t.dirname(i);return await u(d)||await r(d),n.symlink(e,i,p)})),createSymlinkSync:function(e,r,o){let a;try{a=n.lstatSync(r)}catch{}if(a&&a.isSymbolicLink()){const t=n.statSync(e),i=n.statSync(r);if(l(t,i))return}const u=s(e,r);e=u.toDst,o=c(u.toCwd,o);const f=t.dirname(r);return n.existsSync(f)||i(f),n.symlinkSync(e,r,o)}}}function Zt(){if(_m)return gm;_m=1;const{createFile:e,createFileSync:t}=Xt(),{createLink:n,createLinkSync:r}=Kt(),{createSymlink:i,createSymlinkSync:o}=Qt();return gm={createFile:e,createFileSync:t,ensureFile:e,ensureFileSync:t,createLink:n,createLinkSync:r,ensureLink:n,ensureLinkSync:r,createSymlink:i,createSymlinkSync:o,ensureSymlink:i,ensureSymlinkSync:o}}function en(){return Sm?bm:(Sm=1,bm={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:i}={}){const o=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}})}function tn(){if(Tm)return Im;Tm=1;const e=function(){if(Rm)return Om;let e;Rm=1;try{e=Dt()}catch(s){e=Ir}const t=$t(),{stringify:n,stripBom:r}=en(),i=t.fromPromise((async function(n,i={}){"string"==typeof i&&(i={encoding:i});const o=i.fs||e,s=!("throws"in i)||i.throws;let a,c=await t.fromCallback(o.readFile)(n,i);c=r(c);try{a=JSON.parse(c,i?i.reviver:null)}catch(u){if(s)throw u.message=`${n}: ${u.message}`,u;return null}return a})),o=t.fromPromise((async function(r,i,o={}){const s=o.fs||e,a=n(i,o);await t.fromCallback(s.writeFile)(r,a,o)}));return Om={readFile:i,readFileSync:function(t,n={}){"string"==typeof n&&(n={encoding:n});const i=n.fs||e,o=!("throws"in n)||n.throws;try{let e=i.readFileSync(t,n);return e=r(e),JSON.parse(e,n.reviver)}catch(s){if(o)throw s.message=`${t}: ${s.message}`,s;return null}},writeFile:o,writeFileSync:function(t,r,i={}){const o=i.fs||e,s=n(r,i);return o.writeFileSync(t,s,i)}}}();return Im={readJson:e.readFile,readJsonSync:e.readFileSync,writeJson:e.writeFile,writeJsonSync:e.writeFileSync}}function nn(){if(Cm)return Pm;Cm=1;const e=$t().fromPromise,t=kt(),n=Pr,r=Ft(),i=Mt().pathExists;return Pm={outputFile:e((async function(e,o,s="utf-8"){const a=n.dirname(e);return await i(a)||await r.mkdirs(a),t.writeFile(e,o,s)})),outputFileSync:function(e,...i){const o=n.dirname(e);t.existsSync(o)||r.mkdirsSync(o),t.writeFileSync(e,...i)}}}function rn(){if(Nm)return xm;Nm=1;const{stringify:e}=en(),{outputFile:t}=nn();return xm=async function(n,r,i={}){const o=e(r,i);await t(n,o,i)}}function on(){if(Am)return Lm;Am=1;const{stringify:e}=en(),{outputFileSync:t}=nn();return Lm=function(n,r,i){const o=e(r,i);t(n,o,i)}}function sn(){if(Dm)return $m;Dm=1;const e=$t().fromPromise,t=tn();return t.outputJson=e(rn()),t.outputJsonSync=on(),t.outputJSON=t.outputJson,t.outputJSONSync=t.outputJsonSync,t.writeJSON=t.writeJson,t.writeJSONSync=t.writeJsonSync,t.readJSON=t.readJson,t.readJSONSync=t.readJsonSync,$m=t}function an(){if(Um)return km;Um=1;const e=kt(),t=Pr,{copy:n}=qt(),{remove:r}=zt(),{mkdirp:i}=Ft(),{pathExists:o}=Mt(),s=Gt();return km=async function(a,c,u={}){const l=u.overwrite||u.clobber||!1,{srcStat:f,isChangingCase:p=!1}=await s.checkPaths(a,c,"move",u);await s.checkParentPaths(a,f,c,"move");const d=t.dirname(c);return t.parse(d).root!==d&&await i(d),async function(t,i,s,a){if(!a)if(s)await r(i);else if(await o(i))throw Error("dest already exists.");try{await e.rename(t,i)}catch(c){if("EXDEV"!==c.code)throw c;await async function(e,t,i){const o={overwrite:i,errorOnExist:!0,preserveTimestamps:!0};return await n(e,t,o),r(e)}(t,i,s)}}(a,c,l,p)}}function cn(){function e(e,n,o){try{t.renameSync(e,n)}catch(s){if("EXDEV"!==s.code)throw s;return function(e,t,n){return r(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),i(e)}(e,n,o)}}if(Fm)return jm;Fm=1;const t=Dt(),n=Pr,r=qt().copySync,i=zt().removeSync,o=Ft().mkdirpSync,s=Gt();return jm=function(r,a,c){const u=(c=c||{}).overwrite||c.clobber||!1,{srcStat:l,isChangingCase:f=!1}=s.checkPathsSync(r,a,"move",c);return s.checkParentPathsSync(r,l,a,"move"),function(e){const t=n.dirname(e);return n.parse(t).root===t}(a)||o(n.dirname(a)),function(n,r,o,s){if(s)return e(n,r,o);if(o)return i(r),e(n,r,o);if(t.existsSync(r))throw Error("dest already exists.");return e(n,r,o)}(r,a,u,f)}}function un(){if(Bm)return Mm;Bm=1;const e=$t().fromPromise;return Mm={move:e(an()),moveSync:cn()}}function ln(){return Vm?Gm:(Vm=1,Gm={...kt(),...qt(),...Wt(),...Zt(),...sn(),...Ft(),...un(),...nn(),...Mt(),...zt()})}function fn(e,t,n){switch(process.platform){case"win32":return wt("7zip",e);case"darwin":return dt("p7zip",e);case"linux":if(mt())return gt("p7zip",e);if(ht())return Et([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(yt())return st([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function pn(e){const t=e.split(".").pop();return"tar"===t?0:"gz"===t||"tgz"===t?1:"xz"===t||"txz"===t?2:"zip"===t?3:("7z"===t||"exe"===t||h(`Unknown archive type: ${t}. Defaulting to 7z`),4)}function dn(e){switch(e){case 0:case 1:case 2:return vn;case 3:return yn;default:return hn}}async function hn(e,t){const n=Pr.basename(e);if(/.*\.tar\..+$/.test(n)){const r=Pr.dirname(e);await mn(e,r);const i=n.slice(0,-3),o=Pr.join(r,i);await mn(o,r),await ta(o);const s=i.slice(0,-4),a=Pr.join(r,s);y(`Moving ${a} to ${t}`),await Xm.move(a,t,{overwrite:!0})}else await mn(e,t);return t}async function mn(e,t){y(`7z: extracting ${e} to ${t}`),await b(await async function(){return void 0===Km&&(null===fa.sync("7z",{nothrow:!0})&&await fn("",0,process),Km="7z"),Km}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await k(t)}async function yn(e,t){return null!==fa.sync("7z",{nothrow:!0})?hn(e,t):null!==fa.sync("unzip",{nothrow:!0})?(await b("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await k(t),t):hn(e,t)}async function vn(e,t,n=0,r=[]){await async function(e){switch(y("Installing tar extraction dependencies"),e){case 1:"linux"===process.platform&&(mt()?(await gt("gzip"),await gt("tar")):ht()?await Et([{name:"gzip"},{name:"tar"}]):yt()&&await st([{name:"gzip"},{name:"tar"}]));break;case 2:"linux"===process.platform&&(mt()?(await gt("xz"),await gt("tar")):ht()?await Et([{name:"xz"},{name:"tar"}]):yt()&&await st([{name:"xz-utils"},{name:"tar"}]));break;default:throw Error(`Unsupported archive type: ${e} for tar extraction`)}}(pn(e));try{await Xm.mkdirp(t)}catch{}try{await b("tar",["xf",e,"-C",t,"--strip-components="+n,...r],{stdio:"inherit"})}catch(i){"win32"===process.platform&&i.message.includes("Can't create '\\\\?\\C:")&&h(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`)}return await k(t),t}async function wn(e,t,n,r,i){var o,s;y(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!=(o=process.env.RUNNER_TEMP)?o:Rr.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!=(s=process.env.RUNNER_TOOL_CACHE)?s:Pr.join(Rr.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:u,extractedFolderName:l,extractFunction:f}=await n(t,process.platform,i);if(Ym)try{const n=Nh.find(e,t);if(n){const r=Pr.join(n,l),i=Pr.join(r,c);if(await ce(Pr.join(i,u)))return y(`${e} ${t} was found in the cache at ${i}.`),await he(i,lv),{installDir:r,binDir:i}}}catch{}const p=Pr.join(r,l),d=Pr.join(p,c),m=Pr.join(d,u);return await async function(e,t,n,r,i,o,s,a){if((await Promise.all([ce(e),ce(t)])).includes(!1))try{const e=await async function(e,t,n){y(`Download ${e} ${t}`);const r=await Ah((()=>{var e;const t=Pr.join(null!=(e=process.env.RUNNER_TEMP)?e:Rr.tmpdir(),`${Date.now()}-${Pr.basename(n)}`);return Nh.downloadTool(n,t)}),{name:n,max:4,backoffBase:2e3,report:e=>y(e)});return r}(n,r,i);y(`Extracting ${e} to ${o}`);const t=null!=s?s:dn(pn(i));await t(e,o)}catch(c){throw Error(`Failed to download ${n} ${r} ${a} from ${i}: ${c}`)}if(y(`Add ${e} to PATH`),await he(e,lv),!(await ce(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await As(t,"755")}catch(c){h(`Failed to make ${t} executable: ${c}`)}}(d,m,e,t,a,r,f,i),await async function(e,t,n){Ym&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==Sr("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await Nh.cacheDir(e,t,n))}(r,e,t),{installDir:p,binDir:d}}function En(e,t,n){var r;const i=null!=(r=sh(e))?r:e;switch(t){case"win32":{const t=ah(i,"v3.19.6");let r;ch.includes(n)?r=t?"win64-x64":"windows-x86_64":uh.includes(n)?r=t?"win32-x86":"windows-i386":lh.includes(n)?r="windows-arm64":(y(`Trying unsupported arch '${n}' for cmake on Windows`),r="windows-"+n);const o=`cmake-${e}-${r}`;return{binRelativeDir:"bin/",binFileName:Rt("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`}}case"darwin":{const t=`cmake-${e}-${ah(i,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:Rt("cmake"),extractedFolderName:t,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`}}case"linux":{const t=ah(i,"v3.19.8");let r;lh.includes(n)?r=t?"Linux-aarch64":"linux-aarch64":ch.includes(n)?r=t?"Linux-x86_64":"linux-x86_64":(y(`Trying unsupported arch '${n}' for cmake on Linux`),r="linux-"+n);const o=`cmake-${e}-${r}`;return{binRelativeDir:"bin/",binFileName:Rt("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function gn(e,t,n){return wn("cmake",e,En,t,n)}async function _n(e,t,n=yy){const r=await async function(e,t=yy){var n,r;try{const i=await py.getExecOutput(e,["--version"]),o=null==(n=(i.stdout||i.stderr||"").trim().match(t))?void 0:n[1];return null!=(r=sh(o))?r:void 0}catch(i){return void console.error(i)}}(e,n);if(void 0===r||""===t)return!1;try{return-1!==dy(r,t)}catch{return hy(r,t)}}function bn(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}function Sn(e,t,n=null){var r;return Rn(t)?null!=(r=On(e,n))?r:"":t}function On(e,t=null){var n,r,i;const o=vy()[e];if(void 0===o)return;if("string"==typeof o)return o;const s=null!=(n=o[process.platform])?n:o.else;if(void 0===s)throw Error(`Platform "${process.platform}" not found in versions data for tool "${e}"`);if("string"==typeof s)return s;const a=s,c=yt()?"ubuntu":mt()?"archlinux":"else",u=null!=(r=a[c])?r:a.else;if(void 0===u)throw Error(`Distro "${c}" not found in versions data for tool "${e}"`);if("string"==typeof u)return u;const l=u,f=null!==t?function(e,t){var n;const r=e[0],i=Object.keys(t).map((e=>Number.parseInt(e,10))).filter((e=>!Number.isNaN(e))).sort(((e,t)=>t-e)).find((e=>r>=e));return void 0!==i&&null!=(n=t[i])?n:t.else}(t,l):l.else;if(void 0===f)throw Error(`Architecture "${process.arch}" not found in versions data for tool "${e}"`);return"string"==typeof f?f:null!=(i=f[process.arch])?i:f.else}function Rn(e){return"true"===e||void 0===e}async function In(e,t,n){const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let i,o=await Tn(t);if(void 0!==o){const e=Pr.dirname(o);i={bin:o,installDir:e,binDir:e}}else{if(wy)try{y("Installing python in GitHub Actions");const{setupActionsPython:e}=await Promise.resolve().then((()=>require("./assets/actions_python-Dd4yvI9c.js")));if(await e(r,t,n),o=await Tn(t),void 0===o)throw Error("Python binary could not be found");const s=Pr.dirname(o);i={bin:o,installDir:s,binDir:s}}catch(s){h(""+s)}void 0===i&&(i=await async function(e,t){let n;switch(process.platform){case"win32":{e?await wt("python3",t,["--params=/InstallDir:"+e]):await wt("python3",t);const r=await Tn(e);if(void 0===r)throw Error("Python binary could not be found");const i=Pr.dirname(r);await he(i,lv),n={installDir:i,binDir:i,bin:r};break}case"darwin":{n=await dt("python3",t);const e=await b("brew",["--prefix","python"],{stdio:"pipe"}),r=Pr.join(e.stdout,"libexec","bin");await he(r,lv);break}case"linux":if(mt())n=await gt("python",t);else if(ht())n=await Et([{name:"python3",version:t}]);else{if(!yt())throw Error("Unsupported linux distributions");n=await st([{name:"python3",version:t},{name:"python-is-python3"}])}break;default:throw Error("Unsupported platform")}return n}(t,r))}if(void 0===o||void 0===i.bin){if(o=await Tn(t),void 0===o)throw Error("Python binary could not be found");i={bin:o,installDir:Pr.dirname(o),binDir:Pr.dirname(o)}}return i}(e,t,n);Ur(void 0!==r.bin);const i=r.bin;await async function(e){if(await async function(e){try{return await b(e,["-m","venv","-h"],{stdio:"ignore"}),!0}catch{}return!1}(e))y("venv module already installed.");else try{await jn("venv")}catch(t){y(`Failed to install venv: ${""+t}. Ignoring...`)}}(i);const o=await async function(e){const t=await Cn();return void 0===t?(y("pip was not found. Installing pip"),await async function(e){await Nn(e)||(await jn("pip"),await Nn(e))}(e),Cn()):t}(i);if(void 0===o)throw Error("pip was not installed correctly");return await async function(e){try{if(!(await Un(e)))try{await jn("pipx",mt()),await $n(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){throw Error("pipx was not installed completely: "+t)}if(await Un(e))return void(await b(e,["-m","pipx","ensurepath"],{stdio:"inherit"}));if(await async function(){return null!==await fa("pipx",{nothrow:!0})}())return m("pipx module not found. Trying to install with pipx binary..."),void(await b("pipx",["ensurepath"],{stdio:"inherit"}));throw Error("pipx module or pipx binary not found. Corrput pipx installation.")}catch(t){m(`Failed to install pipx: ${""+t}. Ignoring...`)}}(i),await async function(e){try{await $n(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await $n(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){y(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(i),r}async function Tn(e){for(const t of["python","python3"]){const n=await Pn(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=Pr.parse(Rr.homedir()).root,t=(await Vs(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await Pn(t,Pr.join(e,n));if(void 0!==r)return r}}}async function Pn(e,t){var n;try{const r=On("python");if(void 0!==t){const n=Pr.join(t,Rt(e));if(await ce(n)&&await _n(n,r))return n}const i=null!=(n=await fa(e,{nothrow:!0,all:!0}))?n:[];for(const e of i)if(await _n(e,r))return e}catch{}}async function Cn(){for(const e of["pip3","pip"]){const t=await xn(e);if(void 0!==t)return t}}async function xn(e){var t;try{const n=On("pip"),r=null!=(t=await fa(e,{nothrow:!0,all:!0}))?t:[];for(const e of r)if(await _n(e,n))return e}catch{}}async function Nn(e){try{return await b(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){y(""+t);try{return await b(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){y(""+n)}}return!1}function Ln(){if(!("version"in Rr)||"function"!=typeof Rr.version)return null;const e=Rr.version().match(/(\d+)\.(\d+)\.(\d+)/);return null===e?null:[Number.parseInt(e[1],10),Number.parseInt(e[2],10),Number.parseInt(e[3],10)]}async function An(e,t,n={}){return $n(await async function(e){if(void 0!==Iy)return Iy;const t=null!=e?e:Sn("python",void 0,await Sy());return Iy=(await In(t,"",process.arch)).bin,Iy}(n.pythonVersion),e,t,n)}async function $n(e,t,n,r={}){const{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=i&&!a&&await Un(e),u=c?"pipx":"pip",l=t.replace(/\[.*]/g,"").trim();if(!s){const t=c?await async function(e,t){try{const n=await b(e,["-m","pipx","list","--json"],{stdio:"ignore",reject:!1});if(0!==n.exitCode||"string"!=typeof n.stdout)return!1;const r=JSON.parse(n.stdout);if(t in r.venvs)return!0;for(const e of Object.values(r.venvs))if(e.metadata.main_package.package_or_url===t||e.metadata.main_package.package===t)return!0}catch{}return!1}(e,l):await async function(e,t){try{return 0===(await b(e,["-m","pip","-qq","show",t],{stdio:"ignore",reject:!1})).exitCode}catch{return!1}}(e,l);if(t)return{binDir:c?await Dn():await kn(e,l)}}const f=await async function(e,t){return 0===(await b(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode}(e,l);if(f)try{_d.info(`Installing ${t} ${null!=n?n:""} via ${u}`);const r=void 0!==n&&""!==n?`${t}==${n}`:t,i=s?c?["upgrade"]:["install","--upgrade"]:["install"],a=!c&&o?["--user"]:[],l=process.env;c&&o&&(l.PIPX_HOME=await Oy(),l.PIPX_BIN_DIR=await Ry()),S(e,["-m",u,...i,...a,r],{stdio:"inherit",env:l})}catch(p){if(_d.info(`Failed to install ${t} via ${u}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await jn(t))throw Error(`Failed to install ${t} via ${u}: ${p}.`)}else if(null===await jn(t))throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);return{binDir:c?await Dn():await kn(e,l)}}function Dn(){return Ry()}async function kn(e,t){const n=await Ey(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>ce(Pr.join(e,Rt(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=fa.sync(Rt(t),{nothrow:!0});return null!==r?Pr.dirname(r):e[e.length-1]}(n,t);return await he(r,lv),r}async function Un(e){return 0===(await b(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}function jn(e,t=!0){if("linux"===process.platform){if(_d.info(`Installing ${e} via the system package manager`),mt())return gt(t?"python-"+e:e);if(ht())return Et([{name:t?"python3-"+e:e}]);if(yt())return st([{name:t?"python3-"+e:e}])}else if("darwin"===process.platform)return["venv"].includes(e)?null:dt(e);return null}function Fn(e,t,n){return An("cmakelang[YAML]",e)}async function Mn(e,t,n){switch(process.platform){case"win32":return await wt("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await he(e,lv),{binDir:e}}throw Error("Unsupported platform")}();case"darwin":return dt("graphviz",e);case"linux":if(mt())return gt("graphviz",e);if(ht())return Et([{name:"graphviz",version:e}]);if(yt())return st([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function Bn(e,t){const{ArchiveHdi:n}=await Promise.resolve().then((()=>require("./assets/hdi-KnshNzDE.js"))),r=new n(e);await r.read((async e=>{await e.extract(Pr.join(t,e.path))}))}function Gn(e,t,n){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:Rt("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:Rt("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}case"darwin":{const t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:Rt("doxygen"),extractedFolderName:t,extractFunction:Bn,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Vn(){if("darwin"===process.platform)try{const e=await py.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await pe("SDKROOT",t.trim(),lv):d("SDKROOT not set")}catch(e){d(e)}}async function Hn(){const e=Pr.join(Ay,"gcc_matcher.json");if(!(await ce(e)))return h("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");y("::add-matcher::"+e)}async function qn(e){const t=await Hs(e,"utf-8");return JSON.parse(t)}function zn(e,t){var n;const r=Object.keys(e),i=new Map;if(void 0===t.filterMapTag)for(const c of r)i.set(c,c);else for(const c of r){const e=t.filterMapTag(c);void 0!==e&&i.set(e,c)}if(0===i.size)return;const o=null!=(n=t.versionSatisfies)?n:hy,s=function(e){if(null===my(e))try{const t=sh(e);if(null!==t){const n=/^[<=>^~]/.test(t.version)?t.version:"^"+t.version;return y(`Coerced version '${e}' to '${n}'`),n}}catch(t){}return e}(t.version),a=[];for(const[c,u]of i.entries())o(c,s)&&a.push(u);if(0!==a.length)for(const c of a){let n=e[c];if(void 0===n)continue;if(void 0!==t.filterName&&(n=n.filter(t.filterName)),0===n.length)continue;const r=Wn(c,n,t);if(void 0!==r)return r}}function Wn(e,t,n){if(!(void 0!==n.keywords&&0!==n.keywords.length||void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length))return{tag:e,name:t[0]};let r=[];if(void 0!==n.keywords&&0!==n.keywords.length)for(const i of t)n.keywords.every((e=>!("string"!=typeof e||!i.includes(e))||Array.isArray(e)&&e.some((e=>i.includes(e)))))&&r.push(i);else r=t;if(0!==r.length){if(void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length){const t=r.map((e=>{let t=0;for(const r of n.optionalKeywords)("string"==typeof r&&e.includes(r)||Array.isArray(r)&&r.some((t=>e.includes(t))))&&t++;return t})),i=Math.max(...t);return{tag:e,name:r[t.indexOf(i)]}}return{tag:e,name:r[0]}}}async function Xn(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await wt("gcc-arm-embedded",e));try{r=await wn("g++",e,Kn,t,n)}catch(i){y(`Failed to download g++ binary. ${i}. Falling back to chocolatey.`),r=await async function(e,t){var n,r;let i;if(await wt("mingw",e),"x64"===t&&await ce("C:/tools/mingw64/bin")?(i="C:/tools/mingw64/bin",await he(i,lv)):"ia32"===t&&await ce("C:/tools/mingw32/bin")?(i="C:/tools/mingw32/bin",await he(i,lv)):await ce((null!=(n=process.env.ChocolateyInstall)?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(i=(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin"),void 0!==i)return{binDir:i}}(e,n)}break;case"linux":if(mt())r=await gt("mingw-w64-gcc",e);else if(ht())r=await Et([{name:"mingw64-gcc",version:e}]);else{if(!yt())throw Error("Unsupported Linux distro for "+n);r=await st([{name:"mingw-w64",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}return void 0!==r&&await async function(e){const t=[];"win32"===process.platform&&t.push(pe("CC",Rt(e+"/gcc"),lv),pe("CXX",Rt(e+"/g++"),lv)),xy&&await Hn(),await Promise.all(t)}(r.binDir),r}async function Kn(e,t,n){var r;if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const i=await qn(Pr.join(Ny,"github_brechtsanders_winlibs_mingw.json")),o=Yn(e),s=Jn(e),a=Qn(e),c=zn(i,{version:e,keywords:[null!=(r={x64:"x86_64",ia32:"i386"}[n])?r:n],filterName:e=>!(void 0!==o&&o!==Yn(e)||void 0!==s&&s!==Jn(e)||void 0!==a&&a!==Qn(e)),versionSatisfies:(e,t)=>{const n=sh(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return hy(n,t)&&(void 0===o||o===Yn(e))&&(void 0===s||s===Jn(e))}});if(void 0===c)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:Rt("g++"),extractedFolderName:"mingw64",extractFunction:hn,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${c.tag}/${c.name}`}}function Yn(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function Jn(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function Qn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function Zn(e,t,n,r=40){let i;switch(process.platform){case"win32":i=await Xn(e,t,n);break;case"darwin":i=await dt("gcc",e);break;case"linux":if(mt())i=await gt("gcc",e);else if(ht())i=await Et([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]);else if(yt())if(""===e)i=await st([{name:"gcc"},{name:"g++"}]);else try{i=await st([{name:"gcc",version:e},{name:"g++",version:e}])}catch(o){i=await st([{name:"gcc",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}},{name:"g++",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}if(void 0!==i)return await async function(e,t,n=40){var r;if("win32"===process.platform)return;const i=[];{let s=e;""===e&&(s=await async function(e,t){try{let n="gcc";if(await ce(e+"/gcc"))n=e+"/gcc";else{const t=(await Vs(e)).sort(((e,t)=>{var n,r,i,o;return function(e,t){const n=sh(e),r=sh(t);return null!==n&&null!==r?r.compare(n):t.localeCompare(e)}(null!=(r=null==(n=e.match(/^gcc-?(.*)(\.exe)?$/))?void 0:n[1])?r:"",null!=(o=null==(i=t.match(/^gcc-?(.*)(\.exe)?$/))?void 0:i[1])?o:"")}));for(const r of t)if(r.startsWith("gcc")){n=`${e}/${r}`;break}}const{stdout:r}=await b(n,["--version"],{stdio:"pipe"}),i=r.match(/gcc.* \(.*\) ([\d.]+)/);return null!==i?i[1]:(h("Failed to parse gcc version from: "+r),t)}catch(o){return d("Failed to get gcc version: "+o),t}}(t,s),y("Using gcc version "+s));const a=Cy(null!=(r=sh(s))?r:s);5>a?(i.push(pe("CC",`${t}/gcc-${s}`,lv),pe("CXX",`${t}/g++-${s}`,lv)),yt()&&i.push(Je("cc",`${t}/gcc-${s}`,lv,n),Je("cxx",`${t}/g++-${s}`,lv,n),Je("gcc",`${t}/gcc-${s}`,lv,n),Je("g++",`${t}/g++-${s}`,lv,n))):(i.push(pe("CC",`${t}/gcc-${a}`,lv),pe("CXX",`${t}/g++-${a}`,lv)),yt()&&i.push(Je("cc",`${t}/gcc-${a}`,lv,n),Je("cxx",`${t}/g++-${a}`,lv,n),Je("gcc",`${t}/gcc-${a}`,lv,n),Je("g++",`${t}/g++-${a}`,lv,n)))}i.push(Vn()),Ly&&await Hn(),await Promise.all(i)}(e,i.binDir,r),i}function er(e){const t=my(e),n=null!==t?Cy(t):e;return pe("GCOV",""!==n?"gcov-"+n:"gcov",lv)}async function tr(e,t,n){const{keywords:r,optionalKeywords:i}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),ch.includes(t)?(r.push("64"),r.push("x86_64")):(y(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),ch.includes(t)?r.push("x86_64"):lh.includes(t)?r.push("arm64"):(y(`Using arch ${t} for infer`),n.push(t));break;default:y(`Using ${e} ${t} for infer`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(t,n),o=zn(await qn(Pr.join($y,"github_facebook_infer.json")),{version:e,keywords:r,optionalKeywords:i,filterMapTag:e=>e.replace(/^v/,"")});if(void 0!==o)return{url:`https://github.com/facebook/infer/releases/download/${o.tag}/${o.name}`,extractedFolderName:""+Pr.basename(o.name,".tar.xz"),binRelativeDir:"bin",binFileName:Rt("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${i}`)}function nr(e,t,n){const r=function(e,t){switch(e){case"win32":return ch.includes(t)||uh.includes(t)?"win":lh.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return ch.includes(t)||uh.includes(t)?"linux":lh.includes(t)?"linux-aarch64":"linux";default:throw Error(`Unsupported platform '${e}'`)}}(t,n);return{binRelativeDir:"",binFileName:Rt("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function rr(e,t,n){return wn("ninja",e,nr,t,n)}function ir(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:Rt("kcov")}}function or(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:Rt("kcov"),extractFunction:sr}}async function sr(e,t){const n=await vn(e,t,1),r=await async function(){let e=fa.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await gn(Sn("cmake",void 0,await Sy()),Pr.join(ue("~"),"cmake"),"");e=Pr.join(t,"cmake")}return null===fa.sync("ninja",{nothrow:!0})&&await rr(Sn("ninja",void 0,await Sy()),Pr.join(ue("~"),"ninja"),""),e}();"linux"===process.platform&&(mt()?await Promise.all([gt("libdwarf"),gt("libcurl-openssl")]):ht()?await Et([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):yt()&&await st([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==fa.sync("patch",{nothrow:!0})){const e=Pr.join(Dy,"gcc13.patch");await b("patch",["-N","-p1","-i",e],{cwd:n,stdio:"inherit"})}else y("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13")}catch{}const i=Pr.join(n,"build");return await b(r,["-S",n,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await b(r,["--build",i,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function ar(){"darwin"===process.platform&&(null!==await fa("clang",{nothrow:!0})&&null!==await fa("clang++",{nothrow:!0})&&(m("Assuming clang is an Apple Clang compiler"),await Promise.all([pe("CC","clang",lv),pe("CXX","clang++",lv)])),Vr.error("Apple Clang automatic installation is not supported yet"))}async function cr(e,t,n,r,i,o,s){void 0!==t&&await ce(t)&&(y(`Adding ${t} to PATH`),await pe("VCTargetsPath",t,lv)),await Gy.setupMSVCDevCmd(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}}(n),i,r,o,s,e)}async function ur(e,t,n,r,i,o,s,a=12e5){_d.startGroup(`Installing ${e} ${t}`);try{await function(e,t){const{milliseconds:n,fallback:r,message:i,customTimers:o={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t;let s,a;const c=new Promise(((c,u)=>{if("number"!=typeof n||1!==Math.sign(n))throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:e}=t;e.aborted&&u(Fy(e)),a=()=>{u(Fy(e))},e.addEventListener("abort",a,{once:!0})}if(n===1/0)return void e.then(c,u);const l=new ky;s=o.setTimeout.call(void 0,(()=>{if(r)try{c(r())}catch(t){u(t)}else"function"==typeof e.cancel&&e.cancel(),!1===i?c():i instanceof Error?u(i):(l.message=null!=i?i:`Promise timed out after ${n} milliseconds`,u(l))}),n),(async()=>{try{c(await e)}catch(t){u(t)}})()})).finally((()=>{c.clear(),a&&t.signal&&t.signal.removeEventListener("abort",a)}));return c.clear=()=>{o.clearTimeout.call(void 0,s),s=void 0},c}(async function(e,t,n,r,i,o){const s=sv.includes(e);let a;if("vcvarsall"===e)await cr(Sn(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await lt({rcOptions:lv});else{const o=Pr.join(i,s?"llvm":e),c=Sn(e,t,n),u=av[e];a=await u(c,o,r)}o.push(Or(e,a))}(e,t,n,r,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`})}catch(c){d(c),c instanceof Error&&void 0!==c.stack&&d(c.stack),s.push(e+" failed to install")}_d.endGroup()}async function lr(e,t,n){const r=await async function(e,t,n){const{keywords:r,optionalKeywords:i}=await async function(e,t){const n=[],r=[];switch(e){case"win32":{r.push(".exe",".exe");const e=[];ch.includes(t)?(e.push("win64"),r.push(["x86_64","X64"])):uh.includes(t)?e.push("win32"):lh.includes(t)?e.push("woa64"):(y(`Using arch ${t} for LLVM`),e.push(t)),e.push("windows","Windows"),n.push(e);break}case"linux":{const e=["linux","Linux"];if(yt()){r.push("ubuntu");const e=await Sy();if(null!==e){r.push(""+e[0]);const t=10>e[1]?"0"+e[1]:""+e[1];r.push(`${e[0]}.${t}`),r.push(`${e[0]}.${t}.${e[2]}`)}}else ht()&&r.push("rhel");ch.includes(t)?n.push(["x86_64","X64"]):uh.includes(t)?n.push("x86"):lh.includes(t)?n.push("aarch64"):fh.includes(t)?n.push("armv7a"):ph.includes(t)?n.push("powerpc64le"):dh.includes(t)?n.push("sparc64"):(y(`Using arch ${t} for LLVM`),n.push(t)),n.push(e);break}case"darwin":n.push(["apple","macos","macOS"]),ch.includes(t)?r.push(["x86_64","X64"]):lh.includes(t)?r.push(["arm64","ARM64"]):(y(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),ch.includes(t)?n.push("amd64"):uh.includes(t)?n.push("i386"):(y(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),ch.includes(t)?n.push("amd64"):hh.includes(t)?n.push("sparcv9"):(y(`Using arch ${t} for LLVM`),n.push(t));break;default:y(`Using ${e} ${t} for LLVM`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(e,t),o=zn(await qn(Pr.join(Hy,"github_llvm_llvm-project.json")),{version:n,keywords:r,optionalKeywords:i,filterMapTag:e=>e.replace(/^llvmorg-/,"")});if(void 0!==o)return`https://github.com/llvm/llvm-project/releases/download/${o.tag}/${o.name}`;const s=zn(await qn(Pr.join(Hy,"llvm_org_releases.json")),{version:n,keywords:r,optionalKeywords:i});if(void 0!==s)return`https://releases.llvm.org/${s.tag}/${s.name}`;throw Error(`No asset found for version ${n} matching ${r} and ${i}`)}(t,n,e);return y("Downloading LLVM from "+r),{url:r,extractedFolderName:"",binRelativeDir:"bin",binFileName:Rt("clang"),extractFunction:"win32"===t?dn(pn(r)):(e,t)=>vn(e,t,1)}}async function fr(e,t,n){var r;const i=await Wy(e,t,n);return await async function(e,t){var n,r;const i=null!=(n=process.env.LD_LIBRARY_PATH)?n:"",o=null!=(r=process.env.DYLD_LIBRARY_PATH)?r:"",s=mr(t),a=[pe("CC",Rt(e+"/bin/clang"),lv),pe("CXX",Rt(e+"/bin/clang++"),lv),pe("LLVM_PATH",e,lv),pe("LD_LIBRARY_PATH",`${i}${Pr.delimiter}${e}/lib`,lv),pe("DYLD_LIBRARY_PATH",`${o}${Pr.delimiter}${e}/lib`,lv),pe("LLVM_LDFLAGS","-L"+bn(e+"/lib"),lv),pe("LLVM_CPPFLAGS","-I"+bn(e+"/include"),lv),await ce(`${e}/lib/clang/${t}/include`)?pe("LLVM_CPATH",`${e}/lib/clang/${t}/include`,lv):await ce(`${e}/lib/clang/${s}/include`)?pe("LLVM_CPATH",`${e}/lib/clang/${s}/include`,lv):Promise.resolve(),pe("LIBRARY_PATH",e+"/lib",lv),Vn()];if(yt()){const t=60;a.push(Je("cc",e+"/bin/clang",lv,t),Je("cxx",e+"/bin/clang++",lv,t),Je("clang",e+"/bin/clang",lv),Je("clang++",e+"/bin/clang++",lv),Je("lld",e+"/bin/lld",lv),Je("ld.lld",e+"/bin/ld.lld",lv),Je("llvm-ar",e+"/bin/llvm-ar",lv))}await Promise.all(a)}(null!=(r=i.installDir)?r:t,e),i}function pr(e,t,n){return hr(e,t,n,Vy.ClangFormat)}function dr(e,t,n){return hr(e,t,n)}async function hr(e,t,n,r=Vy.All){const i=mr(e);if(yt())try{return await async function(e,t=0){const n="/usr/lib/llvm-"+e;await st([{name:"ca-certificates"}]);const r=new Sd.DownloaderHelper("https://apt.llvm.org/llvm.sh",Rr.tmpdir(),{fileName:"llvm.sh"});r.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await r.start();const i=await Hs(r.getDownloadPath(),"utf-8"),o=Pr.join(Rr.tmpdir(),"llvm-setup-cpp.sh"),s=await async function(e,t,n,r){let i=function(e){return"1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?e.replace(/set -eux/g,"set -eu"):e}(e);return i=function(e){return e.replace(/add-apt-repository\s*(-y)?\s*"\${REPO_NAME}"/g,`add-apt-repository -y -n "\${REPO_NAME}"\napt-get update -o ${Id} -y`)}(i),i=function(e,t,n){return 1===e?t.replace(/ -y \$PKG/g," -y clang-format-"+n):t}(r,i,n),i=await async function(e){let t=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${Id} -y --fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map((async e=>{const n=e.replace("$LLVM_VERSION","*");await async function(e){try{const{stdout:t}=await b("dpkg",["-l",e],{env:Qe("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("ii")))}catch{return!1}}(n)&&(Vr.info("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(i),i=function(e){return Ze()?e.replace(/apt-get/g,"nala"):e}(i),await ea(t,i),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}]}(i,o,e,t);return await st(s),await As(o,"755"),await L("bash",[o,""+e,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:12e5}),await he(n+"/bin",lv),{installDir:""+n,binDir:n+"/bin",bin:n+"/bin/clang++"}}(i,r)}catch(s){y(`Failed to install llvm via system package manager ${s}. Trying to remove the repository`);try{N(Pr.join(zy,"llvm_repo_remove.bash"),[""+i])}catch(a){y("Failed to remove llvm repository "+a)}}const o=await wn("llvm",e,lr,t,n);return await Xy(i),o}function mr(e){const t=function(e){if(null===my(e))try{const t=sh(e);if(null!==t)return y(`Coerced version '${e}' to '${t}'`),t.version}catch(t){}return e}(e);return Number.parseInt(t.split(".")[0],10)}async function yr(){if(qy){const e=Pr.join(zy,"llvm_matcher.json");if(!(await ce(e)))return h("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");y("::add-matcher::"+e)}}async function vr(e,t,n,r,i,o){if("win32"!==process.platform)return;const s=Gy.vsversion_to_versionnumber(e);y(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=Gy.findVcvarsall(s);u=!0,y("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===s?(a="14.0",await wt("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),c="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===s?(a="14.16",await wt("visualstudio2017buildtools","15.9.41.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===s?(a="14.29",await wt("visualstudio2019buildtools","16.11.7.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===s?(a=void 0,await wt("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):d(`The given MSVC versions ${e} is not supported yet.`)}catch(l){d(l)}await cr(s,c,n,a,r,i,o),Yy&&await async function(){const e=Pr.join(Jy,"msvc_matcher.json");if(!(await ce(e)))return h("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");y("::add-matcher::"+e)}()}async function wr(e,t,n){if("win32"===process.platform)return await wt("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await he(e,lv),e}()}}function Er(e,t,n){return{url:gr(t,n,e),binRelativeDir:"",binFileName:Rt("pwsh"),extractedFolderName:""}}function gr(e,t,n){var r;switch(e){case"win32":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/PowerShell-${n}-${["ia32","x86","i386","x32"].includes(t)?"win-x86":"win-x64"}.zip`;case"darwin":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${["arm","arm64"].includes(t)?"osx-arm64":"osx-x64"}.tar.gz`;case"linux":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${null!=(r={arm64:"linux-arm64",arm:"linux-arm64",arm32:"linux-arm32",aarch64:"linux-arm64",x64:"linux-x64"}[t])?r:"linux-x64"}.tar.gz`;default:throw Error(`Unsupported platform '${e}'`)}}async function _r(e,t,n){try{return await wn("pwsh",e,Er,t,n)}catch(r){return d(`Failed to setup pwsh via download: ${r}. Trying package managers...`),async function(e){switch(process.platform){case"win32":{await wt("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await he(t,lv),{binDir:t}}case"darwin":return dt("powershell",e,{cask:!0,overwrite:!1});case"linux":if(mt())return gt("powershell-bin",e,"yay");if(ht())return await Et([{name:"curl"}]),N("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),Et([{name:"powershell",version:e}]);if(yt()){await st([{name:"curl"}]);const t=await Sy();return N("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),N("dpkg",["-i","packages-microsoft-prod.deb"]),st([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}(e)}}function br(e,t,n){const r=function(e){return"win32"===e?"windows":e}(t),i=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}}(n),o="win32"===t?"zip":"tar.gz";return{binRelativeDir:"",binFileName:Rt("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${i}.${o}`}}function Sr(e){const t=_d.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function Or(e,t){let n=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(n+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(n+="\n- The binary directory is "+t.binDir)),n}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Rr=require("os"),Ir=require("fs"),Tr=require("crypto"),Pr=require("path"),Cr=require("http"),xr=require("https");require("net");const Nr=require("tls"),Lr=require("events"),Ar=require("util"),$r=require("buffer"),Dr=require("process"),kr=require("child_process"),Ur=require("assert"),jr=require("stream"),Fr=require("url"),Mr=require("string_decoder"),Br=require("timers"),Gr=require("constants"),Vr=require("console");var Hr="undefined"!=typeof document?document.currentScript:null;const qr=e(Ir),zr=e(Cr),Wr=e(xr);var Xr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Kr={};const Yr=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{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"}];var Jr,Qr=(Jr||(Jr=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=Yr,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,e.id=null,n.forEach((function(n){const i=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));e[n.constant]=i,i&&(e.name=n.name,e.isPR=function(e){switch(typeof e.pr){case"string":return!!r[e.pr];case"object":return"env"in e.pr?"any"in e.pr?e.pr.any.some((function(t){return r[e.pr.env]===t})):e.pr.env in r&&r[e.pr.env]!==e.pr.ne:"any"in e.pr?e.pr.any.some((function(e){return!!r[e]})):t(e.pr);default:return null}}(n),e.id=n.constant)})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(Kr)),Kr);const Zr=t(Qr);var ei,ti,ni={},ri={},ii={},oi={};const si=new Uint8Array(256);let ai=si.length;const ci=/^(?:[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,ui=[];for(let fv=0;256>fv;++fv)ui.push((fv+256).toString(16).substr(1));let li,fi,pi=0,di=0;const hi=c("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Tr.createHash("md5").update(e).digest()})),mi=c("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Tr.createHash("sha1").update(e).digest()})),yi=n(Object.freeze(Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:a,stringify:s,v1:function(e,t,n){let r=t&&n||0;const o=t||Array(16);let a=(e=e||{}).node||li,c=void 0!==e.clockseq?e.clockseq:fi;if(null==a||null==c){const t=e.random||(e.rng||i)();null==a&&(a=li=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==c&&(c=fi=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:di+1;const f=u-pi+(l-di)/1e4;if(0>f&&void 0===e.clockseq&&(c=c+1&16383),(0>f||u>pi)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");pi=u,di=l,fi=c,u+=122192928e5;const p=(1e4*(268435455&u)+l)%4294967296;o[r++]=p>>>24&255,o[r++]=p>>>16&255,o[r++]=p>>>8&255,o[r++]=255&p;const d=u/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=c>>>8|128,o[r++]=255&c;for(let i=0;6>i;++i)o[r+i]=a[i];return t||s(o)},v3:hi,v4:function(e,t,n){const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;16>e;++e)t[n+e]=r[e];return t}return s(r)},v5:mi,validate:o,version:function(e){if(!o(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var vi,wi={};class Ei extends URL{_decodedUsername;_decodedPassword;constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var gi,_i,bi,Si,Oi,Ri,Ii,Ti,Pi={},Ci=(bi||(bi=1,_i=function(){function e(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,r,i,o){for(var s=n(r,i,o),a=0,c=t.requests.length;c>a;++a){var u=t.requests[a];if(u.host===s.host&&u.port===s.port)return t.requests.splice(a,1),void u.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function t(t,n){var i=this;e.prototype.createSocket.call(i,t,(function(e){var s=t.request.getHeader("host"),a=r({},i.options,{socket:e,servername:s?s.replace(/:.*$/,""):t.host}),c=o.connect(0,a);i.sockets[i.sockets.indexOf(e)]=c,n(c)}))}function n(e,t,n){return"string"==typeof e?{host:e,port:t,localAddress:n}:e}function r(e){for(var t=1,n=arguments.length;n>t;++t){var r=arguments[t];if("object"==typeof r)for(var i=Object.keys(r),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==r[a]&&(e[a]=r[a])}}return e}if(gi)return Pi;gi=1;var i,o=Nr,s=Cr,a=xr,c=Lr,u=Ar;return Pi.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},Pi.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},Pi.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},Pi.httpsOverHttps=function(n){var r=new e(n);return r.request=a.request,r.createSocket=t,r.defaultPort=443,r},u.inherits(e,c.EventEmitter),e.prototype.addRequest=function(e,t,i,o){var s=this,a=r({request:e},s.options,n(t,i,o));this.maxSockets>s.sockets.length?s.createSocket(a,(function(t){function n(){s.emit("free",t,a)}function r(e){s.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)})):s.requests.push(a)},e.prototype.createSocket=function(e,t){function n(n,r,a){var u;return c.removeAllListeners(),r.removeAllListeners(),200!==n.statusCode?(i("tunneling socket could not be established, statusCode=%d",n.statusCode),r.destroy(),(u=Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",u),void o.removeSocket(s)):a.length>0?(i("got illegal response body from proxy"),r.destroy(),(u=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",u),void o.removeSocket(s)):(i("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=r,t(r))}var o=this,s={};o.sockets.push(s);var a=r({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(a.localAddress=e.localAddress),a.proxyAuth&&(a.headers=a.headers||{},a.headers["Proxy-Authorization"]="Basic "+new Buffer(a.proxyAuth).toString("base64")),i("making CONNECT request");var c=o.request(a);c.useChunkedEncodingByDefault=!1,c.once("response",(function(e){e.upgrade=!0})),c.once("upgrade",(function(e,t,r){process.nextTick((function(){n(e,t,r)}))})),c.once("connect",n),c.once("error",(function(t){c.removeAllListeners(),i("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),o.removeSocket(s)})),c.end()},e.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},i=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},Pi.debug=i,Pi}()),_i);(Oi=Si||(Si={}))[Oi.OK=200]="OK",Oi[Oi.MultipleChoices=300]="MultipleChoices",Oi[Oi.MovedPermanently=301]="MovedPermanently",Oi[Oi.ResourceMoved=302]="ResourceMoved",Oi[Oi.SeeOther=303]="SeeOther",Oi[Oi.NotModified=304]="NotModified",Oi[Oi.UseProxy=305]="UseProxy",Oi[Oi.SwitchProxy=306]="SwitchProxy",Oi[Oi.TemporaryRedirect=307]="TemporaryRedirect",Oi[Oi.PermanentRedirect=308]="PermanentRedirect",Oi[Oi.BadRequest=400]="BadRequest",Oi[Oi.Unauthorized=401]="Unauthorized",Oi[Oi.PaymentRequired=402]="PaymentRequired",Oi[Oi.Forbidden=403]="Forbidden",Oi[Oi.NotFound=404]="NotFound",Oi[Oi.MethodNotAllowed=405]="MethodNotAllowed",Oi[Oi.NotAcceptable=406]="NotAcceptable",Oi[Oi.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Oi[Oi.RequestTimeout=408]="RequestTimeout",Oi[Oi.Conflict=409]="Conflict",Oi[Oi.Gone=410]="Gone",Oi[Oi.TooManyRequests=429]="TooManyRequests",Oi[Oi.InternalServerError=500]="InternalServerError",Oi[Oi.NotImplemented=501]="NotImplemented",Oi[Oi.BadGateway=502]="BadGateway",Oi[Oi.ServiceUnavailable=503]="ServiceUnavailable",Oi[Oi.GatewayTimeout=504]="GatewayTimeout",(Ii=Ri||(Ri={})).Accept="accept",Ii.ContentType="content-type",(Ti||(Ti={})).ApplicationJson="application/json";const xi=[Si.MovedPermanently,Si.ResourceMoved,Si.SeeOther,Si.TemporaryRedirect,Si.PermanentRedirect],Ni=[Si.BadGateway,Si.ServiceUnavailable,Si.GatewayTimeout],Li=["OPTIONS","GET","DELETE","HEAD"];class Ai extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,Ai.prototype)}statusCode;result}class $i{constructor(e){this.message=e}message;async readBody(){return new Promise((async e=>{let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))}async readBodyBuffer(){return new Promise((async e=>{const t=[];this.message.on("data",(e=>{t.push(e)})),this.message.on("end",(()=>{e(Buffer.concat(t))}))}))}}class Di{userAgent;handlers;requestOptions;_ignoreSslError=!1;_socketTimeout;_allowRedirects=!0;_allowRedirectDowngrade=!1;_maxRedirects=50;_allowRetries=!1;_maxRetries=1;_agent;_proxyAgent;_proxyAgentDispatcher;_keepAlive=!1;_disposed=!1;constructor(e,t,n){this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}async options(e,t){return this.request("OPTIONS",e,null,t||{})}async get(e,t){return this.request("GET",e,null,t||{})}async del(e,t){return this.request("DELETE",e,null,t||{})}async post(e,t,n){return this.request("POST",e,t,n||{})}async patch(e,t,n){return this.request("PATCH",e,t,n||{})}async put(e,t,n){return this.request("PUT",e,t,n||{})}async head(e,t){return this.request("HEAD",e,null,t||{})}async sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[Ri.Accept]=this._getExistingOrDefaultHeader(t,Ri.Accept,Ti.ApplicationJson);const n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[Ri.Accept]=this._getExistingOrDefaultHeader(n,Ri.Accept,Ti.ApplicationJson),n[Ri.ContentType]=this._getExistingOrDefaultHeader(n,Ri.ContentType,Ti.ApplicationJson);const i=await this.post(e,r,n);return this._processResponse(i,this.requestOptions)}async putJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[Ri.Accept]=this._getExistingOrDefaultHeader(n,Ri.Accept,Ti.ApplicationJson),n[Ri.ContentType]=this._getExistingOrDefaultHeader(n,Ri.ContentType,Ti.ApplicationJson);const i=await this.put(e,r,n);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[Ri.Accept]=this._getExistingOrDefaultHeader(n,Ri.Accept,Ti.ApplicationJson),n[Ri.ContentType]=this._getExistingOrDefaultHeader(n,Ri.ContentType,Ti.ApplicationJson);const i=await this.patch(e,r,n);return this._processResponse(i,this.requestOptions)}async request(e,t,n,r){if(this._disposed)throw Error("Client has already been disposed.");const i=new URL(t);let o=this._prepareRequest(e,i,r);const s=this._allowRetries&&Li.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(o,n),a&&a.message&&a.message.statusCode===Si.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,o,n):a}let t=this._maxRedirects;for(;a.message.statusCode&&xi.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const c=new URL(s);if("https:"===i.protocol&&i.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await a.readBody(),c.hostname!==i.hostname)for(const e in r)"authorization"===e.toLowerCase()&&delete r[e];o=this._prepareRequest(e,c,r),a=await this.requestRaw(o,n),t--}if(!a.message.statusCode||!Ni.includes(a.message.statusCode))return a;c+=1,s>c&&(await a.readBody(),await this._performExponentialBackoff(c))}while(s>c);return a}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}async requestRaw(e,t){return new Promise(((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e?r(e):t?n(t):r(Error("Unknown error"))}))}))}requestRawWithCallback(e,t,n){function r(e,t){i||(i=!0,n(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1;const o=e.httpModule.request(e.options,(e=>{r(void 0,new $i(e))}));let s;o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),r(Error("Request timeout: "+e.options.path))})),o.on("error",(function(e){r(e)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){o.end()})),t.pipe(o)):o.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}async getAgentDispatcher(e){const t=new URL(e),n=u(t);if(n&&n.hostname)return await this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const i="https:"===r.parsedUrl.protocol;r.httpModule=i?Wr:zr;const o=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):o,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(const s of this.handlers)s.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},ki(this.requestOptions.headers),ki(e||{})):ki(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=ki(this.requestOptions.headers)[t]),e[t]||r||n}_getAgent(e){let t;const n=u(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;const i="https:"===e.protocol;let o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||zr.globalAgent.maxSockets),n&&n.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:{...(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`},host:n.hostname,port:n.port}};let r;const s="https:"===n.protocol;r=i?s?Ci.httpsOverHttps:Ci.httpsOverHttp:s?Ci.httpOverHttps:Ci.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=i?new Wr.Agent(e):new zr.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}async _getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;const r="https:"===e.protocol;return n=new(await Promise.resolve().then((()=>require("./assets/proxy-agent-Bxzdb3SZ.js"))).then((e=>e.proxyAgent)))({uri:t.href,pipelining:this._keepAlive?1:0,...(t.username||t.password)&&{token:"Basic "+Buffer.from(`${t.username}:${t.password}`).toString("base64")}}),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}async _performExponentialBackoff(e){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}async _processResponse(e,t){return new Promise((async(n,r)=>{const i=e.message.statusCode||0,o={statusCode:i,result:null,headers:{}};let s,a;i===Si.NotFound&&n(o);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,(function(e,t){if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),o.result=s),o.headers=e.message.headers}catch(c){}if(i>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${i})`;const t=new Ai(e,i);t.result=o.result,r(t)}else n(o)}))}}const ki=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),Ui=n(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return Ri},HttpClient:Di,HttpClientError:Ai,HttpClientResponse:$i,get HttpCodes(){return Si},get MediaTypes(){return Ti},getProxyUrl:function(e){const t=u(new URL(e));return t?t.href:""},isHttps:function(e){return"https:"===new URL(e).protocol}},Symbol.toStringTag,{value:"Module"})));var ji,Fi,Mi,Bi,Gi,Vi={},Hi={},qi={},zi=p(),Wi={};const Xi=[{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"}];var Ki;const Yi=t((Ki||(Ki=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=Xi,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,n.forEach((function(n){const i=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));if(e[n.constant]=i,i)switch(e.name=n.name,typeof n.pr){case"string":e.isPR=!!r[n.pr];break;case"object":e.isPR="env"in n.pr?n.pr.env in r&&r[n.pr.env]!==n.pr.ne:"any"in n.pr?n.pr.any.some((function(e){return!!r[e]})):t(n.pr);break;default:e.isPR=null}})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(Wi)),Wi)),{GITHUB_ACTIONS:Ji}=Yi;var Qi,Zi,eo,to,no,ro,io,oo,so,ao,co,uo,lo,fo,po,ho,mo,yo,vo,wo,Eo,go,_o,bo={exports:{}},So={exports:{}},Oo={};const Ro=t(function(){function e(e,i,o){const s=n(e,i,o),a=t.spawn(s.command,s.args,s.options);return r.hookChildProcess(a,s),a}if(_o)return bo.exports;_o=1;const t=kr,n=w(),r=function(){function e(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function t(t,r){return n&&1===t&&!r.file?e(r.original,"spawn"):null}if(go)return Eo;go=1;const n="win32"===process.platform;return Eo={hookChildProcess:function(e,r){if(!n)return;const i=e.emit;e.emit=function(n,o){if("exit"===n){const n=t(o,r);if(n)return i.call(e,"error",n)}return i.apply(e,arguments)}},verifyENOENT:t,verifyENOENTSync:function(t,r){return n&&1===t&&!r.file?e(r.original,"spawnSync"):null},notFoundError:e},Eo}();return bo.exports=e,bo.exports.spawn=e,bo.exports.sync=function(e,i,o){const s=n(e,i,o),a=t.spawnSync(s.command,s.args,s.options);return a.error=a.error||r.verifyENOENTSync(a.status,s),a},bo.exports._parse=n,bo.exports._enoent=r,bo.exports}()),Io=({env:e=Dr.env,...t}={})=>{const n=E({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=Dr.cwd(),path:t=Dr.env[E()],preferLocal:n=!0,execPath:r=Dr.execPath,addExecPath:i=!0}={})=>{const o=e instanceof URL?Fr.fileURLToPath(e):e,s=Pr.resolve(o),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(Pr.join(t,"node_modules/.bin")),n=t,t=Pr.resolve(t,"..")})(a,s),i&&((e,t,n)=>{const r=t instanceof URL?Fr.fileURLToPath(t):t;e.push(Pr.resolve(n,r,".."))})(a,r,s),[...a,t].join(Pr.delimiter)})(t),e},To=(e,t,n,r)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const i=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!Po(i,o)&&r||Object.defineProperty(e,n,o)},Po=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Co=(e,t)=>`/* Wrapped ${e}*/\n${t}`,xo=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),No=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),Lo=new WeakMap,Ao=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const i=e.displayName||e.name||"",o=function(...s){if(Lo.set(o,++r),1===r)n=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return n};return function(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:r}=e;for(const i of Reflect.ownKeys(t))To(e,t,i,n);((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,t),((e,t,n)=>{const r=""===n?"":`with ${n.trim()}() `,i=Co.bind(null,r,""+t);Object.defineProperty(i,"name",No),Object.defineProperty(e,"toString",{...xo,value:i})})(e,t,r)}(o,e),Lo.set(o,r),o};Ao.callCount=e=>{if(!Lo.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Lo.get(e)};const $o=(e,t)=>({name:"SIGRT"+(t+1),number:Do+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Do=34,ko=[{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"}],Uo=()=>{const e=Array.from({length:64-Do+1},$o);return[...ko,...e].map(jo)},jo=({name:e,number:t,description:n,action:r,forced:i=!1,standard:o})=>{const{signals:{[e]:s}}=Rr.constants,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:i,standard:o}},Fo=({name:e,number:t,description:n,supported:r,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:n,supported:r,action:i,forced:o,standard:s}],Mo=(()=>{const e=Uo();return Object.fromEntries(e.map(Fo))})(),Bo=(e,t)=>{const n=t.find((({name:t})=>Rr.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=Uo(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=Bo(e,t);if(void 0===n)return{};const{name:r,description:i,supported:o,action:s,forced:a,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:o,action:s,forced:a,standard:c}}})(n,e)));Object.assign({},...t)})();const Go=({stdout:e,stderr:t,all:n,error:r,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:c,isCanceled:u,killed:l,parsed:{options:{timeout:f,cwd:p=Dr.cwd()}}})=>{const d=void 0===(i=null===i?void 0:i)?void 0:Mo[i].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==n?"failed with "+n:void 0!==r?`was killed with ${r} (${i})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:c,timeout:f,errorCode:r&&r.code,signal:i,signalDescription:d,exitCode:o=null===o?void 0:o,isCanceled:u}),m=`Command ${h}: ${s}`,y="[object Error]"==={}.toString.call(r),v=y?`${m}\n${r.message}`:m,w=[v,t,e].filter(Boolean).join("\n");return y?(r.originalMessage=r.message,r.message=w):r=Error(w),r.shortMessage=v,r.command=s,r.escapedCommand=a,r.exitCode=o,r.signal=i,r.signalDescription=d,r.stdout=e,r.stderr=t,r.cwd=p,void 0!==n&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=u,r.killed=l&&!c,r},Vo=["stdin","stdout","stderr"];var Ho,qo,zo={exports:{}},Wo={exports:{}};const Xo=t(function(){if(qo)return zo.exports;qo=1;var e=Xr.process;const t=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(t(e)){var n,r=Ur,i=(Ho||(Ho=1,(y=Wo).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&y.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&y.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Wo.exports),o=/^win/i.test(e.platform),s=Lr;"function"!=typeof s&&(s=s.EventEmitter),e.__signal_exit_emitter__?n=e.__signal_exit_emitter__:((n=e.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),zo.exports=function(e,i){if(!t(Xr.process))return function(){};r.equal(typeof e,"function","a callback must be provided for exit handler"),!1===l&&f();var o="exit";return i&&i.alwaysLast&&(o="afterexit"),n.on(o,e),function(){n.removeListener(o,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&a()}};var a=function(){l&&t(Xr.process)&&(l=!1,i.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};zo.exports.unload=a;var c=function(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))},u={};i.forEach((function(r){u[r]=function(){t(Xr.process)&&e.listeners(r).length===n.count&&(a(),c("exit",null,r),c("afterexit",null,r),o&&"SIGHUP"===r&&(r="SIGINT"),e.kill(e.pid,r))}})),zo.exports.signals=function(){return i};var l=!1,f=function(){!l&&t(Xr.process)&&(l=!0,n.count+=1,i=i.filter((function(t){try{return e.on(t,u[t]),!0}catch(n){return!1}})),e.emit=m,e.reallyExit=d)};zo.exports.load=f;var p=e.reallyExit,d=function(n){t(Xr.process)&&(e.exitCode=n||0,c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),p.call(e,e.exitCode))},h=e.emit,m=function(n,r){if("exit"===n&&t(Xr.process)){void 0!==r&&(e.exitCode=r);var i=h.apply(this,arguments);return c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),i}return h.apply(this,arguments)}}else zo.exports=function(){return function(){}};var y;return zo.exports}()),Ko=(e,t="SIGTERM",n={})=>{const r=e(t);return Yo(e,t,n,r),r},Yo=(e,t,n,r)=>{if(!Jo(t,n,r))return;const i=Zo(n),o=setTimeout((()=>{e("SIGKILL")}),i);o.unref&&o.unref()},Jo=(e,{forceKillAfterTimeout:t},n)=>Qo(e)&&!1!==t&&n,Qo=e=>e===Rr.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),Zo=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},es=(e,t)=>{e.kill()&&(t.isCanceled=!0)},ts=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(Ir.createWriteStream(n)),e;if(_(n))return e[t].pipe(n),e;if(!(e=>e instanceof kr.ChildProcess&&"function"==typeof e.then)(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!_(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n};var ns,rs,is,os={exports:{}};const ss=t(function(){async function e(e,n){if(!e)throw Error("Expected a stream");n={maxBuffer:1/0,...n};const{maxBuffer:r}=n,a=i(n);return await new Promise(((n,i)=>{const c=e=>{e&&a.getBufferedLength()<=t.MAX_LENGTH&&(e.bufferedData=a.getBufferedValue()),i(e)};(async()=>{try{await o(e,a),n()}catch(t){c(t)}})(),a.on("data",(()=>{a.getBufferedLength()>r&&c(new s)}))})),a.getBufferedValue()}if(is)return os.exports;is=1;const{constants:t}=$r,n=jr,{promisify:r}=Ar,i=function(){if(rs)return ns;rs=1;const{PassThrough:e}=jr;return ns=t=>{t={...t};const{array:n}=t;let{encoding:r}=t;const i="buffer"===r;let o=!1;n?o=!(r||i):r=r||"utf8",i&&(r=null);const s=new e({objectMode:o});r&&s.setEncoding(r);let a=0;const c=[];return s.on("data",(e=>{c.push(e),o?a=c.length:a+=e.length})),s.getBufferedValue=()=>n?c:i?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s}}(),o=r(n.pipeline);class s extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}return os.exports=e,os.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),os.exports.array=(t,n)=>e(t,{...n,array:!0}),os.exports.MaxBufferError=s,os.exports}());var as,cs;const us=t(function(){if(cs)return as;cs=1;const{PassThrough:e}=jr;return as=function(){function t(e){return Array.isArray(e)?(e.forEach(t),this):(r.push(e),e.once("end",n.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function n(e){!(r=r.filter((function(t){return t!==e}))).length&&i.readable&&i.end()}var r=[],i=new e({objectMode:!0});return i.setMaxListeners(0),i.add=t,i.isEmpty=function(){return 0==r.length},i.on("unpipe",n),[].slice.call(arguments).forEach(t),i}}()),ls=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},fs=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},ps=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?ss(e,{encoding:t,maxBuffer:r}):ss.buffer(e,{maxBuffer:r})},ds=(async()=>{})().constructor.prototype,hs=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(ds,e)])),ms=(e,t)=>{for(const[n,r]of hs){const i="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:i})}},ys=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],vs=/^[\w.-]+$/,ws=/"/g,Es=(e,t)=>ys(e,t).join(" "),gs=(e,t)=>ys(e,t).map((e=>(e=>"string"!=typeof e||vs.test(e)?e:`"${e.replace(ws,'\\"')}"`)(e))).join(" "),_s=/ +/g,bs=e=>{const t=[];for(const n of e.trim().split(_s)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},Ss=Ar.debuglog("execa").enabled,Os=(e,t)=>(e+"").padStart(t,"0"),Rs=(e,{verbose:t})=>{t&&Dr.stderr.write(`[${(()=>{const e=new Date;return`${Os(e.getHours(),2)}:${Os(e.getMinutes(),2)}:${Os(e.getSeconds(),2)}.${Os(e.getMilliseconds(),3)}`})()}] ${e}\n`)},Is=(e,t,n={})=>{const r=Ro._parse(e,t,n);return e=r.command,t=r.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=r.options).cwd||Dr.cwd(),execPath:Dr.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Ss,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:i})=>{const o=t?{...Dr.env,...e}:e;return n?Io({env:o,cwd:r,execPath:i}):o})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Vo.map((t=>e[t]));if((e=>Vo.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Vo.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Vo.length)},((e,n)=>t[n]))})(n),"win32"===Dr.platform&&"cmd"===Pr.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Ts=(e,t,n)=>"string"==typeof t||$r.Buffer.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e}(t):t:void 0===n?void 0:"";var Ps={},Cs={};const xs=qr.promises,{access:Ns,appendFile:Ls,chmod:As,chown:$s,copyFile:Ds,lchmod:ks,lchown:Us,link:js,lstat:Fs,mkdir:Ms,mkdtemp:Bs,open:Gs,readdir:Vs,readFile:Hs,readlink:qs,realpath:zs,rename:Ws,rmdir:Xs,stat:Ks,symlink:Ys,truncate:Js,unlink:Qs,utimes:Zs,writeFile:ea}=qr.promises,ta="rm"in qr.promises?qr.promises.rm:Ar.promisify(qr.unlink),na=n(Object.freeze(Object.defineProperty({__proto__:null,access:Ns,appendFile:Ls,chmod:As,chown:$s,copyFile:Ds,default:xs,lchmod:ks,lchown:Us,link:js,lstat:Fs,mkdir:Ms,mkdtemp:Bs,open:Gs,readFile:Hs,readdir:Vs,readlink:qs,realpath:zs,rename:Ws,rm:ta,rmdir:Xs,stat:Ks,symlink:Ys,truncate:Js,unlink:Qs,utimes:Zs,writeFile:ea},Symbol.toStringTag,{value:"Module"})));var ra,ia,oa,sa,aa,ca,ua={},la={};const fa=t(function(){if(ca)return aa;ca=1;const{isexe:e,sync:t}=O(),{join:n,delimiter:r,sep:i,posix:o}=Pr,s="win32"===process.platform,a=RegExp(`[${o.sep}${i===o.sep?"":i}]`.replace(/(\\)/g,"\\$1")),c=RegExp("^\\."+a.source),u=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),l=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:i=r})=>{const o=e.match(a)?[""]:[...s?[process.cwd()]:[],...(t||"").split(i)];if(s){const t=n||[".EXE",".CMD",".BAT",".COM"].join(i),r=t.split(i).flatMap((e=>[e,e.toLowerCase()]));return e.includes(".")&&""!==r[0]&&r.unshift(""),{pathEnv:o,pathExt:r,pathExtExe:t}}return{pathEnv:o,pathExt:[""]}},f=(e,t)=>{const r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&c.test(t)?t.slice(0,2):"")+n(r,t)},p=async(t,n={})=>{const{pathEnv:r,pathExt:i,pathExtExe:o}=l(t,n),s=[];for(const a of r){const r=f(a,t);for(const t of i){const i=r+t;if(await e(i,{pathExt:o,ignoreErrors:!0})){if(!n.all)return i;s.push(i)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(t)};return aa=p,p.sync=(e,n={})=>{const{pathEnv:r,pathExt:i,pathExtExe:o}=l(e,n),s=[];for(const a of r){const r=f(a,e);for(const e of i){const i=r+e;if(t(i,{pathExt:o,ignoreErrors:!0})){if(!n.all)return i;s.push(i)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(e)},aa}());let pa;var da,ha={};I(ha,"hasSudo",(()=>T)),I(ha,"isRoot",(()=>P)),I(ha,"isSudo",(()=>C)),I(ha,"prependSudo",(()=>x)),I(ha,"defaultExecOptions",(()=>ma)),I(ha,"execRootSync",(()=>N)),I(ha,"execRoot",(()=>L));let ma={stdio:"inherit",shell:!0};I(da={},"isAdminWindows",(()=>ya)),I(da,"isAdminPosix",(()=>va)),I(da,"isAdmin",(()=>D));let ya=async function(){var e;if("win32"!==process.platform)return!1;try{return await b("fsutil",["dirty","query",null!=(e=process.env.systemdrive)?e:""]),!0}catch(t){return"ENOENT"===t.code&&async function(){try{return await b("fltmc"),!0}catch{return!1}}()}},va=P;var wa,Ea,ga,_a,ba,Sa,Oa,Ra,Ia,Ta,Pa,Ca,xa,Na,La,Aa,$a,Da,ka,Ua,ja,Fa,Ma,Ba,Ga,Va;I({},"grantUserWriteAccess",(()=>k));var Ha,qa,za,Wa,Xa,Ka,Ya,Ja,Qa,Za,ec,tc,nc,rc,ic,oc,sc,ac,cc,uc,lc,fc,pc,dc,hc,mc,yc,vc,wc,Ec,gc,_c,bc,Sc,Oc,Rc,Ic,Tc,Pc,Cc,xc,Nc,Lc,Ac,$c,Dc,kc,Uc,jc,Fc,Mc,Bc,Gc,Vc,Hc,qc,zc,Wc,Xc,Kc,Yc,Jc,Qc,Zc,eu,tu,nu,ru,iu,ou,su,au,cu,uu,lu,fu,pu,du,hu,mu,yu,vu,wu,Eu,gu,_u,bu,Su,Ou,Ru,Iu,Tu,Pu,Cu,xu,Nu,Lu,Au,$u,Du,ku,Uu,ju,Fu,Mu,Bu,Gu,Vu,Hu,qu,zu,Wu,Xu,Ku,Yu,Ju,Qu,Zu,el,tl,nl,rl,il,ol,sl,al,cl,ul,ll,fl,pl={},dl={exports:{}},hl={exports:{}},ml={exports:{}},yl={exports:{}},vl={},wl={},El={exports:{}},gl={},_l={},bl={},Sl={};const Ol=t(function(){if(fl)return ll;fl=1;var e=j(),t=M(),n=function(){if(yu)return mu;yu=1;var e=B(),t=V(),n=H(),r=te(),i=M();return mu=function o(s){var a,c,u;if(e(s),(a=Object(arguments[1])).async&&a.promise)throw Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(s,"__memoized__")&&!a.force?s:(c=i(a.length,s.length,a.async&&n.async),u=r(s,c,a),t(n,(function(e,t){a[t]&&e(a[t],u,a)})),o.__profiler__&&o.__profiler__(u),u.updateEnv(),u.memoized)},mu}();return ll=function(r){var i,o=e(arguments[1]);return o.normalizer||0!==(i=o.length=t(o.length,r.length,o.async))&&(o.primitive?!1===i?o.normalizer=wu?vu:(wu=1,vu=function(e){var t,n,r=e.length;if(!r)return"";for(t=e[n=0]+"";--r;)t+=""+e[++n];return t}):i>1&&(o.normalizer=(gu?Eu:(gu=1,Eu=function(e){return e?function(t){for(var n=t[0]+"",r=0,i=e;--i;)n+=""+t[++r];return n}:function(){return""}}))(i)):o.normalizer=!1===i?function(){if(xu)return Cu;xu=1;var e=ne(),t=Object.create;return Cu=function(){var n=0,r=[],i=t(null);return{get:function(t){var n,i=0,o=r,s=t.length;if(0===s)return o[s]||null;if(o=o[s]){for(;s-1>i;){if(-1===(n=e.call(o[0],t[i])))return null;o=o[1][n],++i}return-1===(n=e.call(o[0],t[i]))?null:o[1][n]||null}return null},set:function(t){var o,s=0,a=r,c=t.length;if(0===c)a[c]=++n;else{for(a[c]||(a[c]=[[],[]]),a=a[c];c-1>s;)-1===(o=e.call(a[0],t[s]))&&(o=a[0].push(t[s])-1,a[1].push([[],[]])),a=a[1][o],++s;-1===(o=e.call(a[0],t[s]))&&(o=a[0].push(t[s])-1),a[1][o]=++n}return i[n]=t,n},delete:function(t){var n,o=0,s=r,a=i[t],c=a.length,u=[];if(0===c)delete s[c];else if(s=s[c]){for(;c-1>o;){if(-1===(n=e.call(s[0],a[o])))return;u.push(s,n),s=s[1][n],++o}if(-1===(n=e.call(s[0],a[o])))return;for(t=s[1][n],s[0].splice(n,1),s[1].splice(n,1);!s[0].length&&u.length;)n=u.pop(),(s=u.pop())[0].splice(n,1),s[1].splice(n,1)}delete i[t]},clear:function(){r=[],i=t(null)}}}}()():1===i?function(){if(Lu)return Nu;Lu=1;var e=ne();return Nu=function(){var t=0,n=[],r=[];return{get:function(t){var i=e.call(n,t[0]);return-1===i?null:r[i]},set:function(e){return n.push(e[0]),r.push(++t),t},delete:function(t){var i=e.call(r,t);-1!==i&&(n.splice(i,1),r.splice(i,1))},clear:function(){n=[],r=[]}}}}()():function(){if($u)return Au;$u=1;var e=ne(),t=Object.create;return Au=function(n){var r=0,i=[[],[]],o=t(null);return{get:function(t){for(var r,o=0,s=i;n-1>o;){if(-1===(r=e.call(s[0],t[o])))return null;s=s[1][r],++o}return-1===(r=e.call(s[0],t[o]))?null:s[1][r]||null},set:function(t){for(var s,a=0,c=i;n-1>a;)-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1,c[1].push([[],[]])),c=c[1][s],++a;return-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1),c[1][s]=++r,o[r]=t,r},delete:function(t){for(var r,s=0,a=i,c=[],u=o[t];n-1>s;){if(-1===(r=e.call(a[0],u[s])))return;c.push(a,r),a=a[1][r],++s}if(-1!==(r=e.call(a[0],u[s]))){for(t=a[1][r],a[0].splice(r,1),a[1].splice(r,1);!a[0].length&&c.length;)r=c.pop(),(a=c.pop())[0].splice(r,1),a[1].splice(r,1);delete o[t]}},clear:function(){i=[[],[]],o=t(null)}}}}()(i)),o.async&&function(){if(Fu)return vl;Fu=1;var e=ee(),t=re(),n=z(),r=W(),i=ie(),o=[].slice,s=function(){}.apply,a=Object.create;H().async=function(c,u){var l,f,p,d=a(null),h=a(null),m=u.memoized,y=u.original;u.memoized=r((function(e){var t=arguments,n=t[t.length-1];return"function"==typeof n&&(l=n,t=o.call(t,0,-1)),m.apply(f=this,p=t)}),m);try{n(u.memoized,m)}catch(v){}u.on("get",(function(e){var t,n,r;if(l){if(d[e])return"function"==typeof d[e]?d[e]=[d[e],l]:d[e].push(l),void(l=null);t=l,n=f,r=p,l=f=p=null,i((function(){var i;hasOwnProperty.call(h,e)?(i=h[e],u.emit("getasync",e,r,n),s.call(t,i.context,i.args)):(l=t,f=n,p=r,m.apply(n,r))}))}})),u.original=function(){var t,n,r,o;return l?(t=e(arguments),n=function t(n){var r,a,c=t.id;if(null!=c){if(delete t.id,r=d[c],delete d[c],r)return a=e(arguments),u.has(c)&&(n?u.delete(c):(h[c]={context:this,args:a},u.emit("setasync",c,"function"==typeof r?1:r.length))),"function"==typeof r?o=s.call(r,this,a):r.forEach((function(e){o=s.call(e,this,a)}),this),o}else i(s.bind(t,this,arguments))},r=l,l=f=p=null,t.push(n),o=s.call(y,this,t),n.cb=r,l=n,o):s.call(y,this,arguments)},u.on("set",(function(e){l?(d[e]?"function"==typeof d[e]?d[e]=[d[e],l.cb]:d[e].push(l.cb):d[e]=l.cb,delete l.cb,l.id=e,l=null):u.delete(e)})),u.on("delete",(function(e){var t;hasOwnProperty.call(d,e)||h[e]&&(t=h[e],delete h[e],u.emit("deleteasync",e,o.call(t.args,1)))})),u.on("clear",(function(){var e=h;h=a(null),u.emit("clearasync",t(e,(function(e){return o.call(e.args,1)})))}))}}(),o.promise&&ae(),o.dispose&&function(){if(el)return gl;el=1;var e=B(),t=V(),n=H(),r=function(){}.apply;n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise)return o.on("deleteasync",a=function(e,t){r.call(i,null,t)}),void o.on("clearasync",(function(e){t(e,(function(e,t){a(t,e)}))}));o.on("delete",a=function(e,t){i(t)}),o.on("clear",(function(e){t(e,(function(e,t){a(t,e)}))}))}}(),o.maxAge&&function(){if(ol)return _l;ol=1;var e=ee(),t=V(),n=ie(),r=se(),i=function(){if(il)return rl;il=1;var e=F(),t=nl?tl:(nl=1,tl=2147483647);return rl=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}(),o=H(),s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;o.maxAge=function(l,f,p){var d,h,m,y;(l=i(l))&&(d=u(null),f.on("set"+(h=p.async&&o.async||p.promise&&o.promise?"async":""),(function(e){d[e]=setTimeout((function(){f.delete(e)}),l),"function"==typeof d[e].unref&&d[e].unref(),y&&(y[e]&&"nextTick"!==y[e]&&clearTimeout(y[e]),y[e]=setTimeout((function(){delete y[e]}),m),"function"==typeof y[e].unref&&y[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],y&&("nextTick"!==y[e]&&clearTimeout(y[e]),delete y[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(y={},m=(1-m)*l,f.on("get"+h,(function(t,i,o){y[t]||(y[t]="nextTick",n((function(){var n;"nextTick"===y[t]&&(delete y[t],f.delete(t),p.async&&(i=e(i)).push(s),n=f.memoized.apply(o,i),p.promise&&r(n)&&("function"==typeof n.done?n.done(s,s):n.then(s,s)))})))}))),f.on("clear"+h,(function(){t(d,(function(e){clearTimeout(e)})),d={},y&&(t(y,(function(e){"nextTick"!==e&&clearTimeout(e)})),y={})})))}}(),o.max&&function(){if(cl)return bl;cl=1;var e=F(),t=function(){if(al)return sl;al=1;var e=F(),t=Object.create,n={}.hasOwnProperty;return sl=function(r){var i,o=0,s=1,a=t(null),c=t(null),u=0;return r=e(r),{hit:function(e){var t=c[e],l=++u;if(a[l]=e,c[e]=l,!t){if(++o,r>=o)return;return i(e=a[s]),e}if(delete a[t],s===t)for(;!n.call(a,++s);)continue},delete:i=function(e){var t=c[e];if(t&&(delete a[t],delete c[e],--o,s===t)){if(!o)return u=0,void(s=1);for(;!n.call(a,++s);)continue}},clear:function(){o=0,s=1,a=t(null),c=t(null),u=0}}}}(),n=H();n.max=function(r,i,o){var s,a,c;(r=e(r))&&(a=t(r),i.on("set"+(s=o.async&&n.async||o.promise&&n.promise?"async":""),c=function(e){void 0!==(e=a.hit(e))&&i.delete(e)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))}}(),o.refCounter&&function(){if(ul)return Sl;ul=1;var e=Y(),t=H(),n=Object.create,r=Object.defineProperties;t.refCounter=function(i,o,s){var a,c;a=n(null),o.on("set"+(c=s.async&&t.async||s.promise&&t.promise?"async":""),(function(e,t){a[e]=t||1})),o.on("get"+c,(function(e){++a[e]})),o.on("delete"+c,(function(e){delete a[e]})),o.on("clear"+c,(function(){a={}})),r(o.memoized,{deleteRef:e((function(){var e=o.get(arguments);return null===e?null:a[e]?! --a[e]&&(o.delete(e),!0):null})),getRefCount:e((function(){var e=o.get(arguments);return null===e?0:a[e]?a[e]:0}))})}}(),n(r,o)}}()),Rl=/^~(?=$|\/|\\)/,{appendFile:Il,readFile:Tl,writeFile:Pl}=Ir.promises,Cl=ue("~/.bashrc"),xl=Ol((async function(e){const t=void 0===e.guard?`\nsource "${e.rcPath}"\n`:`\n# ${e.guard}\nif [[ "$SOURCE_${e.guard.toUpperCase()}RC" != 0 && -f "${e.rcPath}" ]]; then source "${e.rcPath}"; fi\n`;try{await Promise.all([le(e),fe(t,ue("~/.bashrc")),fe(t,ue("~/.profile"))])}catch(n){h(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${n}`)}}),{promise:!0});var Nl,Ll;const Al=t(function(){if(Ll)return Nl;Ll=1;const e=Rr,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return Nl=function(e){return t?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&Number(t)>=17134.1184)(...r.exec(n).splice(1))?e:e.replace(/(\s+)/g,"%20")}}());var $l,Dl,kl,Ul,jl,Fl={exports:{}};const Ml=t((kl||(kl=1,Ul=function(){if(Dl)return $l;Dl=1;var e=/[|\\{}()[\]^$+*?.]/g;return $l=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),jl=function(e){return e.split("").reverse().join("")},Fl.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+Ul(t)+"])(?!"+Ul(n)+")","g"),jl(jl(e).replace(r,"$1"+n)))}),Fl.exports)),{GITHUB_ACTIONS:Bl}=Yi,{appendFile:Gl}=Ir.promises,{GITHUB_ACTIONS:Vl}=Yi,{appendFile:Hl}=Ir.promises,ql=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var zl,Wl,Xl,Kl={exports:{}};const Yl=t(we());var Jl;const Ql=t((Jl||(Jl=1,ve().addLocale("en",(function(e){var t=Math.floor(Math.abs(e)),n=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===n?"one":"other"}))),{}));var Zl,ef,tf,nf,rf,of={exports:{}};const sf=t(rf?nf:(rf=1,nf=function(){function e(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:n}=t;s[e]=n}}function t(e,t,r){const i=function(e){const t=s[e.locale];let n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),n=Array.from(new Set(n));let r=null;if(n.some((function(e){if(void 0!==t[e])return r=t[e],!0})),null===r)throw Error("Can not find any unit type data for locale: "+e.locale);return r}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t)}if(tf)return ef;tf=1;const n=we(),r=Zl?of.exports:(Zl=1,of.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)),i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],o={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},s={};return ef={create:function(n){return n=Object.assign({},o,n||{}),{format:function(o,a,c){return function(n,o,a){if(function(t,n){const{autoload:i}=n;if(!s[t]){if(!r||!i)throw Error(`Missing locale: ${t}, you must load it manually before using it`);!function(t){try{e(ye(`../locales/${t}.js`))}catch(n){throw Error(`Failed to load locale: ${t} from ../locales/${t}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${n}`)}}(t)}}(a.locale,{autoload:a.autoloadLocales}),!n)throw Error("Missing first date argument");if(!o)throw Error("Missing second date argument");const c=function(e,t){let n=t-e;const r=[];return i.some((function(e){const t=e[0],i=e[1],o=Math.floor(n/i);if(n-=o*i,r.push([t,o]),0>=n)return!0})),r}(n,o),u=[];for(const e of c){const[n,r]=e;if(r>0&&u.push(t(n,r,a)),u.length>=a.span)break}return u.join(a.delimiter)}(o,a,c=Object.assign({},n,c||{}))}}},addLocale:e,defaultConfig:o}}()));var af,cf;const uf=t(cf?af:(cf=1,af={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}}));var lf,ff,pf,df,hf,mf,yf,vf,wf,Ef,gf,_f,bf,Sf,Of,Rf,If,Tf,Pf,Cf,xf,Nf,Lf,Af,$f,Df,kf,Uf,jf,Ff,Mf,Bf,Gf,Vf,Hf,qf,zf,Wf,Xf,Kf,Yf,Jf,Qf,Zf,ep,tp,np,rp,ip,op,sp,ap,cp,up,lp,fp,pp,dp,hp,mp,yp,vp,wp,Ep,gp,_p,bp,Sp,Op,Rp,Ip,Tp,Pp,Cp,xp,Np,Lp,Ap,$p,Dp,kp,Up,jp,Fp,Mp,Bp,Gp,Vp,Hp,qp,zp,Wp={exports:{}};const Xp=t(function(){function e(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{a(r.next(e))}catch(t){i(t)}}function s(e){try{a(r.throw(e))}catch(t){i(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,s)}a((r=r.call(e)).next())}))}function t(e,t){function n(n){return function(c){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,n[0]&&(a=0)),a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&o[3]>n[1])){a.label=n[1];break}if(6===n[0]&&o[1]>a.label){a.label=o[1],o=n;break}if(o&&o[2]>a.label){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(c){n=[6,c],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,c])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}if(zp)return qp;zp=1;var n=Dr,r=Ge(),i=Rr,o=Pr,s=Ir,a=xr,c=n.env.npm_package_json,u=n.env.npm_config_user_agent,l=!(!u||!u.startsWith("npm")),f=!(!c||!c.endsWith("package.json")),p=l||f,d=!(!u||!u.startsWith("yarn")),h=p||d,m=i.homedir(),y=process.env.XDG_CONFIG_HOME||o.join(m,".config","simple-update-notifier"),v=function(e){return o.join(y,"".concat(e.replace("@","").replace("/","__"),".json"))},w=function(n,r){return e(void 0,0,void 0,(function(){var e;return t(this,(function(t){return e="https://registry.npmjs.org/-/package/".concat(n,"/dist-tags"),[2,new Promise((function(t,n){a.get(e,(function(e){var i="";e.on("data",(function(e){return i+=e})),e.on("end",(function(){try{var e=JSON.parse(i)[r];e||n(Error("Error getting version")),t(e)}catch(o){n(Error("Could not parse version response"))}}))})).on("error",(function(e){return n(e)}))}))]}))}))},E=function(n){var i=n.pkg,o=n.updateCheckInterval,a=void 0===o?864e5:o,c=n.distTag,u=void 0===c?"latest":c,l=n.alwaysRun,f=n.debug;return e(void 0,0,void 0,(function(){var e,o;return t(this,(function(t){switch(t.label){case 0:return s.existsSync(y)||s.mkdirSync(y,{recursive:!0}),e=function(e){var t=v(e);try{if(!s.existsSync(t))return;return JSON.parse(s.readFileSync(t,"utf8")).lastUpdateCheck}catch(n){return}}(i.name),l||!e||e<(new Date).getTime()-a?[4,w(i.name,u)]:[3,2];case 1:return o=t.sent(),c=v(i.name),s.writeFileSync(c,JSON.stringify({lastUpdateCheck:(new Date).getTime()})),r.gt(o,i.version)?[2,o]:(f&&console.error("Latest version (".concat(o,") not newer than current version (").concat(i.version,")")),[3,3]);case 2:f&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(a,"ms but only ").concat((new Date).getTime()-e,"ms since last check.")),t.label=3;case 3:return[2,!1]}var c}))}))};return qp=function(n){return e(void 0,0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:if(!n.alwaysRun&&(!process.stdout.isTTY||h&&!n.shouldNotifyInNpmScript))return n.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,E(n)];case 2:return(e=t.sent())&&console.error(function(e){for(var t=e.split("\n"),n=Math.max.apply(Math,t.map((function(e){return e.length}))),r=["┌".concat("─".repeat(n+2),"┐")],i=0,o=t;o.length>i;i++)r.push("│ ".concat(o[i].padEnd(n)," │"));return r.push("└".concat("─".repeat(n+2),"┘")),r.join("\n")}("New version of ".concat(n.pkg.name," available!\nCurrent Version: ").concat(n.pkg.version,"\nLatest Version: ").concat(e))),[3,4];case 3:return r=t.sent(),n.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2]}}))}))}}()),Kp={name:"setup-cpp",version:"0.46.1"};var Yp,Jp,Qp,Zp,ed,td,nd,rd,id,od,sd,ad,cd,ud={},ld={},fd={},pd={},dd={},hd={},md={},yd={},vd={},wd={},Ed={},gd={},_d=Xe(),bd={},Sd=(cd||(cd=1,function(e){function t(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(e,"__esModule",{value:!0}),e.DownloaderHelper=e.DH_STATES=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n,r=0;t.length>r;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=t(Ir),s=Fr,a=t(Pr),c=t(Cr),u=t(xr),l=Lr,f=e.DH_STATES={IDLE:"IDLE",SKIPPED:"SKIPPED",STARTED:"STARTED",DOWNLOADING:"DOWNLOADING",RETRY:"RETRY",PAUSED:"PAUSED",RESUMED:"RESUMED",STOPPED:"STOPPED",FINISHED:"FINISHED",FAILED:"FAILED"};e.DownloaderHelper=function(e){function t(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{captureRejections:!0}));return o.__validate(e,r)?(o.url=o.requestURL=e.trim(),o.state=f.IDLE,o.__defaultOpts={body:null,retry:!1,method:"GET",headers:{},fileName:"",timeout:-1,metadata:null,override:!1,forceResume:!1,removeOnStop:!0,removeOnFail:!0,progressThrottle:1e3,httpRequestOptions:{},httpsRequestOptions:{},resumeOnIncomplete:!0,resumeIfFileExists:!1,resumeOnIncompleteMaxRetry:5},o.__opts=Object.assign({},o.__defaultOpts),o.__pipes=[],o.__total=0,o.__downloaded=0,o.__progress=0,o.__retryCount=0,o.__retryTimeout=null,o.__resumeRetryCount=0,o.__states=f,o.__promise=null,o.__request=null,o.__response=null,o.__isAborted=!1,o.__isResumed=!1,o.__isResumable=!1,o.__isRedirected=!1,o.__destFolder=r,o.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0},o.__fileName="",o.__filePath="",o.updateOptions(i),o):n(o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"start",value:function(){var e=this,t=function(){return new Promise((function(t,n){e.__promise={resolve:t,reject:n},e.__start()}))};return this.__opts.resumeIfFileExists&&this.state!==this.__states.RESUMED?this.getTotalSize().then((function(n){var r=n.name,i=n.total,s=e.__opts.override;return e.__opts.override=!0,e.__filePath=e.__getFilePath(r),e.__opts.override=s,e.__filePath&&o.existsSync(e.__filePath)?e.__getFilesizeInBytes(e.__filePath)===i?t():e.resumeFromFile(e.__filePath,{total:i,fileName:r}):t()})):t()}},{key:"pause",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return e.__setState(e.__states.PAUSED),e.emit("pause"),!0})))}},{key:"resume",value:function(){return this.__promise?this.state===this.__states.STOPPED?Promise.resolve(!1):(this.__setState(this.__states.RESUMED),this.__isResumable&&(this.__isResumed=!0,this.__reqOptions.headers.range="bytes="+this.__downloaded+"-"),this.emit("resume",this.__isResumed),this.__start()):this.start()}},{key:"stop",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__requestAbort(),this.__closeFileStream().then((function(){return e.__opts.removeOnStop?new Promise((function(t,n){o.access(e.__filePath,(function(r){return r?(e.__emitStop(),t(!0)):void o.unlink(e.__filePath,(function(r){return r?(e.__setState(e.__states.FAILED),e.emit("error",r),n(r)):(e.__emitStop(),void t(!0))}))}))})):(e.__emitStop(),Promise.resolve(!0))})))}},{key:"pipe",value:function(e){return this.__pipes.push({stream:e,options:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}),e}},{key:"unpipe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=function(t){return e.__response?e.__response.unpipe(t):t.unpipe()};t?this.__pipes.find((function(e){return e.stream===t}))&&(n(t),this.__pipes=this.__pipes.filter((function(e){return e.stream!==t}))):(this.__pipes.forEach((function(e){return n(e.stream)})),this.__pipes=[])}},{key:"getDownloadPath",value:function(){return this.__filePath}},{key:"isResumable",value:function(){return this.__isResumable}},{key:"updateOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.__opts=Object.assign({},this.__opts,e),this.__headers=this.__opts.headers,this.__opts.timeout>-1&&(this.__opts.httpRequestOptions.timeout=this.__opts.timeout,this.__opts.httpsRequestOptions.timeout=this.__opts.timeout),("number"!=typeof this.__opts.progressThrottle||0>this.__opts.progressThrottle)&&(this.__opts.progressThrottle=this.__defaultOpts.progressThrottle),this.url=t||this.url,this.__reqOptions=this.__getReqOptions(this.__opts.method,this.url,this.__opts.headers),this.__initProtocol(this.url)}},{key:"getOptions",value:function(){return this.__opts}},{key:"getMetadata",value:function(){return this.__opts.metadata}},{key:"getStats",value:function(){return{total:this.__total,name:this.__fileName,downloaded:this.__downloaded,progress:this.__progress,speed:this.__statsEstimate.bytes}}},{key:"getTotalSize",value:function(){var e=this;return new Promise((function(t,n){var r=function(t){e.__initProtocol(t);var n=Object.assign({},e.__headers);n.hasOwnProperty("range")&&delete n.range;var r=e.__getReqOptions("HEAD",t,n);return Object.assign({},e.__reqOptions,r)},i=function(o,a){var c=e.__protocol.request(a,(function(a){if(e.__isRequireRedirect(a)){var c=/^https?:\/\//.test(a.headers.location)?a.headers.location:new s.URL(a.headers.location,o).href;return e.emit("redirected",c,o),i(c,r(c))}return 200===a.statusCode?void t({name:e.__getFileNameFromHeaders(a.headers,a),total:parseInt(a.headers["content-length"])||null}):n(Error("Response status was "+a.statusCode))}));c.on("error",(function(e){return n(e)})),c.on("timeout",(function(){return n(Error("timeout"))})),c.on("uncaughtException",(function(e){return n(e)})),c.end()};i(e.url,r(e.url))}))}},{key:"getResumeState",value:function(){return{downloaded:this.__downloaded,filePath:this.__filePath,fileName:this.__fileName,total:this.__total}}},{key:"resumeFromFile",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.__opts.override=!0,this.__filePath=e,(n.total&&n.fileName?Promise.resolve({name:n.fileName,total:n.total}):this.getTotalSize()).then((function(e){var r=e.name;return t.__total=n.total||e.total,t.__fileName=n.fileName||r,t.__downloaded=n.downloaded||t.__getFilesizeInBytes(t.__filePath),t.__reqOptions.headers.range="bytes="+t.__downloaded+"-",t.__isResumed=!0,t.__isResumable=!0,t.__setState(t.__states.RESUMED),t.emit("resume",t.__isResumed),new Promise((function(e,n){t.__promise={resolve:e,reject:n},t.__start()}))}))}},{key:"__start",value:function(){this.__isRedirected||this.state===this.__states.RESUMED||(this.emit("start"),this.__setState(this.__states.STARTED),this.__initProtocol(this.url)),this.__response=null,this.__isAborted=!1,this.__request&&!this.__request.destroyed&&this.__request.destroy(),this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__request=this.__downloadRequest(this.__promise.resolve,this.__promise.reject),this.__request.on("error",this.__onError(this.__promise.resolve,this.__promise.reject)),this.__request.on("timeout",this.__onTimeout(this.__promise.resolve,this.__promise.reject)),this.__request.on("uncaughtException",this.__onError(this.__promise.resolve,this.__promise.reject,!0)),this.__opts.body&&this.__request.write(this.__opts.body),this.__request.end()}},{key:"__resolvePending",value:function(){if(this.__promise){var e=this.__promise.resolve;return this.__promise=null,e(!0)}}},{key:"__downloadRequest",value:function(e,t){var n=this;return this.__protocol.request(this.__reqOptions,(function(r){if(n.__response=r,n.__isResumed||(n.__total=parseInt(r.headers["content-length"])||null,n.__resetStats()),n.__isRequireRedirect(r)){var i=/^https?:\/\//.test(r.headers.location)?r.headers.location:new s.URL(r.headers.location,n.url).href;return n.__isRedirected=!0,n.__initProtocol(i),n.emit("redirected",i,n.url),n.__start()}if(200!==r.statusCode&&206!==r.statusCode){var o=Error("Response status was "+r.statusCode);return o.status=r.statusCode||0,o.body=r.body||"",n.__setState(n.__states.FAILED),n.emit("error",o),t(o)}(n.__opts.forceResume||r.headers.hasOwnProperty("accept-ranges")&&"none"!==r.headers["accept-ranges"])&&(n.__isResumable=!0),n.__startDownload(r,e,t)}))}},{key:"__startDownload",value:function(e,t,n){var i=this,s=e;if(this.__isResumed)this.__fileStream=o.createWriteStream(this.__filePath,{flags:"a"});else{var c=this.__getFileNameFromHeaders(e.headers);if(this.__filePath=this.__getFilePath(c),this.__fileName=this.__filePath.split(a.sep).pop(),o.existsSync(this.__filePath)){var u=this.__getFilesizeInBytes(this.__filePath),l=this.__total?this.__total:0;if("object"===r(this.__opts.override)&&this.__opts.override.skip&&(this.__opts.override.skipSmaller||u>=l))return this.emit("skip",{totalSize:this.__total,fileName:this.__fileName,filePath:this.__filePath,downloadedSize:u}),this.__setState(this.__states.SKIPPED),t(!0)}this.__fileStream=o.createWriteStream(this.__filePath,{})}this.emit("download",{fileName:this.__fileName,filePath:this.__filePath,totalSize:this.__total,isResumed:this.__isResumed,downloadedSize:this.__downloaded}),this.__retryCount=0,this.__isResumed=!1,this.__isRedirected=!1,this.__setState(this.__states.DOWNLOADING),this.__statsEstimate.time=new Date,this.__statsEstimate.throttleTime=new Date,s.on("data",(function(e){return i.__calculateStats(e.length)})),this.__pipes.forEach((function(e){s.pipe(e.stream,e.options),s=e.stream})),s.pipe(this.__fileStream),s.on("error",this.__onError(t,n)),this.__fileStream.on("finish",this.__onFinished(t,n)),this.__fileStream.on("error",this.__onError(t,n))}},{key:"__hasFinished",value:function(){return!this.__isAborted&&-1===[this.__states.PAUSED,this.__states.STOPPED,this.__states.RETRY,this.__states.FAILED,this.__states.RESUMED].indexOf(this.state)}},{key:"__isRequireRedirect",value:function(e){return e.statusCode>300&&400>e.statusCode&&e.headers.hasOwnProperty("location")&&e.headers.location}},{key:"__onFinished",value:function(e,t){var n=this;return function(){n.__fileStream.close((function(r){if(r)return t(r);if(n.__hasFinished()){var i=!!n.__total&&n.__downloaded!==n.__total;if(i&&n.__isResumable&&n.__opts.resumeOnIncomplete&&n.__opts.resumeOnIncompleteMaxRetry>=n.__resumeRetryCount)return n.__resumeRetryCount++,n.emit("warning",Error("uncomplete download, retrying")),n.resume();n.__setState(n.__states.FINISHED),n.__pipes=[],n.emit("end",{fileName:n.__fileName,filePath:n.__filePath,totalSize:n.__total,incomplete:i,onDiskSize:n.__getFilesizeInBytes(n.__filePath),downloadedSize:n.__downloaded})}return e(n.__downloaded===n.__total)}))}}},{key:"__closeFileStream",value:function(){var e=this;return this.__fileStream?new Promise((function(t,n){e.__fileStream.close((function(e){return e?n(e):t(!0)}))})):Promise.resolve(!0)}},{key:"__onError",value:function(e,t){var n=this,r=!(2>=arguments.length||void 0===arguments[2])&&arguments[2];return function(e){return n.__pipes=[],r&&n.__requestAbort(),n.state===n.__states.STOPPED||n.state===n.__states.FAILED?void 0:n.__opts.retry?n.__retry(e).catch((function(r){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",r||e),t(r||e)}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",e),t(e)}))}}},{key:"__retry",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.__opts.retry||"object"!==r(this.__opts.retry))return Promise.reject(t||Error("wrong retry options"));var n=this.__opts.retry,i=n.delay,o=void 0===i?0:i,s=n.maxRetries;return(void 0===s?999:s)>this.__retryCount?(this.__retryCount++,this.__setState(this.__states.RETRY),this.emit("retry",this.__retryCount,this.__opts.retry,t),this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return new Promise((function(t){return e.__retryTimeout=setTimeout((function(){return t(e.__downloaded>0?e.resume():e.__start())}),o)}))}))):Promise.reject(t||Error("reached the maximum retries"))}},{key:"__onTimeout",value:function(e,t){var n=this;return function(){return n.__requestAbort(),n.__opts.retry?n.__retry(Error("timeout")).catch((function(e){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),e?t(e):(n.emit("timeout"),t(Error("timeout")))}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("timeout"),t(Error("timeout"))}))}}},{key:"__resetStats",value:function(){this.__retryCount=0,this.__downloaded=0,this.__progress=0,this.__resumeRetryCount=0,this.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0}}},{key:"__getFileNameFromHeaders",value:function(e,t){var n="",r=e.hasOwnProperty("content-disposition"),i=r?e["content-disposition"].match(/.*filename\*=.*?'.*?'([^"].+?[^"])(?:(?:;)|$)/i):null,o=!r||i?null:e["content-disposition"].match(/.*filename="(.*?)";?/i),c=!r||i||o?null:e["content-disposition"].match(/.*filename=([^"].+?[^"])(?:(?:;)|$)/i);return r&&(i||o||c)?(n=(n=e["content-disposition"]).trim(),i?n=i[1]:o?n=o[1]:c&&(n=c[1]),n=n.replace(/[/\\]/g,"")):n=a.basename(new s.URL(this.requestURL).pathname).length>0?a.basename(new s.URL(this.requestURL).pathname):new s.URL(this.requestURL).hostname+".html",this.__opts.fileName?this.__getFileNameFromOpts(n,t):n.replace(/\.*$/,"")}},{key:"__getFilePath",value:function(e){var t=a.join(this.__destFolder,e),n=t;return this.__opts.override||this.state===this.__states.RESUMED||t!==(n=this.__uniqFileNameSync(n))&&this.emit("renamed",{path:n,fileName:n.split(a.sep).pop(),prevPath:t,prevFileName:t.split(a.sep).pop()}),n}},{key:"__getFileNameFromOpts",value:function(e,t){if(!this.__opts.fileName)return e;if("string"==typeof this.__opts.fileName)return this.__opts.fileName;if("function"==typeof this.__opts.fileName){var n=a.join(this.__destFolder,e);return t&&t.headers||this.__response&&this.__response.headers?this.__opts.fileName(e,n,(t||this.__response).headers["content-type"]):this.__opts.fileName(e,n)}if("object"===r(this.__opts.fileName)){var i=this.__opts.fileName,o=i.name,s=!!i.hasOwnProperty("ext")&&i.ext;if("string"==typeof s)return o+"."+s;if("boolean"==typeof s){if(s)return o;var c=e.includes(".")?e.split(".").pop():"";return""===c?o:o+"."+c}}return e}},{key:"__calculateStats",value:function(e){var t=new Date,n=t-this.__statsEstimate.time,r=t-this.__statsEstimate.throttleTime,i=this.__total||0;e&&(this.__downloaded+=e,this.__progress=0===i?0:this.__downloaded/i*100,(this.__downloaded===i||n>1e3)&&(this.__statsEstimate.time=t,this.__statsEstimate.bytes=this.__downloaded-this.__statsEstimate.prevBytes,this.__statsEstimate.prevBytes=this.__downloaded),(this.__downloaded===i||r>this.__opts.progressThrottle)&&(this.__statsEstimate.throttleTime=t,this.emit("progress.throttled",this.getStats())),this.emit("progress",this.getStats()))}},{key:"__setState",value:function(e){this.state=e,this.emit("stateChanged",this.state)}},{key:"__getReqOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new s.URL(t),i={protocol:r.protocol,host:r.hostname,port:r.port,path:r.pathname+r.search,method:e};return n&&(i.headers=n),i}},{key:"__getFilesizeInBytes",value:function(e){try{return o.statSync(e,{throwIfNoEntry:!1}).size||0}catch(t){this.emit("warning",t)}return 0}},{key:"__validate",value:function(e,t){if("string"!=typeof e)throw Error("URL should be an string");if(""===e.trim())throw Error("URL couldn't be empty");if("string"!=typeof t)throw Error("Destination Folder should be an string");if(""===t.trim())throw Error("Destination Folder couldn't be empty");if(!o.existsSync(t))throw Error("Destination Folder must exist");if(!o.statSync(t).isDirectory())throw Error("Destination Folder must be a directory");try{o.accessSync(t,o.constants.W_OK)}catch(n){throw Error("Destination Folder must be writable")}return!0}},{key:"__initProtocol",value:function(e){var t=this.__getReqOptions(this.__opts.method,e,this.__headers);this.requestURL=e,e.indexOf("https://")>-1?(this.__protocol=u,t.agent=new u.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpsRequestOptions)):(this.__protocol=c,t.agent=new c.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpRequestOptions))}},{key:"__uniqFileNameSync",value:function(e){if("string"!=typeof e||""===e)return e;try{o.accessSync(e,o.F_OK);var t=e.match(/(.*)(\([0-9]+\))(\..*)$/),n=t?t[1].trim():e,r=t?parseInt(t[2].replace(/\(|\)/,"")):0,i=e.split(".").pop();return i!==e&&i.length>0?n=n.replace(i="."+i,""):i="",this.__uniqFileNameSync(n+" ("+ ++r+")"+i)}catch(s){return e}}},{key:"__removeFile",value:function(){var e=this;return new Promise((function(t){return e.__fileStream?void e.__fileStream.close((function(n){return n&&e.emit("warning",n),e.__opts.removeOnFail?o.access(e.__filePath,(function(r){return r?t():void o.unlink(e.__filePath,(function(r){r&&e.emit("warning",n),t()}))})):void t()})):t()}))}},{key:"__requestAbort",value:function(){this.__isAborted=!0,this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__response&&this.__response.destroy(),this.__request&&(this.__request.destroy?this.__request.destroy():this.__request.abort())}},{key:"__emitStop",value:function(){this.__resolvePending(),this.__setState(this.__states.STOPPED),this.emit("stop")}}]),t}(l.EventEmitter)}(bd)),bd);const{GITHUB_ACTIONS:Od}=Yi,{appendFile:Rd}=Ir.promises,Id="Dpkg::Lock::Timeout=300";let Td=!1;const Pd=Ol((function(e=et()){N(e,"nala"!==e?["update","-y","-o",Id]:["update","-o",Id],{...ma,env:Qe(e)}),Td=!0}));var Cd,xd;(xd=Cd||(Cd={}))[xd.NameDashVersion=0]="NameDashVersion",xd[xd.NameEqualsVersion=1]="NameEqualsVersion",xd[xd.Name=2]="Name",xd[xd.None=3]="None";const Nd=Ol((async function(e){Pd(e);const t=await rt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&N(e,["install","-y","--fix-broken","-o",Id,...t],{...ma,env:Qe(e)})}),{promise:!0}),Ld=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"],Ad="/etc/apt/trusted.gpg.d",$d="keyserver.ubuntu.com";let Dd,kd,Ud,jd,Fd,Md=!1,Bd=!1,Gd=!1,Vd=!1;const Hd=/Version\s*:\s*(.*)/g;let qd=!1;var zd,Wd;const Xd=t(function(){if(Wd)return zd;Wd=1;var e=Pr;return zd=function(t,n){if("string"!=typeof t)return t;if(0===t.length)return t;var r,i=e.basename(t,e.extname(t))+n,o=e.join(e.dirname(t),i);return(r=t.slice(0,2))==="."+e.sep||"./"===r?"."+e.sep+o:o}}());var Kd={},Yd={};bt(Yd,"name",(()=>St));var Jd={};bt(Jd,"normalizeTrim",(()=>Ot));var Qd={};bt(Qd,"addExeExt",(()=>Rt));var Zd={};bt(Zd,"addNamePrefix",(()=>It));var eh={};bt(eh,"addNameSuffix",(()=>Tt));var th={};bt(th,"addShExt",(()=>Pt));var nh={};bt(nh,"addShRelativePrefix",(()=>Ct));var rh={};bt(rh,"removeExt",(()=>xt));var ih={};bt(ih,"replaceExt",(()=>Nt));var oh={};bt(oh,"isPathInside",(()=>Lt)),_t(Kd,Yd),_t(Kd,Jd),_t(Kd,Qd),_t(Kd,Zd),_t(Kd,eh),_t(Kd,th),_t(Kd,nh),_t(Kd,rh),_t(Kd,ih),_t(Kd,oh);const sh=t(Ue()),ah=t(De()),ch=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],uh=["x86","i386","ia32","win32","32","x32"],lh=["aarch64","arm64","woa64","arm"],fh=["armv7","armv7a"],ph=["powerpc64le","ppc64le"],dh=["sparc64"],hh=["sparcv9"];var mh,yh,vh,wh,Eh,gh,_h,bh,Sh,Oh,Rh,Ih={},Th={exports:{}},Ph={exports:{}},Ch=Th.exports,xh={},Nh=function(){function e(e,t){const n=[];t=t||w.arch();const r=E.join(s(),e);if(y.existsSync(r)){const e=y.readdirSync(r);for(const o of e)if(i(o)){const e=E.join(r,o,t||"");y.existsSync(e)&&y.existsSync(e+".complete")&&n.push(o)}}return n}function t(e){return p(this,void 0,void 0,(function*(){return e||(e=E.join(a(),R.default())),yield m.mkdirP(e),e}))}function n(e,t,n){return p(this,void 0,void 0,(function*(){const r=E.join(s(),e,_.clean(t)||t,n||"");h.debug("destination "+r);const i=r+".complete";return yield m.rmRF(r),yield m.rmRF(i),yield m.mkdirP(r),r}))}function r(e,t,n){const r=E.join(s(),e,_.clean(t)||t,n||"");y.writeFileSync(r+".complete",""),h.debug("finished caching tool")}function i(e){const t=_.clean(e)||"";h.debug("isExplicit: "+t);const n=null!=_.valid(t);return h.debug("explicit? "+n),n}function o(e,t){let n="";h.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort(((e,t)=>_.gt(e,t)?1:-1))).length-1;r>=0;r--){const i=e[r];if(_.satisfies(i,t)){n=i;break}}return h.debug(n?"matched: "+n:"match not found"),n}function s(){const e=process.env.RUNNER_TOOL_CACHE||"";return O.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return O.ok(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=Xr[e];return void 0!==n?n:t}if(Oh)return Ih;Oh=1;var u=Ih.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=Ih.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=Ih.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&u(t,e,n);return l(t,e),t},p=Ih.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},d=Ih.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.evaluateVersions=Ih.isExplicitVersion=Ih.findFromManifest=Ih.getManifestFromRepo=Ih.findAllVersions=Ih.find=Ih.cacheFile=Ih.cacheDir=Ih.extractZip=Ih.extractXar=Ih.extractTar=Ih.extract7z=Ih.downloadTool=Ih.HTTPError=void 0;const h=f(Xe()),m=f(ze()),y=f(Ir),v=f((yh||(yh=1,function(e,t){var n=Ch&&Ch.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=Ch&&Ch.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Ch&&Ch.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},o=Ch&&Ch.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const s=i(At()),a=Xe(),c=Rr,u=kr,l=Ir;t._findMatch=function(t,n,r,i){return o(this,void 0,void 0,(function*(){const o=c.platform();let u,l,f;for(const c of r){const r=c.version;if(a.debug(`check ${r} satisfies ${t}`),s.satisfies(r,t)&&(!n||c.stable===n)&&(f=c.files.find((t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${o}`);let n=t.arch===i&&t.platform===o;if(n&&t.platform_version){const r=e.exports._getOsVersion();n=r===t.platform_version||s.satisfies(r,t.platform_version)}return n})),f)){a.debug("matched "+c.version),l=c;break}}return l&&f&&(u=Object.assign({},l),u.files=[f]),u}))},t._getOsVersion=function(){const t=c.platform();let n="";if("darwin"===t)n=""+u.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){n=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return n},t._readLinuxVersionFile=function(){const e="/etc/lsb-release",t="/etc/os-release";let n="";return l.existsSync(e)?n=""+l.readFileSync(e):l.existsSync(t)&&(n=""+l.readFileSync(t)),n}}(Th,Th.exports)),Th.exports)),w=f(Rr),E=f(Pr),g=f(Ui),_=f(At()),b=f(jr),S=f(Ar),O=Ur,R=d(function(){if(bh)return _h;bh=1;var e=function(){if(wh)return vh;wh=1;var e=Tr;return vh=function(){return e.randomBytes(16)}}(),t=function(){if(gh)return Eh;gh=1;for(var e=[],t=0;256>t;++t)e[t]=(t+256).toString(16).substr(1);return Eh=function(t,n){var r=n||0;return""+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]}}();return _h=function(n,r,i){var o=r&&i||0;"string"==typeof n&&(r="binary"===n?Array(16):null,n=null);var s=(n=n||{}).random||(n.rng||e)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,r)for(var a=0;16>a;++a)r[o+a]=s[a];return r||t(s)}}()),I=We(),T=function(){if(Sh)return xh;Sh=1;var e=xh.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=xh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=xh.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=xh.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(xh,"__esModule",{value:!0}),xh.RetryHelper=void 0;const i=n(Xe());return xh.RetryHelper=class{constructor(e,t,n){if(1>e)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(e,t){return r(this,void 0,void 0,(function*(){let n=1;for(;this.maxAttempts>n;){try{return yield e()}catch(r){if(t&&!t(r))throw r;i.info(r.message)}const o=this.getSleepAmount();i.info(`Waiting ${o} seconds before trying again`),yield this.sleep(o),n++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return r(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}},xh}();class P extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}Ih.HTTPError=P;const C="win32"===process.platform,x="darwin"===process.platform;return Ih.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||E.join(a(),R.default()),yield m.mkdirP(E.dirname(t)),h.debug("Downloading "+e),h.debug("Destination "+t);const i=c("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=c("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new T.RetryHelper(3,i,o);return yield s.execute((()=>p(this,void 0,void 0,(function*(){return yield function(e,t,n,r){return p(this,void 0,void 0,(function*(){if(y.existsSync(t))throw Error(`Destination file path ${t} already exists`);const i=new g.HttpClient("actions/tool-cache",[],{allowRetries:!1});n&&(h.debug("set auth"),void 0===r&&(r={}),r.authorization=n);const o=yield i.get(e,r);if(200!==o.message.statusCode){const t=new P(o.message.statusCode);throw h.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}const s=S.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>o.message))();let u=!1;try{return yield s(a,y.createWriteStream(t)),h.debug("download complete"),u=!0,t}finally{if(!u){h.debug("download failed");try{yield m.rmRF(t)}catch(l){h.debug(`Failed to delete '${t}'. ${l.message}`)}}}}))}(e,t||"",n,r)}))),(e=>!(e instanceof P&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},Ih.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){O.ok(C,"extract7z() not supported on current OS"),O.ok(e,'parameter "file" is required'),n=yield t(n);const i=process.cwd();if(process.chdir(n),r)try{const t=["x",h.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield I.exec(`"${r}"`,t,n)}finally{process.chdir(i)}else{const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${E.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],r={silent:!0};try{const e=yield m.which("powershell",!0);yield I.exec(`"${e}"`,t,r)}finally{process.chdir(i)}}return n}))},Ih.extractTar=function(e,n,r="xz"){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");n=yield t(n),h.debug("Checking tar --version");let i="";yield I.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=""+e,stderr:e=>i+=""+e}}),h.debug(i.trim());const o=i.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],h.isDebug()&&!r.includes("v")&&s.push("-v");let a=n,c=e;return C&&o&&(s.push("--force-local"),a=n.replace(/\\/g,"/"),c=e.replace(/\\/g,"/")),o&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",a,"-f",c),yield I.exec("tar",s),n}))},Ih.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let i;O.ok(x,"extractXar() not supported on current OS"),O.ok(e,'parameter "file" is required'),n=yield t(n),i=r instanceof Array?r:[r],i.push("-x","-C",n,"-f",e),h.isDebug()&&i.push("-v");const o=yield m.which("xar",!0);var s;return yield I.exec(`"${o}"`,(s=i,Array.from(new Set(s)))),n}))},Ih.extractZip=function(e,n){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return n=yield t(n),C?yield function(e,t){return p(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield m.which("pwsh",!1);if(i){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(" ")];h.debug("Using pwsh at path: "+i),yield I.exec(`"${i}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`].join(" ")],t=yield m.which("powershell",!0);h.debug("Using powershell at path: "+t),yield I.exec(`"${t}"`,e)}}))}(e,n):yield function(e,t){return p(this,void 0,void 0,(function*(){const n=yield m.which("unzip",!0),r=[e];h.isDebug()||r.unshift("-q"),r.unshift("-o"),yield I.exec(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},Ih.cacheDir=function(e,t,i,o){return p(this,void 0,void 0,(function*(){if(i=_.clean(i)||i,o=o||w.arch(),h.debug(`Caching tool ${t} ${i} ${o}`),h.debug("source dir: "+e),!y.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,i,o);for(const t of y.readdirSync(e)){const n=E.join(e,t);yield m.cp(n,s,{recursive:!0})}return r(t,i,o),s}))},Ih.cacheFile=function(e,t,i,o,s){return p(this,void 0,void 0,(function*(){if(o=_.clean(o)||o,s=s||w.arch(),h.debug(`Caching tool ${i} ${o} ${s}`),h.debug("source file: "+e),!y.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield n(i,o,s),c=E.join(a,t);return h.debug("destination file "+c),yield m.cp(e,c),r(i,o,s),a}))},Ih.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||w.arch(),i(n)||(n=o(e(t,r),n));let a="";if(n){n=_.clean(n)||"";const e=E.join(s(),t,n,r);h.debug("checking cache: "+e),y.existsSync(e)&&y.existsSync(e+".complete")?(h.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):h.debug("not found")}return a},Ih.findAllVersions=e,Ih.getManifestFromRepo=function(e,t,n,r="master"){return p(this,void 0,void 0,(function*(){let i=[];const o=`https://api.github.com/repos/${e}/${t}/git/trees/${r}`,s=new g.HttpClient("tool-cache"),a={};n&&(h.debug("set auth"),a.authorization=n);const c=yield s.getJson(o,a);if(!c.result)return i;let u="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){u=e.url;break}a.accept="application/vnd.github.VERSION.raw";let l=yield(yield s.get(u,a)).readBody();if(l){l=l.replace(/^\uFEFF/,"");try{i=JSON.parse(l)}catch(f){h.debug("Invalid json")}}return i}))},Ih.findFromManifest=function(e,t,n,r=w.arch()){return p(this,void 0,void 0,(function*(){return yield v._findMatch(e,t,n,r)}))},Ih.isExplicitVersion=i,Ih.evaluateVersions=o,Ih}(),Lh={};const Ah=t(function(){function e(n,r){if(!n||!r)throw Error("retry-as-promised must be passed a callback and a options set");const i={$current:"$current"in(r="number"==typeof r?{max:r}:r)?r.$current:1,max:r.max,timeout:r.timeout||void 0,match:r.match?Array.isArray(r.match)?r.match:[r.match]:[],backoffBase:void 0===r.backoffBase?100:r.backoffBase,backoffExponent:r.backoffExponent||1.1,report:r.report,name:r.name||n.name||"unknown"};return i.match&&!Array.isArray(i.match)&&(i.match=[i.match]),i.report&&i.report("Trying "+i.name+" #"+i.$current+" at "+(new Date).toLocaleTimeString(),i),new Promise((function(r,o){let s,a,c;i.timeout&&(s=setTimeout((function(){a&&clearTimeout(a),o(new t(i.name+" timed out",c))}),i.timeout)),Promise.resolve(n({current:i.$current})).then(r).then((function(){s&&clearTimeout(s),a&&clearTimeout(a)})).catch((function(t){s&&clearTimeout(s),a&&clearTimeout(a),c=t,i.report&&i.report(t&&""+t||t,i,t);var u=i.max>i.$current;if(!u)return o(t);if(u=0===i.match.length||i.match.some((function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0}catch(n){return!!e(t)}return e===""+t||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(""+t))}(e,t)})),!u)return o(t);var l=i.backoffBase*Math.pow(i.backoffExponent,i.$current-1);i.$current++,i.report&&i.report(`Retrying ${i.name} (${i.$current})`,i),l?(i.report&&i.report(`Delaying retry of ${i.name} by ${l}`,i),a=setTimeout((function(){e(n,i).then(r).catch(o)}),l)):e(n,i).then(r).catch(o)}))}))}if(Rh)return Lh;Rh=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.retryAsPromised=Lh.TimeoutError=void 0;class t extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return Lh.TimeoutError=t,Lh.retryAsPromised=e,Lh.default=e,Lh}());var $h,Dh,kh,Uh,jh,Fh,Mh,Bh,Gh,Vh,Hh,qh,zh,Wh,Xh,Kh,Yh,Jh,Qh,Zh,em,tm,nm,rm,im,om,sm,am,cm,um,lm,fm,pm,dm,hm,mm,ym,vm,wm,Em,gm,_m,bm,Sm,Om,Rm,Im,Tm,Pm,Cm,xm,Nm,Lm,Am,$m,Dm,km,Um,jm,Fm,Mm,Bm,Gm,Vm,Hm={},qm={},zm={},Wm={},Xm=ln();let Km;const{GITHUB_ACTIONS:Ym}=Zr,Jm=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||Ir.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise(((r,i)=>t.mkdir(e,n,((e,t)=>e?i(e):r(t))))),e.stat=e.stat||n.stat||Ir.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise(((n,r)=>t.stat(e,((e,t)=>e?r(e):n(t))))),e.statSync=e.statSync||n.statSync||Ir.statSync,e.mkdirSync=e.mkdirSync||n.mkdirSync||Ir.mkdirSync,t},Qm=(e,t,n)=>{const r=Pr.dirname(e),i={...Jm(t),recursive:!1};if(r===e)try{return i.mkdirSync(e,i)}catch(o){if(o&&"EISDIR"!==o.code)throw o;return}try{return i.mkdirSync(e,i),n||e}catch(o){const t=o;if(t&&"ENOENT"===t.code)return Qm(e,i,Qm(r,i,n));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw o;try{if(!i.statSync(e).isDirectory())throw o}catch(s){throw o}}},Zm=Object.assign((async(e,t,n)=>{const r=Jm(t);r.recursive=!1;const i=Pr.dirname(e);return i===e?r.mkdirAsync(e,r).catch((e=>{if(e&&"EISDIR"!==e.code)throw e})):r.mkdirAsync(e,r).then((()=>n||e),(async t=>{const o=t;if(o&&"ENOENT"===o.code)return Zm(i,r).then((t=>Zm(e,r,t)));if(o&&"EEXIST"!==o.code&&"EROFS"!==o.code)throw t;return r.statAsync(e).then((e=>{if(e.isDirectory())return n;throw t}),(()=>{throw t}))}))}),{sync:Qm}),ey=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?ey(e,Pr.dirname(t),t):void 0))},ty=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?ty(e,Pr.dirname(t),t):void 0}},ny=(e,t)=>{const n=Jm(t);if(n.recursive=!0,Pr.dirname(e)===e)return n.mkdirSync(e,n);const r=ty(n,e);try{return n.mkdirSync(e,n),r}catch(i){if(i&&"ENOENT"===i.code)return Qm(e,n);throw i}},ry=Object.assign((async(e,t)=>{const n={...Jm(t),recursive:!0};return Pr.dirname(e)===e?await n.mkdirAsync(e,n):ey(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return Zm(e,n);throw t}))))}),{sync:ny}),iy=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,oy=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=Pr.resolve(e),"win32"===iy){const t=/[*|"<>?:]/,{root:n}=Pr.parse(e);if(t.test(e.substring(n.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("."),ay=+sy[0]>10||10==+sy[0]&&+sy[1]>=12,cy=ay?e=>Jm(e).mkdirSync===Ir.mkdirSync:()=>!1,uy=Object.assign(ay?e=>Jm(e).mkdir===Ir.mkdir:()=>!1,{sync:cy}),ly=(e,t)=>{e=oy(e);const n=Jm(t);return cy(n)?ny(e,n):Qm(e,n)},fy=Object.assign((async(e,t)=>{e=oy(e);const n=Jm(t);return uy(n)?ry(e,n):Zm(e,n)}),{mkdirpSync:ly,mkdirpNative:ry,mkdirpNativeSync:ny,mkdirpManual:Zm,mkdirpManualSync:Qm,sync:ly,native:ry,nativeSync:ny,manual:Zm,manualSync:Qm,useNative:uy,useNativeSync:cy});var py=We();const dy=t(Pe()),hy=t(Me()),my=t(Ie()),yy=/v?(\d\S*)/,vy=Ol((function(){const e="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),t=Pr.join(e,"versions.json");return JSON.parse(Ir.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:wy}=Zr,Ey=Ol((async function(e){const t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");const n=(await py.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push(Pr.join(n,"Scripts"),Pr.join(n,"Scripts","bin"),Pr.join(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0});var gy,_y={},by=function(){if(gy)return _y;gy=1,Object.defineProperty(_y,"__esModule",{value:!0}),_y.getUbuntuVersion=void 0;const e=kr;return _y.getUbuntuVersion=async function(){if("linux"!==process.platform)return[];const t=await(n="lsb_release",r=["-a"],new Promise(((t,i)=>{e.execFile(n,r,{encoding:"utf8",shell:!1},((e,o,s)=>{if(e)return"errno"in e&&"ENOENT"===e.code?void t(null):void i(Error(`Could not execute \`${n} ${r.join(" ")}\`: ${e} (stderr=${s})`));t(o)}))})));var n,r;if(null===t)return[];const i=/^Distributor ID:\s*(.+)$/,o=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,s=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let a=null,c=null,u=!1;for(const e of t.split("\n")){const t=e.match(i);if(null!==t){if("Ubuntu"!==t[1])return[];u=!0}const n=e.match(o);n&&(a=n);const r=e.match(s);if(r&&(c=r),u&&a&&c)break}if(!u)return[];for(const e of[a,c])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},_y}();const Sy=Ol((async function(){try{if(yt()){try{null===fa.sync("lsb_release",{nothrow:!0})&&await st([{name:"lsb-release"}])}catch{return Ln()}const e=await by.getUbuntuVersion();return 0===e.length?Ln():e}return null}catch(e){return h(""+e),null}}),{promise:!0}),Oy=Ol((async function(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;const t=ue("~/.local/pipx");if(await ce(t))return t;switch(process.platform){case"win32":e=ue("~/AppData/Local/pipx");break;case"darwin":e=ue("~/Library/Application Support/pipx");break;default:e=ue("~/.local/share/pipx")}return await fy(e),await fy(Pr.join(e,"trash")),await fy(Pr.join(e,"shared")),await fy(Pr.join(e,"venv")),e}),{promise:!0}),Ry=Ol((async function(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;const e=ue("~/.local/bin");return await he(e,lv),await fy(e),e}),{promise:!0});let Iy;const Ty=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"]]]),Py=Ol((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||Rr.release()).split(".")[0]);const[t,n]=Ty.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),Cy=t(Te()),{GITHUB_ACTIONS:xy}=Zr,Ny="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:Ly}=Zr,Ay="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),$y="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),Dy="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href));class ky extends Error{constructor(e){super(e),this.name="TimeoutError"}}class Uy extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const jy=e=>void 0===globalThis.DOMException?new Uy(e):new DOMException(e),Fy=e=>{const t=void 0===e.reason?jy("This operation was aborted."):e.reason;return t instanceof Error?t:jy(t)};var My,By={},Gy=function(){function e(e){return Object.values(h).includes(e)?e:e in h?h[e]:e}function t(e){if(Object.keys(h).includes(e))return e;for(const[t,n]of Object.entries(h))if(n===e)return t;return e}function n(e,t){try{return(""+s.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\"+e}catch(n){o.warning("vswhere failed: "+n)}return null}function r(r){const i=e(r);let s;if(i){const e=i.split(".")[0]+".9";s=`-version "${i},${e}"`}else s="-latest";let c=n("VC\\Auxiliary\\Build\\vcvarsall.bat",s);if(c&&a.existsSync(c))return o.info("Found with vswhere: "+c),c;o.info("Not found with vswhere");const u=r?[t(r)]:d;for(const e of f)for(const t of u)for(const n of p)if(c=`${e}\\Microsoft Visual Studio\\${t}\\${n}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,o.info("Trying standard location: "+c),a.existsSync(c))return o.info("Found standard location: "+c),c;if(o.info("Not found in standard locations"),c=l+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",a.existsSync(c))return o.info("Found VS 2015: "+c),c;throw o.info("Not found in VS 2015 location: "+c),Error("Microsoft Visual Studio not found")}function i(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}if(My)return By;My=1;const o=Xe(),s=kr,a=Ir,c=Pr,u=Dr,l=u.env["ProgramFiles(x86)"],f=[u.env["ProgramFiles(x86)"],u.env.ProgramFiles],p=["Enterprise","Professional","Community","BuildTools"],d=["2022","2019","2017"],h={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};By.vsversion_to_versionnumber=e,By.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return By.findWithVswhere=n,By.findVcvarsall=r,By.setupMSVCDevCmd=function(e,t,n,a,l,f){if("win32"!=u.platform)return void o.info("This is not a Windows virtual environment, bye!");u.env.PATH+=c.delimiter+m;let p={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in p&&(e=p[e.toLowerCase()]);var d=[e];a&&!0===JSON.parse(a)&&d.push("uwp"),t&&d.push(t),n&&d.push("-vcvars_ver="+n),l&&!0===JSON.parse(l)&&d.push("-vcvars_spectre_libs=spectre");const h=`"${r(f)}" ${d.join(" ")}`;o.debug("vcvars command-line: "+h);const y=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),v=y[0].split("\r\n"),w=y[1].split("\r\n"),E=y[2].split("\r\n"),g=w.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(g.length>0)throw Error("invalid parameters\r\n"+g.join("\r\n"));let _={};for(let r of v){const[e,t]=r.split("=");_[e]=t}o.startGroup("Environment variables");for(let r of E){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==_[e]&&(o.info("Setting "+e),i(e)&&(t=t.split(";").filter((function(e,t,n){return n.indexOf(e)===t})).join(";")),o.exportVariable(e,t))}o.endGroup(),o.info("Configured Developer Command Prompt")},By}(),Vy=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(Vy||{});const Hy="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:qy}=Zr,zy="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href)),Wy=Ol((async function(e,t,n){const[r,i]=await Promise.all([hr(e,t,n),yr()]);return await Ky(n),r}),{promise:!0}),Xy=Ol((async function(e){if(yt())for(const r of["libtinfo5","libtinfo6"])try{await st([{name:r}])}catch(t){try{if("libtinfo5"===r){y(`Failed to install ${r}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${ch.includes(process.arch)?"amd64":lh.includes(process.arch)?"arm64":process.arch}.deb`,t="http://launchpadlibrarian.net/666971015/"+e,n=new Sd.DownloaderHelper(t,Rr.tmpdir(),{fileName:e});n.on("error",(async e=>{y(`Failed to download ${t}: ${e}`),await n.stop()})),await n.start(),N("dpkg",["-i",Pr.join(Rr.tmpdir(),e)])}}catch(n){y(`Failed to install ${r}. Ignoring`)}}else mt()?await gt("ncurses5-compat-libs",void 0,"yay"):ht()&&await Et([{name:"ncurses-compat-libs"}])}),{promise:!0}),Ky=Ol((async function(e){"linux"===process.platform&&await Zn(Sn("gcc",void 0,await Sy()),"",e,40)}),{promise:!0}),{GITHUB_ACTIONS:Yy}=Zr,Jy="string"==typeof __dirname?__dirname:Pr.dirname(Fr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:Hr&&"SCRIPT"===Hr.tagName.toUpperCase()&&Hr.src||new URL("setup-cpp.js",document.baseURI).href));let Qy,Zy=!1;const ev={llvm:fr,clang:fr,"clang++":fr},tv={gcc:Zn,"g++":Zn},nv={mingw:Xn},rv={msvc:vr,cl:vr,msbuild:vr,visualstudio:vr},iv={appleclang:ar,applellvm:ar,"apple-clang":ar,"apple-llvm":ar},ov={cmakelang:Fn,"cmake-lint":Fn,"cmake-format":Fn,cmakelint:Fn,cmakeformat:Fn},sv=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],av={nala:async function(e,t,n){if(!yt())return;if("string"==typeof Qy)return{binDir:Qy};const r=fa.sync("nala",{nothrow:!0});if(null!==r)return Qy=Pr.dirname(r),{binDir:Qy};await st([{name:"python3-apt"}]),Qy="/usr/bin";try{const t=await it({name:"nala",version:e});if(void 0!==t)return await st([{name:t}]),{binDir:Qy}}catch(i){y("Failed to install nala: "+i)}try{const e=await it({name:"nala-legacy"});if(void 0!==e)return await st([{name:e}],!0),{binDir:Qy}}catch(i){y("Failed to install nala-legacy: "+i)}return await async function(){const e=new Sd.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh",Rr.tmpdir(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=Pr.join(Rr.tmpdir(),"install-nala.sh"),n=await Hs(t,"utf8");await ea(t,n.replace(/sudo/g,"")),await st([{name:"wget"}]);try{N("bash",[t])}catch(i){d("Failed to install nala via installer: "+i),N("apt",["install","-y","-t","nala","nala"])}}(),{binDir:Qy}},brew:lt,choco:vt,python:In,powershell:_r,pwsh:_r,...ev,...tv,...nv,...rv,...iv,...ov,cmake:gn,ninja:rr,vcpkg:async function(e,t,n){return Zy&&null!==fa.sync("vcpkg",{nothrow:!0})?{binDir:Pr.dirname(fa.sync("vcpkg"))}:("linux"===process.platform&&(mt()?await Promise.all([gt("curl"),gt("zip"),gt("unzip"),gt("tar"),gt("git"),gt("pkg-config")]):ht()?await Et([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):yt()&&await st([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}])),await ce(Pr.join(t,Pt("bootstrap-vcpkg",".bat")))?m(`Vcpkg folder already exists at ${t}. Skipping the clone`):S("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Pr.dirname(t),stdio:"inherit"}),""!==e&&"true"!==e&&(y("Checking out vcpkg version "+e),S("git",["checkout",e],{cwd:t,stdio:"inherit"})),S(Pt(Ct("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await k(t),await he(t,lv),Zy=!0,{binDir:t})},bazel:async function(e,t,n){switch(process.platform){case"win32":return wt("bazelisk",e);case"darwin":return dt("bazelisk",e);case"linux":if(mt())throw Error("installing bazel on Arch linux is not supported yet");if(ht())return await Et([{name:"dnf-plugins-core"}]),N("dnf",["copr","enable","vbatts/bazel"]),Et([{name:"bazel4"}]);if(yt())return N("bash",["-c",`echo "deb [arch=amd64 signed-by=${await at({fileName:"bazel-archive-keyring.gpg",keyUrl:"https://bazel.build/bazel-release.pub.gpg"})}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),st([{name:"bazel",version:e}],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},conan:function(e,t,n){return An("conan",e)},meson:function(e,t,n){return An("meson",e)},gcovr:function(e,t,n){return An("gcovr",e)},opencppcoverage:wr,OpenCppCoverage:wr,ccache:function(e,t,n){switch(process.platform){case"win32":return wt("ccache",e);case"darwin":return dt("ccache",e);case"linux":if(mt())return gt("ccache",e);if(ht())return Et([{name:"ccache",version:e}]);if(yt())return st([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},sccache:function(e,t,n){switch(process.platform){case"win32":return wt("sccache",e);case"linux":case"darwin":return dt("sccache",e);default:throw Error("Unsupported platform")}},doxygen:async function(e,t,n){switch(process.platform){case"win32":{await Ah((()=>wt("doxygen.install",e)),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>y(e)});const t={binDir:await async function(){if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await ce(Pr.join(e,"doxygen.exe")))return await he(e,lv),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await Mn(Sn("graphviz",void 0)),t}case"darwin":{const e=await dt("doxygen",void 0,{formula:!0});return Py()[0]>11&&await Mn(Sn("graphviz",void 0)),e}case"linux":{let i;if(""===e||mt()||ht())if(mt())i=await gt("doxygen",e);else{if(ht())return Et([{name:"doxygen",version:e}]);if(!yt())throw Error("Unsupported linux distributions");i=await st([{name:"doxygen",version:e}])}else{if(!yt())throw Error("Unsupported linux distributions");try{i=await wn("doxygen",e,Gn,t,n);try{await st([{name:"libclang-cpp9"}])}catch(r){y("Failed to download libclang-cpp9 that might be needed for running doxygen. "+r)}}catch(r){m(`Failed to download doxygen binary. ${r}. Falling back to apt-get.`),i=await st([{name:"doxygen"}])}}return await Mn(Sn("graphviz",void 0,await Sy())),i}default:throw Error("Unsupported platform")}},graphviz:Mn,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await wt("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await he(e,lv),e}()};case"darwin":return dt("cppcheck",e);case"linux":if(mt())return gt("cppcheck",e);if(ht())return Et([{name:"ccache",version:e}]);if(yt())return st([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},cpplint:function(e,t,n){return An("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return An("flawfinder",e)},lizard:function(e,t,n){return An("lizard",e)},infer:function(e,t,n){return wn("infer",e,tr,t,n)},"clang-tidy":dr,clangtidy:dr,"clang-format":pr,clangformat:pr,vcvarsall:cr,kcov:async function(e,t,n){if("linux"!==process.platform)return void y("Kcov is not supported on non-linux");const r=e.split("-");let i=function(e){return e.match(/^v/)?e:"v"+e}(r[0]);const o=r[1],s=function(e){return Number.parseInt(e.replace(/^v/,""),10)}(i);let a;return 38===s&&(i="v38"),"binary"!==o||39>s?(a=await wn("kcov",i,or,t,n),a):(a=await wn("kcov",i,ir,t,n),mt()?await gt("binutils"):ht()?await Et([{name:"binutils"}]):yt()&&await st([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return wt("make",e);case"darwin":{await dt("make",e);const t=Pr.join(pt(),"opt/make/libexec/gnubin");return await he(t,lv),{binDir:t}}case"linux":if(mt())return gt("make",e);if(ht())return Et([{name:"make",version:e}]);if(yt())return st([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task:function(e,t,n){return wn("task",e,br,t,n)},sevenzip:fn,"7zip":fn,"7z":fn},cv=Object.keys(av),uv=["compiler","architecture","timeout",...cv],lv={rcPath:ue("~/.cpprc"),guard:"cpp"};(async function(e){var t,n,r;let i=Promise.resolve();Qr.GITHUB_ACTIONS||(i=async function(){try{await Xp({pkg:Kp})}catch(e){h("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const o=function(e){return function(e,t){var n,r,i,o,s,a={_:[]},c=0,u=0,l=0,f=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,d=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=Ke(t.string),t.boolean=Ke(t.boolean),p)for(n in t.alias)for(r=t.alias[n]=Ke(t.alias[n]),c=0;r.length>c;c++)(t.alias[r[c]]=r.concat(n)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(u=(r=t.alias[t.boolean[c]]||[]).length;u-- >0;)t.boolean.push(r[u]);for(c=t.string.length;c-- >0;)for(u=(r=t.alias[t.string[c]]||[]).length;u-- >0;)t.string.push(r[u]);if(h)for(n in t.default)if(o=typeof t.default[n],r=t.alias[n]=t.alias[n]||[],void 0!==t[o])for(t[o].push(n),c=0;r.length>c;c++)t[o].push(r[c]);const m=d?Object.keys(t.alias):[];for(c=0;f>c;c++){if("--"===(i=e[c])){a._=a._.concat(e.slice(++c));break}for(u=0;i.length>u&&45===i.charCodeAt(u);u++);if(0===u)a._.push(i);else if("no-"===i.substring(u,u+3)){if(o=i.substring(u+3),d&&!~m.indexOf(o))return t.unknown(i);a[o]=!1}else{for(l=u+1;i.length>l&&61!==i.charCodeAt(l);l++);for(o=i.substring(u,l),s=i.substring(++l)||c+1===f||45===(""+e[c+1]).charCodeAt(0)||e[++c],r=2===u?[o]:o,l=0;r.length>l;l++){if(o=r[l],d&&!~m.indexOf(o))return t.unknown("-".repeat(u)+o);Ye(a,o,r.length>l+1||s,t)}}}if(h)for(n in t.default)void 0===a[n]&&(a[n]=t.default[n]);if(p)for(n in a)for(r=t.alias[n]||[];r.length>0;)a[r.shift()]=a[n];return a}(e,{string:[...uv,"timeout"],default:Object.fromEntries(uv.map((e=>[e,Sr(e)]))),alias:{h:"help"},boolean:"help"})}(e);o.help&&(y('\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\t the to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n--$tool_name\t pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n'),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --apple-clang, --vcvarsall"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},"analyzer/linter":{tools:"--clang-tidy, --clang-format, --cppcheck, --cpplint, --flawfinder, --lizard, --infer, , --cmakelang, --cmake-lint, --cmake-format"},cache:{tools:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));const s=null!=(t=o.architecture)?t:process.arch,a=null!=(n=process.env.SETUP_CPP_DIR)?n:ue("~"),c=[],u=[],l=sf.create({autoloadLocales:!0});let f,p;sf.addLocale(uf),Yl.addLocale(Ql);const m=await Sy(),v=void 0!==o.compiler?function(e){try{const t=e.split("-"),n=t[0];if(1 in t){const e=t[1];return null===my(e)&&y(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}catch(t){return d(`Failed to parse the compiler info ${e}: ${t}`),{compiler:e,version:void 0}}}(o.compiler):void 0;if(!function(e,t,n){var r,i;const o=void 0!==n&&t.includes(n.compiler),s=(o?t:t.filter((e=>"compiler"!==e))).filter((t=>void 0!==e[t])),a=s.filter((t=>!Rn(o&&"compiler"===t&&void 0!==n?n.version:e[t]))),c=0!==a.length?o&&"compiler"===a[0]&&void 0!==n?null!=(r=n.version)?r:"true":null!=(i=e[a[0]])?i:"true":"true";if(a.some((t=>o&&"compiler"===t&&void 0!==n?e.compiler!==`${n.compiler}-${c}`:e[t]!==c)))return!1;for(const u of s)e[u]=o&&"compiler"===u&&void 0!==n?`${n.compiler}-${c}`:c;return!0}(o,[...sv,"compiler"],v))return d("The same version must be used for llvm, clang-format and clang-tidy"),1;mt()&&"string"==typeof o.cppcheck&&"string"==typeof o.gcovr&&(y("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await gt("python-pygments"));let w=!1;for(const d of cv){if(Qr.isCI&&0!==u.length){w=!0;break}const e=o[d];void 0!==e&&(f=Date.now(),await ur(d,e,m,s,a,c,u,60*Number.parseFloat(null!=(r=o.timeout)?r:"20")*1e3),p=Date.now(),y("took "+(l.format(f,p)||"0 seconds")))}if(!w&&void 0!==v){const e=Date.now();await async function(e,t,n,r,i,o,s){let a;try{if(_d.startGroup(`Installing ${e} ${null!=t?t:""}`),e in ev)a=await fr(Sn("llvm",t,n),Pr.join(r,"llvm"),i),await pe("GCOV","llvm-cov gcov",lv);else if(e in tv){const e=Sn("gcc",t,n);a=await Zn(e,Pr.join(r,"gcc"),i),await er(e)}else if(e in nv){const e=Sn("mingw",t,n);a=await Xn(e,Pr.join(r,"gcc"),i),await er(e)}else e in rv?a=await vr(Sn("msvc",t,n),Pr.join(r,"msvc"),i):e in iv?await ar():(a=null,s.push("Unsupported compiler "+e))}catch(c){d(c),s.push(`Failed to install the ${e} ${t}`)}null!==a&&o.push(Or(e,a)),_d.endGroup()}(v.compiler,v.version,m,a,s,c,u);const t=Date.now();y("took "+(l.format(e,t)||"0 seconds"))}if(await async function(e){if(await ce(e.rcPath)){const t=(await Tl(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await Pl(e.rcPath,n.join("\n")),await k(e.rcPath)}}(lv),0===c.length&&0===u.length)return h("setup-cpp was called without any arguments. Nothing to do."),0;for(const d of c)console.log(`${d}`);for(const h of u)d(h);if(y("setup-cpp finished"),!Qr.GITHUB_ACTIONS)switch(process.platform){case"win32":h("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":h("Run `source ~/.cpprc` or restart your shell to update the environment.")}return await i,0===u.length?0:1})(process.argv).then((e=>{process.exitCode=e})).catch((e=>{d("main() panicked!"),d(e),process.exitCode=1})),exports.HttpClient=Di,exports.ciInfo=Zr,exports.commonjsGlobal=Xr,exports.coreExports=_d,exports.execExports=py,exports.getAugmentedNamespace=n,exports.getDefaultExportFromCjs=t,exports.info=y,exports.pathExists=ce,exports.requireSemver=Ge,exports.toolCacheExports=Nh,exports.warning=h; //# sourceMappingURL=setup-cpp.js.map diff --git a/dist/modern/setup-cpp.mjs b/dist/modern/setup-cpp.mjs index 9ad01b72..5efe4ae7 100644 --- a/dist/modern/setup-cpp.mjs +++ b/dist/modern/setup-cpp.mjs @@ -1,3 +1,3 @@ #!/usr/bin/env node -function e(e){return e&&e.__esModule&&{}.hasOwnProperty.call(e,"default")?e.default:e}function t(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function n(){return ko||(ko=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.toCommandProperties=Mo.toCommandValue=void 0,Mo.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Mo.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}:{}}),Mo}function r(){return Vo>Go.length-16&&(Lr.randomFillSync(Go),Vo=0),Go.slice(Vo,Vo+=16)}function o(e){return"string"==typeof e&&Ho.test(e)}function i(e,t=0){const n=(qo[e[t+0]]+qo[e[t+1]]+qo[e[t+2]]+qo[e[t+3]]+"-"+qo[e[t+4]]+qo[e[t+5]]+"-"+qo[e[t+6]]+qo[e[t+7]]+"-"+qo[e[t+8]]+qo[e[t+9]]+"-"+qo[e[t+10]]+qo[e[t+11]]+qo[e[t+12]]+qo[e[t+13]]+qo[e[t+14]]+qo[e[t+15]]).toLowerCase();if(!o(n))throw TypeError("Stringified UUID is invalid");return n}function s(e){if(!o(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function a(e,t,n){function r(e,r,o,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;e.length>n;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=s(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){a=a||0;for(let e=0;16>e;++e)o[a+e]=c[e];return o}return i(c)}try{r.name=e}catch(o){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function c(e){const t="https:"===e.protocol;if(function(e){if(!e.hostname)return!1;if(function(e){const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let n;e.port?n=Number(e.port):"http:"===e.protocol?n=80:"https:"===e.protocol&&(n=443);const r=[e.hostname.toUpperCase()];"number"==typeof n&&r.push(`${r[0]}:${n}`);for(const o of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===o||r.some((e=>e===o||e.endsWith("."+o)||o.startsWith(".")&&e.endsWith(""+o))))return!0;return!1}(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new ti(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new ti("http://"+n)}}function u(){if(gi)return Ri;gi=1;var e=Ri.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};return Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.PersonalAccessTokenCredentialHandler=Ri.BearerCredentialHandler=Ri.BasicCredentialHandler=void 0,Ri.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Ri.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Ri.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Ri}function l(){return bi||(bi=1,function(e){var t=Ii.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Or,r=Tr,{access:o,appendFile:i,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield o(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:i;return yield r(n,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,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(n,r);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:o}=e,i=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),o&&{rowspan:o});return this.wrap(i,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:o}=n||{},i=Object.assign(Object.assign({},r&&{width:r}),o&&{height:o}),s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(Ii)),Ii}function f(){return Oi||(Oi=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function r(e,t={}){d.issueCommand("error",m.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){d.issue("group",e)}function i(){d.issue("endgroup")}var s=jo.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=jo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=jo.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&s(t,e,n);return a(t,e),t},p=jo.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const d=function(){function e(e,t,n){const r=new a(e,t,n);process.stdout.write(""+r+i.EOL)}if(Uo)return Fo;Uo=1;var t=Fo.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=Fo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Fo.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.issue=Fo.issueCommand=void 0;const i=o(Or),s=n();Fo.issueCommand=e,Fo.issue=function(t,n=""){e(t,{},n)};class a{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const o=this.properties[r];o&&(n?n=!1:e+=",",e+=`${r}=${t=o,s.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return Fo}(),h=function(){if(Zo)return Bo;Zo=1;var e=Bo.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Bo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Bo.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&Object.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.prepareKeyValueMessage=Bo.issueFileCommand=void 0;const o=r(Tr),i=r(Or),s=Qo,a=n();return Bo.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!o.existsSync(n))throw Error("Missing file at path: "+n);o.appendFileSync(n,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})},Bo.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+s.v4(),r=a.toCommandValue(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(r.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${i.EOL}${r}${i.EOL}${n}`},Bo}(),m=n(),y=c(Or),v=c($r),w=function(){if(_i)return ei;_i=1;var e=ei.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(ei,"__esModule",{value:!0}),ei.OidcClient=void 0;const t=Ei,n=u(),o=f();class i{static createHttpClient(e=!0,r=10){const o={allowRetries:e,maxRetries:r};return new t.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),o.debug("ID token url is "+e);const n=yield i.getCall(e);return o.setSecret(n),n}catch(r){throw Error("Error message: "+r.message)}}))}}return ei.OidcClient=i,ei}();var E,g;(g=E=e.ExitCode||(e.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exportVariable=function(e,t){const n=m.toCommandValue(t);if(process.env[e]=n,process.env.GITHUB_ENV)return h.issueFileCommand("ENV",h.prepareKeyValueMessage(e,t));d.issueCommand("set-env",{name:e},n)},e.setSecret=function(e){d.issueCommand("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?h.issueFileCommand("PATH",e):d.issueCommand("add-path",{},e),process.env.PATH=`${e}${v.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return h.issueFileCommand("OUTPUT",h.prepareKeyValueMessage(e,t));process.stdout.write(y.EOL),d.issueCommand("set-output",{name:e},m.toCommandValue(t))},e.setCommandEcho=function(e){d.issue("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=E.Failure,r(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){d.issueCommand("debug",{},e)},e.error=r,e.warning=function(e,t={}){d.issueCommand("warning",m.toCommandProperties(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){d.issueCommand("notice",m.toCommandProperties(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+y.EOL)},e.startGroup=o,e.endGroup=i,e.group=function(e,t){return p(this,void 0,void 0,(function*(){let n;o(e);try{n=yield t()}finally{i()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return h.issueFileCommand("STATE",h.prepareKeyValueMessage(e,t));d.issueCommand("save-state",{name:e},m.toCommandValue(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return p(this,void 0,void 0,(function*(){return yield w.OidcClient.getIDToken(e)}))};var _=l();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return _.summary}});var b=l();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var S=function(){if(Si)return Ti;Si=1;var e=Ti.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Ti.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Ti.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&Object.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.toPlatformPath=Ti.toWin32Path=Ti.toPosixPath=void 0;const r=n($r);return Ti.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Ti.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Ti.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Ti}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return S.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return S.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return S.toPlatformPath}})}(jo)),jo}function p(e){return Li?Pi.error(e):console.log(`${e}`)}function d(e){return Li?Pi.warning(e):console.log(`${e}`)}function h(e){return Li?Pi.notice(e):console.log(`${e}`)}function m(e){return Li?Pi.info(e):console.log(e)}function y(){if(Bi)return Mi;Bi=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=$r,n=e?";":":",r=function(){function e(n,r,o){if("function"==typeof r&&(o=r,r={}),!o){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(t,o){e(n,r||{},(function(e,n){e?o(e):t(n)}))}))}t(n,r||{},(function(e,t){e&&("EACCES"===e.code||r&&r.ignoreErrors)&&(e=null,t=!1),o(e,t)}))}return Fi||(Fi=1,t="win32"===process.platform||xo.TESTING_WINDOWS?function(){function e(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;n.length>r;r++){var o=n[r].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,n)}function t(t,r,o){n.stat(t,(function(n,i){o(n,!n&&e(i,t,r))}))}if(Di)return $i;Di=1,$i=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Tr;return $i}():function(){function e(e,r,o){n.stat(e,(function(e,n){o(e,!e&&t(n,r))}))}function t(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=a|c;return n&parseInt("001",8)||n&c&&o===s||n&a&&r===i||n&u&&0===i}(e,t)}if(Ui)return ki;Ui=1,ki=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Tr;return ki}(),ji=e,e.sync=function(e,n){try{return t.sync(e,n||{})}catch(r){if(n&&n.ignoreErrors||"EACCES"===r.code)return!1;throw r}}),ji;var t}(),o=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),i=(t,r)=>{const o=r.colon||n,i=t.match(/\//)||e&&t.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(o)],s=e?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=e?s.split(o):[""];return e&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:s}},s=(e,n,s)=>{"function"==typeof n&&(s=n,n={}),n||(n={});const{pathEnv:a,pathExt:c,pathExtExe:u}=i(e,n),l=[],f=r=>new Promise(((i,s)=>{if(r===a.length)return n.all&&l.length?i(l):s(o(e));const c=a[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,f=t.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;i(p(d,r,0))})),p=(e,t,o)=>new Promise(((i,s)=>{if(o===c.length)return i(f(t+1));const a=c[o];r(e+a,{pathExt:u},((r,s)=>{if(!r&&s){if(!n.all)return i(e+a);l.push(e+a)}return i(p(e,t,o+1))}))}));return s?f(0).then((e=>s(null,e)),s):f(0)};return Mi=s,s.sync=(e,n)=>{n=n||{};const{pathEnv:s,pathExt:a,pathExtExe:c}=i(e,n),u=[];for(let o=0;s.length>o;o++){const i=s[o],f=/^".*"$/.test(i)?i.slice(1,-1):i,p=t.join(f,e),d=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;a.length>e;e++){const t=d+a[e];try{if(r.sync(t,{pathExt:c})){if(!n.all)return t;u.push(t)}}catch(l){}}}if(n.all&&u.length)return u;if(n.nothrow)return null;throw o(e)},Mi}function v(){if(Zi)return Qi;Zi=1;const e=$r,t=function(){function e(e,o){const i=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(l){}let u;try{u=n.sync(e.command,{path:i[r({env:i})],pathExt:o?t.delimiter:void 0})}catch(f){}finally{c&&process.chdir(s)}return u&&(u=t.resolve(a?e.options.cwd:"",u)),u}if(Hi)return Vi;Hi=1;const t=$r,n=y(),r=function(){if(Gi)return os.exports;Gi=1;const e=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};return os.exports=e,os.exports.default=e,os.exports}();return Vi=function(t){return e(t)||e(t,!0)}}(),n=function(){if(qi)return is;qi=1;const e=/([()\][%!^"`<>&|;, *?])/g;return is.command=function(t){return t.replace(e,"^$1")},is.argument=function(t,n){return t=(t=`"${t=(t=(t=""+t).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e,"^$1"),n&&(t=t.replace(e,"^$1")),t},is}(),r=function(){if(Ji)return Yi;Ji=1;const e=Tr,t=function(){if(Ki)return Xi;Ki=1;const e=Wi?zi:(Wi=1,zi=/^#!(.*)/);return Xi=(t="")=>{const n=t.match(e);if(!n)return null;const[r,o]=n[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?o:o?`${i} ${o}`:i}}();return Yi=function(n){const r=Buffer.alloc(150);let o;try{o=e.openSync(n,"r"),e.readSync(o,r,0,150,0),e.closeSync(o)}catch(i){}return t(""+r)}}(),o="win32"===process.platform,i=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;return Qi=function(a,c,u){c&&!Array.isArray(c)&&(u=c,c=null);const l={command:a,args:c=c?c.slice(0):[],options:u=Object.assign({},u),file:void 0,original:{command:a,args:c}};return u.shell?l:function(a){if(!o)return a;const c=function(e){e.file=t(e);const n=e.file&&r(e.file);return n?(e.args.unshift(e.file),e.command=n,t(e)):e.file}(a),u=!i.test(c);if(a.options.forceShell||u){const t=s.test(c);a.command=e.normalize(a.command),a.command=n.command(a.command),a.args=a.args.map((e=>n.argument(e,t)));const r=[a.command].concat(a.args).join(" ");a.args=["/d","/s","/c",`"${r}"`],a.command=process.env.comspec||"cmd.exe",a.options.windowsVerbatimArguments=!0}return a}(l)}}function w(e={}){const{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function g(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function _(e,t,n){const r=aa(e,t,n),o=ea(e,t),i=ta(e,t);let s;sa(i,r.options),(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(r.options);try{s=po.spawn(r.file,r.args,r.options)}catch(f){const e=new po.ChildProcess,t=Promise.reject(Ss({error:f,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return Ys(e,t),e}const a=(e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))})))(s),c=((e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let o;const i=new Promise(((r,i)=>{o=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,i)}),t)})),s=r.finally((()=>{clearTimeout(o)}));return Promise.race([i,s])})(s,r.options,a),u=(async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const o=Cs((()=>{e.kill()}));return r.finally((()=>{o()}))})(s,r.options,c);s.kill=xs.bind(null,s.kill.bind(s)),s.cancel=Ds.bind(null,s,{isCanceled:!1});const l=hs((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},c,l,f]=await(async({stdout:t,stderr:n,all:r},{encoding:o,buffer:i,maxBuffer:s},a)=>{const c=Ws(t,{encoding:o,buffer:i,maxBuffer:s}),u=Ws(n,{encoding:o,buffer:i,maxBuffer:s}),l=Ws(r,{encoding:o,buffer:i,maxBuffer:2*s});try{return await Promise.all([a,c,u,l])}catch(e){return Promise.all([{error:e,signal:e.signal,timedOut:e.timedOut},zs(t,c),zs(n,u),zs(r,l)])}})(s,r.options,u),p=ca(r.options,c),d=ca(r.options,l),h=ca(r.options,f);if(e||0!==t||null!==n){const c=Ss({error:e,exitCode:t,signal:n,stdout:p,stderr:d,all:h,command:o,escapedCommand:i,parsed:r,timedOut:a,isCanceled:!!r.options.signal&&r.options.signal.aborted,killed:s.killed});if(!r.options.reject)return c;throw c}return{command:o,escapedCommand:i,exitCode:0,stdout:p,stderr:d,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((e,t)=>{const n=(({input:e,inputFile:t})=>"string"!=typeof t?e:(qs(e),go(t)))(t);void 0!==n&&(E(n)?n.pipe(e.stdin):e.stdin.end(n))})(s,r.options),s.all=((e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=Hs();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=ks.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ks.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ks.bind(void 0,e,"all"))})(s),Ys(s,l),s}function b(e,t,n){const r=aa(e,t,n),o=ea(e,t),i=ta(e,t);sa(i,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(qs(e),Eo(t)))(e);if(E(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(r.options);let a;try{a=po.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Ss({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=ca(r.options,a.stdout,a.error),u=ca(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Ss({stdout:c,stderr:u,error:a.error,signal:a.signal,exitCode:a.status,command:o,escapedCommand:i,parsed:r,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!r.options.reject)return e;throw e}return{command:o,escapedCommand:i,exitCode:0,stdout:c,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function S(){return pa||(pa=1,function(e){var t=ma.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=ma.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ma.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=ma.__exportStar||function(e,n){for(var r in e)"default"===r||{}.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;const i=r(function(){if(ua)return ya;ua=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.sync=ya.isexe=void 0;const e=Tr,t=oo;ya.isexe=async(e,r={})=>{const{ignoreErrors:o=!1}=r;try{return n(await(0,t.stat)(e),r)}catch(i){if(o||"EACCES"===i.code)return!1;throw i}},ya.sync=(t,r={})=>{const{ignoreErrors:o=!1}=r;try{return n((0,e.statSync)(t),r)}catch(i){if(o||"EACCES"===i.code)return!1;throw i}};const n=(e,t)=>e.isFile()&&r(e,t),r=(e,t)=>{const n=t.uid??process.getuid?.(),r=t.groups??process.getgroups?.()??[],o=t.gid??process.getgid?.()??r[0];if(void 0===n||void 0===o)throw Error("cannot get uid or gid");const i=new Set([o,...r]),s=e.mode,a=e.uid,c=e.gid,u=parseInt("100",8),l=parseInt("010",8),f=u|l;return!!(s&parseInt("001",8)||s&l&&i.has(c)||s&u&&a===n||s&f&&0===n)};return ya}());e.posix=i;const s=r(function(){if(la)return va;la=1,Object.defineProperty(va,"__esModule",{value:!0}),va.sync=va.isexe=void 0;const e=Tr,t=oo;va.isexe=async(e,r={})=>{const{ignoreErrors:o=!1}=r;try{return n(await(0,t.stat)(e),e,r)}catch(i){if(o||"EACCES"===i.code)return!1;throw i}},va.sync=(t,r={})=>{const{ignoreErrors:o=!1}=r;try{return n((0,e.statSync)(t),t,r)}catch(i){if(o||"EACCES"===i.code)return!1;throw i}};const n=(e,t,n)=>e.isFile()&&((e,t)=>{const{pathExt:n=process.env.PATHEXT||""}=t,r=n.split(";");if(-1!==r.indexOf(""))return!0;for(let o=0;r.length>o;o++){const t=r[o].toLowerCase(),n=e.substring(e.length-t.length).toLowerCase();if(t&&n===t)return!0}return!1})(t,n);return va}());e.win32=s,o((fa||(fa=1,Object.defineProperty(wa,"__esModule",{value:!0})),wa),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:i;e.isexe=a.isexe,e.sync=a.sync}(ma)),ma}function O(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return _(function(){if(void 0===ga){const e=Ea.sync("pwsh",{nothrow:!0});null!==e&&(ga=e);const t=Ea.sync("powershell",{nothrow:!0});null!==t&&(ga=t)}if(void 0===ga)throw Error("Could not find powershell");return ga}(),[...t,"-c",e],n)}function R(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function I(){return null!==Ea.sync("sudo",{nothrow:!0})}function T(){return 0===process.getuid?.()||!!process.env.CI}function P(){return T()&&I()}function C(e){return P()?"sudo "+e:e}function x(e,t=[],n=Sa){return P()?function(e,t){const[n,...r]=ra(e);return b(n,r,t)}(A(e,t),n):b(e,L(t),n)}function N(e,t=[],n=Sa){return P()?function(e,t){const[n,...r]=ra(e);return _(n,r,t)}(A(e,t),n):_(e,L(t),n)}function A(e,t){return"sudo "+L([e,...t]).join(" ")}function L(e){return e.map((e=>`'${e}'`))}function $(){return"win32"===process.platform?Oa():T()}async function D(e){if(("linux"===process.platform||"darwin"===process.platform)&&P()&&void 0!==process.env.SUDO_USER){let t=Tr.statSync(e).isDirectory();await N("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],Sa)}}function k(){if(Ca)return Pa;Ca=1;var e=(Ta?Ia:(Ta=1,Ia=function(){}))();return Pa=function(t){return t!==e&&null!==t}}function U(){if(Na)return xa;Na=1;var e=k(),t=[].forEach,n=Object.create;return xa=function(r){var o=n(null);return t.call(arguments,(function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),o)})),o},xa}function j(){if(Ba)return Ma;Ba=1;var e=function(){if(Fa)return ja;Fa=1;var e=Ua?ka:(Ua=1,ka=(La?Aa:(La=1,Aa=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:Da?$a:(Da=1,$a=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return ja=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return Ma=function(n){return t(0,e(n))}}function F(){if(Va)return Ga;Va=1;var e=j();return Ga=function(t,n,r){var o;return isNaN(t)?0>(o=n)?1:r&&o?o-1:o:!1!==t&&e(t)}}function M(){return qa?Ha:(qa=1,Ha=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function B(){if(Wa)return za;Wa=1;var e=k();return za=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function G(){return Ja||(Ja=1,Ya=function(){if(Ka)return Xa;Ka=1;var e=M(),t=B(),n=function(){}.bind,r=function(){}.call,o=Object.keys,i={}.propertyIsEnumerable;return Xa=function(s,a){return function(c,u){var l,f=arguments[2],p=arguments[3];return c=Object(t(c)),e(u),l=o(c),p&&l.sort("function"==typeof p?n.call(p,c):void 0),"function"!=typeof s&&(s=l[s]),r.call(s,l,(function(e,t){return i.call(c,e)?r.call(u,f,c[e],e,c,t):a}))}},Xa}()("forEach")),Ya}function V(){return Qa||(Qa=1),gl}function H(){return lc||(lc=1,uc=(ec?Za:(ec=1,Za=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}))()?Object.assign:function(){if(cc)return ac;cc=1;var e=sc?ic:(sc=1,ic=(nc?tc:(nc=1,tc=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(oc)return rc;oc=1;var e=k(),t=Object.keys;return rc=function(n){return t(e(n)?Object(n):n)}}()),t=B(),n=Math.max;return ac=function(r,o){var i,s,a,c=n(arguments.length,2);for(r=Object(t(r)),a=function(e){try{r[e]=o[e]}catch(t){i||(i=t)}},s=1;c>s;++s)e(o=arguments[s]).forEach(a);if(void 0!==i)throw i;return r},ac}()),uc}function q(){if(mc)return hc;mc=1;var e=B(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;return hc=function(i,s){var a,c=Object(e(s));if(i=Object(e(i)),r(c).forEach((function(e){try{t(i,e,n(s,e))}catch(r){a=r}})),"function"==typeof o&&o(c).forEach((function(e){try{t(i,e,n(s,e))}catch(r){a=r}})),void 0!==a)throw a;return i}}function z(){if(yc)return bl.exports;yc=1;var e,t,n=j();try{Object.defineProperty((function(e,t){return t}),"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(r){}return t=q(),e=function(){var e=[];return function(t){var n,r=0;if(e[t])return e[t];for(n=[];t--;)n.push("a"+(++r).toString(36));return Function("fn","return function ("+n.join(", ")+") { return fn.apply(this, arguments); };")}}(),bl.exports=function(o,i){var s;if(i=n(i),o.length===i)return o;s=e(i)(o);try{t(s,o)}catch(r){}return s},bl.exports}function W(){return wc?vc:(wc=1,vc=function(e){return null!=e})}function X(){if(Ic)return Rc;Ic=1;var e=function(){if(Oc)return Sc;Oc=1;var e=function(){if(bc)return _c;bc=1;var e=function(){if(gc)return Ec;gc=1;var e=W(),t={object:!0,function:!0,undefined:!0};return Ec=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return _c=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return Sc=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(n){return!1}return!e(t)}}(),t=/^\s*class[\s{/}]/,n=function(){}.toString;return Rc=function(r){return!!e(r)&&!t.test(n.call(r))}}function K(){if(Lc)return Sl.exports;Lc=1;var e=W(),t=X(),n=H(),r=U(),o=(Ac||(Ac=1,Nc=function(){if(Pc)return Tc;Pc=1;var e="razdwatrzy";return Tc=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(xc)return Cc;xc=1;var e="".indexOf;return Cc=function(t){return e.call(this,t,arguments[1])>-1},Cc}()),Nc),i=Sl.exports=function(t,i){var s,a,c,u,l;return 2>arguments.length||"string"!=typeof t?(u=i,i=t,t=null):u=arguments[2],e(t)?(s=o.call(t,"c"),a=o.call(t,"e"),c=o.call(t,"w")):(s=c=!0,a=!1),l={value:i,configurable:s,enumerable:a,writable:c},u?n(r(u),l):l};return i.gs=function(i,s,a){var c,u,l,f;return"string"!=typeof i?(l=a,a=s,s=i,i=null):l=arguments[3],e(s)?t(s)?e(a)?t(a)||(l=a,a=void 0):a=void 0:(l=s,s=a=void 0):s=void 0,e(i)?(c=o.call(i,"c"),u=o.call(i,"e")):(c=!0,u=!1),f={get:s,set:a,configurable:c,enumerable:u},l?n(r(l),f):f},Sl.exports}function Y(){return Gc?Bc:(Gc=1,Bc=(jc?Uc:(jc=1,Uc=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(Mc)return Fc;Mc=1;var e=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};return Fc=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}()}())}function J(){if(Xc)return Wc;Xc=1;var e=zc?qc:(zc=1,qc=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return Wc=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function Q(){return ou?ru:(ou=1,ru=function(){if(Hc)return Vc;Hc=1;var e=Y(),t={object:!0,symbol:!0};return Vc=function(){var n=e.Symbol;return"function"==typeof n&&(n("test symbol"),!!t[typeof n.iterator]&&!!t[typeof n.toPrimitive]&&!!t[typeof n.toStringTag])}}()()?Y().Symbol:function(){if(nu)return tu;nu=1;var e,t,n,r=K(),o=J(),i=Y().Symbol,s=function(){if(Yc)return Kc;Yc=1;var e=K(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return Kc=function(o){for(var i,s,a=0;r[o+(a||"")];)++a;return r[o+=a||""]=!0,t(n,i="@@"+o,e.gs(null,(function(n){s||(s=!0,t(this,i,e(n)),s=!1)}))),i}}(),a=function(){if(Qc)return Jc;Qc=1;var e=K(),t=Y().Symbol;return Jc=function(n){return Object.defineProperties(n,{hasInstance:e("",t&&t.hasInstance||n("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||n("isConcatSpreadable")),iterator:e("",t&&t.iterator||n("iterator")),match:e("",t&&t.match||n("match")),replace:e("",t&&t.replace||n("replace")),search:e("",t&&t.search||n("search")),species:e("",t&&t.species||n("species")),split:e("",t&&t.split||n("split")),toPrimitive:e("",t&&t.toPrimitive||n("toPrimitive")),toStringTag:e("",t&&t.toStringTag||n("toStringTag")),unscopables:e("",t&&t.unscopables||n("unscopables"))})}}(),c=function(){if(eu)return Zc;eu=1;var e=K(),t=J(),n=Object.create(null);return Zc=function(r){return Object.defineProperties(r,{for:e((function(e){return n[e]?n[e]:n[e]=r(e+"")})),keyFor:e((function(e){var r;for(r in t(e),n)if(n[r]===e)return r}))})}}(),u=Object.create,l=Object.defineProperties,f=Object.defineProperty;if("function"==typeof i)try{i(),n=!0}catch(p){}else i=null;return t=function(n){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return e(n)},tu=e=function e(o){var a;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return n?i(o):(a=u(t.prototype),l(a,{__description__:r("",o=void 0===o?"":o+""),__name__:r("",s(o))}))},a(e),c(e),l(t.prototype,{constructor:r(e),toString:r("",(function(){return this.__name__}))}),l(e.prototype,{toString:r((function(){return"Symbol ("+o(this).__description__+")"})),valueOf:r((function(){return o(this)}))}),f(e.prototype,e.toPrimitive,r("",(function(){var e=o(this);return"symbol"==typeof e?e:""+e}))),f(e.prototype,e.toStringTag,r("c","Symbol")),f(t.prototype,e.toStringTag,r("c",e.prototype[e.toStringTag])),f(t.prototype,e.toPrimitive,r("c",e.prototype[e.toPrimitive])),tu}())}function Z(){return hu?du:(hu=1,du=(kc?Dc:(kc=1,Dc=function(){var e,t,n=Array.from;return"function"==typeof n&&!(!(t=n(e=["raz","dwa"]))||t===e||"dwa"!==t[1])}))()?Array.from:function(){if(pu)return fu;pu=1;var e=Q().iterator,t=function(){if(su)return iu;su=1;var e={}.toString,t=e.call(function(){return arguments}());return iu=function(n){return e.call(n)===t}}(),n=function(){if(cu)return au;cu=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return au=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=j(),o=M(),i=B(),s=k(),a=function(){if(lu)return uu;lu=1;var e={}.toString,t=e.call("");return uu=function(n){return"string"==typeof n||n&&"object"==typeof n&&(n instanceof String||e.call(n)===t)||!1}}(),c=Array.isArray,u=function(){}.call,l={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;return fu=function(p){var d,h,m,y,v,w,E,g,_,b,S=arguments[1],O=arguments[2];if(p=Object(i(p)),s(S)&&o(S),this&&this!==Array&&n(this))d=this;else{if(!S){if(t(p))return 1!==(v=p.length)?Array.apply(null,p):((y=[,])[0]=p[0],y);if(c(p)){for(y=Array(v=p.length),h=0;v>h;++h)y[h]=p[h];return y}}y=[]}if(!c(p))if(void 0!==(_=p[e])){for(E=o(_).call(p),d&&(y=new d),g=E.next(),h=0;!g.done;)b=S?u.call(S,O,g.value,h):g.value,d?(l.value=b,f(y,h,l)):y[h]=b,g=E.next(),++h;v=h}else if(a(p)){for(v=p.length,d&&(y=new d),h=0,m=0;v>h;++h)b=p[h],v>h+1&&(55296>(w=b.charCodeAt(0))||w>56319||(b+=p[++h])),b=S?u.call(S,O,b,m):b,d?(l.value=b,f(y,m,l)):y[m]=b,++m;v=m}if(void 0===v)for(v=r(p.length),d&&(y=new d(v)),h=0;v>h;++h)b=S?u.call(S,O,p[h],h):p[h],d?(l.value=b,f(y,h,l)):y[h]=b;return d&&(l.value=null,y.length=v),y},fu}())}function ee(){if(bu)return _u;bu=1;var e,t,n,r,o,i=(dc||(dc=1,e=_l,t=H(),n=function(){if(pc)return fc;pc=1;var e=k(),t={function:!0,object:!0};return fc=function(n){return e(n)&&t[typeof n]||!1}}(),r=k(),o=Error.captureStackTrace,e.exports=function(i){var s=Error(i),a=arguments[1],c=arguments[2];return r(c)||n(a)&&(c=a,a=null),r(c)&&t(s,c),r(a)&&(s.code=a),o&&o(s,e.exports),s}),_l.exports),s=z(),a=K(),c=function(){return $c||($c=1,e=Ol,Ol.exports,u=K(),l=M(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,y={}.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0},r=function(e,t){var r,i;return l(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),f.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e){var t,n,r,o,i;if(y.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(i=Array((n=arguments.length)-1),t=1;n>t;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)f.call(r,this,i)}else switch(arguments.length){case 1:p.call(o,this);break;case 2:p.call(o,this,arguments[1]);break;case 3:p.call(o,this,arguments[1],arguments[2]);break;default:for(i=Array((n=arguments.length)-1),t=1;n>t;++t)i[t-1]=arguments[t];f.call(o,this,i)}},s={on:n=function(e,t){var n;return l(t),y.call(this,"__ee__")?n=this.__ee__:(n=v.value=d(null),h(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o=function(e,t){var n,r,o,i;if(l(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:i},a={on:u(n),once:u(r),off:u(o),emit:u(i)},c=m({},a),e.exports=t=function(e){return null==e?d(c):m(Object(e),a)},t.methods=s),Ol.exports;var e,t,n,r,o,i,s,a,c,u,l,f,p,d,h,m,y,v}().methods,u=function(){if(wu)return vu;wu=1;var e,t=function(){if(yu)return mu;yu=1;var e=Z(),t=Array.isArray;return mu=function(n){return t(n)?n:e(n)}}(),n=k(),r=M(),o=[].slice;return e=function(e){return this.map((function(t,n){return t?t(e[n]):e[n]})).concat(o.call(e,this.length))},vu=function(o){return(o=t(o)).forEach((function(e){n(e)&&r(e)})),e.bind(o)}}(),l=function(){if(gu)return Eu;gu=1;var e=M();return Eu=function(t){var n;return"function"==typeof t?{set:t,get:t}:(n={get:e(t.get)},void 0!==t.set?(n.set=e(t.set),t.delete&&(n.delete=e(t.delete)),t.clear&&(n.clear=e(t.clear)),n):(n.set=n.get,n))}}(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperties,m=c.on,y=c.emit;return _u=function(e,t,n){var r,o,c,v,w,E,g,_,b,S,O,R,I,T,P,C=d(null);return o=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(S=l(n.normalizer),c=S.get,v=S.set,w=S.delete,E=S.clear),null!=n.resolvers&&(P=u(n.resolvers)),T=c?s((function(t){var n,o,s=arguments;if(P&&(s=P(s)),null!==(n=c(s))&&hasOwnProperty.call(C,n))return O&&r.emit("get",n,s,this),C[n];if(o=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),null===n){if(null!==(n=c(s)))throw i("Circular invocation","CIRCULAR_INVOCATION");n=v(s)}else if(hasOwnProperty.call(C,n))throw i("Circular invocation","CIRCULAR_INVOCATION");return C[n]=o,R&&r.emit("set",n,null,o),o}),o):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return O&&r.emit("get","data",arguments,this),C.data;if(t=arguments.length?f.call(e,this,arguments):p.call(e,this),hasOwnProperty.call(C,"data"))throw i("Circular invocation","CIRCULAR_INVOCATION");return C.data=t,R&&r.emit("set","data",null,t),t}:function(t){var n,o,s=arguments;if(P&&(s=P(arguments)),o=s[0]+"",hasOwnProperty.call(C,o))return O&&r.emit("get",o,s,this),C[o];if(n=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),hasOwnProperty.call(C,o))throw i("Circular invocation","CIRCULAR_INVOCATION");return C[o]=n,R&&r.emit("set",o,null,n),n},r={original:e,memoized:T,profileName:n.profileName,get:function(e){return P&&(e=P(e)),c?c(e):e[0]+""},has:function(e){return hasOwnProperty.call(C,e)},delete:function(e){var t;hasOwnProperty.call(C,e)&&(w&&w(e),t=C[e],delete C[e],I&&r.emit("delete",e,t))},clear:function(){var e=C;E&&E(),C=d(null),r.emit("clear",e)},on:function(e,t){return"get"===e?O=!0:"set"===e?R=!0:"delete"===e&&(I=!0),m.call(this,e,t)},emit:y,updateEnv:function(){e=r.original}},g=c?s((function(e){var t,n=arguments;P&&(n=P(n)),null!==(t=c(n))&&r.delete(t)}),o):0===t?function(){return r.delete("data")}:function(e){return P&&(e=P(arguments)[0]),r.delete(e)},_=s((function(){var e,n=arguments;return 0===t?C.data:(P&&(n=P(n)),e=c?c(n):n[0]+"",C[e])})),b=s((function(){var e,n=arguments;return 0===t?r.has("data"):(P&&(n=P(n)),null!==(e=c?c(n):n[0]+"")&&r.has(e))})),h(T,{__memoized__:a(!0),delete:a(g),clear:a(r.clear),_get:a(_),_has:a(b)}),r},_u}function te(){if(ku)return Du;ku=1;var e=$u?Lu:($u=1,Lu=(xu?Cu:(xu=1,Cu=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:Au?Nu:(Au=1,Nu=function(e){return e!=e})),t=j(),n=B(),r=[].indexOf,o={}.hasOwnProperty,i=Math.abs,s=Math.floor;return Du=function(a){var c,u,l;if(!e(a))return r.apply(this,arguments);for(u=t(n(this).length),c=l=isNaN(l=arguments[1])?0:0>l?t(this.length)-s(i(l)):s(l);u>c;++c)if(o.call(this,c)&&e(this[c]))return c;return-1},Du}function ne(){if(Hu)return Vu;Hu=1;var e=M(),t=G(),n=function(){}.call;return Vu=function(r,o){var i={},s=arguments[2];return e(o),t(r,(function(e,t,r,a){i[t]=n.call(o,s,e,t,r,a)})),i},Vu}function re(){if(zu)return qu;zu=1;var e=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},t=function(t){var n,r,o=document.createTextNode(""),i=0;return new t((function(){var e;if(n)r&&(n=r.concat(n));else{if(!r)return;n=r}if(r=n,n=null,"function"==typeof r)return e=r,r=null,void e();for(o.data=i=++i%2;r;)e=r.shift(),r.length||(r=null),e()})).observe(o,{characterData:!0}),function(t){e(t),n?"function"==typeof n?n=[n,t]:n.push(t):(n=t,o.data=i=++i%2)}};return qu=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(t){queueMicrotask(e(t))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return t(MutationObserver);if("function"==typeof WebKitMutationObserver)return t(WebKitMutationObserver)}return"function"==typeof setImmediate?function(t){setImmediate(e(t))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(t){setTimeout(e(t),0)}:null}()}function oe(){return Ju?Yu:(Ju=1,Yu=function(e){return"function"==typeof e})}function ie(){function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return sl||(sl=1,Tl.exports=e,Tl.exports.default=e),Tl.exports}function se(){if(al)return Il;al=1;var e=ne(),t=function(){if(Ku)return Xu;Ku=1;var e=[].forEach,t=Object.create;return Xu=function(n){var r=t(null);return e.call(arguments,(function(e){r[e]=!0})),r},Xu}(),n=function(){if(tl)return el;tl=1;var e=B(),t=function(){if(Zu)return Qu;Zu=1;var e=oe();return Qu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return el=function(n){return t(e(n))}}(),r=function(){if(il)return ol;il=1;var e=function(){if(rl)return nl;rl=1;var e=oe();return nl=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return""}}}();return ol=function(t){var n=e(t);return n.length>100&&(n=n.slice(0,99)+"…"),n.replace(/[\n\r\u2028\u2029]/g,(function(e){return JSON.stringify(e).slice(1,-1)}))}}(),o=ie(),i=re(),s=Object.create,a=t("then","then:finally","done","done:finally");return V().promise=function(t,c){var u=s(null),l=s(null),f=s(null);if(!0===t)t=null;else if(t=n(t),!a[t])throw new TypeError("'"+r(t)+"' is not valid promise mode");c.on("set",(function(e,n,r){var s=!1;if(!o(r))return l[e]=r,void c.emit("setasync",e,1);u[e]=1,f[e]=r;var a=function(t){var n=u[e];if(s)throw Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");n&&(delete u[e],l[e]=t,c.emit("setasync",e,n))},p=function(){s=!0,u[e]&&(delete u[e],delete f[e],c.delete(e))},d=t;if(d||(d="then"),"then"===d){var h=function(){i(p)};"function"==typeof(r=r.then((function(e){i(a.bind(this,e))}),h)).finally&&r.finally(h)}else if("done"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");r.done(a,p)}else if("done:finally"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof r.finally)throw Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");r.done(a),r.finally(p)}})),c.on("get",(function(e,t,n){var r;if(u[e])++u[e];else{var s=function(){c.emit("getasync",e,t,n)};o(r=f[e])?"function"==typeof r.done?r.done(s):r.then((function(){i(s)})):s()}})),c.on("delete",(function(e){if(delete f[e],u[e])delete u[e];else if(hasOwnProperty.call(l,e)){var t=l[e];delete l[e],c.emit("deleteasync",e,[t])}})),c.on("clear",(function(){var t=l;l=s(null),u=s(null),f=s(null),c.emit("clearasync",e(t,(function(e){return[e]})))}))},Il}async function ae(e){try{return await _o.access(e),!0}catch{return!1}}function ce(e){const t=function(){if(P()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?Dr("/Users/",process.env.SUDO_USER):Dr("/home/",process.env.SUDO_USER);{const e=Rr();if(""===e)return;return e}}();return void 0===t?e:e.replace(Ll,t)}async function ue(e){const t=void 0===e.guard?"\n# Automatically Generated by envosman\n":`\n# Automatically Generated by envosman ${e.guard}\nexport SOURCE_${e.guard.toUpperCase()}RC=0\n`;await ae(e.rcPath)&&((await Dl(e.rcPath,"utf8")).includes(t)||(await $l(e.rcPath,`\n${t}\n`),m(`Added ${t} to ${e.rcPath}`)))}async function le(e,t){await ae(t)&&((await Dl(t,"utf-8")).includes(e)||(await $l(t,e),m(`${e} was added to ${t}`)))}async function fe(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:Ul,...n},o=function(e,t=!1){const n=t?Bl(e):e;return Xl(n,'"',"\\")}(t??"",r.escapeSpace);try{if(Kl)try{if(!r.overwrite&&void 0!==process.env[e])return void m(`Environment variable ${e} is already defined. Skipping.`);Pi.exportVariable(e,o)}catch(i){p(i),await pe(e,o,r)}else await pe(e,o,r)}catch(i){p(`${i}\nFailed to export environment variable ${e}=${o}. You should add it manually.`)}}async function pe(e,t,n){const r=t??"";switch(process.platform){case"win32":return n.overwrite||void 0===process.env[e]?(await O(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void m(`${e}='${r}' was set in the environment.`)):void m(`Environment variable ${e} is already defined. Skipping.`);case"linux":case"darwin":return await jl(n),void(n.overwrite?(await Yl(n.rcPath,`\nexport ${e}="${r}"\n`),m(`${e}="${r}" was added to "${n.rcPath}`)):(await Yl(n.rcPath,`\nif [ -z "\${${e}}" ]; then export ${e}="${r}"; fi\n`),m(`if not defined ${e} then ${e}="${r}" was added to "${n.rcPath}`)))}process.env[e]=r}async function de(e,t={}){const n={rcPath:Ul,...t};if(!function(e){return!!Zl.some((t=>t.test(e)))&&(process.env.PATH?.split(kr)??[]).includes(e)}(e)){process.env.PATH=`${e}${kr}${process.env.PATH}`;try{if(Jl)try{Pi.addPath(e)}catch(r){p(r),await he(e,n)}else await he(e,n)}catch(r){p(`${r}\nFailed to add ${e} to the percistent PATH. You should add it manually.`)}}}async function he(e,t){switch(process.platform){case"win32":return await O(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void m(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await jl(t),await Ql(t.rcPath,`\nexport PATH="${e}:$PATH"\n`),void m(`"${e}" was added to "${t.rcPath}"`);default:return}}function me(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function ye(){return ef||(ef=1,e=rf,function(){function t(e,t,o){if(n(e),"object"!=typeof o)throw Error("List of variants should be specified as an object");var i=r[e](t);return void 0!==o[i]?o[i]:null}function n(e){(function(e){return void 0!==r[e]})(e)||function(e){try{me(__dirname+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}}(e)}var r={};e.exports={create:function(e){return n(e),{pluralize:function(n,r){return t(e,n,r)}}},addLocale:function(e,t){r[e]=t},pluralize:t}}()),rf.exports;var e}function ve(){return nf?tf:(nf=1,tf=ye())}function we(){return Ef?wf:(Ef=1,wf={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function Ee(){if(_f)return gf;_f=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return gf=e}function ge(){return bf||(bf=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=we(),i=Ee(),s=(t=e.exports={}).re=[],a=t.safeRe=[],c=t.src=[],u=t.t={};let l=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,r]],d=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(t+"*").join(`${t}{0,${n}}`).split(t+"+").join(`${t}{1,${n}}`);return e})(t),o=l++;i(e,o,t),u[e]=o,c[o]=t,s[o]=RegExp(t,n?"g":void 0),a[o]=RegExp(r,n?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),d("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",f+"+"),d("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),d("FULL",`^${c[u.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),d("LOOSE",`^${c[u.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",c[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),d("XRANGEIDENTIFIER",c[u.NUMERICIDENTIFIER]+"|x|X|\\*"),d("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),d("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),d("COERCE",c[u.COERCEPLAIN]+"(?:$|[^\\d])"),d("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",c[u.COERCE],!0),d("COERCERTLFULL",c[u.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(td,td.exports)),td.exports}function _e(){if(Of)return Sf;Of=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Sf=n=>n?"object"!=typeof n?e:n:t}function be(){if(If)return Rf;If=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:n>t?-1:1};return Rf={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function Se(){if(Pf)return Tf;Pf=1;const e=Ee(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=we(),{safeRe:r,t:o}=ge(),i=_e(),{compareIdentifiers:s}=be();class a{constructor(s,c){if(c=i(c),s instanceof a){if(s.loose===!!c.loose&&s.includePrerelease===!!c.includePrerelease)return s;s=s.version}else if("string"!=typeof s)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",s,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const u=s.trim().match(c.loose?r[o.LOOSE]:r[o.FULL]);if(!u)throw new TypeError("Invalid Version: "+s);if(this.raw=s,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>n||0>this.major)throw new TypeError("Invalid major version");if(this.minor>n||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>n||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=u[4]?u[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof a)){if("string"==typeof t&&t===this.version)return 0;t=new a(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof a||(e=new a(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)}comparePre(t){if(t instanceof a||(t=new a(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return s(r,o)}while(++n)}compareBuild(t){t instanceof a||(t=new a(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return s(r,o)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===s(this.prerelease[0],t)?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}}return Tf=a}function Oe(){if(xf)return Cf;xf=1;const e=Se();return Cf=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(o){if(!r)return null;throw o}}}function Re(){if(Af)return Nf;Af=1;const e=Oe();return Nf=(t,n)=>{const r=e(t,n);return r?r.version:null}}function Ie(){if(Mf)return Ff;Mf=1;const e=Se();return Ff=(t,n)=>new e(t,n).major}function Te(){if(Xf)return Wf;Xf=1;const e=Se();return Wf=(t,n,r)=>new e(t,r).compare(new e(n,r))}function Pe(){if(ep)return Zf;ep=1;const e=Se();return Zf=(t,n,r)=>{const o=new e(t,r),i=new e(n,r);return o.compare(i)||o.compareBuild(i)}}function Ce(){if(sp)return ip;sp=1;const e=Te();return ip=(t,n,r)=>e(t,n,r)>0}function xe(){if(cp)return ap;cp=1;const e=Te();return ap=(t,n,r)=>0>e(t,n,r)}function Ne(){if(lp)return up;lp=1;const e=Te();return up=(t,n,r)=>0===e(t,n,r)}function Ae(){if(pp)return fp;pp=1;const e=Te();return fp=(t,n,r)=>0!==e(t,n,r)}function Le(){if(hp)return dp;hp=1;const e=Te();return dp=(t,n,r)=>e(t,n,r)>=0}function $e(){if(yp)return mp;yp=1;const e=Te();return mp=(t,n,r)=>0>=e(t,n,r)}function De(){if(wp)return vp;wp=1;const e=Ne(),t=Ae(),n=Ce(),r=Le(),o=xe(),i=$e();return vp=(s,a,c,u)=>{switch(a){case"===":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s===c;case"!==":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s!==c;case"":case"=":case"==":return e(s,c,u);case"!=":return t(s,c,u);case">":return n(s,c,u);case">=":return r(s,c,u);case"<":return o(s,c,u);case"<=":return i(s,c,u);default:throw new TypeError("Invalid operator: "+a)}}}function ke(){if(gp)return Ep;gp=1;const e=Se(),t=Oe(),{safeRe:n,t:r}=ge();return Ep=(o,i)=>{if(o instanceof e)return o;if("number"==typeof o&&(o+=""),"string"!=typeof o)return null;let s=null;if((i=i||{}).rtl){const e=i.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(o))&&(!s||s.index+s[0].length!==o.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else s=o.match(i.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);return null===s?null:t(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}${i.includePrerelease&&s[5]?"-"+s[5]:""}${i.includePrerelease&&s[6]?"+"+s[6]:""}`,i)}}function Ue(){if(Op)return Sp;Op=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;this.set.length>e;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;t.length>e;e++)e>0&&(this.formatted+=" "),this.formatted+=(""+t[e]).trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&d))+":"+e,r=n.get(t);if(r)return r;const s=this.options.loose;e=e.replace(s?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE],T(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],u),i("comparator trim",e),e=e.replace(a[c.TILDETRIM],l),i("tilde trim",e),e=e.replace(a[c.CARETTRIM],f),i("caret trim",e);let m=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));s&&(m=m.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(a[c.COMPARATORLOOSE]))))),i("range list",m);const y=new Map,w=m.map((e=>new o(e,this.options)));for(const n of w){if(h(n))return[n];y.set(n.value,n)}y.size>1&&y.has("")&&y.delete("");const E=[...y.values()];return n.set(t,E),E}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>y(t,n)&&e.set.some((e=>y(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options)}catch(t){return!1}for(let n=0;this.set.length>n;n++)if(P(this.set[n],e,this.options))return!0;return!1}}Sp=t;const n=new(bp?_p:(bp=1,_p=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=_e(),o=je(),i=Ee(),s=Se(),{safeRe:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:f}=ge(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:d}=we(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},v=(e,t)=>(i("comp",e,t),e=_(e,t),i("caret",e),e=E(e,t),i("tildes",e),e=S(e,t),i("xrange",e),e=R(e,t),i("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>g(e,t))).join(" "),g=(e,t)=>e.replace(t.loose?a[c.TILDELOOSE]:a[c.TILDE],((t,n,r,o,s)=>{let a;return i("tilde",e,t,n,r,o,s),w(n)?a="":w(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:w(o)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(i("replaceTilde pr",s),a=`>=${n}.${r}.${o}-${s} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",a),a})),_=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{i("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[c.CARETLOOSE]:a[c.CARET],((t,r,o,s,a)=>{let c;return i("caret",e,t,r,o,s,a),w(r)?c="":w(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(s)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===r?"0"===o?`>=${r}.${o}.${s}-${a} <${r}.${o}.${+s+1}-0`:`>=${r}.${o}.${s}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${s}-${a} <${+r+1}.0.0-0`):(i("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${s}${n} <${r}.${o}.${+s+1}-0`:`>=${r}.${o}.${s}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${s} <${+r+1}.0.0-0`),i("caret return",c),c}))},S=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?a[c.XRANGELOOSE]:a[c.XRANGE],((n,r,o,s,a,c)=>{i("xRange",e,n,r,o,s,a,c);const u=w(o),l=u||w(s),f=l||w(a);return"="===r&&f&&(r=""),c=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(l&&(s=0),a=0,">"===r?(r=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===r&&(r="<",l?o=+o+1:s=+s+1),"<"===r&&(c="-0"),n=`${r+o}.${s}.${a}${c}`):l?n=`>=${o}.0.0${c} <${+o+1}.0.0-0`:f&&(n=`>=${o}.${s}.0${c} <${o}.${+s+1}.0-0`),i("xRange return",n),n})),R=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),I=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),T=e=>(t,n,r,o,i,s,a,c,u,l,f,p)=>`${n=w(r)?"":w(o)?`>=${r}.0.0${e?"-0":""}`:w(i)?`>=${r}.${o}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=w(u)?"":w(l)?`<${+u+1}.0.0-0`:w(f)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${f}-${p}`:e?`<${u}.${l}.${+f+1}-0`:"<="+c}`.trim(),P=(e,t,n)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;e.length>n;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Sp}function je(){if(Ip)return Rp;Ip=1;const e=Symbol();class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),s("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,s("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new a(n[2],this.options.loose):e}toString(){return this.value}test(t){if(s("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new a(t,this.options)}catch(n){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,r).test(this.value):""===e.operator?""===e.value||new c(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.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("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}Rp=t;const n=_e(),{safeRe:r,t:o}=ge(),i=De(),s=Ee(),a=Se(),c=Ue();return Rp}function Fe(){if(Pp)return Tp;Pp=1;const e=Ue();return Tp=(t,n,r)=>{try{n=new e(n,r)}catch(o){return!1}return n.test(t)}}function Me(){if(Mp)return Fp;Mp=1;const e=Se(),t=je(),{ANY:n}=t,r=Ue(),o=Fe(),i=Ce(),s=xe(),a=$e(),c=Le();return Fp=(u,l,f,p)=>{let d,h,m,y,v;switch(u=new e(u,p),l=new r(l,p),f){case">":d=i,h=a,m=s,y=">",v=">=";break;case"<":d=s,h=c,m=i,y="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(u,l,p))return!1;for(let e=0;l.set.length>e;++e){let r=null,o=null;if(l.set[e].forEach((e=>{e.semver===n&&(e=new t(">=0.0.0")),r=r||e,o=o||e,d(e.semver,r.semver,p)?r=e:m(e.semver,o.semver,p)&&(o=e)})),r.operator===y||r.operator===v)return!1;if((!o.operator||o.operator===y)&&h(u,o.semver))return!1;if(o.operator===v&&m(u,o.semver))return!1}return!0}}function Be(){if(Qp)return Jp;Qp=1;const e=ge(),t=we(),n=Se(),r=be(),o=Oe(),i=Re(),s=function(){if($f)return Lf;$f=1;const e=Oe();return Lf=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),a=function(){if(kf)return Df;kf=1;const e=Se();return Df=(t,n,r,o,i)=>{"string"==typeof r&&(i=o,o=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,o,i).version}catch(s){return null}}}(),c=function(){if(jf)return Uf;jf=1;const e=Oe();return Uf=(t,n)=>{const r=e(t,null,!0),o=e(n,null,!0),i=r.compare(o);if(0===i)return null;const s=i>0,a=s?r:o,c=s?o:r,u=!!a.prerelease.length;if(c.prerelease.length&&!u)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const l=u?"pre":"";return r.major!==o.major?l+"major":r.minor!==o.minor?l+"minor":r.patch!==o.patch?l+"patch":"prerelease"}}(),u=Ie(),l=function(){if(Gf)return Bf;Gf=1;const e=Se();return Bf=(t,n)=>new e(t,n).minor}(),f=function(){if(Hf)return Vf;Hf=1;const e=Se();return Vf=(t,n)=>new e(t,n).patch}(),p=function(){if(zf)return qf;zf=1;const e=Oe();return qf=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),d=Te(),h=function(){if(Yf)return Kf;Yf=1;const e=Te();return Kf=(t,n,r)=>e(n,t,r)}(),m=function(){if(Qf)return Jf;Qf=1;const e=Te();return Jf=(t,n)=>e(t,n,!0)}(),y=Pe(),v=function(){if(np)return tp;np=1;const e=Pe();return tp=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),w=function(){if(op)return rp;op=1;const e=Pe();return rp=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),E=Ce(),g=xe(),_=Ne(),b=Ae(),S=Le(),O=$e(),R=De(),I=ke(),T=je(),P=Ue(),C=Fe(),x=function(){if(xp)return Cp;xp=1;const e=Ue();return Cp=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),N=function(){if(Ap)return Np;Ap=1;const e=Se(),t=Ue();return Np=(n,r,o)=>{let i=null,s=null,a=null;try{a=new t(r,o)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(i&&-1!==s.compare(t)||(i=t,s=new e(i,o)))})),i}}(),A=function(){if($p)return Lp;$p=1;const e=Se(),t=Ue();return Lp=(n,r,o)=>{let i=null,s=null,a=null;try{a=new t(r,o)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(i&&1!==s.compare(t)||(i=t,s=new e(i,o)))})),i}}(),L=function(){if(kp)return Dp;kp=1;const e=Se(),t=Ue(),n=Ce();return Dp=(r,o)=>{r=new t(r,o);let i=new e("0.0.0");if(r.test(i))return i;if(i=new e("0.0.0-0"),r.test(i))return i;i=null;for(let t=0;r.set.length>t;++t){let o=null;r.set[t].forEach((t=>{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":o&&!n(r,o)||(o=r);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+t.operator)}})),!o||i&&!n(i,o)||(i=o)}return i&&r.test(i)?i:null}}(),$=function(){if(jp)return Up;jp=1;const e=Ue();return Up=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),D=Me(),k=function(){if(Gp)return Bp;Gp=1;const e=Me();return Bp=(t,n,r)=>e(t,n,">",r)}(),U=function(){if(Hp)return Vp;Hp=1;const e=Me();return Vp=(t,n,r)=>e(t,n,"<",r)}(),j=function(){if(zp)return qp;zp=1;const e=Ue();return qp=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),F=function(){if(Xp)return Wp;Xp=1;const e=Fe(),t=Te();return Wp=(n,r,o)=>{const i=[];let s=null,a=null;const c=n.sort(((e,n)=>t(e,n,o)));for(const t of c)e(t,r,o)?(a=t,s||(s=t)):(a&&i.push([s,a]),a=null,s=null);s&&i.push([s,null]);const u=[];for(const[e,t]of i)u.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const l=u.join(" || ");return("string"==typeof r.raw?r.raw:r+"").length>l.length?l:r}}(),M=function(){if(Yp)return Kp;Yp=1;const e=Ue(),t=je(),{ANY:n}=t,r=Fe(),o=Te(),i=[new t(">=0.0.0-0")],s=[new t(">=0.0.0")],a=(e,t,a)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=a.includePrerelease?i:s}if(1===t.length&&t[0].semver===n){if(a.includePrerelease)return!0;t=s}const l=new Set;let f,p,d,h,m,y,v;for(const n of e)">"===n.operator||">="===n.operator?f=c(f,n,a):"<"===n.operator||"<="===n.operator?p=u(p,n,a):l.add(n.semver);if(l.size>1)return null;if(f&&p){if(d=o(f.semver,p.semver,a),d>0)return null;if(0===d&&(">="!==f.operator||"<="!==p.operator))return null}for(const n of l){if(f&&!r(n,f+"",a))return null;if(p&&!r(n,p+"",a))return null;for(const e of t)if(!r(n,e+"",a))return!1;return!0}let w=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,E=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;w&&1===w.prerelease.length&&"<"===p.operator&&0===w.prerelease[0]&&(w=!1);for(const n of t){if(v=v||">"===n.operator||">="===n.operator,y=y||"<"===n.operator||"<="===n.operator,f)if(E&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===E.major&&n.semver.minor===E.minor&&n.semver.patch===E.patch&&(E=!1),">"===n.operator||">="===n.operator){if(h=c(f,n,a),h===n&&h!==f)return!1}else if(">="===f.operator&&!r(f.semver,n+"",a))return!1;if(p)if(w&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===w.major&&n.semver.minor===w.minor&&n.semver.patch===w.patch&&(w=!1),"<"===n.operator||"<="===n.operator){if(m=u(p,n,a),m===n&&m!==p)return!1}else if("<="===p.operator&&!r(p.semver,n+"",a))return!1;if(!n.operator&&(p||f)&&0!==d)return!1}return!(f&&y&&!p&&0!==d||p&&v&&!f&&0!==d||E||w)},c=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r>0?e:0>r||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return 0>r?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return Kp=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let o=!1;e:for(const e of t.set){for(const t of n.set){const n=a(e,t,r);if(o=o||null!==n,n)continue e}if(o)return!1}return!0}}();return Jp={parse:o,valid:i,clean:s,inc:a,diff:c,major:u,minor:l,patch:f,prerelease:p,compare:d,rcompare:h,compareLoose:m,compareBuild:y,sort:v,rsort:w,gt:E,lt:g,eq:_,neq:b,gte:S,lte:O,cmp:R,coerce:I,Comparator:T,Range:P,satisfies:C,toComparators:x,maxSatisfying:N,minSatisfying:A,minVersion:L,validRange:$,outside:D,gtr:k,ltr:U,intersects:j,simplifyRange:F,subset:M,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}function Ge(){return od||(od=1,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.toCommandProperties=Ed.toCommandValue=void 0,Ed.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Ed.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}:{}}),Ed}function Ve(){return cd||(cd=1,function(e){var t=bd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Or,r=Tr,{access:o,appendFile:i,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield o(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:i;return yield r(n,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,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(n,r);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:o}=e,i=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),o&&{rowspan:o});return this.wrap(i,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:o}=n||{},i=Object.assign(Object.assign({},r&&{width:r}),o&&{height:o}),s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(bd)),bd}function He(){return ld||(ld=1,function(e){function t(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,r=Pd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=Pd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Pd.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=Pd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const a=i(Tr),c=i($r);e.chmod=(n=a.promises).chmod,e.copyFile=n.copyFile,e.lstat=n.lstat,e.mkdir=n.mkdir,e.open=n.open,e.readdir=n.readdir,e.readlink=n.readlink,e.rename=n.rename,e.rm=n.rm,e.rmdir=n.rmdir,e.stat=n.stat,e.symlink=n.symlink,e.unlink=n.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=a.constants.O_RDONLY,e.exists=function(t){return s(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(n){if("ENOENT"===n.code)return!1;throw n}return!0}))},e.isDirectory=function(t,n=!1){return s(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){return t=t||"",e.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")}(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(n,r){return s(this,void 0,void 0,(function*(){let o;try{o=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(o&&o.isFile())if(e.IS_WINDOWS){const e=c.extname(n).toUpperCase();if(r.some((t=>t.toUpperCase()===e)))return n}else if(t(o))return n;const i=n;for(const a of r){n=i+a,o=void 0;try{o=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(o&&o.isFile()){if(e.IS_WINDOWS){try{const t=c.dirname(n),r=c.basename(n).toUpperCase();for(const o of yield e.readdir(t))if(r===o.toUpperCase()){n=c.join(t,o);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${n}': ${s}`)}return n}if(t(o))return n}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(Pd)),Pd}function qe(){function e(e){return c(this,void 0,void 0,(function*(){if(f.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield f.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(t){throw Error("File was unable to be removed "+t)}}))}function t(e){return c(this,void 0,void 0,(function*(){u.ok(e,"a path argument must be provided"),yield f.mkdir(e,{recursive:!0})}))}function n(e){return c(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(f.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(l.delimiter))e&&t.push(e);if(f.isRooted(e)){const n=yield f.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(l.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(l.delimiter))e&&n.push(e);const r=[];for(const o of n){const n=yield f.tryGetExecutablePath(l.join(o,e),t);n&&r.push(n)}return r}))}function r(e,n,i,s){return c(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield t(n);const a=yield f.readdir(e);for(const t of a){const a=`${e}/${t}`,c=`${n}/${t}`;(yield f.lstat(a)).isDirectory()?yield r(a,c,i,s):yield o(a,c,s)}yield f.chmod(n,(yield f.stat(e)).mode)}))}function o(e,t,n){return c(this,void 0,void 0,(function*(){if((yield f.lstat(e)).isSymbolicLink()){try{yield f.lstat(t),yield f.unlink(t)}catch(r){"EPERM"===r.code&&(yield f.chmod(t,"0666"),yield f.unlink(t))}const n=yield f.readlink(e);yield f.symlink(n,t,f.IS_WINDOWS?"junction":null)}else(yield f.exists(t))&&!n||(yield f.copyFile(e,t))}))}if(fd)return Td;fd=1;var i=Td.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=Td.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Td.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},c=Td.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Td,"__esModule",{value:!0}),Td.findInPath=Td.which=Td.mkdirP=Td.rmRF=Td.mv=Td.cp=void 0;const u=Zr,l=a($r),f=a(He());return Td.cp=function(e,t,n={}){return c(this,void 0,void 0,(function*(){const{force:i,recursive:s,copySourceDirectory:a}=function(e){return{force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}}(n),c=(yield f.exists(t))?yield f.stat(t):null;if(c&&c.isFile()&&!i)return;const u=c&&c.isDirectory()&&a?l.join(t,l.basename(e)):t;if(!(yield f.exists(e)))throw Error("no such file or directory: "+e);if((yield f.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield r(e,u,0,i)}else{if(""===l.relative(e,u))throw Error(`'${u}' and '${e}' are the same file`);yield o(e,u,i)}}))},Td.mv=function(n,r,o={}){return c(this,void 0,void 0,(function*(){if(yield f.exists(r)){let t=!0;if((yield f.isDirectory(r))&&(r=l.join(r,l.basename(n)),t=yield f.exists(r)),t){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield e(r)}}yield t(l.dirname(r)),yield f.rename(n,r)}))},Td.rmRF=e,Td.mkdirP=t,Td.which=function e(t,r){return c(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const n=yield e(t,!1);if(!n)throw Error(f.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}const o=yield n(t);return o&&o.length>0?o[0]:""}))},Td.findInPath=n,Td}function ze(){function e(e,t,n){return o(this,void 0,void 0,(function*(){const r=s.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=r[0];return t=r.slice(1).concat(t||[]),new s.ToolRunner(o,t,n).exec()}))}if(dd)return Rd;dd=1;var t=Rd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Rd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Rd.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=Rd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.getExecOutput=Rd.exec=void 0;const i=So,s=r(function(){if(pd)return Id;pd=1;var e=Id.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Id.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Id.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&Object.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r},r=Id.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Id,"__esModule",{value:!0}),Id.argStringToArray=Id.ToolRunner=void 0;const o=n(Or),i=n(Yr),s=n(Qr),a=n($r),c=n(qe()),u=n(He()),l=Oo,f="win32"===process.platform;Id.ToolRunner=class extends i.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let o=t?"":"[command]";if(f)if(this._isCmdFile()){o+=n;for(const e of r)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(const e of r)o+=" "+e}else{o+=this._windowsQuoteCmdArg(n);for(const e of r)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=n;for(const e of r)o+=" "+e}return o}_processLineBuffer(e,t,n){try{let r=t+""+e,i=r.indexOf(o.EOL);for(;i>-1;)n(r.substring(0,i)),r=r.substring(i+o.EOL.length),i=r.indexOf(o.EOL);return r}catch(r){return this._debug("error processing line. Failed with error "+r),""}}_getSpawnFileName(){return f&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(f&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const i of e)if(t.some((e=>e===i))){n=!0;break}if(!n)return e;let r='"',o=!0;for(let i=e.length;i>0;i--)r+=e[i-1],o&&"\\"===e[i-1]?r+="\\":'"'===e[i-1]?(o=!0,r+='"'):o=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const n={};return n.cwd=(e=e||{}).cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))&&(this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+o.EOL);const r=new p(n,this.toolPath);if(r.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield u.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const i=this._getSpawnFileName(),a=s.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(a.stderr&&a.stderr.on("data",(e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.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",((n,r)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}},Id.argStringToArray=function(e){function t(e){o&&'"'!==e&&(i+="\\"),i+=e,o=!1}const n=[];let r=!1,o=!1,i="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&r?o=!0:" "!==a||r?t(a):i.length>0&&(n.push(i),i=""):o?t(a):r=!r}return i.length>0&&n.push(i.trim()),n};class p extends i.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=l.setTimeout(p.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}return Id}());return Rd.exec=e,Rd.getExecOutput=function(t,n,r){var s,a;return o(this,void 0,void 0,(function*(){let o="",c="";const u=new i.StringDecoder("utf8"),l=new i.StringDecoder("utf8"),f=null===(s=null==r?void 0:r.listeners)||void 0===s?void 0:s.stdout,p=null===(a=null==r?void 0:r.listeners)||void 0===a?void 0:a.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{o+=u.write(e),f&&f(e)},stderr:e=>{c+=l.write(e),p&&p(e)}}),h=yield e(t,n,Object.assign(Object.assign({},r),{listeners:d}));return o+=u.end(),c+=l.end(),{exitCode:h,stdout:o,stderr:c}}))},Rd}function We(){return md||(md=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function n(e,t={}){(0,l.issueCommand)("error",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)}function r(e){(0,l.issue)("group",e)}function o(){(0,l.issue)("endgroup")}var i=vd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=vd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=vd.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},c=vd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const l=function(){function e(e,t,n){const r=new s(e,t,n);process.stdout.write(""+r+o.EOL)}if(id)return wd;id=1;var t=wd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=wd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=wd.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r};Object.defineProperty(wd,"__esModule",{value:!0}),wd.issue=wd.issueCommand=void 0;const o=r(Or),i=Ge();wd.issueCommand=e,wd.issue=function(t,n=""){e(t,{},n)};class s{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const o=this.properties[r];o&&(n?n=!1:e+=",",e+=`${r}=${t=o,(0,i.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return(0,i.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return wd}(),f=function(){if(sd)return gd;sd=1;var e=gd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=gd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=gd.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&{}.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r};Object.defineProperty(gd,"__esModule",{value:!0}),gd.prepareKeyValueMessage=gd.issueFileCommand=void 0;const r=n(Lr),o=n(Tr),i=n(Or),s=Ge();return gd.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!o.existsSync(n))throw Error("Missing file at path: "+n);o.appendFileSync(n,`${(0,s.toCommandValue)(t)}${i.EOL}`,{encoding:"utf8"})},gd.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+r.randomUUID(),o=(0,s.toCommandValue)(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(o.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${i.EOL}${o}${i.EOL}${n}`},gd}(),p=Ge(),d=a(Or),h=a($r),m=function(){if(ad)return _d;ad=1;var e=_d.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(_d,"__esModule",{value:!0}),_d.OidcClient=void 0;const t=Ei,r=u(),o=We();class i{static createHttpClient(e=!0,n=10){const o={allowRetries:e,maxRetries:n};return new t.HttpClient("actions/oidc-client",[new r.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),(0,o.debug)("ID token url is "+e);const n=yield i.getCall(e);return(0,o.setSecret)(n),n}catch(n){throw Error("Error message: "+n.message)}}))}}return _d.OidcClient=i,_d}();var y,v;(v=y||(e.ExitCode=y={}))[v.Success=0]="Success",v[v.Failure=1]="Failure",e.exportVariable=function(e,t){const n=(0,p.toCommandValue)(t);if(process.env[e]=n,process.env.GITHUB_ENV)return(0,f.issueFileCommand)("ENV",(0,f.prepareKeyValueMessage)(e,t));(0,l.issueCommand)("set-env",{name:e},n)},e.setSecret=function(e){(0,l.issueCommand)("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?(0,f.issueFileCommand)("PATH",e):(0,l.issueCommand)("add-path",{},e),process.env.PATH=`${e}${h.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return(0,f.issueFileCommand)("OUTPUT",(0,f.prepareKeyValueMessage)(e,t));process.stdout.write(d.EOL),(0,l.issueCommand)("set-output",{name:e},(0,p.toCommandValue)(t))},e.setCommandEcho=function(e){(0,l.issue)("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=y.Failure,n(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,l.issueCommand)("debug",{},e)},e.error=n,e.warning=function(e,t={}){(0,l.issueCommand)("warning",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){(0,l.issueCommand)("notice",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+d.EOL)},e.startGroup=r,e.endGroup=o,e.group=function(e,t){return c(this,void 0,void 0,(function*(){let n;r(e);try{n=yield t()}finally{o()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return(0,f.issueFileCommand)("STATE",(0,f.prepareKeyValueMessage)(e,t));(0,l.issueCommand)("save-state",{name:e},(0,p.toCommandValue)(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return c(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))};var w=Ve();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return w.summary}});var E=Ve();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return E.markdownSummary}});var g=function(){if(ud)return Sd;ud=1;var e=Sd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Sd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Sd.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&{}.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r};Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.toPlatformPath=Sd.toWin32Path=Sd.toPosixPath=void 0;const r=n($r);return Sd.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Sd.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Sd.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Sd}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return g.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return g.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return g.toPlatformPath}}),e.platform=a((hd||(hd=1,function(e){var t=Od.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Od.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Od.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=Od.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=Od.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0;const s=i(Or),a=r(ze());e.platform=s.default.platform(),e.arch=s.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return o(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield o(void 0,void 0,void 0,e.isWindows?function*(){const{stdout:e}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:t}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0});return{name:t.trim(),version:e.trim()}}:e.isMacOS?function*(){var e,t,n,r;const{stdout:o}=yield a.getExecOutput("sw_vers",void 0,{silent:!0}),i=null!==(t=null===(e=o.match(/ProductVersion:\s*(.+)/))||void 0===e?void 0:e[1])&&void 0!==t?t:"";return{name:null!==(r=null===(n=o.match(/ProductName:\s*(.+)/))||void 0===n?void 0:n[1])&&void 0!==r?r:"",version:i}}:function*(){const{stdout:e}=yield a.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,n]=e.trim().split("\n");return{name:t,version:n}})),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}}(Od)),Od))}(vd)),vd}function Xe(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ke(e,t,n,r){var o,i=e[t],s=~r.string.indexOf(t)?null==n||!0===n?"":n+"":"boolean"==typeof n?n:~r.boolean.indexOf(t)?"false"!==n&&("true"===n||(e._.push(0*(o=+n)==0?o:n),!!n)):0*(o=+n)==0?o:n;e[t]=null==i?s:Array.isArray(i)?i.concat(s):[i,s]}async function Ye(e,t,n,r=40){Ad?await async function(e,t,n=40){await N("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await jl(n),await Ld(n.rcPath,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi\n`))}function Je(e){const t={...process.env,DEBIAN_FRONTEND:"noninteractive"};return"nala"===e&&(void 0===t.LANG&&(t.LANG="C.UTF-8"),void 0===t.LC_ALL&&(t.LC_ALL="C.UTF-8")),t}function Qe(){return null!==Ea.sync("nala",{nothrow:!0})}function Ze(){let e;return e=Qe()?"nala":"apt-get",e}function et(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}async function tt(e){try{const{stdout:t}=await _("dpkg",["-s",e],{env:Je("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("Status: install ok installed")))}catch{return!1}}async function nt(e,t=Ze()){return(await Promise.all(e.map((e=>rt(e,t))))).filter((e=>void 0!==e))}async function rt(e,t=Ze()){const n=await async function(e,t){const{name:n,version:r,fallBackToLatest:o=!1}=t;switch(await ot(e,n,r)){case Ud.NameDashVersion:return`${n}-${r}`;case Ud.NameEqualsVersion:return`${n}=${r}`;case Ud.Name:return void 0!==r&&""!==r&&o&&d(`Could not find package ${n} with version ${r}. Installing the latest version.`),n;default:throw Error(`Could not find package ${n} ${r??""}`)}}(t,e);return await tt(n)?void 0:n}async function ot(e,t,n){if(void 0!==n&&""!==n){const{stdout:r}=await _("apt-cache",["search","--names-only",`^${et(t)}-${et(n)}$`],{env:Je(e),stdio:"pipe"});if(""!==r.trim())return Ud.NameDashVersion;try{const{stdout:r}=await _("apt-cache",["show",`${t}=${n}`],{env:Je(e)});if(""===r.trim())return Ud.NameEqualsVersion}catch{}}try{const{stdout:n}=await _("apt-cache",["show",t],{env:Je(e),stdio:"pipe"});if(""!==n.trim())return Ud.Name}catch{}return Dd?Ud.None:(kd(e),ot(e,t,n))}async function it(e,t=!1){try{const r=Ze();for(const{name:t,version:n}of e)m(`Installing ${t} ${n??""} via ${r}`);t&&kd(r),await async function(e,t){const n=[...new Set(t.flatMap((e=>e.repository??[])))];await Promise.all(n.map((t=>async function(e,t=Ze()){await Fd(t),await async function(e){await tt("software-properties-common")||x(e,["install","-y","--fix-broken","-o",$d,"software-properties-common"],{...Sa,env:Je(e)})}(t),x("add-apt-repository",["-y","--no-update",e],{...Sa,env:Je(t)}),kd.clear(),kd(t)}(t,e))))}(r,e);const o=await nt(e,r);if(0===o.length)return m("All packages are already installed"),{binDir:"/usr/bin/"};await Fd(r);try{await async function(e){await Promise.all(e.map((async e=>{var t;void 0!==e.key&&await(t=e.key,"keyUrl"in t?st(t):async function({key:e,keyServer:t=Gd,fileName:n,keyStorePath:r=Gd}){try{ct(n);const o=Dr(r,n);return await ae(o)||(at(),await N("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+o,"--keyserver",t,"--recv-keys",e]),await N("chmod",["644",o])),o}catch(o){return void d(`Failed to add apt key via server ${t}: ${o}`)}}(t))})))}(e),x(r,["install","--fix-broken","-y",...o],{...Sa,env:Je(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;Md.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(d(`Failed to install packages ${o}. Retrying...`),x(r,["install","--fix-broken","-y","-o",$d,...o],{...Sa,env:Je(r)}))}return{binDir:"/usr/bin/"}}catch(n){throw Error("Failed to install apt packages: "+(n instanceof Error?`${n.message}\n${n.stack}`:n+""))}}async function st({keyUrl:e,fileName:t,keyStorePath:n=Bd}){try{ct(t);const r=Dr(n,t);if(!(await ae(r))){at(),await it([{name:"ca-certificates"}]);const n=Dr(Ir(),t),o=new Nd.DownloaderHelper(e,Ir(),{fileName:t});o.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await o.start(),x("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),x("chmod",["644",r])}return r}catch(r){return void d(`Failed to add apt key via download ${e}: ${r}`)}}function at(){x("gpg",["-k"])}function ct(e){if(!e.endsWith(".gpg"))throw Error("Key file name must end with .gpg: "+e)}async function ut(e={}){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof Vd)return{binDir:Vd};const t=await Ea("brew",{nothrow:!0});if(null!==t)return Vd=Ur(t),{binDir:Vd};await it([{name:"ca-certificates"}]);const n=new Nd.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Ir(),{fileName:"install-brew.sh"});return n.on("error",(e=>{throw Error("Failed to download the brew installer script: "+e)})),await n.start(),b("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),Vd=lt(),await de(Vd,e.rcOptions),{binDir:Vd}}function lt(){return Dr(ft(),"bin")}function ft(){if("darwin"===process.platform)return"arm64"===process.arch?"/opt/homebrew":"/usr/local";if("linux"===process.platform)return"/home/linuxbrew/.linuxbrew";throw Error("Unsupported platform for brew")}async function pt(e,t,n={}){"overwrite"in n||(n.overwrite=!0),!0===n.cask&&(n.overwrite=!1),m(`Installing ${e} ${t??""} via brew`),Xd&&null!==Ea.sync("brew",{nothrow:!0})||(await ut(),Xd=!0);const r=lt(),o=Dr(r,"brew"),i=["install",void 0!==t&&""!==t?`${e}@${t}`:e];for(const[s,a]of Object.entries(n))"boolean"==typeof a&&a?i.push("--"+s):"string"==typeof a&&i.push("--"+s,a);return b(o,i,{stdio:"inherit"}),{binDir:r}}function dt(){return"linux"===process.platform&&(void 0===Hd&&(Hd=null!==Ea.sync("dnf",{nothrow:!0})),Hd)}function ht(){return"linux"===process.platform&&(void 0===qd&&(qd=null!==Ea.sync("pacman",{nothrow:!0})),qd)}function mt(){return"linux"===process.platform&&(void 0===zd&&(zd=null!==Ea.sync("apt-get",{nothrow:!0})),zd)}async function yt(e,t,n){if("win32"!==process.platform)return;if("string"==typeof Wd)return{binDir:Wd};const r=Ea.sync("choco",{nothrow:!0});if(null!==r)return Wd=Ur(r),{binDir:Wd};let o="powershell.exe";const i=Ea.sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==i&&(o=i),b(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const s=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await de(s,wv);const a=Ea.sync("choco",{nothrow:!0});return Wd=null!==a?Ur(a):(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin",await ae(Wd)?{binDir:Wd}:void 0}async function vt(e,t,n=[]){m(`Installing ${e} ${t??""} via chocolatey`),Kd&&null!==Ea.sync("choco",{nothrow:!0})||(await yt(0,0,process),Kd=!0);const r=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=r,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(s){if(!s.message.includes("exit code 3010"))throw s;m(e+" might require a reboot for the completion of the installation.")}const i=(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin";return await de(i,wv),{binDir:i}}async function wt(e){for(const{name:t,version:n}of e)m(`Installing ${t} ${n??""} via dnf`);return x("dnf",["-y","install",...await Promise.all(e.map((e=>async function(e,t){if(void 0!==t&&""!==t){const{stdout:n}=await _("dnf",["search","-q",`${e}-${t}`]);if(""!==n.trim())return`${e}-${t}`;{const{stdout:n}=await _("dnf",["search","-q",`${e}${t}`]);if(""!==n.trim())return`${e}${t}`;d(`Failed to install ${e} ${t} via dnf, trying without version`)}}return e}(e.name,e.version))))]),{binDir:"/usr/bin/"}}async function Et(e,t,n){m(`Installing ${e} ${t??""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===Ea.sync("yay",{nothrow:!0}))try{x("pacman",["-S","--noconfirm","base-devel","git"]);const e=Dr(Ir(),"yay");x("mkdir",["-p",e]),T()?(d("Creating a non-root user to build yay"),x("useradd",["-m","-G","wheel","builder"]),x("passwd",["-d","builder"]),x("chown",["-R","builder:builder",e]),x("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),Zd=!0,b("su",["-","builder","-c","git clone https://aur.archlinux.org/yay.git "+e],{stdio:"inherit"}),b("su",["-","builder","-c",`cd ${e} && makepkg -si --noconfirm`],{stdio:"inherit"})):(b("git",["clone","https://aur.archlinux.org/yay.git",e],{stdio:"inherit",cwd:Ir()}),b("makepkg",["-si","--noconfirm"],{stdio:"inherit",cwd:e})),b("rm",["-rf",e],{stdio:"inherit"})}catch(e){throw Error(`Failed to install yay: ${e}. Install yay manually and re-run the script.`)}}(),Yd||"yay"===n||(x(r,["-Sy","--noconfirm"]),Yd=!0),Jd||"yay"===n||(x(r,["-S","--noconfirm","base-devel"]),Jd=!0);const o=e=>"yay"===n?T()&&Zd?x("su",["-","builder","-c","yay -S --noconfirm "+e]):b(n,["-S","--noconfirm",e]):x(n??r,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){const n=await async function(e,t){const n=[];try{const{stdout:r}=await _(e,["-Si",t]);for(const e of r.matchAll(Qd))n.push(e[1])}catch(r){d(`Failed to get available versions for ${t}: ${r}`)}return n}(r,e);if(n.includes(t))try{o(`${e}=${t}`)}catch{o(`${e}${t}`)}else m(`Failed to install ${e} ${t} via pacman, trying without version`),o(e)}else o(e);return{binDir:"/usr/bin/"}}function gt(e,t){return Object.keys(t).forEach((n=>{"default"===n||"__esModule"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:()=>t[n]})})),e}function _t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function bt(e,t=!0){return t?jr(e):jr(e,Fr(e))}function St(e){return Mr(e).replace(RegExp(et(Br)+"$"),"")}function Ot(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function Rt(e,t){const n=Fr(e),r=`${t}${jr(e,n)}${n}`;return Dr(Ur(e),r)}function It(e,t){const n=Fr(e),r=`${jr(e,n)}${t}${n}`;return Dr(Ur(e),r)}function Tt(e,t=".cmd",n=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function Pt(e){return"win32"===process.platform?e:"./"+e}function Ct(e){const t=Fr(e).length;return e.slice(0,-t)}function xt(e,t){return nh(e,t)}function Nt(e,t){const n=Gr(t,e);return!(!n||".."===n||n.startsWith(".."+Br)||n===Vr(e))}function At(){return Sh||(Sh=1,function(e,t){function n(e){x[e]=N++}function r(e){for(var t=0;L.length>t;t++){var n=L[t][0],r=L[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>O)return null;if(!(t.loose?P[x.LOOSE]:P[x.FULL]).test(e))return null;try{return new i(e,t)}catch(n){return null}}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>O)throw new TypeError("version is longer than "+O+" characters");if(!(this instanceof i))return new i(e,t);S("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?P[x.LOOSE]:P[x.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>R||0>this.major)throw new TypeError("Invalid major version");if(this.minor>R||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>R||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&R>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}function s(e,t){var n=D.test(e),r=D.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:t>e?-1:1}function a(e,t,n){return new i(e,n).compare(new i(t,n))}function c(e,t,n){return a(e,t,n)>0}function u(e,t,n){return 0>a(e,t,n)}function l(e,t,n){return 0===a(e,t,n)}function f(e,t,n){return 0!==a(e,t,n)}function p(e,t,n){return a(e,t,n)>=0}function d(e,t,n){return 0>=a(e,t,n)}function h(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return l(e,n,r);case"!=":return f(e,n,r);case">":return c(e,n,r);case">=":return p(e,n,r);case"<":return u(e,n,r);case"<=":return d(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),S("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===k?"":this.operator+this.semver.version,S("comp",this)}function y(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof y)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new y(e.raw,t);if(e instanceof m)return new y(e.value,t);if(!(this instanceof y))return new y(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.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 new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function v(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function w(e){return!e||"x"===e.toLowerCase()||"*"===e}function E(e,t,n,r,o,i,s,a,c,u,l,f,p){return((t=w(n)?"":w(r)?">="+n+".0.0":w(o)?">="+n+"."+r+".0":">="+t)+" "+(a=w(c)?"":w(u)?"<"+(+c+1)+".0.0":w(l)?"<"+c+"."+(+u+1)+".0":f?"<="+c+"."+u+"."+l+"-"+f:"<="+a)).trim()}function g(e,t,n){for(var r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(r=0;e.length>r;r++)if(S(e[r].semver),e[r].semver!==k&&e[r].semver.prerelease.length>0){var o=e[r].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function _(e,t,n){try{t=new y(t,n)}catch(r){return!1}return t.test(e)}function b(e,t,n,r){var o,s,a,l,f;switch(e=new i(e,r),t=new y(t,r),n){case">":o=c,s=d,a=u,l=">",f=">=";break;case"<":o=u,s=p,a=c,l="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var v=null,w=null;if(t.set[h].forEach((function(e){e.semver===k&&(e=new m(">=0.0.0")),w=w||e,o(e.semver,(v=v||e).semver,r)?v=e:a(e.semver,w.semver,r)&&(w=e)})),v.operator===l||v.operator===f)return!1;if((!w.operator||w.operator===l)&&s(e,w.semver))return!1;if(w.operator===f&&a(e,w.semver))return!1}return!0}var S;t=kh.exports=i,S="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var O=256,R=Number.MAX_SAFE_INTEGER||9007199254740991,I=O-6,T=t.re=[],P=t.safeRe=[],C=t.src=[],x=t.tokens={},N=0,A="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",O],[A,I]];n("NUMERICIDENTIFIER"),C[x.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),C[x.NUMERICIDENTIFIERLOOSE]="\\d+",n("NONNUMERICIDENTIFIER"),C[x.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+A+"*",n("MAINVERSION"),C[x.MAINVERSION]="("+C[x.NUMERICIDENTIFIER]+")\\.("+C[x.NUMERICIDENTIFIER]+")\\.("+C[x.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),C[x.MAINVERSIONLOOSE]="("+C[x.NUMERICIDENTIFIERLOOSE]+")\\.("+C[x.NUMERICIDENTIFIERLOOSE]+")\\.("+C[x.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),C[x.PRERELEASEIDENTIFIER]="(?:"+C[x.NUMERICIDENTIFIER]+"|"+C[x.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),C[x.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[x.NUMERICIDENTIFIERLOOSE]+"|"+C[x.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),C[x.PRERELEASE]="(?:-("+C[x.PRERELEASEIDENTIFIER]+"(?:\\."+C[x.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),C[x.PRERELEASELOOSE]="(?:-?("+C[x.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[x.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),C[x.BUILDIDENTIFIER]=A+"+",n("BUILD"),C[x.BUILD]="(?:\\+("+C[x.BUILDIDENTIFIER]+"(?:\\."+C[x.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),C[x.FULLPLAIN]="v?"+C[x.MAINVERSION]+C[x.PRERELEASE]+"?"+C[x.BUILD]+"?",C[x.FULL]="^"+C[x.FULLPLAIN]+"$",n("LOOSEPLAIN"),C[x.LOOSEPLAIN]="[v=\\s]*"+C[x.MAINVERSIONLOOSE]+C[x.PRERELEASELOOSE]+"?"+C[x.BUILD]+"?",n("LOOSE"),C[x.LOOSE]="^"+C[x.LOOSEPLAIN]+"$",n("GTLT"),C[x.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),C[x.XRANGEIDENTIFIERLOOSE]=C[x.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),C[x.XRANGEIDENTIFIER]=C[x.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),C[x.XRANGEPLAIN]="[v=\\s]*("+C[x.XRANGEIDENTIFIER]+")(?:\\.("+C[x.XRANGEIDENTIFIER]+")(?:\\.("+C[x.XRANGEIDENTIFIER]+")(?:"+C[x.PRERELEASE]+")?"+C[x.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),C[x.XRANGEPLAINLOOSE]="[v=\\s]*("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:"+C[x.PRERELEASELOOSE]+")?"+C[x.BUILD]+"?)?)?",n("XRANGE"),C[x.XRANGE]="^"+C[x.GTLT]+"\\s*"+C[x.XRANGEPLAIN]+"$",n("XRANGELOOSE"),C[x.XRANGELOOSE]="^"+C[x.GTLT]+"\\s*"+C[x.XRANGEPLAINLOOSE]+"$",n("COERCE"),C[x.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),T[x.COERCERTL]=RegExp(C[x.COERCE],"g"),P[x.COERCERTL]=RegExp(r(C[x.COERCE]),"g"),n("LONETILDE"),C[x.LONETILDE]="(?:~>?)",n("TILDETRIM"),C[x.TILDETRIM]="(\\s*)"+C[x.LONETILDE]+"\\s+",T[x.TILDETRIM]=RegExp(C[x.TILDETRIM],"g"),P[x.TILDETRIM]=RegExp(r(C[x.TILDETRIM]),"g"),n("TILDE"),C[x.TILDE]="^"+C[x.LONETILDE]+C[x.XRANGEPLAIN]+"$",n("TILDELOOSE"),C[x.TILDELOOSE]="^"+C[x.LONETILDE]+C[x.XRANGEPLAINLOOSE]+"$",n("LONECARET"),C[x.LONECARET]="(?:\\^)",n("CARETTRIM"),C[x.CARETTRIM]="(\\s*)"+C[x.LONECARET]+"\\s+",T[x.CARETTRIM]=RegExp(C[x.CARETTRIM],"g"),P[x.CARETTRIM]=RegExp(r(C[x.CARETTRIM]),"g"),n("CARET"),C[x.CARET]="^"+C[x.LONECARET]+C[x.XRANGEPLAIN]+"$",n("CARETLOOSE"),C[x.CARETLOOSE]="^"+C[x.LONECARET]+C[x.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),C[x.COMPARATORLOOSE]="^"+C[x.GTLT]+"\\s*("+C[x.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),C[x.COMPARATOR]="^"+C[x.GTLT]+"\\s*("+C[x.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),C[x.COMPARATORTRIM]="(\\s*)"+C[x.GTLT]+"\\s*("+C[x.LOOSEPLAIN]+"|"+C[x.XRANGEPLAIN]+")",T[x.COMPARATORTRIM]=RegExp(C[x.COMPARATORTRIM],"g"),P[x.COMPARATORTRIM]=RegExp(r(C[x.COMPARATORTRIM]),"g"),n("HYPHENRANGE"),C[x.HYPHENRANGE]="^\\s*("+C[x.XRANGEPLAIN]+")\\s+-\\s+("+C[x.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),C[x.HYPHENRANGELOOSE]="^\\s*("+C[x.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[x.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),C[x.STAR]="(<|>)?=?\\s*\\*";for(var $=0;N>$;$++)S($,C[$]),T[$]||(T[$]=RegExp(C[$]),P[$]=RegExp(r(C[$])));t.parse=o,t.valid=function(e,t){var n=o(e,t);return n?n.version:null},t.clean=function(e,t){var n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=i,i.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},i.prototype.toString=function(){return this.version},i.prototype.compare=function(e){return S("SemVer.compare",this.version,this.options,e),e instanceof i||(e=new i(e,this.options)),this.compareMain(e)||this.comparePre(e)},i.prototype.compareMain=function(e){return e instanceof i||(e=new i(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)},i.prototype.comparePre=function(e){if(e instanceof i||(e=new i(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],r=e.prerelease[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},i.prototype.compareBuild=function(e){e instanceof i||(e=new i(e,this.options));var t=0;do{var n=this.build[t],r=e.build[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},i.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new i(e,n).inc(t,r).version}catch(o){return null}},t.diff=function(e,t){if(l(e,t))return null;var n=o(e),r=o(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var s="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return s},t.compareIdentifiers=s;var D=/^[0-9]+$/;t.rcompareIdentifiers=function(e,t){return s(t,e)},t.major=function(e,t){return new i(e,t).major},t.minor=function(e,t){return new i(e,t).minor},t.patch=function(e,t){return new i(e,t).patch},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0)},t.compareBuild=function(e,t,n){var r=new i(e,n),o=new i(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return a(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=c,t.lt=u,t.eq=l,t.neq=f,t.gte=p,t.lte=d,t.cmp=h,t.Comparator=m;var k={};m.prototype.parse=function(e){var t=e.match(this.options.loose?P[x.COMPARATORLOOSE]:P[x.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new i(t[2],this.options.loose):k},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(S("Comparator.test",e,this.options.loose),this.semver===k||e===k)return!0;if("string"==typeof e)try{e=new i(e,this.options)}catch(t){return!1}return h(e,this.operator,this.semver,this.options)},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new y(e.value,t),_(this.value,n,t));if(""===e.operator)return""===e.value||(n=new y(this.value,t),_(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&s||a||c},t.Range=y,y.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},y.prototype.toString=function(){return this.range},y.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[x.HYPHENRANGELOOSE]:P[x.HYPHENRANGE],E),S("hyphen replace",e),e=e.replace(P[x.COMPARATORTRIM],"$1$2$3"),S("comparator trim",e,P[x.COMPARATORTRIM]),e=(e=(e=e.replace(P[x.TILDETRIM],"$1~")).replace(P[x.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?P[x.COMPARATORLOOSE]:P[x.COMPARATOR],r=e.split(" ").map((function(e){return function(e,t){return S("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return S("caret",e,t),e.replace(t.loose?P[x.CARETLOOSE]:P[x.CARET],(function(t,n,r,o,i){var s;return S("caret",e,t,n,r,o,i),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(o)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":i?(S("replaceCaret pr",i),s="0"===n?"0"===r?">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+r+"."+(+o+1):">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+o+"-"+i+" <"+(+n+1)+".0.0"):(S("no pr"),s="0"===n?"0"===r?">="+n+"."+r+"."+o+" <"+n+"."+r+"."+(+o+1):">="+n+"."+r+"."+o+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+o+" <"+(+n+1)+".0.0"),S("caret return",s),s}))}(e,t)})).join(" ")}(e,t),S("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return e.replace(t.loose?P[x.TILDELOOSE]:P[x.TILDE],(function(t,n,r,o,i){var s;return S("tilde",e,t,n,r,o,i),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(o)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":i?(S("replaceTilde pr",i),s=">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+o+" <"+n+"."+(+r+1)+".0",S("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),S("tildes",e),e=function(e,t){return S("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){return(e=e.trim()).replace(t.loose?P[x.XRANGELOOSE]:P[x.XRANGE],(function(n,r,o,i,s,a){S("xRange",e,n,r,o,i,s,a);var c=w(o),u=c||w(i),l=u||w(s);return"="===r&&l&&(r=""),a=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&l?(u&&(i=0),s=0,">"===r?(r=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),n=r+o+"."+i+"."+s+a):u?n=">="+o+".0.0"+a+" <"+(+o+1)+".0.0"+a:l&&(n=">="+o+"."+i+".0"+a+" <"+o+"."+(+i+1)+".0"+a),S("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),S("xrange",e),e=function(e,t){return S("replaceStars",e,t),e.trim().replace(P[x.STAR],"")}(e,t),S("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(r=r.filter((function(e){return!!e.match(n)}))),r.map((function(e){return new m(e,this.options)}),this)},y.prototype.intersects=function(e,t){if(!(e instanceof y))throw new TypeError("a Range is required");return this.set.some((function(n){return v(n,t)&&e.set.some((function(e){return v(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new y(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},y.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(n){return!1}for(var t=0;this.set.length>t;t++)if(g(this.set[t],e,this.options))return!0;return!1},t.satisfies=_,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&-1!==o.compare(e)||(o=new i(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&1!==o.compare(e)||(o=new i(r=e,n)))})),r},t.minVersion=function(e,t){e=new y(e,t);var n=new i("0.0.0");if(e.test(n))return n;if(n=new i("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;e.set.length>r;++r)e.set[r].forEach((function(e){var t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!c(n,t)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new y(e,t).range||"*"}catch(n){return null}},t.ltr=function(e,t,n){return b(e,t,"<",n)},t.gtr=function(e,t,n){return b(e,t,">",n)},t.outside=b,t.prerelease=function(e,t){var n=o(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new y(e,n),t=new y(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof i)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=P[x.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),P[x.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;P[x.COERCERTL].lastIndex=-1}else n=e.match(P[x.COERCE]);return null===n?null:o(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,kh.exports)),kh.exports}function Lt(){return Gh||(Gh=1,Zm.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{t.push(((e,t)=>null!=e?r(e):n(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},Zm.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>n(null,e)),n)}),"name",{value:e.name})}),Zm}function $t(){function e(e,t){Object.defineProperty(e,i,{get:function(){return t}})}function t(e){function r(e,t){return this instanceof r?(m.apply(this,arguments),this):r.apply(Object.create(r.prototype),arguments)}function o(e,t){return this instanceof o?(y.apply(this,arguments),this):o.apply(Object.create(o.prototype),arguments)}function i(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,i,s){return E(t,r,o,(function(a,c){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,o,i],a,s||Date.now(),Date.now()])}))}(e,t,r,o)}c(e),e.gracefulify=t,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var s=e.readFile;e.readFile=function(e,t,r){return"function"==typeof t&&(r=t,t=null),function e(t,r,o,i){return s(t,r,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,o],s,i||Date.now(),Date.now()])}))}(e,t,r)};var a=e.writeFile;e.writeFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,i,s){return a(t,r,o,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,o,i],a,s||Date.now(),Date.now()])}))}(e,t,r,o)};var l=e.appendFile;l&&(e.appendFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,i,s){return l(t,r,o,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,o,i],a,s||Date.now(),Date.now()])}))}(e,t,r,o)});var f=e.copyFile;f&&(e.copyFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=0),function e(t,r,o,i,s){return f(t,r,o,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,o,i],a,s||Date.now(),Date.now()])}))}(e,t,r,o)});var p=e.readdir;e.readdir=function(e,t,r){function o(e,t,r,o){return function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,s,a)):n([i,[e,t,r],s,o||Date.now(),Date.now()])}}"function"==typeof t&&(r=t,t=null);var i=d.test(process.version)?function(e,t,n,r){return p(e,o(e,t,n,r))}:function(e,t,n,r){return p(e,t,o(e,t,n,r))};return i(e,t,r)};var d=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var h=u(e);r=h.ReadStream,o=h.WriteStream}var m=e.ReadStream;m&&(r.prototype=Object.create(m.prototype),r.prototype.open=function(){var e=this;i(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var y=e.WriteStream;y&&(o.prototype=Object.create(y.prototype),o.prototype.open=function(){var e=this;i(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return o},set:function(e){o=e},enumerable:!0,configurable:!0});var v=r;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:!0,configurable:!0});var w=o;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(e){w=e},enumerable:!0,configurable:!0});var E=e.open;return e.open=i,e}function n(e){d("ENQUEUE",e[0].name,e[1]),a[i].push(e),o()}function r(){for(var e=Date.now(),t=0;a[i].length>t;++t)a[i][t].length>2&&(a[i][t][3]=e,a[i][t][4]=e);o()}function o(){if(clearTimeout(p),p=void 0,0!==a[i].length){var e=a[i].shift(),t=e[0],n=e[1],r=e[2],s=e[3],c=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(6e4>Date.now()-s){var u=Date.now()-c;Math.min(1.2*Math.max(c-s,1),100)>u?a[i].push(e):(d("RETRY",t.name,n),t.apply(null,n.concat([s])))}else{d("TIMEOUT",t.name,n);var l=n.pop();"function"==typeof l&&l.call(null,r)}void 0===p&&(p=setTimeout(o,0))}}if(Yh)return Kh;Yh=1;var i,s,a=Tr,c=function(){if(Hh)return Vh;Hh=1;var e=To,t=process.cwd,n=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=t.call(process)),n};try{process.cwd()}catch(i){}if("function"==typeof process.chdir){var o=process.chdir;process.chdir=function(e){n=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}return Vh=function(t){function n(e){return e?function(n,r,o){return e.call(t,n,r,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:e}function o(e){return e?function(n,r){try{return e.call(t,n,r)}catch(i){if(!l(i))throw i}}:e}function s(e){return e?function(n,r,o,i){return e.call(t,n,r,o,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:e}function a(e){return e?function(n,r,o){try{return e.call(t,n,r,o)}catch(i){if(!l(i))throw i}}:e}function c(e){return e?function(n,r,o){function i(e,t){t&&(0>t.uid&&(t.uid+=4294967296),0>t.gid&&(t.gid+=4294967296)),o&&o.apply(this,arguments)}return"function"==typeof r&&(o=r,r=null),r?e.call(t,n,r,i):e.call(t,n,i)}:e}function u(e){return e?function(n,r){var o=r?e.call(t,n,r):e.call(t,n);return o&&(0>o.uid&&(o.uid+=4294967296),0>o.gid&&(o.gid+=4294967296)),o}:e}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var f;e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&((f=t).lchmod=function(t,n,r){f.open(t,e.O_WRONLY|e.O_SYMLINK,n,(function(e,t){e?r&&r(e):f.fchmod(t,n,(function(e){f.close(t,(function(t){r&&r(e||t)}))}))}))},f.lchmodSync=function(t,n){var r,o=f.openSync(t,e.O_WRONLY|e.O_SYMLINK,n),s=!0;try{r=f.fchmodSync(o,n),s=!1}finally{if(s)try{f.closeSync(o)}catch(i){}else f.closeSync(o)}return r}),t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(n,r,o,i){t.open(n,e.O_SYMLINK,(function(e,n){e?i&&i(e):t.futimes(n,r,o,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lutimesSync=function(n,r,o){var s,a=t.openSync(n,e.O_SYMLINK),c=!0;try{s=t.futimesSync(a,r,o),c=!1}finally{if(c)try{t.closeSync(a)}catch(i){}else t.closeSync(a)}return s}):t.futimes&&(t.lutimes=function(e,t,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=o(t.chmodSync),t.fchmodSync=o(t.fchmodSync),t.lchmodSync=o(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,n){n&&process.nextTick(n)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(e,t,n,r){r&&process.nextTick(r)},t.lchownSync=function(){}),"win32"===r&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,o){var i=Date.now(),s=0;e(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&6e4>Date.now()-i)return setTimeout((function(){t.stat(r,(function(t,i){t&&"ENOENT"===t.code?e(n,r,a):o(c)}))}),s),void(100>s&&(s+=10));o&&o(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename)),t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,o,i,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,f,p){if(l&&"EAGAIN"===l.code&&10>u)return u++,e.call(t,n,r,o,i,s,c);a.apply(this,arguments)}}return e.call(t,n,r,o,i,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:function(e){return function(n,r,o,s,a){for(var c=0;;)try{return e.call(t,n,r,o,s,a)}catch(i){if("EAGAIN"===i.code&&10>c){c++;continue}throw i}}}(t.readSync)},Vh}(),u=function(){if(zh)return qh;zh=1;var e=to.Stream;return qh=function(t){return{ReadStream:function n(r,o){if(!(this instanceof n))return new n(r,o);e.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(o=o||{}),a=0,c=s.length;c>a;a++){var u=s[a];this[u]=o[u]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null===this.fd?t.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()})):process.nextTick((function(){i._read()}))},WriteStream:function n(r,o){if(!(this instanceof n))return new n(r,o);e.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var i=Object.keys(o=o||{}),s=0,a=i.length;a>s;s++){var c=i[s];this[c]=o[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(0>this.start)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}(),l=function(){if(Xh)return Wh;Xh=1,Wh=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(e){return e.__proto__};return Wh}(),f=Jr;"function"==typeof Symbol&&"function"==typeof Symbol.for?(i=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(i="___graceful-fs.queue",s="___graceful-fs.previous");var p,d=function(){};return f.debuglog?d=f.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=f.format.apply(f,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),a[i]||(e(a,xo[i]||[]),a.close=function(e){function t(t,n){return e.call(a,t,(function(e){e||r(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,s,{value:e}),t}(a.close),a.closeSync=function(e){function t(t){e.apply(a,arguments),r()}return Object.defineProperty(t,s,{value:e}),t}(a.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(a[i]),Zr.equal(a[i].length,0)}))),xo[i]||e(xo,a[i]),Kh=t(l(a)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched&&(Kh=t(a),a.__patched=!0),Kh}function Dt(){return Jh||(Jh=1,function(e){const t=Lt().fromCallback,n=$t(),r=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.assign(e,n),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},e.read=function(e,t,r,o,i,s){return"function"==typeof s?n.read(e,t,r,o,i,s):new Promise(((s,a)=>{n.read(e,t,r,o,i,((e,t,n)=>{if(e)return a(e);s({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeof r[r.length-1]?n.write(e,t,...r):new Promise(((o,i)=>{n.write(e,t,...r,((e,t,n)=>{if(e)return i(e);o({bytesWritten:t,buffer:n})}))}))},e.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?n.readv(e,t,...r):new Promise(((o,i)=>{n.readv(e,t,...r,((e,t,n)=>{if(e)return i(e);o({bytesRead:t,buffers:n})}))}))},e.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?n.writev(e,t,...r):new Promise(((o,i)=>{n.writev(e,t,...r,((e,t,n)=>{if(e)return i(e);o({bytesWritten:t,buffers:n})}))}))},"function"==typeof n.realpath.native?e.realpath.native=t(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}(Qm)),Qm}function kt(){if(Qh)return ty;Qh=1;const e=$r;return ty.checkPath=function(t){if("win32"===process.platform&&/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=Error("Path contains invalid characters: "+t);throw e.code="EINVAL",e}},ty}function Ut(){if(Zh)return ey;Zh=1;const e=Dt(),{checkPath:t}=kt(),n=e=>"number"==typeof e?e:{mode:511,...e}.mode;return ey.makeDir=async(r,o)=>(t(r),e.mkdir(r,{mode:n(o),recursive:!0})),ey.makeDirSync=(r,o)=>(t(r),e.mkdirSync(r,{mode:n(o),recursive:!0})),ey}function jt(){if(tm)return em;tm=1;const e=Lt().fromPromise,{makeDir:t,makeDirSync:n}=Ut(),r=e(t);return em={mkdirs:r,mkdirsSync:n,mkdirp:r,mkdirpSync:n,ensureDir:r,ensureDirSync:n}}function Ft(){if(rm)return nm;rm=1;const e=Lt().fromPromise,t=Dt();return nm={pathExists:e((function(e){return t.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:t.existsSync}}function Mt(){if(im)return om;im=1;const e=Dt(),t=Lt().fromPromise;return om={utimesMillis:t((async function(t,n,r){const o=await e.open(t,"r+");let i=null;try{await e.futimes(o,n,r)}finally{try{await e.close(o)}catch(s){i=s}}if(i)throw i})),utimesMillisSync:function(t,n,r){const o=e.openSync(t,"r+");return e.futimesSync(o,n,r),e.closeSync(o)}}}function Bt(){function e(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function t(e,t){const n=o.resolve(e).split(o.sep).filter((e=>e)),r=o.resolve(t).split(o.sep).filter((e=>e));return n.every(((e,t)=>r[t]===e))}function n(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}if(am)return sm;am=1;const r=Dt(),o=$r,i=Lt().fromPromise;return sm={checkPaths:i((async function(i,s,a,c){const{srcStat:u,destStat:l}=await function(e,t,n){const o=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([o(e),o(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(i,s,c);if(l){if(e(u,l)){const e=o.basename(i),t=o.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${i}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${i}'.`)}if(u.isDirectory()&&t(i,s))throw Error(n(i,s,a));return{srcStat:u,destStat:l}})),checkPathsSync:function(i,s,a,c){const{srcStat:u,destStat:l}=function(e,t,n){let o;const i=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),s=i(e);try{o=i(t)}catch(a){if("ENOENT"===a.code)return{srcStat:s,destStat:null};throw a}return{srcStat:s,destStat:o}}(i,s,c);if(l){if(e(u,l)){const e=o.basename(i),t=o.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${i}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${i}'.`)}if(u.isDirectory()&&t(i,s))throw Error(n(i,s,a));return{srcStat:u,destStat:l}},checkParentPaths:i((async function t(i,s,a,c){const u=o.resolve(o.dirname(i)),l=o.resolve(o.dirname(a));if(l===u||l===o.parse(l).root)return;let f;try{f=await r.stat(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(i,a,c));return t(i,s,l,c)})),checkParentPathsSync:function t(i,s,a,c){const u=o.resolve(o.dirname(i)),l=o.resolve(o.dirname(a));if(l===u||l===o.parse(l).root)return;let f;try{f=r.statSync(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(i,a,c));return t(i,s,l,c)},isSrcSubdir:t,areIdentical:e}}function Gt(){async function e(e,t,n){return!n.filter||n.filter(e,t)}async function t(i,s,a,u){const l=u.dereference?r.stat:r.lstat,f=await l(s);if(f.isDirectory())return async function(n,i,s,a,u){i||await r.mkdir(a);const l=[];for await(const f of await r.opendir(s)){const n=o.join(s,f.name),r=o.join(a,f.name);l.push(e(n,r,u).then((e=>{if(e)return c.checkPaths(n,r,"copy",u).then((({destStat:e})=>t(e,n,r,u)))})))}await Promise.all(l),i||await r.chmod(a,n.mode)}(f,i,s,a,u);if(f.isFile()||f.isCharacterDevice()||f.isBlockDevice())return async function(e,t,o,i,s){if(!t)return n(e,o,i,s);if(s.overwrite)return await r.unlink(i),n(e,o,i,s);if(s.errorOnExist)throw Error(`'${i}' already exists`)}(f,i,s,a,u);if(f.isSymbolicLink())return async function(e,t,n,i){let s=await r.readlink(t);if(i.dereference&&(s=o.resolve(process.cwd(),s)),!e)return r.symlink(s,n);let a=null;try{a=await r.readlink(n)}catch(u){if("EINVAL"===u.code||"UNKNOWN"===u.code)return r.symlink(s,n);throw u}if(i.dereference&&(a=o.resolve(process.cwd(),a)),c.isSrcSubdir(s,a))throw Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`);if(c.isSrcSubdir(a,s))throw Error(`Cannot overwrite '${a}' with '${s}'.`);return await r.unlink(n),r.symlink(s,n)}(i,s,a,u);if(f.isSocket())throw Error("Cannot copy a socket file: "+s);if(f.isFIFO())throw Error("Cannot copy a FIFO pipe: "+s);throw Error("Unknown file: "+s)}async function n(e,t,n,o){if(await r.copyFile(t,n),o.preserveTimestamps){128&e.mode||await function(e,t){return r.chmod(e,128|t)}(n,e.mode);const o=await r.stat(t);await a(n,o.atime,o.mtime)}return r.chmod(n,e.mode)}if(um)return cm;um=1;const r=Dt(),o=$r,{mkdirs:i}=jt(),{pathExists:s}=Ft(),{utimesMillis:a}=Mt(),c=Bt();return cm=async function(n,r,a={}){"function"==typeof a&&(a={filter:a}),a.clobber=!("clobber"in a)||!!a.clobber,a.overwrite="overwrite"in a?!!a.overwrite:a.clobber,a.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:u,destStat:l}=await c.checkPaths(n,r,"copy",a);if(await c.checkParentPaths(n,u,r,"copy"),!(await e(n,r,a)))return;const f=o.dirname(r);await s(f)||await i(f),await t(l,n,r,a)}}function Vt(){function e(e,o,a,c){const l=(c.dereference?i.statSync:i.lstatSync)(o);if(l.isDirectory())return function(e,t,o,s,a){return t?r(o,s,a):function(e,t,o,s){return i.mkdirSync(o),r(t,o,s),n(o,e)}(e.mode,o,s,a)}(l,e,o,a,c);if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return function(e,n,r,o,s){return n?function(e,n,r,o){if(o.overwrite)return i.unlinkSync(r),t(e,n,r,o);if(o.errorOnExist)throw Error(`'${r}' already exists`)}(e,r,o,s):t(e,r,o,s)}(l,e,o,a,c);if(l.isSymbolicLink())return function(e,t,n,r){let o=i.readlinkSync(t);if(r.dereference&&(o=s.resolve(process.cwd(),o)),e){let e;try{e=i.readlinkSync(n)}catch(a){if("EINVAL"===a.code||"UNKNOWN"===a.code)return i.symlinkSync(o,n);throw a}if(r.dereference&&(e=s.resolve(process.cwd(),e)),u.isSrcSubdir(o,e))throw Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(u.isSrcSubdir(e,o))throw Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return i.unlinkSync(t),i.symlinkSync(e,t)}(o,n)}return i.symlinkSync(o,n)}(e,o,a,c);if(l.isSocket())throw Error("Cannot copy a socket file: "+o);if(l.isFIFO())throw Error("Cannot copy a FIFO pipe: "+o);throw Error("Unknown file: "+o)}function t(e,t,r,o){return i.copyFileSync(t,r),o.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){n(e,128|t)}(r,e),function(e,t){const n=i.statSync(e);c(t,n.atime,n.mtime)}(t,r)}(e.mode,t,r),n(r,e.mode)}function n(e,t){return i.chmodSync(e,t)}function r(e,t,n){const r=i.opendirSync(e);try{let i;for(;null!==(i=r.readSync());)o(i.name,e,t,n)}finally{r.closeSync()}}function o(t,n,r,o){const i=s.join(n,t),a=s.join(r,t);if(o.filter&&!o.filter(i,a))return;const{destStat:c}=u.checkPathsSync(i,a,"copy",o);return e(c,i,a,o)}if(fm)return lm;fm=1;const i=$t(),s=$r,a=jt().mkdirsSync,c=Mt().utimesMillisSync,u=Bt();return lm=function(t,n,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:o,destStat:c}=u.checkPathsSync(t,n,"copy",r);if(u.checkParentPathsSync(t,o,n,"copy"),r.filter&&!r.filter(t,n))return;const l=s.dirname(n);return i.existsSync(l)||a(l),e(c,t,n,r)}}function Ht(){if(dm)return pm;dm=1;const e=Lt().fromPromise;return pm={copy:e(Gt()),copySync:Vt()}}function qt(){if(mm)return hm;mm=1;const e=$t(),t=Lt().fromCallback;return hm={remove:t((function(t,n){e.rm(t,{recursive:!0,force:!0},n)})),removeSync:function(t){e.rmSync(t,{recursive:!0,force:!0})}}}function zt(){function e(e){let t;try{t=n.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=r.join(e,t),i.removeSync(t)}))}if(vm)return ym;vm=1;const t=Lt().fromPromise,n=Dt(),r=$r,o=jt(),i=qt(),s=t((async function(e){let t;try{t=await n.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map((t=>i.remove(r.join(e,t)))))}));return ym={emptyDirSync:e,emptydirSync:e,emptyDir:s,emptydir:s}}function Wt(){if(Em)return wm;Em=1;const e=Lt().fromPromise,t=$r,n=Dt(),r=jt();return wm={createFile:e((async function(e){let o;try{o=await n.stat(e)}catch{}if(o&&o.isFile())return;const i=t.dirname(e);let s=null;try{s=await n.stat(i)}catch(a){if("ENOENT"===a.code)return await r.mkdirs(i),void(await n.writeFile(e,""));throw a}s.isDirectory()?await n.writeFile(e,""):await n.readdir(i)})),createFileSync:function(e){let o;try{o=n.statSync(e)}catch{}if(o&&o.isFile())return;const i=t.dirname(e);try{n.statSync(i).isDirectory()||n.readdirSync(i)}catch(s){if(!s||"ENOENT"!==s.code)throw s;r.mkdirsSync(i)}n.writeFileSync(e,"")}}}function Xt(){if(_m)return gm;_m=1;const e=Lt().fromPromise,t=$r,n=Dt(),r=jt(),{pathExists:o}=Ft(),{areIdentical:i}=Bt();return gm={createLink:e((async function(e,s){let a,c;try{a=await n.lstat(s)}catch{}try{c=await n.lstat(e)}catch(l){throw l.message=l.message.replace("lstat","ensureLink"),l}if(a&&i(c,a))return;const u=t.dirname(s);await o(u)||await r.mkdirs(u),await n.link(e,s)})),createLinkSync:function(e,o){let s;try{s=n.lstatSync(o)}catch{}try{const t=n.lstatSync(e);if(s&&i(t,s))return}catch(c){throw c.message=c.message.replace("lstat","ensureLink"),c}const a=t.dirname(o);return n.existsSync(a)||r.mkdirsSync(a),n.linkSync(e,o)}}}function Kt(){if(Sm)return bm;Sm=1;const e=$r,t=Dt(),{pathExists:n}=Ft(),r=Lt().fromPromise;return bm={symlinkPaths:r((async function(r,o){if(e.isAbsolute(r)){try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:r}}const i=e.dirname(o),s=e.join(i,r);if(await n(s))return{toCwd:s,toDst:r};try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:e.relative(i,r)}})),symlinkPathsSync:function(n,r){if(e.isAbsolute(n)){if(!t.existsSync(n))throw Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}const o=e.dirname(r),i=e.join(o,n);if(t.existsSync(i))return{toCwd:i,toDst:n};if(!t.existsSync(n))throw Error("relative srcpath does not exist");return{toCwd:n,toDst:e.relative(o,n)}}}}function Yt(){if(Rm)return Om;Rm=1;const e=Dt(),t=Lt().fromPromise;return Om={symlinkType:t((async function(t,n){if(n)return n;let r;try{r=await e.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(t,n){if(n)return n;let r;try{r=e.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}}function Jt(){if(Tm)return Im;Tm=1;const e=Lt().fromPromise,t=$r,n=Dt(),{mkdirs:r,mkdirsSync:o}=jt(),{symlinkPaths:i,symlinkPathsSync:s}=Kt(),{symlinkType:a,symlinkTypeSync:c}=Yt(),{pathExists:u}=Ft(),{areIdentical:l}=Bt();return Im={createSymlink:e((async function(e,o,s){let c;try{c=await n.lstat(o)}catch{}if(c&&c.isSymbolicLink()){const[t,r]=await Promise.all([n.stat(e),n.stat(o)]);if(l(t,r))return}const f=await i(e,o);e=f.toDst;const p=await a(f.toCwd,s),d=t.dirname(o);return await u(d)||await r(d),n.symlink(e,o,p)})),createSymlinkSync:function(e,r,i){let a;try{a=n.lstatSync(r)}catch{}if(a&&a.isSymbolicLink()){const t=n.statSync(e),o=n.statSync(r);if(l(t,o))return}const u=s(e,r);e=u.toDst,i=c(u.toCwd,i);const f=t.dirname(r);return n.existsSync(f)||o(f),n.symlinkSync(e,r,i)}}}function Qt(){if(Cm)return Pm;Cm=1;const{createFile:e,createFileSync:t}=Wt(),{createLink:n,createLinkSync:r}=Xt(),{createSymlink:o,createSymlinkSync:i}=Jt();return Pm={createFile:e,createFileSync:t,ensureFile:e,ensureFileSync:t,createLink:n,createLinkSync:r,ensureLink:n,ensureLinkSync:r,createSymlink:o,createSymlinkSync:i,ensureSymlink:o,ensureSymlinkSync:i}}function Zt(){return Nm?xm:(Nm=1,xm={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:o}={}){const i=n?t:"";return JSON.stringify(e,r,o).replace(/\n/g,t)+i},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}})}function en(){if(Dm)return $m;Dm=1;const e=function(){if(Lm)return Am;let e;Lm=1;try{e=$t()}catch(s){e=Tr}const t=Lt(),{stringify:n,stripBom:r}=Zt(),o=t.fromPromise((async function(n,o={}){"string"==typeof o&&(o={encoding:o});const i=o.fs||e,s=!("throws"in o)||o.throws;let a,c=await t.fromCallback(i.readFile)(n,o);c=r(c);try{a=JSON.parse(c,o?o.reviver:null)}catch(u){if(s)throw u.message=`${n}: ${u.message}`,u;return null}return a})),i=t.fromPromise((async function(r,o,i={}){const s=i.fs||e,a=n(o,i);await t.fromCallback(s.writeFile)(r,a,i)}));return Am={readFile:o,readFileSync:function(t,n={}){"string"==typeof n&&(n={encoding:n});const o=n.fs||e,i=!("throws"in n)||n.throws;try{let e=o.readFileSync(t,n);return e=r(e),JSON.parse(e,n.reviver)}catch(s){if(i)throw s.message=`${t}: ${s.message}`,s;return null}},writeFile:i,writeFileSync:function(t,r,o={}){const i=o.fs||e,s=n(r,o);return i.writeFileSync(t,s,o)}}}();return $m={readJson:e.readFile,readJsonSync:e.readFileSync,writeJson:e.writeFile,writeJsonSync:e.writeFileSync}}function tn(){if(Um)return km;Um=1;const e=Lt().fromPromise,t=Dt(),n=$r,r=jt(),o=Ft().pathExists;return km={outputFile:e((async function(e,i,s="utf-8"){const a=n.dirname(e);return await o(a)||await r.mkdirs(a),t.writeFile(e,i,s)})),outputFileSync:function(e,...o){const i=n.dirname(e);t.existsSync(i)||r.mkdirsSync(i),t.writeFileSync(e,...o)}}}function nn(){if(Fm)return jm;Fm=1;const{stringify:e}=Zt(),{outputFile:t}=tn();return jm=async function(n,r,o={}){const i=e(r,o);await t(n,i,o)}}function rn(){if(Bm)return Mm;Bm=1;const{stringify:e}=Zt(),{outputFileSync:t}=tn();return Mm=function(n,r,o){const i=e(r,o);t(n,i,o)}}function on(){if(Vm)return Gm;Vm=1;const e=Lt().fromPromise,t=en();return t.outputJson=e(nn()),t.outputJsonSync=rn(),t.outputJSON=t.outputJson,t.outputJSONSync=t.outputJsonSync,t.writeJSON=t.writeJson,t.writeJSONSync=t.writeJsonSync,t.readJSON=t.readJson,t.readJSONSync=t.readJsonSync,Gm=t}function sn(){if(qm)return Hm;qm=1;const e=Dt(),t=$r,{copy:n}=Ht(),{remove:r}=qt(),{mkdirp:o}=jt(),{pathExists:i}=Ft(),s=Bt();return Hm=async function(a,c,u={}){const l=u.overwrite||u.clobber||!1,{srcStat:f,isChangingCase:p=!1}=await s.checkPaths(a,c,"move",u);await s.checkParentPaths(a,f,c,"move");const d=t.dirname(c);return t.parse(d).root!==d&&await o(d),async function(t,o,s,a){if(!a)if(s)await r(o);else if(await i(o))throw Error("dest already exists.");try{await e.rename(t,o)}catch(c){if("EXDEV"!==c.code)throw c;await async function(e,t,o){const i={overwrite:o,errorOnExist:!0,preserveTimestamps:!0};return await n(e,t,i),r(e)}(t,o,s)}}(a,c,l,p)}}function an(){function e(e,n,i){try{t.renameSync(e,n)}catch(s){if("EXDEV"!==s.code)throw s;return function(e,t,n){return r(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),o(e)}(e,n,i)}}if(Wm)return zm;Wm=1;const t=$t(),n=$r,r=Ht().copySync,o=qt().removeSync,i=jt().mkdirpSync,s=Bt();return zm=function(r,a,c){const u=(c=c||{}).overwrite||c.clobber||!1,{srcStat:l,isChangingCase:f=!1}=s.checkPathsSync(r,a,"move",c);return s.checkParentPathsSync(r,l,a,"move"),function(e){const t=n.dirname(e);return n.parse(t).root===t}(a)||i(n.dirname(a)),function(n,r,i,s){if(s)return e(n,r,i);if(i)return o(r),e(n,r,i);if(t.existsSync(r))throw Error("dest already exists.");return e(n,r,i)}(r,a,u,f)}}function cn(){if(Km)return Xm;Km=1;const e=Lt().fromPromise;return Xm={move:e(sn()),moveSync:an()}}function un(){return Jm?Ym:(Jm=1,Ym={...Dt(),...Ht(),...zt(),...Qt(),...on(),...jt(),...cn(),...tn(),...Ft(),...qt()})}function ln(e,t,n){switch(process.platform){case"win32":return vt("7zip",e);case"darwin":return pt("p7zip",e);case"linux":if(ht())return Et("p7zip",e);if(dt())return wt([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(mt())return it([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function fn(e){const t=e.split(".").pop();return"tar"===t?0:"gz"===t||"tgz"===t?1:"xz"===t||"txz"===t?2:"zip"===t?3:("7z"===t||"exe"===t||d(`Unknown archive type: ${t}. Defaulting to 7z`),4)}function pn(e){switch(e){case 0:case 1:case 2:return yn;case 3:return mn;default:return dn}}async function dn(e,t){const n=jr(e);if(/.*\.tar\..+$/.test(n)){const r=Ur(e);await hn(e,r);const o=n.slice(0,-3),i=Dr(r,o);await hn(i,r),await io(i);const s=o.slice(0,-4),a=Dr(r,s);m(`Moving ${a} to ${t}`),await ny.move(a,t,{overwrite:!0})}else await hn(e,t);return t}async function hn(e,t){m(`7z: extracting ${e} to ${t}`),await _(await async function(){return void 0===ry&&(null===Ea.sync("7z",{nothrow:!0})&&await ln("",0,process),ry="7z"),ry}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await D(t)}async function mn(e,t){return null!==Ea.sync("7z",{nothrow:!0})?dn(e,t):null!==Ea.sync("unzip",{nothrow:!0})?(await _("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await D(t),t):dn(e,t)}async function yn(e,t,n=0,r=[]){await async function(e){switch(m("Installing tar extraction dependencies"),e){case 1:"linux"===process.platform&&(ht()?(await Et("gzip"),await Et("tar")):dt()?await wt([{name:"gzip"},{name:"tar"}]):mt()&&await it([{name:"gzip"},{name:"tar"}]));break;case 2:"linux"===process.platform&&(ht()?(await Et("xz"),await Et("tar")):dt()?await wt([{name:"xz"},{name:"tar"}]):mt()&&await it([{name:"xz-utils"},{name:"tar"}]));break;default:throw Error(`Unsupported archive type: ${e} for tar extraction`)}}(fn(e));try{await ny.mkdirp(t)}catch{}try{await _("tar",["xf",e,"-C",t,"--strip-components="+n,...r],{stdio:"inherit"})}catch(o){"win32"===process.platform&&o.message.includes("Can't create '\\\\?\\C:")&&d(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`)}return await D(t),t}async function vn(e,t,n,r,o){m(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=process.env.RUNNER_TEMP??Ir(),process.env.RUNNER_TOOL_CACHE=process.env.RUNNER_TOOL_CACHE??Dr(Ir(),"setup-cpp","hostedtoolcache");const{url:i,binRelativeDir:s,binFileName:a,extractedFolderName:c,extractFunction:u}=await n(t,process.platform,o);if(oy)try{const n=Fh.find(e,t);if(n){const r=Dr(n,c),o=Dr(r,s);if(await ae(Dr(o,a)))return m(`${e} ${t} was found in the cache at ${o}.`),await de(o,wv),{installDir:r,binDir:o}}}catch{}const l=Dr(r,c),f=Dr(l,s),p=Dr(f,a);return await async function(e,t,n,r,o,i,s,a){if((await Promise.all([ae(e),ae(t)])).includes(!1))try{const e=await async function(e,t,n){m(`Download ${e} ${t}`);return await Bh((()=>{const e=Dr(process.env.RUNNER_TEMP??Ir(),`${Date.now()}-${jr(n)}`);return Fh.downloadTool(n,e)}),{name:n,max:4,backoffBase:2e3,report:e=>m(e)})}(n,r,o);m(`Extracting ${e} to ${i}`);const t=s??pn(fn(o));await t(e,i)}catch(c){throw Error(`Failed to download ${n} ${r} ${a} from ${o}: ${c}`)}if(m(`Add ${e} to PATH`),await de(e,wv),!(await ae(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await so(t,"755")}catch(c){d(`Failed to make ${t} executable: ${c}`)}}(f,p,e,t,i,r,u,o),await async function(e,t,n){oy&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==br("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await Fh.cacheDir(e,t,n))}(r,e,t),{installDir:l,binDir:f}}function wn(e,t,n){const r=hh(e)??e;switch(t){case"win32":{const t=mh(r,"v3.19.6");let o;yh.includes(n)?o=t?"win64-x64":"windows-x86_64":vh.includes(n)?o=t?"win32-x86":"windows-i386":wh.includes(n)?o="windows-arm64":(m(`Trying unsupported arch '${n}' for cmake on Windows`),o="windows-"+n);const i=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:Ot("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const t=`cmake-${e}-${mh(r,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:Ot("cmake"),extractedFolderName:t,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`}}case"linux":{const t=mh(r,"v3.19.8");let o;wh.includes(n)?o=t?"Linux-aarch64":"linux-aarch64":yh.includes(n)?o=t?"Linux-x86_64":"linux-x86_64":(m(`Trying unsupported arch '${n}' for cmake on Linux`),o="linux-"+n);const i=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:Ot("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function En(e,t,n){return vn("cmake",e,wn,t,n)}async function gn(e,t,n=Oy){const r=await async function(e,t=Oy){try{const n=await gy.getExecOutput(e,["--version"]),r=n.stdout||n.stderr||"",o=r.trim().match(t)?.[1];return hh(o)??void 0}catch(n){return void console.error(n)}}(e,n);if(void 0===r||""===t)return!1;try{return-1!==_y(r,t)}catch{return by(r,t)}}function _n(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}function bn(e,t,n=null){return On(t)?Sn(e,n)??"":t}function Sn(e,t=null){const n=Ry()[e];if(void 0===n)return;if("string"==typeof n)return n;const r=n[process.platform]??n.else;if(void 0===r)throw Error(`Platform "${process.platform}" not found in versions data for tool "${e}"`);if("string"==typeof r)return r;const o=r,i=mt()?"ubuntu":ht()?"archlinux":"else",s=o[i]??o.else;if(void 0===s)throw Error(`Distro "${i}" not found in versions data for tool "${e}"`);if("string"==typeof s)return s;const a=s,c=null!==t?function(e,t){const n=e[0],r=Object.keys(t).map((e=>Number.parseInt(e,10))).filter((e=>!Number.isNaN(e))).sort(((e,t)=>t-e)).find((e=>n>=e));return void 0!==r?t[r]??t.else:t.else}(t,a):a.else;if(void 0===c)throw Error(`Architecture "${process.arch}" not found in versions data for tool "${e}"`);return"string"==typeof c?c:c[process.arch]??c.else}function On(e){return"true"===e||void 0===e}async function Rn(e,t,n){const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let o,i=await In(t);if(void 0!==i){const e=Ur(i);o={bin:i,installDir:e,binDir:e}}else{if(Iy)try{m("Installing python in GitHub Actions");const{setupActionsPython:e}=await import("./assets/actions_python-NQlJj7Cn.mjs");if(await e(r,t,n),i=await In(t),void 0===i)throw Error("Python binary could not be found");const s=Ur(i);o={bin:i,installDir:s,binDir:s}}catch(s){d(""+s)}void 0===o&&(o=await async function(e,t){let n;switch(process.platform){case"win32":{e?await vt("python3",t,["--params=/InstallDir:"+e]):await vt("python3",t);const r=await In(e);if(void 0===r)throw Error("Python binary could not be found");const o=Ur(r);await de(o,wv),n={installDir:o,binDir:o,bin:r};break}case"darwin":{n=await pt("python3",t);const e=await _("brew",["--prefix","python"],{stdio:"pipe"}),r=Dr(e.stdout,"libexec","bin");await de(r,wv);break}case"linux":if(ht())n=await Et("python",t);else if(dt())n=await wt([{name:"python3",version:t}]);else{if(!mt())throw Error("Unsupported linux distributions");n=await it([{name:"python3",version:t},{name:"python-is-python3"}])}break;default:throw Error("Unsupported platform")}return n}(t,r))}if(void 0===i||void 0===o.bin){if(i=await In(t),void 0===i)throw Error("Python binary could not be found");o={bin:i,installDir:Ur(i),binDir:Ur(i)}}return o}(e,t,n);Zr(void 0!==r.bin);const o=r.bin;await async function(e){if(await async function(e){try{return await _(e,["-m","venv","-h"],{stdio:"ignore"}),!0}catch{}return!1}(e))m("venv module already installed.");else try{await Un("venv")}catch(t){m(`Failed to install venv: ${""+t}. Ignoring...`)}}(o);const i=await async function(e){const t=await Pn();return void 0===t?(m("pip was not found. Installing pip"),await async function(e){await xn(e)||(await Un("pip"),await xn(e))}(e),Pn()):t}(o);if(void 0===i)throw Error("pip was not installed correctly");return await async function(e){try{if(!(await kn(e)))try{await Un("pipx",ht()),await Ln(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){throw Error("pipx was not installed completely: "+t)}if(await kn(e))return void(await _(e,["-m","pipx","ensurepath"],{stdio:"inherit"}));if(await async function(){return null!==await Ea("pipx",{nothrow:!0})}())return h("pipx module not found. Trying to install with pipx binary..."),void(await _("pipx",["ensurepath"],{stdio:"inherit"}));throw Error("pipx module or pipx binary not found. Corrput pipx installation.")}catch(t){h(`Failed to install pipx: ${""+t}. Ignoring...`)}}(o),await async function(e){try{await Ln(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await Ln(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){m(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(o),r}async function In(e){for(const t of["python","python3"]){const n=await Tn(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=Hr(Rr()).root,t=(await ao(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await Tn(t,Dr(e,n));if(void 0!==r)return r}}}async function Tn(e,t){try{const n=Sn("python");if(void 0!==t){const r=Dr(t,Ot(e));if(await ae(r)&&await gn(r,n))return r}const r=await Ea(e,{nothrow:!0,all:!0})??[];for(const e of r)if(await gn(e,n))return e}catch{}}async function Pn(){for(const e of["pip3","pip"]){const t=await Cn(e);if(void 0!==t)return t}}async function Cn(e){try{const t=Sn("pip"),n=await Ea(e,{nothrow:!0,all:!0})??[];for(const e of n)if(await gn(e,t))return e}catch{}}async function xn(e){try{return await _(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){m(""+t);try{return await _(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){m(""+n)}}return!1}function Nn(){if(!("version"in Or)||"function"!=typeof Or.version)return null;const e=Or.version().match(/(\d+)\.(\d+)\.(\d+)/);return null===e?null:[Number.parseInt(e[1],10),Number.parseInt(e[2],10),Number.parseInt(e[3],10)]}async function An(e,t,n={}){return Ln(await async function(e){if(void 0!==$y)return $y;const t=e??bn("python",void 0,await Ny());return $y=(await Rn(t,"",process.arch)).bin,$y}(n.pythonVersion),e,t,n)}async function Ln(e,t,n,r={}){const{usePipx:o=!0,user:i=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=o&&!a&&await kn(e),u=c?"pipx":"pip",l=t.replace(/\[.*]/g,"").trim();if(!s){const t=c?await async function(e,t){try{const n=await _(e,["-m","pipx","list","--json"],{stdio:"ignore",reject:!1});if(0!==n.exitCode||"string"!=typeof n.stdout)return!1;const r=JSON.parse(n.stdout);if(t in r.venvs)return!0;for(const e of Object.values(r.venvs))if(e.metadata.main_package.package_or_url===t||e.metadata.main_package.package===t)return!0}catch{}return!1}(e,l):await async function(e,t){try{return 0===(await _(e,["-m","pip","-qq","show",t],{stdio:"ignore",reject:!1})).exitCode}catch{return!1}}(e,l);if(t)return{binDir:c?await $n():await Dn(e,l)}}const f=await async function(e,t){return 0===(await _(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode}(e,l);if(f)try{Cd.info(`Installing ${t} ${n??""} via ${u}`);const r=void 0!==n&&""!==n?`${t}==${n}`:t,o=s?c?["upgrade"]:["install","--upgrade"]:["install"],a=!c&&i?["--user"]:[],l=process.env;c&&i&&(l.PIPX_HOME=await Ay(),l.PIPX_BIN_DIR=await Ly()),b(e,["-m",u,...o,...a,r],{stdio:"inherit",env:l})}catch(p){if(Cd.info(`Failed to install ${t} via ${u}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await Un(t))throw Error(`Failed to install ${t} via ${u}: ${p}.`)}else if(null===await Un(t))throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);return{binDir:c?await $n():await Dn(e,l)}}function $n(){return Ly()}async function Dn(e,t){const n=await Ty(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>ae(Dr(e,Ot(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=Ea.sync(Ot(t),{nothrow:!0});return null!==r?Ur(r):e[e.length-1]}(n,t);return await de(r,wv),r}async function kn(e){return 0===(await _(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}function Un(e,t=!0){if("linux"===process.platform){if(Cd.info(`Installing ${e} via the system package manager`),ht())return Et(t?"python-"+e:e);if(dt())return wt([{name:t?"python3-"+e:e}]);if(mt())return it([{name:t?"python3-"+e:e}])}else if("darwin"===process.platform)return["venv"].includes(e)?null:pt(e);return null}function jn(e,t,n){return An("cmakelang[YAML]",e)}async function Fn(e,t,n){switch(process.platform){case"win32":return await vt("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await de(e,wv),{binDir:e}}throw Error("Unsupported platform")}();case"darwin":return pt("graphviz",e);case"linux":if(ht())return Et("graphviz",e);if(dt())return wt([{name:"graphviz",version:e}]);if(mt())return it([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function Mn(e,t){const{ArchiveHdi:n}=await import("./assets/hdi-BTtpGNI1.mjs"),r=new n(e);await r.read((async e=>{await e.extract(Dr(t,e.path))}))}function Bn(e,t,n){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:Ot("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:Ot("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}case"darwin":{const t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:Ot("doxygen"),extractedFolderName:t,extractFunction:Mn,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Gn(){if("darwin"===process.platform)try{const e=await gy.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await fe("SDKROOT",t.trim(),wv):p("SDKROOT not set")}catch(e){p(e)}}async function Vn(){const e=Dr(By,"gcc_matcher.json");if(!(await ae(e)))return d("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");m("::add-matcher::"+e)}async function Hn(e){const t=await co(e,"utf-8");return JSON.parse(t)}function qn(e,t){const n=Object.keys(e),r=new Map;if(void 0===t.filterMapTag)for(const a of n)r.set(a,a);else for(const a of n){const e=t.filterMapTag(a);void 0!==e&&r.set(e,a)}if(0===r.size)return;const o=t.versionSatisfies??by,i=function(e){if(null===Sy(e))try{const t=hh(e);if(null!==t){const n=/^[<=>^~]/.test(t.version)?t.version:"^"+t.version;return m(`Coerced version '${e}' to '${n}'`),n}}catch(t){}return e}(t.version),s=[];for(const[a,c]of r.entries())o(a,i)&&s.push(c);if(0!==s.length)for(const a of s){let n=e[a];if(void 0===n)continue;if(void 0!==t.filterName&&(n=n.filter(t.filterName)),0===n.length)continue;const r=zn(a,n,t);if(void 0!==r)return r}}function zn(e,t,n){if(!(void 0!==n.keywords&&0!==n.keywords.length||void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length))return{tag:e,name:t[0]};let r=[];if(void 0!==n.keywords&&0!==n.keywords.length)for(const o of t)n.keywords.every((e=>!("string"!=typeof e||!o.includes(e))||Array.isArray(e)&&e.some((e=>o.includes(e)))))&&r.push(o);else r=t;if(0!==r.length){if(void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length){const t=r.map((e=>{let t=0;for(const r of n.optionalKeywords)("string"==typeof r&&e.includes(r)||Array.isArray(r)&&r.some((t=>e.includes(t))))&&t++;return t})),o=Math.max(...t);return{tag:e,name:r[t.indexOf(o)]}}return{tag:e,name:r[0]}}}async function Wn(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await vt("gcc-arm-embedded",e));try{r=await vn("g++",e,Xn,t,n)}catch(o){m(`Failed to download g++ binary. ${o}. Falling back to chocolatey.`),r=await async function(e,t){let n;if(await vt("mingw",e),"x64"===t&&await ae("C:/tools/mingw64/bin")?(n="C:/tools/mingw64/bin",await de(n,wv)):"ia32"===t&&await ae("C:/tools/mingw32/bin")?(n="C:/tools/mingw32/bin",await de(n,wv)):await ae((process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(n=(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin"),void 0!==n)return{binDir:n}}(e,n)}break;case"linux":if(ht())r=await Et("mingw-w64-gcc",e);else if(dt())r=await wt([{name:"mingw64-gcc",version:e}]);else{if(!mt())throw Error("Unsupported Linux distro for "+n);r=await it([{name:"mingw-w64",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}return void 0!==r&&await async function(e){const t=[];"win32"===process.platform&&t.push(fe("CC",Ot(e+"/gcc"),wv),fe("CXX",Ot(e+"/g++"),wv)),jy&&await Vn(),await Promise.all(t)}(r.binDir),r}async function Xn(e,t,n){if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const r=await Hn(Dr(Fy,"github_brechtsanders_winlibs_mingw.json")),o=Kn(e),i=Yn(e),s=Jn(e),a=qn(r,{version:e,keywords:[{x64:"x86_64",ia32:"i386"}[n]??n],filterName:e=>!(void 0!==o&&o!==Kn(e)||void 0!==i&&i!==Yn(e)||void 0!==s&&s!==Jn(e)),versionSatisfies:(e,t)=>{const n=hh(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return by(n,t)&&(void 0===o||o===Kn(e))&&(void 0===i||i===Yn(e))}});if(void 0===a)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:Ot("g++"),extractedFolderName:"mingw64",extractFunction:dn,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${a.tag}/${a.name}`}}function Kn(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function Yn(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function Jn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function Qn(e,t,n,r=40){let o;switch(process.platform){case"win32":o=await Wn(e,t,n);break;case"darwin":o=await pt("gcc",e);break;case"linux":if(ht())o=await Et("gcc",e);else if(dt())o=await wt([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]);else if(mt())if(""===e)o=await it([{name:"gcc"},{name:"g++"}]);else try{o=await it([{name:"gcc",version:e},{name:"g++",version:e}])}catch(i){o=await it([{name:"gcc",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}},{name:"g++",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}if(void 0!==o)return await async function(e,t,n=40){if("win32"===process.platform)return;const r=[];{let o=e;""===e&&(o=await async function(e,t){try{let n="gcc";if(await ae(e+"/gcc"))n=e+"/gcc";else{const t=(await ao(e)).sort(((e,t)=>function(e,t){const n=hh(e),r=hh(t);return null!==n&&null!==r?r.compare(n):t.localeCompare(e)}(e.match(/^gcc-?(.*)(\.exe)?$/)?.[1]??"",t.match(/^gcc-?(.*)(\.exe)?$/)?.[1]??"")));for(const r of t)if(r.startsWith("gcc")){n=`${e}/${r}`;break}}const{stdout:r}=await _(n,["--version"],{stdio:"pipe"}),o=r.match(/gcc.* \(.*\) ([\d.]+)/);return null!==o?o[1]:(d("Failed to parse gcc version from: "+r),t)}catch(i){return p("Failed to get gcc version: "+i),t}}(t,o),m("Using gcc version "+o));const s=Uy(hh(o)??o);5>s?(r.push(fe("CC",`${t}/gcc-${o}`,wv),fe("CXX",`${t}/g++-${o}`,wv)),mt()&&r.push(Ye("cc",`${t}/gcc-${o}`,wv,n),Ye("cxx",`${t}/g++-${o}`,wv,n),Ye("gcc",`${t}/gcc-${o}`,wv,n),Ye("g++",`${t}/g++-${o}`,wv,n))):(r.push(fe("CC",`${t}/gcc-${s}`,wv),fe("CXX",`${t}/g++-${s}`,wv)),mt()&&r.push(Ye("cc",`${t}/gcc-${s}`,wv,n),Ye("cxx",`${t}/g++-${s}`,wv,n),Ye("gcc",`${t}/gcc-${s}`,wv,n),Ye("g++",`${t}/g++-${s}`,wv,n)))}r.push(Gn()),My&&await Vn(),await Promise.all(r)}(e,o.binDir,r),o}function Zn(e){const t=Sy(e),n=null!==t?Uy(t):e;return fe("GCOV",""!==n?"gcov-"+n:"gcov",wv)}async function er(e,t,n){const{keywords:r,optionalKeywords:o}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),yh.includes(t)?(r.push("64"),r.push("x86_64")):(m(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),yh.includes(t)?r.push("x86_64"):wh.includes(t)?r.push("arm64"):(m(`Using arch ${t} for infer`),n.push(t));break;default:m(`Using ${e} ${t} for infer`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(t,n),i=qn(await Hn(Dr(Gy,"github_facebook_infer.json")),{version:e,keywords:r,optionalKeywords:o,filterMapTag:e=>e.replace(/^v/,"")});if(void 0!==i)return{url:`https://github.com/facebook/infer/releases/download/${i.tag}/${i.name}`,extractedFolderName:""+jr(i.name,".tar.xz"),binRelativeDir:"bin",binFileName:Ot("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${o}`)}function tr(e,t,n){const r=function(e,t){switch(e){case"win32":return yh.includes(t)||vh.includes(t)?"win":wh.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return yh.includes(t)||vh.includes(t)?"linux":wh.includes(t)?"linux-aarch64":"linux";default:throw Error(`Unsupported platform '${e}'`)}}(t,n);return{binRelativeDir:"",binFileName:Ot("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function nr(e,t,n){return vn("ninja",e,tr,t,n)}function rr(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:Ot("kcov")}}function or(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:Ot("kcov"),extractFunction:ir}}async function ir(e,t){const n=await yn(e,t,1),r=await async function(){let e=Ea.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await En(bn("cmake",void 0,await Ny()),Dr(ce("~"),"cmake"),"");e=Dr(t,"cmake")}return null===Ea.sync("ninja",{nothrow:!0})&&await nr(bn("ninja",void 0,await Ny()),Dr(ce("~"),"ninja"),""),e}();"linux"===process.platform&&(ht()?await Promise.all([Et("libdwarf"),Et("libcurl-openssl")]):dt()?await wt([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):mt()&&await it([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==Ea.sync("patch",{nothrow:!0})){const e=Dr(Vy,"gcc13.patch");await _("patch",["-N","-p1","-i",e],{cwd:n,stdio:"inherit"})}else m("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13")}catch{}const o=Dr(n,"build");return await _(r,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await _(r,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function sr(){"darwin"===process.platform&&(null!==await Ea("clang",{nothrow:!0})&&null!==await Ea("clang++",{nothrow:!0})&&(h("Assuming clang is an Apple Clang compiler"),await Promise.all([fe("CC","clang",wv),fe("CXX","clang++",wv)])),Po("Apple Clang automatic installation is not supported yet"))}async function ar(e,t,n,r,o,i,s){void 0!==t&&await ae(t)&&(m(`Adding ${t} to PATH`),await fe("VCTargetsPath",t,wv)),await Yy.setupMSVCDevCmd(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}}(n),o,r,i,s,e)}async function cr(e,t,n,r,o,i,s,a=12e5){Cd.startGroup(`Installing ${e} ${t}`);try{await function(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:i={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t;let s,a;const c=new Promise(((c,u)=>{if("number"!=typeof n||1!==Math.sign(n))throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:e}=t;e.aborted&&u(Wy(e)),a=()=>{u(Wy(e))},e.addEventListener("abort",a,{once:!0})}if(n===1/0)return void e.then(c,u);const l=new Hy;s=i.setTimeout.call(void 0,(()=>{if(r)try{c(r())}catch(t){u(t)}else"function"==typeof e.cancel&&e.cancel(),!1===o?c():o instanceof Error?u(o):(l.message=o??`Promise timed out after ${n} milliseconds`,u(l))}),n),(async()=>{try{c(await e)}catch(t){u(t)}})()})).finally((()=>{c.clear(),a&&t.signal&&t.signal.removeEventListener("abort",a)}));return c.clear=()=>{i.clearTimeout.call(void 0,s),s=void 0},c}(async function(e,t,n,r,o,i){const s=hv.includes(e);let a;if("vcvarsall"===e)await ar(bn(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await ut({rcOptions:wv});else{const i=Dr(o,s?"llvm":e),c=bn(e,t,n),u=mv[e];a=await u(c,i,r)}i.push(Sr(e,a))}(e,t,n,r,o,i),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`})}catch(c){p(c),c instanceof Error&&void 0!==c.stack&&p(c.stack),s.push(e+" failed to install")}Cd.endGroup()}async function ur(e,t,n){const r=await async function(e,t,n){const{keywords:r,optionalKeywords:o}=await async function(e,t){const n=[],r=[];switch(e){case"win32":{r.push(".exe",".exe");const e=[];yh.includes(t)?(e.push("win64"),r.push(["x86_64","X64"])):vh.includes(t)?e.push("win32"):wh.includes(t)?e.push("woa64"):(m(`Using arch ${t} for LLVM`),e.push(t)),e.push("windows","Windows"),n.push(e);break}case"linux":{const e=["linux","Linux"];if(mt()){r.push("ubuntu");const e=await Ny();if(null!==e){r.push(""+e[0]);const t=10>e[1]?"0"+e[1]:""+e[1];r.push(`${e[0]}.${t}`),r.push(`${e[0]}.${t}.${e[2]}`)}}else dt()&&r.push("rhel");yh.includes(t)?n.push(["x86_64","X64"]):vh.includes(t)?n.push("x86"):wh.includes(t)?n.push("aarch64"):Eh.includes(t)?n.push("armv7a"):gh.includes(t)?n.push("powerpc64le"):_h.includes(t)?n.push("sparc64"):(m(`Using arch ${t} for LLVM`),n.push(t)),n.push(e);break}case"darwin":n.push(["apple","macos","macOS"]),yh.includes(t)?r.push(["x86_64","X64"]):wh.includes(t)?r.push(["arm64","ARM64"]):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),yh.includes(t)?n.push("amd64"):vh.includes(t)?n.push("i386"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),yh.includes(t)?n.push("amd64"):bh.includes(t)?n.push("sparcv9"):(m(`Using arch ${t} for LLVM`),n.push(t));break;default:m(`Using ${e} ${t} for LLVM`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(e,t),i=qn(await Hn(Dr(Qy,"github_llvm_llvm-project.json")),{version:n,keywords:r,optionalKeywords:o,filterMapTag:e=>e.replace(/^llvmorg-/,"")});if(void 0!==i)return`https://github.com/llvm/llvm-project/releases/download/${i.tag}/${i.name}`;const s=qn(await Hn(Dr(Qy,"llvm_org_releases.json")),{version:n,keywords:r,optionalKeywords:o});if(void 0!==s)return`https://releases.llvm.org/${s.tag}/${s.name}`;throw Error(`No asset found for version ${n} matching ${r} and ${o}`)}(t,n,e);return m("Downloading LLVM from "+r),{url:r,extractedFolderName:"",binRelativeDir:"bin",binFileName:Ot("clang"),extractFunction:"win32"===t?pn(fn(r)):(e,t)=>yn(e,t,1)}}async function lr(e,t,n){const r=await tv(e,t,n);return await async function(e,t){const n=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",o=hr(t),i=[fe("CC",Ot(e+"/bin/clang"),wv),fe("CXX",Ot(e+"/bin/clang++"),wv),fe("LLVM_PATH",e,wv),fe("LD_LIBRARY_PATH",`${n}${kr}${e}/lib`,wv),fe("DYLD_LIBRARY_PATH",`${r}${kr}${e}/lib`,wv),fe("LLVM_LDFLAGS","-L"+_n(e+"/lib"),wv),fe("LLVM_CPPFLAGS","-I"+_n(e+"/include"),wv),await ae(`${e}/lib/clang/${t}/include`)?fe("LLVM_CPATH",`${e}/lib/clang/${t}/include`,wv):await ae(`${e}/lib/clang/${o}/include`)?fe("LLVM_CPATH",`${e}/lib/clang/${o}/include`,wv):Promise.resolve(),fe("LIBRARY_PATH",e+"/lib",wv),Gn()];if(mt()){const t=60;i.push(Ye("cc",e+"/bin/clang",wv,t),Ye("cxx",e+"/bin/clang++",wv,t),Ye("clang",e+"/bin/clang",wv),Ye("clang++",e+"/bin/clang++",wv),Ye("lld",e+"/bin/lld",wv),Ye("ld.lld",e+"/bin/ld.lld",wv),Ye("llvm-ar",e+"/bin/llvm-ar",wv))}await Promise.all(i)}(r.installDir??t,e),r}function fr(e,t,n){return dr(e,t,n,Jy.ClangFormat)}function pr(e,t,n){return dr(e,t,n)}async function dr(e,t,n,r=Jy.All){const o=hr(e);if(mt())try{return await async function(e,t=0){const n="/usr/lib/llvm-"+e;await it([{name:"ca-certificates"}]);const r=new Nd.DownloaderHelper("https://apt.llvm.org/llvm.sh",Ir(),{fileName:"llvm.sh"});r.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await r.start();const o=await co(r.getDownloadPath(),"utf-8"),i=Dr(Ir(),"llvm-setup-cpp.sh"),s=await async function(e,t,n,r){let o=function(e){return"1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?e.replace(/set -eux/g,"set -eu"):e}(e);return o=function(e){return e.replace(/add-apt-repository\s*(-y)?\s*"\${REPO_NAME}"/g,`add-apt-repository -y -n "\${REPO_NAME}"\napt-get update -o ${$d} -y`)}(o),o=function(e,t,n){return 1===e?t.replace(/ -y \$PKG/g," -y clang-format-"+n):t}(r,o,n),o=await async function(e){let t=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${$d} -y --fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map((async e=>{const n=e.replace("$LLVM_VERSION","*");await async function(e){try{const{stdout:t}=await _("dpkg",["-l",e],{env:Je("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("ii")))}catch{return!1}}(n)&&(Co("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(o),o=function(e){return Qe()?e.replace(/apt-get/g,"nala"):e}(o),await uo(t,o),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}]}(o,i,e,t);return await it(s),await so(i,"755"),await N("bash",[i,""+e,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:12e5}),await de(n+"/bin",wv),{installDir:""+n,binDir:n+"/bin",bin:n+"/bin/clang++"}}(o,r)}catch(s){m(`Failed to install llvm via system package manager ${s}. Trying to remove the repository`);try{x(Dr(ev,"llvm_repo_remove.bash"),[""+o])}catch(a){m("Failed to remove llvm repository "+a)}}const i=await vn("llvm",e,ur,t,n);return await nv(o),i}function hr(e){const t=function(e){if(null===Sy(e))try{const t=hh(e);if(null!==t)return m(`Coerced version '${e}' to '${t}'`),t.version}catch(t){}return e}(e);return Number.parseInt(t.split(".")[0],10)}async function mr(){if(Zy){const e=Dr(ev,"llvm_matcher.json");if(!(await ae(e)))return d("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");m("::add-matcher::"+e)}}async function yr(e,t,n,r,o,i){if("win32"!==process.platform)return;const s=Yy.vsversion_to_versionnumber(e);m(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=Yy.findVcvarsall(s);u=!0,m("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===s?(a="14.0",await vt("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),c="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===s?(a="14.16",await vt("visualstudio2017buildtools","15.9.41.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===s?(a="14.29",await vt("visualstudio2019buildtools","16.11.7.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===s?(a=void 0,await vt("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):p(`The given MSVC versions ${e} is not supported yet.`)}catch(l){p(l)}await ar(s,c,n,a,r,o,i),ov&&await async function(){const e=Dr(iv,"msvc_matcher.json");if(!(await ae(e)))return d("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");m("::add-matcher::"+e)}()}async function vr(e,t,n){if("win32"===process.platform)return await vt("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await de(e,wv),e}()}}function wr(e,t,n){return{url:Er(t,n,e),binRelativeDir:"",binFileName:Ot("pwsh"),extractedFolderName:""}}function Er(e,t,n){switch(e){case"win32":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/PowerShell-${n}-${["ia32","x86","i386","x32"].includes(t)?"win-x86":"win-x64"}.zip`;case"darwin":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${["arm","arm64"].includes(t)?"osx-arm64":"osx-x64"}.tar.gz`;case"linux":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${{arm64:"linux-arm64",arm:"linux-arm64",arm32:"linux-arm32",aarch64:"linux-arm64",x64:"linux-x64"}[t]??"linux-x64"}.tar.gz`;default:throw Error(`Unsupported platform '${e}'`)}}async function gr(e,t,n){try{return await vn("pwsh",e,wr,t,n)}catch(r){return p(`Failed to setup pwsh via download: ${r}. Trying package managers...`),async function(e){switch(process.platform){case"win32":{await vt("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await de(t,wv),{binDir:t}}case"darwin":return pt("powershell",e,{cask:!0,overwrite:!1});case"linux":if(ht())return Et("powershell-bin",e,"yay");if(dt())return await wt([{name:"curl"}]),x("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),wt([{name:"powershell",version:e}]);if(mt()){await it([{name:"curl"}]);const t=await Ny();return x("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),x("dpkg",["-i","packages-microsoft-prod.deb"]),it([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}(e)}}function _r(e,t,n){const r=function(e){return"win32"===e?"windows":e}(t),o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}}(n),i="win32"===t?"zip":"tar.gz";return{binRelativeDir:"",binFileName:Ot("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${o}.${i}`}}function br(e){const t=Cd.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function Sr(e,t){let n=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(n+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(n+="\n- The binary directory is "+t.binDir)),n}import Or,{homedir as Rr,tmpdir as Ir}from"os";import Tr,{promises as Pr,mkdir as Cr,stat as xr,statSync as Nr,mkdirSync as Ar}from"fs";import Lr from"crypto";import $r,{join as Dr,delimiter as kr,dirname as Ur,basename as jr,extname as Fr,normalize as Mr,sep as Br,relative as Gr,resolve as Vr,parse as Hr}from"path";import*as qr from"http";import zr from"http";import*as Wr from"https";import Xr from"https";import"net";import Kr from"tls";import Yr from"events";import Jr from"util";import Qr from"child_process";import Zr from"assert";import eo from"buffer";import to from"stream";import{debuglog as no}from"node:util";import ro from"node:process";import oo,{rm as io,chmod as so,readdir as ao,readFile as co,writeFile as uo}from"fs/promises";import{Buffer as lo}from"node:buffer";import fo from"node:path";import po,{ChildProcess as ho}from"node:child_process";import{fileURLToPath as mo}from"node:url";import yo,{constants as vo}from"node:os";import{createWriteStream as wo,readFileSync as Eo,createReadStream as go,promises as _o}from"node:fs";import bo from"process";import So from"string_decoder";import Oo from"timers";import Ro,{fileURLToPath as Io}from"url";import To from"constants";import{error as Po,info as Co}from"console";var xo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},No={};const Ao=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{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"}];var Lo,$o=(Lo||(Lo=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=Ao,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,e.id=null,n.forEach((function(n){const o=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));e[n.constant]=o,o&&(e.name=n.name,e.isPR=function(e){switch(typeof e.pr){case"string":return!!r[e.pr];case"object":return"env"in e.pr?"any"in e.pr?e.pr.any.some((function(t){return r[e.pr.env]===t})):e.pr.env in r&&r[e.pr.env]!==e.pr.ne:"any"in e.pr?e.pr.any.some((function(e){return!!r[e]})):t(e.pr);default:return null}}(n),e.id=n.constant)})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(No)),No);const Do=e($o);var ko,Uo,jo={},Fo={},Mo={},Bo={};const Go=new Uint8Array(256);let Vo=Go.length;const Ho=/^(?:[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,qo=[];for(let Ev=0;256>Ev;++Ev)qo.push((Ev+256).toString(16).substr(1));let zo,Wo,Xo=0,Ko=0;const Yo=a("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Lr.createHash("md5").update(e).digest()})),Jo=a("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Lr.createHash("sha1").update(e).digest()})),Qo=t(Object.freeze(Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:s,stringify:i,v1:function(e,t,n){let o=t&&n||0;const s=t||Array(16);let a=(e=e||{}).node||zo,c=void 0!==e.clockseq?e.clockseq:Wo;if(null==a||null==c){const t=e.random||(e.rng||r)();null==a&&(a=zo=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==c&&(c=Wo=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Ko+1;const f=u-Xo+(l-Ko)/1e4;if(0>f&&void 0===e.clockseq&&(c=c+1&16383),(0>f||u>Xo)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Xo=u,Ko=l,Wo=c,u+=122192928e5;const p=(1e4*(268435455&u)+l)%4294967296;s[o++]=p>>>24&255,s[o++]=p>>>16&255,s[o++]=p>>>8&255,s[o++]=255&p;const d=u/4294967296*1e4&268435455;s[o++]=d>>>8&255,s[o++]=255&d,s[o++]=d>>>24&15|16,s[o++]=d>>>16&255,s[o++]=c>>>8|128,s[o++]=255&c;for(let r=0;6>r;++r)s[o+r]=a[r];return t||i(s)},v3:Yo,v4:function(e,t,n){const o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;16>e;++e)t[n+e]=o[e];return t}return i(o)},v5:Jo,validate:o,version:function(e){if(!o(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var Zo,ei={};class ti extends URL{_decodedUsername;_decodedPassword;constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var ni,ri,oi,ii,si,ai,ci,ui,li={},fi=(oi||(oi=1,ri=function(){function e(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,r,o,i){for(var s=n(r,o,i),a=0,c=t.requests.length;c>a;++a){var u=t.requests[a];if(u.host===s.host&&u.port===s.port)return t.requests.splice(a,1),void u.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function t(t,n){var o=this;e.prototype.createSocket.call(o,t,(function(e){var s=t.request.getHeader("host"),a=r({},o.options,{socket:e,servername:s?s.replace(/:.*$/,""):t.host}),c=i.connect(0,a);o.sockets[o.sockets.indexOf(e)]=c,n(c)}))}function n(e,t,n){return"string"==typeof e?{host:e,port:t,localAddress:n}:e}function r(e){for(var t=1,n=arguments.length;n>t;++t){var r=arguments[t];if("object"==typeof r)for(var o=Object.keys(r),i=0,s=o.length;s>i;++i){var a=o[i];void 0!==r[a]&&(e[a]=r[a])}}return e}if(ni)return li;ni=1;var o,i=Kr,s=zr,a=Xr,c=Yr,u=Jr;return li.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},li.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},li.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},li.httpsOverHttps=function(n){var r=new e(n);return r.request=a.request,r.createSocket=t,r.defaultPort=443,r},u.inherits(e,c.EventEmitter),e.prototype.addRequest=function(e,t,o,i){var s=this,a=r({request:e},s.options,n(t,o,i));this.maxSockets>s.sockets.length?s.createSocket(a,(function(t){function n(){s.emit("free",t,a)}function r(e){s.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)})):s.requests.push(a)},e.prototype.createSocket=function(e,t){function n(n,r,a){var u;return c.removeAllListeners(),r.removeAllListeners(),200!==n.statusCode?(o("tunneling socket could not be established, statusCode=%d",n.statusCode),r.destroy(),(u=Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",u),void i.removeSocket(s)):a.length>0?(o("got illegal response body from proxy"),r.destroy(),(u=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",u),void i.removeSocket(s)):(o("tunneling connection has established"),i.sockets[i.sockets.indexOf(s)]=r,t(r))}var i=this,s={};i.sockets.push(s);var a=r({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(a.localAddress=e.localAddress),a.proxyAuth&&(a.headers=a.headers||{},a.headers["Proxy-Authorization"]="Basic "+new Buffer(a.proxyAuth).toString("base64")),o("making CONNECT request");var c=i.request(a);c.useChunkedEncodingByDefault=!1,c.once("response",(function(e){e.upgrade=!0})),c.once("upgrade",(function(e,t,r){process.nextTick((function(){n(e,t,r)}))})),c.once("connect",n),c.once("error",(function(t){c.removeAllListeners(),o("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),i.removeSocket(s)})),c.end()},e.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},o=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},li.debug=o,li}()),ri);(si=ii||(ii={}))[si.OK=200]="OK",si[si.MultipleChoices=300]="MultipleChoices",si[si.MovedPermanently=301]="MovedPermanently",si[si.ResourceMoved=302]="ResourceMoved",si[si.SeeOther=303]="SeeOther",si[si.NotModified=304]="NotModified",si[si.UseProxy=305]="UseProxy",si[si.SwitchProxy=306]="SwitchProxy",si[si.TemporaryRedirect=307]="TemporaryRedirect",si[si.PermanentRedirect=308]="PermanentRedirect",si[si.BadRequest=400]="BadRequest",si[si.Unauthorized=401]="Unauthorized",si[si.PaymentRequired=402]="PaymentRequired",si[si.Forbidden=403]="Forbidden",si[si.NotFound=404]="NotFound",si[si.MethodNotAllowed=405]="MethodNotAllowed",si[si.NotAcceptable=406]="NotAcceptable",si[si.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",si[si.RequestTimeout=408]="RequestTimeout",si[si.Conflict=409]="Conflict",si[si.Gone=410]="Gone",si[si.TooManyRequests=429]="TooManyRequests",si[si.InternalServerError=500]="InternalServerError",si[si.NotImplemented=501]="NotImplemented",si[si.BadGateway=502]="BadGateway",si[si.ServiceUnavailable=503]="ServiceUnavailable",si[si.GatewayTimeout=504]="GatewayTimeout",(ci=ai||(ai={})).Accept="accept",ci.ContentType="content-type",(ui||(ui={})).ApplicationJson="application/json";const pi=[ii.MovedPermanently,ii.ResourceMoved,ii.SeeOther,ii.TemporaryRedirect,ii.PermanentRedirect],di=[ii.BadGateway,ii.ServiceUnavailable,ii.GatewayTimeout],hi=["OPTIONS","GET","DELETE","HEAD"];class mi extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,mi.prototype)}statusCode;result}class yi{constructor(e){this.message=e}message;async readBody(){return new Promise((async e=>{let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))}async readBodyBuffer(){return new Promise((async e=>{const t=[];this.message.on("data",(e=>{t.push(e)})),this.message.on("end",(()=>{e(Buffer.concat(t))}))}))}}class vi{userAgent;handlers;requestOptions;_ignoreSslError=!1;_socketTimeout;_allowRedirects=!0;_allowRedirectDowngrade=!1;_maxRedirects=50;_allowRetries=!1;_maxRetries=1;_agent;_proxyAgent;_proxyAgentDispatcher;_keepAlive=!1;_disposed=!1;constructor(e,t,n){this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}async options(e,t){return this.request("OPTIONS",e,null,t||{})}async get(e,t){return this.request("GET",e,null,t||{})}async del(e,t){return this.request("DELETE",e,null,t||{})}async post(e,t,n){return this.request("POST",e,t,n||{})}async patch(e,t,n){return this.request("PATCH",e,t,n||{})}async put(e,t,n){return this.request("PUT",e,t,n||{})}async head(e,t){return this.request("HEAD",e,null,t||{})}async sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[ai.Accept]=this._getExistingOrDefaultHeader(t,ai.Accept,ui.ApplicationJson);const n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ai.Accept]=this._getExistingOrDefaultHeader(n,ai.Accept,ui.ApplicationJson),n[ai.ContentType]=this._getExistingOrDefaultHeader(n,ai.ContentType,ui.ApplicationJson);const o=await this.post(e,r,n);return this._processResponse(o,this.requestOptions)}async putJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ai.Accept]=this._getExistingOrDefaultHeader(n,ai.Accept,ui.ApplicationJson),n[ai.ContentType]=this._getExistingOrDefaultHeader(n,ai.ContentType,ui.ApplicationJson);const o=await this.put(e,r,n);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ai.Accept]=this._getExistingOrDefaultHeader(n,ai.Accept,ui.ApplicationJson),n[ai.ContentType]=this._getExistingOrDefaultHeader(n,ai.ContentType,ui.ApplicationJson);const o=await this.patch(e,r,n);return this._processResponse(o,this.requestOptions)}async request(e,t,n,r){if(this._disposed)throw Error("Client has already been disposed.");const o=new URL(t);let i=this._prepareRequest(e,o,r);const s=this._allowRetries&&hi.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(i,n),a&&a.message&&a.message.statusCode===ii.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,i,n):a}let t=this._maxRedirects;for(;a.message.statusCode&&pi.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const c=new URL(s);if("https:"===o.protocol&&o.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await a.readBody(),c.hostname!==o.hostname)for(const e in r)"authorization"===e.toLowerCase()&&delete r[e];i=this._prepareRequest(e,c,r),a=await this.requestRaw(i,n),t--}if(!a.message.statusCode||!di.includes(a.message.statusCode))return a;c+=1,s>c&&(await a.readBody(),await this._performExponentialBackoff(c))}while(s>c);return a}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}async requestRaw(e,t){return new Promise(((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e?r(e):t?n(t):r(Error("Unknown error"))}))}))}requestRawWithCallback(e,t,n){function r(e,t){o||(o=!0,n(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1;const i=e.httpModule.request(e.options,(e=>{r(void 0,new yi(e))}));let s;i.on("socket",(e=>{s=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),r(Error("Request timeout: "+e.options.path))})),i.on("error",(function(e){r(e)})),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){i.end()})),t.pipe(i)):i.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}async getAgentDispatcher(e){const t=new URL(e),n=c(t);if(n&&n.hostname)return await this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const o="https:"===r.parsedUrl.protocol;r.httpModule=o?Wr:qr;const i=o?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):i,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(const s of this.handlers)s.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},wi(this.requestOptions.headers),wi(e||{})):wi(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=wi(this.requestOptions.headers)[t]),e[t]||r||n}_getAgent(e){let t;const n=c(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;const o="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||qr.globalAgent.maxSockets),n&&n.hostname){const e={maxSockets:i,keepAlive:this._keepAlive,proxy:{...(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`},host:n.hostname,port:n.port}};let r;const s="https:"===n.protocol;r=o?s?fi.httpsOverHttps:fi.httpsOverHttp:s?fi.httpOverHttps:fi.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=o?new Wr.Agent(e):new qr.Agent(e),this._agent=t}return o&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}async _getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;const r="https:"===e.protocol;return n=new(await import("./assets/proxy-agent-DB9QOaSI.mjs").then((e=>e.p)))({uri:t.href,pipelining:this._keepAlive?1:0,...(t.username||t.password)&&{token:"Basic "+Buffer.from(`${t.username}:${t.password}`).toString("base64")}}),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}async _performExponentialBackoff(e){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}async _processResponse(e,t){return new Promise((async(n,r)=>{const o=e.message.statusCode||0,i={statusCode:o,result:null,headers:{}};let s,a;o===ii.NotFound&&n(i);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,(function(e,t){if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),i.result=s),i.headers=e.message.headers}catch(c){}if(o>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${o})`;const t=new mi(e,o);t.result=i.result,r(t)}else n(i)}))}}const wi=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),Ei=t(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return ai},HttpClient:vi,HttpClientError:mi,HttpClientResponse:yi,get HttpCodes(){return ii},get MediaTypes(){return ui},getProxyUrl:function(e){const t=c(new URL(e));return t?t.href:""},isHttps:function(e){return"https:"===new URL(e).protocol}},Symbol.toStringTag,{value:"Module"})));var gi,_i,bi,Si,Oi,Ri={},Ii={},Ti={},Pi=f(),Ci={};const xi=[{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"}];var Ni;const Ai=e((Ni||(Ni=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=xi,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,n.forEach((function(n){const o=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));if(e[n.constant]=o,o)switch(e.name=n.name,typeof n.pr){case"string":e.isPR=!!r[n.pr];break;case"object":e.isPR="env"in n.pr?n.pr.env in r&&r[n.pr.env]!==n.pr.ne:"any"in n.pr?n.pr.any.some((function(e){return!!r[e]})):t(n.pr);break;default:e.isPR=null}})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(Ci)),Ci)),{GITHUB_ACTIONS:Li}=Ai;var $i,Di,ki,Ui,ji,Fi,Mi,Bi,Gi,Vi,Hi,qi,zi,Wi,Xi,Ki,Yi,Ji,Qi,Zi,es,ts,ns,rs={exports:{}},os={exports:{}},is={};const ss=e(function(){function e(e,o,i){const s=n(e,o,i),a=t.spawn(s.command,s.args,s.options);return r.hookChildProcess(a,s),a}if(ns)return rs.exports;ns=1;const t=Qr,n=v(),r=function(){function e(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function t(t,r){return n&&1===t&&!r.file?e(r.original,"spawn"):null}if(ts)return es;ts=1;const n="win32"===process.platform;return es={hookChildProcess:function(e,r){if(!n)return;const o=e.emit;e.emit=function(n,i){if("exit"===n){const n=t(i,r);if(n)return o.call(e,"error",n)}return o.apply(e,arguments)}},verifyENOENT:t,verifyENOENTSync:function(t,r){return n&&1===t&&!r.file?e(r.original,"spawnSync"):null},notFoundError:e},es}();return rs.exports=e,rs.exports.spawn=e,rs.exports.sync=function(e,o,i){const s=n(e,o,i),a=t.spawnSync(s.command,s.args,s.options);return a.error=a.error||r.verifyENOENTSync(a.status,s),a},rs.exports._parse=n,rs.exports._enoent=r,rs.exports}()),as=({env:e=ro.env,...t}={})=>{const n=w({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=ro.cwd(),path:t=ro.env[w()],preferLocal:n=!0,execPath:r=ro.execPath,addExecPath:o=!0}={})=>{const i=e instanceof URL?mo(e):e,s=fo.resolve(i),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(fo.join(t,"node_modules/.bin")),n=t,t=fo.resolve(t,"..")})(a,s),o&&((e,t,n)=>{const r=t instanceof URL?mo(t):t;e.push(fo.resolve(n,r,".."))})(a,r,s),[...a,t].join(fo.delimiter)})(t),e},cs=(e,t,n,r)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!us(o,i)&&r||Object.defineProperty(e,n,i)},us=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},ls=(e,t)=>`/* Wrapped ${e}*/\n${t}`,fs=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ps=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),ds=new WeakMap,hs=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const o=e.displayName||e.name||"",i=function(...s){if(ds.set(i,++r),1===r)n=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return n};return function(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:r}=e;for(const o of Reflect.ownKeys(t))cs(e,t,o,n);((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,t),((e,t,n)=>{const r=""===n?"":`with ${n.trim()}() `,o=ls.bind(null,r,""+t);Object.defineProperty(o,"name",ps),Object.defineProperty(e,"toString",{...fs,value:o})})(e,t,r)}(i,e),ds.set(i,r),i};hs.callCount=e=>{if(!ds.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ds.get(e)};const ms=(e,t)=>({name:"SIGRT"+(t+1),number:ys+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ys=34,vs=[{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"}],ws=()=>{const e=Array.from({length:64-ys+1},ms);return[...vs,...e].map(Es)},Es=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=vo,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}},gs=({name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s}],_s=(()=>{const e=ws();return Object.fromEntries(e.map(gs))})(),bs=(e,t)=>{const n=t.find((({name:t})=>vo.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=ws(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=bs(e,t);if(void 0===n)return{};const{name:r,description:o,supported:i,action:s,forced:a,standard:c}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:s,forced:a,standard:c}}})(n,e)));Object.assign({},...t)})();const Ss=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:i,command:s,escapedCommand:a,timedOut:c,isCanceled:u,killed:l,parsed:{options:{timeout:f,cwd:p=ro.cwd()}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:_s[o].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==n?"failed with "+n:void 0!==r?`was killed with ${r} (${o})`:void 0!==i?"failed with exit code "+i:"failed")({timedOut:c,timeout:f,errorCode:r&&r.code,signal:o,signalDescription:d,exitCode:i=null===i?void 0:i,isCanceled:u}),m=`Command ${h}: ${s}`,y="[object Error]"==={}.toString.call(r),v=y?`${m}\n${r.message}`:m,w=[v,t,e].filter(Boolean).join("\n");return y?(r.originalMessage=r.message,r.message=w):r=Error(w),r.shortMessage=v,r.command=s,r.escapedCommand=a,r.exitCode=i,r.signal=o,r.signalDescription=d,r.stdout=e,r.stderr=t,r.cwd=p,void 0!==n&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=u,r.killed=l&&!c,r},Os=["stdin","stdout","stderr"];var Rs,Is,Ts={exports:{}},Ps={exports:{}};const Cs=e(function(){if(Is)return Ts.exports;Is=1;var e=xo.process;const t=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(t(e)){var n,r=Zr,o=(Rs||(Rs=1,(y=Ps).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&y.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&y.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Ps.exports),i=/^win/i.test(e.platform),s=Yr;"function"!=typeof s&&(s=s.EventEmitter),e.__signal_exit_emitter__?n=e.__signal_exit_emitter__:((n=e.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),Ts.exports=function(e,o){if(!t(xo.process))return function(){};r.equal(typeof e,"function","a callback must be provided for exit handler"),!1===l&&f();var i="exit";return o&&o.alwaysLast&&(i="afterexit"),n.on(i,e),function(){n.removeListener(i,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&a()}};var a=function(){l&&t(xo.process)&&(l=!1,o.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};Ts.exports.unload=a;var c=function(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))},u={};o.forEach((function(r){u[r]=function(){t(xo.process)&&e.listeners(r).length===n.count&&(a(),c("exit",null,r),c("afterexit",null,r),i&&"SIGHUP"===r&&(r="SIGINT"),e.kill(e.pid,r))}})),Ts.exports.signals=function(){return o};var l=!1,f=function(){!l&&t(xo.process)&&(l=!0,n.count+=1,o=o.filter((function(t){try{return e.on(t,u[t]),!0}catch(n){return!1}})),e.emit=m,e.reallyExit=d)};Ts.exports.load=f;var p=e.reallyExit,d=function(n){t(xo.process)&&(e.exitCode=n||0,c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),p.call(e,e.exitCode))},h=e.emit,m=function(n,r){if("exit"===n&&t(xo.process)){void 0!==r&&(e.exitCode=r);var o=h.apply(this,arguments);return c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),o}return h.apply(this,arguments)}}else Ts.exports=function(){return function(){}};var y;return Ts.exports}()),xs=(e,t="SIGTERM",n={})=>{const r=e(t);return Ns(e,t,n,r),r},Ns=(e,t,n,r)=>{if(!As(t,n,r))return;const o=$s(n),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()},As=(e,{forceKillAfterTimeout:t},n)=>Ls(e)&&!1!==t&&n,Ls=e=>e===yo.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),$s=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Ds=(e,t)=>{e.kill()&&(t.isCanceled=!0)},ks=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(wo(n)),e;if(g(n))return e[t].pipe(n),e;if(!(e=>e instanceof ho&&"function"==typeof e.then)(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!g(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n};var Us,js,Fs,Ms={exports:{}};const Bs=e(function(){async function e(e,n){if(!e)throw Error("Expected a stream");n={maxBuffer:1/0,...n};const{maxBuffer:r}=n,a=o(n);return await new Promise(((n,o)=>{const c=e=>{e&&a.getBufferedLength()<=t.MAX_LENGTH&&(e.bufferedData=a.getBufferedValue()),o(e)};(async()=>{try{await i(e,a),n()}catch(t){c(t)}})(),a.on("data",(()=>{a.getBufferedLength()>r&&c(new s)}))})),a.getBufferedValue()}if(Fs)return Ms.exports;Fs=1;const{constants:t}=eo,n=to,{promisify:r}=Jr,o=function(){if(js)return Us;js=1;const{PassThrough:e}=to;return Us=t=>{t={...t};const{array:n}=t;let{encoding:r}=t;const o="buffer"===r;let i=!1;n?i=!(r||o):r=r||"utf8",o&&(r=null);const s=new e({objectMode:i});r&&s.setEncoding(r);let a=0;const c=[];return s.on("data",(e=>{c.push(e),i?a=c.length:a+=e.length})),s.getBufferedValue=()=>n?c:o?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s}}(),i=r(n.pipeline);class s extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}return Ms.exports=e,Ms.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),Ms.exports.array=(t,n)=>e(t,{...n,array:!0}),Ms.exports.MaxBufferError=s,Ms.exports}());var Gs,Vs;const Hs=e(function(){if(Vs)return Gs;Vs=1;const{PassThrough:e}=to;return Gs=function(){function t(e){return Array.isArray(e)?(e.forEach(t),this):(r.push(e),e.once("end",n.bind(null,e)),e.once("error",o.emit.bind(o,"error")),e.pipe(o,{end:!1}),this)}function n(e){!(r=r.filter((function(t){return t!==e}))).length&&o.readable&&o.end()}var r=[],o=new e({objectMode:!0});return o.setMaxListeners(0),o.add=t,o.isEmpty=function(){return 0==r.length},o.on("unpipe",n),[].slice.call(arguments).forEach(t),o}}()),qs=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},zs=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},Ws=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?Bs(e,{encoding:t,maxBuffer:r}):Bs.buffer(e,{maxBuffer:r})},Xs=(async()=>{})().constructor.prototype,Ks=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Xs,e)])),Ys=(e,t)=>{for(const[n,r]of Ks){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},Js=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Qs=/^[\w.-]+$/,Zs=/"/g,ea=(e,t)=>Js(e,t).join(" "),ta=(e,t)=>Js(e,t).map((e=>(e=>"string"!=typeof e||Qs.test(e)?e:`"${e.replace(Zs,'\\"')}"`)(e))).join(" "),na=/ +/g,ra=e=>{const t=[];for(const n of e.trim().split(na)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},oa=no("execa").enabled,ia=(e,t)=>(e+"").padStart(t,"0"),sa=(e,{verbose:t})=>{t&&ro.stderr.write(`[${(()=>{const e=new Date;return`${ia(e.getHours(),2)}:${ia(e.getMinutes(),2)}:${ia(e.getSeconds(),2)}.${ia(e.getMilliseconds(),3)}`})()}] ${e}\n`)},aa=(e,t,n={})=>{const r=ss._parse(e,t,n);return e=r.command,t=r.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=r.options).cwd||ro.cwd(),execPath:ro.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oa,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const i=t?{...ro.env,...e}:e;return n?as({env:i,cwd:r,execPath:o}):i})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Os.map((t=>e[t]));if((e=>Os.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Os.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Os.length)},((e,n)=>t[n]))})(n),"win32"===ro.platform&&"cmd"===fo.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},ca=(e,t,n)=>"string"==typeof t||lo.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e}(t):t:void 0===n?void 0:"";var ua,la,fa,pa,da,ha,ma={},ya={},va={},wa={};const Ea=e(function(){if(ha)return da;ha=1;const{isexe:e,sync:t}=S(),{join:n,delimiter:r,sep:o,posix:i}=$r,s="win32"===process.platform,a=RegExp(`[${i.sep}${o===i.sep?"":o}]`.replace(/(\\)/g,"\\$1")),c=RegExp("^\\."+a.source),u=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),l=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:o=r})=>{const i=e.match(a)?[""]:[...s?[process.cwd()]:[],...(t||"").split(o)];if(s){const t=n||[".EXE",".CMD",".BAT",".COM"].join(o),r=t.split(o).flatMap((e=>[e,e.toLowerCase()]));return e.includes(".")&&""!==r[0]&&r.unshift(""),{pathEnv:i,pathExt:r,pathExtExe:t}}return{pathEnv:i,pathExt:[""]}},f=(e,t)=>{const r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&c.test(t)?t.slice(0,2):"")+n(r,t)},p=async(t,n={})=>{const{pathEnv:r,pathExt:o,pathExtExe:i}=l(t,n),s=[];for(const a of r){const r=f(a,t);for(const t of o){const o=r+t;if(await e(o,{pathExt:i,ignoreErrors:!0})){if(!n.all)return o;s.push(o)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(t)};return da=p,p.sync=(e,n={})=>{const{pathEnv:r,pathExt:o,pathExtExe:i}=l(e,n),s=[];for(const a of r){const r=f(a,e);for(const e of o){const o=r+e;if(t(o,{pathExt:i,ignoreErrors:!0})){if(!n.all)return o;s.push(o)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(e)},da}());let ga;var _a,ba={};R(ba,"hasSudo",(()=>I)),R(ba,"isRoot",(()=>T)),R(ba,"isSudo",(()=>P)),R(ba,"prependSudo",(()=>C)),R(ba,"defaultExecOptions",(()=>Sa)),R(ba,"execRootSync",(()=>x)),R(ba,"execRoot",(()=>N));let Sa={stdio:"inherit",shell:!0};R(_a={},"isAdminWindows",(()=>Oa)),R(_a,"isAdminPosix",(()=>Ra)),R(_a,"isAdmin",(()=>$));let Oa=async function(){if("win32"!==process.platform)return!1;try{return await _("fsutil",["dirty","query",process.env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&async function(){try{return await _("fltmc"),!0}catch{return!1}}()}},Ra=T;var Ia,Ta,Pa,Ca,xa,Na,Aa,La,$a,Da,ka,Ua,ja,Fa,Ma,Ba,Ga,Va,Ha,qa,za,Wa,Xa,Ka,Ya,Ja;R({},"grantUserWriteAccess",(()=>D));var Qa,Za,ec,tc,nc,rc,oc,ic,sc,ac,cc,uc,lc,fc,pc,dc,hc,mc,yc,vc,wc,Ec,gc,_c,bc,Sc,Oc,Rc,Ic,Tc,Pc,Cc,xc,Nc,Ac,Lc,$c,Dc,kc,Uc,jc,Fc,Mc,Bc,Gc,Vc,Hc,qc,zc,Wc,Xc,Kc,Yc,Jc,Qc,Zc,eu,tu,nu,ru,ou,iu,su,au,cu,uu,lu,fu,pu,du,hu,mu,yu,vu,wu,Eu,gu,_u,bu,Su,Ou,Ru,Iu,Tu,Pu,Cu,xu,Nu,Au,Lu,$u,Du,ku,Uu,ju,Fu,Mu,Bu,Gu,Vu,Hu,qu,zu,Wu,Xu,Ku,Yu,Ju,Qu,Zu,el,tl,nl,rl,ol,il,sl,al,cl,ul,ll,fl,pl,dl,hl,ml,yl,vl,wl,El,gl={},_l={exports:{}},bl={exports:{}},Sl={exports:{}},Ol={exports:{}},Rl={},Il={},Tl={exports:{}},Pl={},Cl={},xl={},Nl={};const Al=e(function(){if(El)return wl;El=1;var e=U(),t=F(),n=function(){if(Ou)return Su;Ou=1;var e=M(),t=G(),n=V(),r=ee(),o=F();return Su=function i(s){var a,c,u;if(e(s),(a=Object(arguments[1])).async&&a.promise)throw Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(s,"__memoized__")&&!a.force?s:(c=o(a.length,s.length,a.async&&n.async),u=r(s,c,a),t(n,(function(e,t){a[t]&&e(a[t],u,a)})),i.__profiler__&&i.__profiler__(u),u.updateEnv(),u.memoized)},Su}();return wl=function(r){var o,i=e(arguments[1]);return i.normalizer||0!==(o=i.length=t(i.length,r.length,i.async))&&(i.primitive?!1===o?i.normalizer=Iu?Ru:(Iu=1,Ru=function(e){var t,n,r=e.length;if(!r)return"";for(t=e[n=0]+"";--r;)t+=""+e[++n];return t}):o>1&&(i.normalizer=(Pu?Tu:(Pu=1,Tu=function(e){return e?function(t){for(var n=t[0]+"",r=0,o=e;--o;)n+=""+t[++r];return n}:function(){return""}}))(o)):i.normalizer=!1===o?function(){if(ju)return Uu;ju=1;var e=te(),t=Object.create;return Uu=function(){var n=0,r=[],o=t(null);return{get:function(t){var n,o=0,i=r,s=t.length;if(0===s)return i[s]||null;if(i=i[s]){for(;s-1>o;){if(-1===(n=e.call(i[0],t[o])))return null;i=i[1][n],++o}return-1===(n=e.call(i[0],t[o]))?null:i[1][n]||null}return null},set:function(t){var i,s=0,a=r,c=t.length;if(0===c)a[c]=++n;else{for(a[c]||(a[c]=[[],[]]),a=a[c];c-1>s;)-1===(i=e.call(a[0],t[s]))&&(i=a[0].push(t[s])-1,a[1].push([[],[]])),a=a[1][i],++s;-1===(i=e.call(a[0],t[s]))&&(i=a[0].push(t[s])-1),a[1][i]=++n}return o[n]=t,n},delete:function(t){var n,i=0,s=r,a=o[t],c=a.length,u=[];if(0===c)delete s[c];else if(s=s[c]){for(;c-1>i;){if(-1===(n=e.call(s[0],a[i])))return;u.push(s,n),s=s[1][n],++i}if(-1===(n=e.call(s[0],a[i])))return;for(t=s[1][n],s[0].splice(n,1),s[1].splice(n,1);!s[0].length&&u.length;)n=u.pop(),(s=u.pop())[0].splice(n,1),s[1].splice(n,1)}delete o[t]},clear:function(){r=[],o=t(null)}}}}()():1===o?function(){if(Mu)return Fu;Mu=1;var e=te();return Fu=function(){var t=0,n=[],r=[];return{get:function(t){var o=e.call(n,t[0]);return-1===o?null:r[o]},set:function(e){return n.push(e[0]),r.push(++t),t},delete:function(t){var o=e.call(r,t);-1!==o&&(n.splice(o,1),r.splice(o,1))},clear:function(){n=[],r=[]}}}}()():function(){if(Gu)return Bu;Gu=1;var e=te(),t=Object.create;return Bu=function(n){var r=0,o=[[],[]],i=t(null);return{get:function(t){for(var r,i=0,s=o;n-1>i;){if(-1===(r=e.call(s[0],t[i])))return null;s=s[1][r],++i}return-1===(r=e.call(s[0],t[i]))?null:s[1][r]||null},set:function(t){for(var s,a=0,c=o;n-1>a;)-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1,c[1].push([[],[]])),c=c[1][s],++a;return-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1),c[1][s]=++r,i[r]=t,r},delete:function(t){for(var r,s=0,a=o,c=[],u=i[t];n-1>s;){if(-1===(r=e.call(a[0],u[s])))return;c.push(a,r),a=a[1][r],++s}if(-1!==(r=e.call(a[0],u[s]))){for(t=a[1][r],a[0].splice(r,1),a[1].splice(r,1);!a[0].length&&c.length;)r=c.pop(),(a=c.pop())[0].splice(r,1),a[1].splice(r,1);delete i[t]}},clear:function(){o=[[],[]],i=t(null)}}}}()(o)),i.async&&function(){if(Wu)return Rl;Wu=1;var e=Z(),t=ne(),n=q(),r=z(),o=re(),i=[].slice,s=function(){}.apply,a=Object.create;V().async=function(c,u){var l,f,p,d=a(null),h=a(null),m=u.memoized,y=u.original;u.memoized=r((function(e){var t=arguments,n=t[t.length-1];return"function"==typeof n&&(l=n,t=i.call(t,0,-1)),m.apply(f=this,p=t)}),m);try{n(u.memoized,m)}catch(v){}u.on("get",(function(e){var t,n,r;if(l){if(d[e])return"function"==typeof d[e]?d[e]=[d[e],l]:d[e].push(l),void(l=null);t=l,n=f,r=p,l=f=p=null,o((function(){var o;hasOwnProperty.call(h,e)?(o=h[e],u.emit("getasync",e,r,n),s.call(t,o.context,o.args)):(l=t,f=n,p=r,m.apply(n,r))}))}})),u.original=function(){var t,n,r,i;return l?(t=e(arguments),n=function t(n){var r,a,c=t.id;if(null!=c){if(delete t.id,r=d[c],delete d[c],r)return a=e(arguments),u.has(c)&&(n?u.delete(c):(h[c]={context:this,args:a},u.emit("setasync",c,"function"==typeof r?1:r.length))),"function"==typeof r?i=s.call(r,this,a):r.forEach((function(e){i=s.call(e,this,a)}),this),i}else o(s.bind(t,this,arguments))},r=l,l=f=p=null,t.push(n),i=s.call(y,this,t),n.cb=r,l=n,i):s.call(y,this,arguments)},u.on("set",(function(e){l?(d[e]?"function"==typeof d[e]?d[e]=[d[e],l.cb]:d[e].push(l.cb):d[e]=l.cb,delete l.cb,l.id=e,l=null):u.delete(e)})),u.on("delete",(function(e){var t;hasOwnProperty.call(d,e)||h[e]&&(t=h[e],delete h[e],u.emit("deleteasync",e,i.call(t.args,1)))})),u.on("clear",(function(){var e=h;h=a(null),u.emit("clearasync",t(e,(function(e){return i.call(e.args,1)})))}))}}(),i.promise&&se(),i.dispose&&function(){if(cl)return Pl;cl=1;var e=M(),t=G(),n=V(),r=function(){}.apply;n.dispose=function(o,i,s){var a;if(e(o),s.async&&n.async||s.promise&&n.promise)return i.on("deleteasync",a=function(e,t){r.call(o,null,t)}),void i.on("clearasync",(function(e){t(e,(function(e,t){a(t,e)}))}));i.on("delete",a=function(e,t){o(t)}),i.on("clear",(function(e){t(e,(function(e,t){a(t,e)}))}))}}(),i.maxAge&&function(){if(dl)return Cl;dl=1;var e=Z(),t=G(),n=re(),r=ie(),o=function(){if(pl)return fl;pl=1;var e=j(),t=ll?ul:(ll=1,ul=2147483647);return fl=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}(),i=V(),s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;i.maxAge=function(l,f,p){var d,h,m,y;(l=o(l))&&(d=u(null),f.on("set"+(h=p.async&&i.async||p.promise&&i.promise?"async":""),(function(e){d[e]=setTimeout((function(){f.delete(e)}),l),"function"==typeof d[e].unref&&d[e].unref(),y&&(y[e]&&"nextTick"!==y[e]&&clearTimeout(y[e]),y[e]=setTimeout((function(){delete y[e]}),m),"function"==typeof y[e].unref&&y[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],y&&("nextTick"!==y[e]&&clearTimeout(y[e]),delete y[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(y={},m=(1-m)*l,f.on("get"+h,(function(t,o,i){y[t]||(y[t]="nextTick",n((function(){var n;"nextTick"===y[t]&&(delete y[t],f.delete(t),p.async&&(o=e(o)).push(s),n=f.memoized.apply(i,o),p.promise&&r(n)&&("function"==typeof n.done?n.done(s,s):n.then(s,s)))})))}))),f.on("clear"+h,(function(){t(d,(function(e){clearTimeout(e)})),d={},y&&(t(y,(function(e){"nextTick"!==e&&clearTimeout(e)})),y={})})))}}(),i.max&&function(){if(yl)return xl;yl=1;var e=j(),t=function(){if(ml)return hl;ml=1;var e=j(),t=Object.create,n={}.hasOwnProperty;return hl=function(r){var o,i=0,s=1,a=t(null),c=t(null),u=0;return r=e(r),{hit:function(e){var t=c[e],l=++u;if(a[l]=e,c[e]=l,!t){if(++i,r>=i)return;return o(e=a[s]),e}if(delete a[t],s===t)for(;!n.call(a,++s);)continue},delete:o=function(e){var t=c[e];if(t&&(delete a[t],delete c[e],--i,s===t)){if(!i)return u=0,void(s=1);for(;!n.call(a,++s);)continue}},clear:function(){i=0,s=1,a=t(null),c=t(null),u=0}}}}(),n=V();n.max=function(r,o,i){var s,a,c;(r=e(r))&&(a=t(r),o.on("set"+(s=i.async&&n.async||i.promise&&n.promise?"async":""),c=function(e){void 0!==(e=a.hit(e))&&o.delete(e)}),o.on("get"+s,c),o.on("delete"+s,a.delete),o.on("clear"+s,a.clear))}}(),i.refCounter&&function(){if(vl)return Nl;vl=1;var e=K(),t=V(),n=Object.create,r=Object.defineProperties;t.refCounter=function(o,i,s){var a,c;a=n(null),i.on("set"+(c=s.async&&t.async||s.promise&&t.promise?"async":""),(function(e,t){a[e]=t||1})),i.on("get"+c,(function(e){++a[e]})),i.on("delete"+c,(function(e){delete a[e]})),i.on("clear"+c,(function(){a={}})),r(i.memoized,{deleteRef:e((function(){var e=i.get(arguments);return null===e?null:a[e]?! --a[e]&&(i.delete(e),!0):null})),getRefCount:e((function(){var e=i.get(arguments);return null===e?0:a[e]?a[e]:0}))})}}(),n(r,i)}}()),Ll=/^~(?=$|\/|\\)/,{appendFile:$l,readFile:Dl,writeFile:kl}=Pr,Ul=ce("~/.bashrc"),jl=Al((async function(e){const t=void 0===e.guard?`\nsource "${e.rcPath}"\n`:`\n# ${e.guard}\nif [[ "$SOURCE_${e.guard.toUpperCase()}RC" != 0 && -f "${e.rcPath}" ]]; then source "${e.rcPath}"; fi\n`;try{await Promise.all([ue(e),le(t,ce("~/.bashrc")),le(t,ce("~/.profile"))])}catch(n){d(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${n}`)}}),{promise:!0});var Fl,Ml;const Bl=e(function(){if(Ml)return Fl;Ml=1;const e=Or,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return Fl=function(e){return t?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&Number(t)>=17134.1184)(...r.exec(n).splice(1))?e:e.replace(/(\s+)/g,"%20")}}());var Gl,Vl,Hl,ql,zl,Wl={exports:{}};const Xl=e((Hl||(Hl=1,ql=function(){if(Vl)return Gl;Vl=1;var e=/[|\\{}()[\]^$+*?.]/g;return Gl=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),zl=function(e){return e.split("").reverse().join("")},Wl.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+ql(t)+"])(?!"+ql(n)+")","g"),zl(zl(e).replace(r,"$1"+n)))}),Wl.exports)),{GITHUB_ACTIONS:Kl}=Ai,{appendFile:Yl}=Pr,{GITHUB_ACTIONS:Jl}=Ai,{appendFile:Ql}=Pr,Zl=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var ef,tf,nf,rf={exports:{}};const of=e(ve());var sf;const af=e((sf||(sf=1,ye().addLocale("en",(function(e){var t=Math.floor(Math.abs(e)),n=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===n?"one":"other"}))),{}));var cf,uf,lf,ff,pf,df={exports:{}};const hf=e(pf?ff:(pf=1,ff=function(){function e(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:n}=t;s[e]=n}}function t(e,t,r){const o=function(e){const t=s[e.locale];let n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),n=Array.from(new Set(n));let r=null;if(n.some((function(e){if(void 0!==t[e])return r=t[e],!0})),null===r)throw Error("Can not find any unit type data for locale: "+e.locale);return r}(r);return n.pluralize(r.locale,t,o[e]).replace("{0}",t)}if(lf)return uf;lf=1;const n=ve(),r=cf?df.exports:(cf=1,df.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)),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={};return uf={create:function(n){return n=Object.assign({},i,n||{}),{format:function(i,a,c){return function(n,i,a){if(function(t,n){const{autoload:o}=n;if(!s[t]){if(!r||!o)throw Error(`Missing locale: ${t}, you must load it manually before using it`);!function(t){try{e(me(`../locales/${t}.js`))}catch(n){throw Error(`Failed to load locale: ${t} from ../locales/${t}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${n}`)}}(t)}}(a.locale,{autoload:a.autoloadLocales}),!n)throw Error("Missing first date argument");if(!i)throw Error("Missing second date argument");const c=function(e,t){let n=t-e;const r=[];return o.some((function(e){const t=e[0],o=e[1],i=Math.floor(n/o);if(n-=i*o,r.push([t,i]),0>=n)return!0})),r}(n,i),u=[];for(const e of c){const[n,r]=e;if(r>0&&u.push(t(n,r,a)),u.length>=a.span)break}return u.join(a.delimiter)}(i,a,c=Object.assign({},n,c||{}))}}},addLocale:e,defaultConfig:i}}()));var mf,yf;const vf=e(yf?mf:(yf=1,mf={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}}));var wf,Ef,gf,_f,bf,Sf,Of,Rf,If,Tf,Pf,Cf,xf,Nf,Af,Lf,$f,Df,kf,Uf,jf,Ff,Mf,Bf,Gf,Vf,Hf,qf,zf,Wf,Xf,Kf,Yf,Jf,Qf,Zf,ep,tp,np,rp,op,ip,sp,ap,cp,up,lp,fp,pp,dp,hp,mp,yp,vp,wp,Ep,gp,_p,bp,Sp,Op,Rp,Ip,Tp,Pp,Cp,xp,Np,Ap,Lp,$p,Dp,kp,Up,jp,Fp,Mp,Bp,Gp,Vp,Hp,qp,zp,Wp,Xp,Kp,Yp,Jp,Qp,Zp,ed,td={exports:{}};const nd=e(function(){function e(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{a(r.next(e))}catch(t){o(t)}}function s(e){try{a(r.throw(e))}catch(t){o(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,s)}a((r=r.call(e)).next())}))}function t(e,t){function n(n){return function(c){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,n[0]&&(a=0)),a;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&i[3]>n[1])){a.label=n[1];break}if(6===n[0]&&i[1]>a.label){a.label=i[1],i=n;break}if(i&&i[2]>a.label){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(c){n=[6,c],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,c])}}var r,o,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}if(ed)return Zp;ed=1;var n=bo,r=Be(),o=Or,i=$r,s=Tr,a=Xr,c=n.env.npm_package_json,u=n.env.npm_config_user_agent,l=!(!u||!u.startsWith("npm")),f=!(!c||!c.endsWith("package.json")),p=l||f,d=!(!u||!u.startsWith("yarn")),h=p||d,m=o.homedir(),y=process.env.XDG_CONFIG_HOME||i.join(m,".config","simple-update-notifier"),v=function(e){return i.join(y,"".concat(e.replace("@","").replace("/","__"),".json"))},w=function(n,r){return e(void 0,0,void 0,(function(){var e;return t(this,(function(t){return e="https://registry.npmjs.org/-/package/".concat(n,"/dist-tags"),[2,new Promise((function(t,n){a.get(e,(function(e){var o="";e.on("data",(function(e){return o+=e})),e.on("end",(function(){try{var e=JSON.parse(o)[r];e||n(Error("Error getting version")),t(e)}catch(i){n(Error("Could not parse version response"))}}))})).on("error",(function(e){return n(e)}))}))]}))}))},E=function(n){var o=n.pkg,i=n.updateCheckInterval,a=void 0===i?864e5:i,c=n.distTag,u=void 0===c?"latest":c,l=n.alwaysRun,f=n.debug;return e(void 0,0,void 0,(function(){var e,i;return t(this,(function(t){switch(t.label){case 0:return s.existsSync(y)||s.mkdirSync(y,{recursive:!0}),e=function(e){var t=v(e);try{if(!s.existsSync(t))return;return JSON.parse(s.readFileSync(t,"utf8")).lastUpdateCheck}catch(n){return}}(o.name),l||!e||e<(new Date).getTime()-a?[4,w(o.name,u)]:[3,2];case 1:return i=t.sent(),c=v(o.name),s.writeFileSync(c,JSON.stringify({lastUpdateCheck:(new Date).getTime()})),r.gt(i,o.version)?[2,i]:(f&&console.error("Latest version (".concat(i,") not newer than current version (").concat(o.version,")")),[3,3]);case 2:f&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(a,"ms but only ").concat((new Date).getTime()-e,"ms since last check.")),t.label=3;case 3:return[2,!1]}var c}))}))};return Zp=function(n){return e(void 0,0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:if(!n.alwaysRun&&(!process.stdout.isTTY||h&&!n.shouldNotifyInNpmScript))return n.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,E(n)];case 2:return(e=t.sent())&&console.error(function(e){for(var t=e.split("\n"),n=Math.max.apply(Math,t.map((function(e){return e.length}))),r=["┌".concat("─".repeat(n+2),"┐")],o=0,i=t;i.length>o;o++)r.push("│ ".concat(i[o].padEnd(n)," │"));return r.push("└".concat("─".repeat(n+2),"┘")),r.join("\n")}("New version of ".concat(n.pkg.name," available!\nCurrent Version: ").concat(n.pkg.version,"\nLatest Version: ").concat(e))),[3,4];case 3:return r=t.sent(),n.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2]}}))}))}}()),rd={name:"setup-cpp",version:"0.46.0"};var od,id,sd,ad,cd,ud,ld,fd,pd,dd,hd,md,yd,vd={},wd={},Ed={},gd={},_d={},bd={},Sd={},Od={},Rd={},Id={},Td={},Pd={},Cd=We(),xd={},Nd=(yd||(yd=1,function(e){function t(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(e,"__esModule",{value:!0}),e.DownloaderHelper=e.DH_STATES=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n,r=0;t.length>r;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=t(Tr),s=Ro,a=t($r),c=t(zr),u=t(Xr),l=Yr,f=e.DH_STATES={IDLE:"IDLE",SKIPPED:"SKIPPED",STARTED:"STARTED",DOWNLOADING:"DOWNLOADING",RETRY:"RETRY",PAUSED:"PAUSED",RESUMED:"RESUMED",STOPPED:"STOPPED",FINISHED:"FINISHED",FAILED:"FAILED"};e.DownloaderHelper=function(e){function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{captureRejections:!0}));return i.__validate(e,r)?(i.url=i.requestURL=e.trim(),i.state=f.IDLE,i.__defaultOpts={body:null,retry:!1,method:"GET",headers:{},fileName:"",timeout:-1,metadata:null,override:!1,forceResume:!1,removeOnStop:!0,removeOnFail:!0,progressThrottle:1e3,httpRequestOptions:{},httpsRequestOptions:{},resumeOnIncomplete:!0,resumeIfFileExists:!1,resumeOnIncompleteMaxRetry:5},i.__opts=Object.assign({},i.__defaultOpts),i.__pipes=[],i.__total=0,i.__downloaded=0,i.__progress=0,i.__retryCount=0,i.__retryTimeout=null,i.__resumeRetryCount=0,i.__states=f,i.__promise=null,i.__request=null,i.__response=null,i.__isAborted=!1,i.__isResumed=!1,i.__isResumable=!1,i.__isRedirected=!1,i.__destFolder=r,i.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0},i.__fileName="",i.__filePath="",i.updateOptions(o),i):n(i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"start",value:function(){var e=this,t=function(){return new Promise((function(t,n){e.__promise={resolve:t,reject:n},e.__start()}))};return this.__opts.resumeIfFileExists&&this.state!==this.__states.RESUMED?this.getTotalSize().then((function(n){var r=n.name,o=n.total,s=e.__opts.override;return e.__opts.override=!0,e.__filePath=e.__getFilePath(r),e.__opts.override=s,e.__filePath&&i.existsSync(e.__filePath)?e.__getFilesizeInBytes(e.__filePath)===o?t():e.resumeFromFile(e.__filePath,{total:o,fileName:r}):t()})):t()}},{key:"pause",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return e.__setState(e.__states.PAUSED),e.emit("pause"),!0})))}},{key:"resume",value:function(){return this.__promise?this.state===this.__states.STOPPED?Promise.resolve(!1):(this.__setState(this.__states.RESUMED),this.__isResumable&&(this.__isResumed=!0,this.__reqOptions.headers.range="bytes="+this.__downloaded+"-"),this.emit("resume",this.__isResumed),this.__start()):this.start()}},{key:"stop",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__requestAbort(),this.__closeFileStream().then((function(){return e.__opts.removeOnStop?new Promise((function(t,n){i.access(e.__filePath,(function(r){return r?(e.__emitStop(),t(!0)):void i.unlink(e.__filePath,(function(r){return r?(e.__setState(e.__states.FAILED),e.emit("error",r),n(r)):(e.__emitStop(),void t(!0))}))}))})):(e.__emitStop(),Promise.resolve(!0))})))}},{key:"pipe",value:function(e){return this.__pipes.push({stream:e,options:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}),e}},{key:"unpipe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=function(t){return e.__response?e.__response.unpipe(t):t.unpipe()};t?this.__pipes.find((function(e){return e.stream===t}))&&(n(t),this.__pipes=this.__pipes.filter((function(e){return e.stream!==t}))):(this.__pipes.forEach((function(e){return n(e.stream)})),this.__pipes=[])}},{key:"getDownloadPath",value:function(){return this.__filePath}},{key:"isResumable",value:function(){return this.__isResumable}},{key:"updateOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.__opts=Object.assign({},this.__opts,e),this.__headers=this.__opts.headers,this.__opts.timeout>-1&&(this.__opts.httpRequestOptions.timeout=this.__opts.timeout,this.__opts.httpsRequestOptions.timeout=this.__opts.timeout),("number"!=typeof this.__opts.progressThrottle||0>this.__opts.progressThrottle)&&(this.__opts.progressThrottle=this.__defaultOpts.progressThrottle),this.url=t||this.url,this.__reqOptions=this.__getReqOptions(this.__opts.method,this.url,this.__opts.headers),this.__initProtocol(this.url)}},{key:"getOptions",value:function(){return this.__opts}},{key:"getMetadata",value:function(){return this.__opts.metadata}},{key:"getStats",value:function(){return{total:this.__total,name:this.__fileName,downloaded:this.__downloaded,progress:this.__progress,speed:this.__statsEstimate.bytes}}},{key:"getTotalSize",value:function(){var e=this;return new Promise((function(t,n){var r=function(t){e.__initProtocol(t);var n=Object.assign({},e.__headers);n.hasOwnProperty("range")&&delete n.range;var r=e.__getReqOptions("HEAD",t,n);return Object.assign({},e.__reqOptions,r)},o=function(i,a){var c=e.__protocol.request(a,(function(a){if(e.__isRequireRedirect(a)){var c=/^https?:\/\//.test(a.headers.location)?a.headers.location:new s.URL(a.headers.location,i).href;return e.emit("redirected",c,i),o(c,r(c))}return 200===a.statusCode?void t({name:e.__getFileNameFromHeaders(a.headers,a),total:parseInt(a.headers["content-length"])||null}):n(Error("Response status was "+a.statusCode))}));c.on("error",(function(e){return n(e)})),c.on("timeout",(function(){return n(Error("timeout"))})),c.on("uncaughtException",(function(e){return n(e)})),c.end()};o(e.url,r(e.url))}))}},{key:"getResumeState",value:function(){return{downloaded:this.__downloaded,filePath:this.__filePath,fileName:this.__fileName,total:this.__total}}},{key:"resumeFromFile",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.__opts.override=!0,this.__filePath=e,(n.total&&n.fileName?Promise.resolve({name:n.fileName,total:n.total}):this.getTotalSize()).then((function(e){var r=e.name;return t.__total=n.total||e.total,t.__fileName=n.fileName||r,t.__downloaded=n.downloaded||t.__getFilesizeInBytes(t.__filePath),t.__reqOptions.headers.range="bytes="+t.__downloaded+"-",t.__isResumed=!0,t.__isResumable=!0,t.__setState(t.__states.RESUMED),t.emit("resume",t.__isResumed),new Promise((function(e,n){t.__promise={resolve:e,reject:n},t.__start()}))}))}},{key:"__start",value:function(){this.__isRedirected||this.state===this.__states.RESUMED||(this.emit("start"),this.__setState(this.__states.STARTED),this.__initProtocol(this.url)),this.__response=null,this.__isAborted=!1,this.__request&&!this.__request.destroyed&&this.__request.destroy(),this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__request=this.__downloadRequest(this.__promise.resolve,this.__promise.reject),this.__request.on("error",this.__onError(this.__promise.resolve,this.__promise.reject)),this.__request.on("timeout",this.__onTimeout(this.__promise.resolve,this.__promise.reject)),this.__request.on("uncaughtException",this.__onError(this.__promise.resolve,this.__promise.reject,!0)),this.__opts.body&&this.__request.write(this.__opts.body),this.__request.end()}},{key:"__resolvePending",value:function(){if(this.__promise){var e=this.__promise.resolve;return this.__promise=null,e(!0)}}},{key:"__downloadRequest",value:function(e,t){var n=this;return this.__protocol.request(this.__reqOptions,(function(r){if(n.__response=r,n.__isResumed||(n.__total=parseInt(r.headers["content-length"])||null,n.__resetStats()),n.__isRequireRedirect(r)){var o=/^https?:\/\//.test(r.headers.location)?r.headers.location:new s.URL(r.headers.location,n.url).href;return n.__isRedirected=!0,n.__initProtocol(o),n.emit("redirected",o,n.url),n.__start()}if(200!==r.statusCode&&206!==r.statusCode){var i=Error("Response status was "+r.statusCode);return i.status=r.statusCode||0,i.body=r.body||"",n.__setState(n.__states.FAILED),n.emit("error",i),t(i)}(n.__opts.forceResume||r.headers.hasOwnProperty("accept-ranges")&&"none"!==r.headers["accept-ranges"])&&(n.__isResumable=!0),n.__startDownload(r,e,t)}))}},{key:"__startDownload",value:function(e,t,n){var o=this,s=e;if(this.__isResumed)this.__fileStream=i.createWriteStream(this.__filePath,{flags:"a"});else{var c=this.__getFileNameFromHeaders(e.headers);if(this.__filePath=this.__getFilePath(c),this.__fileName=this.__filePath.split(a.sep).pop(),i.existsSync(this.__filePath)){var u=this.__getFilesizeInBytes(this.__filePath),l=this.__total?this.__total:0;if("object"===r(this.__opts.override)&&this.__opts.override.skip&&(this.__opts.override.skipSmaller||u>=l))return this.emit("skip",{totalSize:this.__total,fileName:this.__fileName,filePath:this.__filePath,downloadedSize:u}),this.__setState(this.__states.SKIPPED),t(!0)}this.__fileStream=i.createWriteStream(this.__filePath,{})}this.emit("download",{fileName:this.__fileName,filePath:this.__filePath,totalSize:this.__total,isResumed:this.__isResumed,downloadedSize:this.__downloaded}),this.__retryCount=0,this.__isResumed=!1,this.__isRedirected=!1,this.__setState(this.__states.DOWNLOADING),this.__statsEstimate.time=new Date,this.__statsEstimate.throttleTime=new Date,s.on("data",(function(e){return o.__calculateStats(e.length)})),this.__pipes.forEach((function(e){s.pipe(e.stream,e.options),s=e.stream})),s.pipe(this.__fileStream),s.on("error",this.__onError(t,n)),this.__fileStream.on("finish",this.__onFinished(t,n)),this.__fileStream.on("error",this.__onError(t,n))}},{key:"__hasFinished",value:function(){return!this.__isAborted&&-1===[this.__states.PAUSED,this.__states.STOPPED,this.__states.RETRY,this.__states.FAILED,this.__states.RESUMED].indexOf(this.state)}},{key:"__isRequireRedirect",value:function(e){return e.statusCode>300&&400>e.statusCode&&e.headers.hasOwnProperty("location")&&e.headers.location}},{key:"__onFinished",value:function(e,t){var n=this;return function(){n.__fileStream.close((function(r){if(r)return t(r);if(n.__hasFinished()){var o=!!n.__total&&n.__downloaded!==n.__total;if(o&&n.__isResumable&&n.__opts.resumeOnIncomplete&&n.__opts.resumeOnIncompleteMaxRetry>=n.__resumeRetryCount)return n.__resumeRetryCount++,n.emit("warning",Error("uncomplete download, retrying")),n.resume();n.__setState(n.__states.FINISHED),n.__pipes=[],n.emit("end",{fileName:n.__fileName,filePath:n.__filePath,totalSize:n.__total,incomplete:o,onDiskSize:n.__getFilesizeInBytes(n.__filePath),downloadedSize:n.__downloaded})}return e(n.__downloaded===n.__total)}))}}},{key:"__closeFileStream",value:function(){var e=this;return this.__fileStream?new Promise((function(t,n){e.__fileStream.close((function(e){return e?n(e):t(!0)}))})):Promise.resolve(!0)}},{key:"__onError",value:function(e,t){var n=this,r=!(2>=arguments.length||void 0===arguments[2])&&arguments[2];return function(e){return n.__pipes=[],r&&n.__requestAbort(),n.state===n.__states.STOPPED||n.state===n.__states.FAILED?void 0:n.__opts.retry?n.__retry(e).catch((function(r){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",r||e),t(r||e)}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",e),t(e)}))}}},{key:"__retry",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.__opts.retry||"object"!==r(this.__opts.retry))return Promise.reject(t||Error("wrong retry options"));var n=this.__opts.retry,o=n.delay,i=void 0===o?0:o,s=n.maxRetries;return(void 0===s?999:s)>this.__retryCount?(this.__retryCount++,this.__setState(this.__states.RETRY),this.emit("retry",this.__retryCount,this.__opts.retry,t),this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return new Promise((function(t){return e.__retryTimeout=setTimeout((function(){return t(e.__downloaded>0?e.resume():e.__start())}),i)}))}))):Promise.reject(t||Error("reached the maximum retries"))}},{key:"__onTimeout",value:function(e,t){var n=this;return function(){return n.__requestAbort(),n.__opts.retry?n.__retry(Error("timeout")).catch((function(e){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),e?t(e):(n.emit("timeout"),t(Error("timeout")))}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("timeout"),t(Error("timeout"))}))}}},{key:"__resetStats",value:function(){this.__retryCount=0,this.__downloaded=0,this.__progress=0,this.__resumeRetryCount=0,this.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0}}},{key:"__getFileNameFromHeaders",value:function(e,t){var n="",r=e.hasOwnProperty("content-disposition"),o=r?e["content-disposition"].match(/.*filename\*=.*?'.*?'([^"].+?[^"])(?:(?:;)|$)/i):null,i=!r||o?null:e["content-disposition"].match(/.*filename="(.*?)";?/i),c=!r||o||i?null:e["content-disposition"].match(/.*filename=([^"].+?[^"])(?:(?:;)|$)/i);return r&&(o||i||c)?(n=(n=e["content-disposition"]).trim(),o?n=o[1]:i?n=i[1]:c&&(n=c[1]),n=n.replace(/[/\\]/g,"")):n=a.basename(new s.URL(this.requestURL).pathname).length>0?a.basename(new s.URL(this.requestURL).pathname):new s.URL(this.requestURL).hostname+".html",this.__opts.fileName?this.__getFileNameFromOpts(n,t):n.replace(/\.*$/,"")}},{key:"__getFilePath",value:function(e){var t=a.join(this.__destFolder,e),n=t;return this.__opts.override||this.state===this.__states.RESUMED||t!==(n=this.__uniqFileNameSync(n))&&this.emit("renamed",{path:n,fileName:n.split(a.sep).pop(),prevPath:t,prevFileName:t.split(a.sep).pop()}),n}},{key:"__getFileNameFromOpts",value:function(e,t){if(!this.__opts.fileName)return e;if("string"==typeof this.__opts.fileName)return this.__opts.fileName;if("function"==typeof this.__opts.fileName){var n=a.join(this.__destFolder,e);return t&&t.headers||this.__response&&this.__response.headers?this.__opts.fileName(e,n,(t||this.__response).headers["content-type"]):this.__opts.fileName(e,n)}if("object"===r(this.__opts.fileName)){var o=this.__opts.fileName,i=o.name,s=!!o.hasOwnProperty("ext")&&o.ext;if("string"==typeof s)return i+"."+s;if("boolean"==typeof s){if(s)return i;var c=e.includes(".")?e.split(".").pop():"";return""===c?i:i+"."+c}}return e}},{key:"__calculateStats",value:function(e){var t=new Date,n=t-this.__statsEstimate.time,r=t-this.__statsEstimate.throttleTime,o=this.__total||0;e&&(this.__downloaded+=e,this.__progress=0===o?0:this.__downloaded/o*100,(this.__downloaded===o||n>1e3)&&(this.__statsEstimate.time=t,this.__statsEstimate.bytes=this.__downloaded-this.__statsEstimate.prevBytes,this.__statsEstimate.prevBytes=this.__downloaded),(this.__downloaded===o||r>this.__opts.progressThrottle)&&(this.__statsEstimate.throttleTime=t,this.emit("progress.throttled",this.getStats())),this.emit("progress",this.getStats()))}},{key:"__setState",value:function(e){this.state=e,this.emit("stateChanged",this.state)}},{key:"__getReqOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new s.URL(t),o={protocol:r.protocol,host:r.hostname,port:r.port,path:r.pathname+r.search,method:e};return n&&(o.headers=n),o}},{key:"__getFilesizeInBytes",value:function(e){try{return i.statSync(e,{throwIfNoEntry:!1}).size||0}catch(t){this.emit("warning",t)}return 0}},{key:"__validate",value:function(e,t){if("string"!=typeof e)throw Error("URL should be an string");if(""===e.trim())throw Error("URL couldn't be empty");if("string"!=typeof t)throw Error("Destination Folder should be an string");if(""===t.trim())throw Error("Destination Folder couldn't be empty");if(!i.existsSync(t))throw Error("Destination Folder must exist");if(!i.statSync(t).isDirectory())throw Error("Destination Folder must be a directory");try{i.accessSync(t,i.constants.W_OK)}catch(n){throw Error("Destination Folder must be writable")}return!0}},{key:"__initProtocol",value:function(e){var t=this.__getReqOptions(this.__opts.method,e,this.__headers);this.requestURL=e,e.indexOf("https://")>-1?(this.__protocol=u,t.agent=new u.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpsRequestOptions)):(this.__protocol=c,t.agent=new c.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpRequestOptions))}},{key:"__uniqFileNameSync",value:function(e){if("string"!=typeof e||""===e)return e;try{i.accessSync(e,i.F_OK);var t=e.match(/(.*)(\([0-9]+\))(\..*)$/),n=t?t[1].trim():e,r=t?parseInt(t[2].replace(/\(|\)/,"")):0,o=e.split(".").pop();return o!==e&&o.length>0?n=n.replace(o="."+o,""):o="",this.__uniqFileNameSync(n+" ("+ ++r+")"+o)}catch(s){return e}}},{key:"__removeFile",value:function(){var e=this;return new Promise((function(t){return e.__fileStream?void e.__fileStream.close((function(n){return n&&e.emit("warning",n),e.__opts.removeOnFail?i.access(e.__filePath,(function(r){return r?t():void i.unlink(e.__filePath,(function(r){r&&e.emit("warning",n),t()}))})):void t()})):t()}))}},{key:"__requestAbort",value:function(){this.__isAborted=!0,this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__response&&this.__response.destroy(),this.__request&&(this.__request.destroy?this.__request.destroy():this.__request.abort())}},{key:"__emitStop",value:function(){this.__resolvePending(),this.__setState(this.__states.STOPPED),this.emit("stop")}}]),t}(l.EventEmitter)}(xd)),xd);const{GITHUB_ACTIONS:Ad}=Ai,{appendFile:Ld}=Pr,$d="Dpkg::Lock::Timeout=300";let Dd=!1;const kd=Al((function(e=Ze()){x(e,"nala"!==e?["update","-y","-o",$d]:["update","-o",$d],{...Sa,env:Je(e)}),Dd=!0}));var Ud,jd;(jd=Ud||(Ud={}))[jd.NameDashVersion=0]="NameDashVersion",jd[jd.NameEqualsVersion=1]="NameEqualsVersion",jd[jd.Name=2]="Name",jd[jd.None=3]="None";const Fd=Al((async function(e){kd(e);const t=await nt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&x(e,["install","-y","--fix-broken","-o",$d,...t],{...Sa,env:Je(e)})}),{promise:!0}),Md=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"],Bd="/etc/apt/trusted.gpg.d",Gd="keyserver.ubuntu.com";let Vd,Hd,qd,zd,Wd,Xd=!1,Kd=!1,Yd=!1,Jd=!1;const Qd=/Version\s*:\s*(.*)/g;let Zd=!1;var eh,th;const nh=e(function(){if(th)return eh;th=1;var e=$r;return eh=function(t,n){if("string"!=typeof t)return t;if(0===t.length)return t;var r,o=e.basename(t,e.extname(t))+n,i=e.join(e.dirname(t),o);return(r=t.slice(0,2))==="."+e.sep||"./"===r?"."+e.sep+i:i}}());var rh={},oh={};_t(oh,"name",(()=>bt));var ih={};_t(ih,"normalizeTrim",(()=>St));var sh={};_t(sh,"addExeExt",(()=>Ot));var ah={};_t(ah,"addNamePrefix",(()=>Rt));var ch={};_t(ch,"addNameSuffix",(()=>It));var uh={};_t(uh,"addShExt",(()=>Tt));var lh={};_t(lh,"addShRelativePrefix",(()=>Pt));var fh={};_t(fh,"removeExt",(()=>Ct));var ph={};_t(ph,"replaceExt",(()=>xt));var dh={};_t(dh,"isPathInside",(()=>Nt)),gt(rh,oh),gt(rh,ih),gt(rh,sh),gt(rh,ah),gt(rh,ch),gt(rh,uh),gt(rh,lh),gt(rh,fh),gt(rh,ph),gt(rh,dh);const hh=e(ke()),mh=e($e()),yh=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],vh=["x86","i386","ia32","win32","32","x32"],wh=["aarch64","arm64","woa64","arm"],Eh=["armv7","armv7a"],gh=["powerpc64le","ppc64le"],_h=["sparc64"],bh=["sparcv9"];var Sh,Oh,Rh,Ih,Th,Ph,Ch,xh,Nh,Ah,Lh,$h={},Dh={exports:{}},kh={exports:{}},Uh=Dh.exports,jh={},Fh=function(){function e(e,t){const n=[];t=t||w.arch();const r=E.join(s(),e);if(y.existsSync(r)){const e=y.readdirSync(r);for(const i of e)if(o(i)){const e=E.join(r,i,t||"");y.existsSync(e)&&y.existsSync(e+".complete")&&n.push(i)}}return n}function t(e){return p(this,void 0,void 0,(function*(){return e||(e=E.join(a(),R.default())),yield m.mkdirP(e),e}))}function n(e,t,n){return p(this,void 0,void 0,(function*(){const r=E.join(s(),e,_.clean(t)||t,n||"");h.debug("destination "+r);const o=r+".complete";return yield m.rmRF(r),yield m.rmRF(o),yield m.mkdirP(r),r}))}function r(e,t,n){const r=E.join(s(),e,_.clean(t)||t,n||"");y.writeFileSync(r+".complete",""),h.debug("finished caching tool")}function o(e){const t=_.clean(e)||"";h.debug("isExplicit: "+t);const n=null!=_.valid(t);return h.debug("explicit? "+n),n}function i(e,t){let n="";h.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort(((e,t)=>_.gt(e,t)?1:-1))).length-1;r>=0;r--){const o=e[r];if(_.satisfies(o,t)){n=o;break}}return h.debug(n?"matched: "+n:"match not found"),n}function s(){const e=process.env.RUNNER_TOOL_CACHE||"";return O.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return O.ok(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=xo[e];return void 0!==n?n:t}if(Ah)return $h;Ah=1;var u=$h.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=$h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=$h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&u(t,e,n);return l(t,e),t},p=$h.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},d=$h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($h,"__esModule",{value:!0}),$h.evaluateVersions=$h.isExplicitVersion=$h.findFromManifest=$h.getManifestFromRepo=$h.findAllVersions=$h.find=$h.cacheFile=$h.cacheDir=$h.extractZip=$h.extractXar=$h.extractTar=$h.extract7z=$h.downloadTool=$h.HTTPError=void 0;const h=f(We()),m=f(qe()),y=f(Tr),v=f((Oh||(Oh=1,function(e,t){var n=Uh&&Uh.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=Uh&&Uh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Uh&&Uh.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t},i=Uh&&Uh.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const s=o(At()),a=We(),c=Or,u=Qr,l=Tr;t._findMatch=function(t,n,r,o){return i(this,void 0,void 0,(function*(){const i=c.platform();let u,l,f;for(const c of r){const r=c.version;if(a.debug(`check ${r} satisfies ${t}`),s.satisfies(r,t)&&(!n||c.stable===n)&&(f=c.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${i}`);let n=t.arch===o&&t.platform===i;if(n&&t.platform_version){const r=e.exports._getOsVersion();n=r===t.platform_version||s.satisfies(r,t.platform_version)}return n})),f)){a.debug("matched "+c.version),l=c;break}}return l&&f&&(u=Object.assign({},l),u.files=[f]),u}))},t._getOsVersion=function(){const t=c.platform();let n="";if("darwin"===t)n=""+u.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){n=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return n},t._readLinuxVersionFile=function(){const e="/etc/lsb-release",t="/etc/os-release";let n="";return l.existsSync(e)?n=""+l.readFileSync(e):l.existsSync(t)&&(n=""+l.readFileSync(t)),n}}(Dh,Dh.exports)),Dh.exports)),w=f(Or),E=f($r),g=f(Ei),_=f(At()),b=f(to),S=f(Jr),O=Zr,R=d(function(){if(xh)return Ch;xh=1;var e=function(){if(Ih)return Rh;Ih=1;var e=Lr;return Rh=function(){return e.randomBytes(16)}}(),t=function(){if(Ph)return Th;Ph=1;for(var e=[],t=0;256>t;++t)e[t]=(t+256).toString(16).substr(1);return Th=function(t,n){var r=n||0;return""+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]}}();return Ch=function(n,r,o){var i=r&&o||0;"string"==typeof n&&(r="binary"===n?Array(16):null,n=null);var s=(n=n||{}).random||(n.rng||e)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,r)for(var a=0;16>a;++a)r[i+a]=s[a];return r||t(s)}}()),I=ze(),T=function(){if(Nh)return jh;Nh=1;var e=jh.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=jh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=jh.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&Object.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r},r=jh.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(jh,"__esModule",{value:!0}),jh.RetryHelper=void 0;const o=n(We());return jh.RetryHelper=class{constructor(e,t,n){if(1>e)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(e,t){return r(this,void 0,void 0,(function*(){let n=1;for(;this.maxAttempts>n;){try{return yield e()}catch(r){if(t&&!t(r))throw r;o.info(r.message)}const i=this.getSleepAmount();o.info(`Waiting ${i} seconds before trying again`),yield this.sleep(i),n++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return r(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}},jh}();class P extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}$h.HTTPError=P;const C="win32"===process.platform,x="darwin"===process.platform;return $h.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||E.join(a(),R.default()),yield m.mkdirP(E.dirname(t)),h.debug("Downloading "+e),h.debug("Destination "+t);const o=c("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=c("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new T.RetryHelper(3,o,i);return yield s.execute((()=>p(this,void 0,void 0,(function*(){return yield function(e,t,n,r){return p(this,void 0,void 0,(function*(){if(y.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new g.HttpClient("actions/tool-cache",[],{allowRetries:!1});n&&(h.debug("set auth"),void 0===r&&(r={}),r.authorization=n);const i=yield o.get(e,r);if(200!==i.message.statusCode){const t=new P(i.message.statusCode);throw h.debug(`Failed to download from "${e}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),t}const s=S.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message))();let u=!1;try{return yield s(a,y.createWriteStream(t)),h.debug("download complete"),u=!0,t}finally{if(!u){h.debug("download failed");try{yield m.rmRF(t)}catch(l){h.debug(`Failed to delete '${t}'. ${l.message}`)}}}}))}(e,t||"",n,r)}))),(e=>!(e instanceof P&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},$h.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){O.ok(C,"extract7z() not supported on current OS"),O.ok(e,'parameter "file" is required'),n=yield t(n);const o=process.cwd();if(process.chdir(n),r)try{const t=["x",h.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield I.exec(`"${r}"`,t,n)}finally{process.chdir(o)}else{const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${E.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],r={silent:!0};try{const e=yield m.which("powershell",!0);yield I.exec(`"${e}"`,t,r)}finally{process.chdir(o)}}return n}))},$h.extractTar=function(e,n,r="xz"){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");n=yield t(n),h.debug("Checking tar --version");let o="";yield I.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>o+=""+e,stderr:e=>o+=""+e}}),h.debug(o.trim());const i=o.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],h.isDebug()&&!r.includes("v")&&s.push("-v");let a=n,c=e;return C&&i&&(s.push("--force-local"),a=n.replace(/\\/g,"/"),c=e.replace(/\\/g,"/")),i&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",a,"-f",c),yield I.exec("tar",s),n}))},$h.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let o;O.ok(x,"extractXar() not supported on current OS"),O.ok(e,'parameter "file" is required'),n=yield t(n),o=r instanceof Array?r:[r],o.push("-x","-C",n,"-f",e),h.isDebug()&&o.push("-v");const i=yield m.which("xar",!0);var s;return yield I.exec(`"${i}"`,(s=o,Array.from(new Set(s)))),n}))},$h.extractZip=function(e,n){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return n=yield t(n),C?yield function(e,t){return p(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield m.which("pwsh",!1);if(o){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(" ")];h.debug("Using pwsh at path: "+o),yield I.exec(`"${o}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`].join(" ")],t=yield m.which("powershell",!0);h.debug("Using powershell at path: "+t),yield I.exec(`"${t}"`,e)}}))}(e,n):yield function(e,t){return p(this,void 0,void 0,(function*(){const n=yield m.which("unzip",!0),r=[e];h.isDebug()||r.unshift("-q"),r.unshift("-o"),yield I.exec(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},$h.cacheDir=function(e,t,o,i){return p(this,void 0,void 0,(function*(){if(o=_.clean(o)||o,i=i||w.arch(),h.debug(`Caching tool ${t} ${o} ${i}`),h.debug("source dir: "+e),!y.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,o,i);for(const t of y.readdirSync(e)){const n=E.join(e,t);yield m.cp(n,s,{recursive:!0})}return r(t,o,i),s}))},$h.cacheFile=function(e,t,o,i,s){return p(this,void 0,void 0,(function*(){if(i=_.clean(i)||i,s=s||w.arch(),h.debug(`Caching tool ${o} ${i} ${s}`),h.debug("source file: "+e),!y.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield n(o,i,s),c=E.join(a,t);return h.debug("destination file "+c),yield m.cp(e,c),r(o,i,s),a}))},$h.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||w.arch(),o(n)||(n=i(e(t,r),n));let a="";if(n){n=_.clean(n)||"";const e=E.join(s(),t,n,r);h.debug("checking cache: "+e),y.existsSync(e)&&y.existsSync(e+".complete")?(h.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):h.debug("not found")}return a},$h.findAllVersions=e,$h.getManifestFromRepo=function(e,t,n,r="master"){return p(this,void 0,void 0,(function*(){let o=[];const i=`https://api.github.com/repos/${e}/${t}/git/trees/${r}`,s=new g.HttpClient("tool-cache"),a={};n&&(h.debug("set auth"),a.authorization=n);const c=yield s.getJson(i,a);if(!c.result)return o;let u="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){u=e.url;break}a.accept="application/vnd.github.VERSION.raw";let l=yield(yield s.get(u,a)).readBody();if(l){l=l.replace(/^\uFEFF/,"");try{o=JSON.parse(l)}catch(f){h.debug("Invalid json")}}return o}))},$h.findFromManifest=function(e,t,n,r=w.arch()){return p(this,void 0,void 0,(function*(){return yield v._findMatch(e,t,n,r)}))},$h.isExplicitVersion=o,$h.evaluateVersions=i,$h}(),Mh={};const Bh=e(function(){function e(n,r){if(!n||!r)throw Error("retry-as-promised must be passed a callback and a options set");const o={$current:"$current"in(r="number"==typeof r?{max:r}:r)?r.$current:1,max:r.max,timeout:r.timeout||void 0,match:r.match?Array.isArray(r.match)?r.match:[r.match]:[],backoffBase:void 0===r.backoffBase?100:r.backoffBase,backoffExponent:r.backoffExponent||1.1,report:r.report,name:r.name||n.name||"unknown"};return o.match&&!Array.isArray(o.match)&&(o.match=[o.match]),o.report&&o.report("Trying "+o.name+" #"+o.$current+" at "+(new Date).toLocaleTimeString(),o),new Promise((function(r,i){let s,a,c;o.timeout&&(s=setTimeout((function(){a&&clearTimeout(a),i(new t(o.name+" timed out",c))}),o.timeout)),Promise.resolve(n({current:o.$current})).then(r).then((function(){s&&clearTimeout(s),a&&clearTimeout(a)})).catch((function(t){s&&clearTimeout(s),a&&clearTimeout(a),c=t,o.report&&o.report(t&&""+t||t,o,t);var u=o.max>o.$current;if(!u)return i(t);if(u=0===o.match.length||o.match.some((function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0}catch(n){return!!e(t)}return e===""+t||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(""+t))}(e,t)})),!u)return i(t);var l=o.backoffBase*Math.pow(o.backoffExponent,o.$current-1);o.$current++,o.report&&o.report(`Retrying ${o.name} (${o.$current})`,o),l?(o.report&&o.report(`Delaying retry of ${o.name} by ${l}`,o),a=setTimeout((function(){e(n,o).then(r).catch(i)}),l)):e(n,o).then(r).catch(i)}))}))}if(Lh)return Mh;Lh=1,Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.retryAsPromised=Mh.TimeoutError=void 0;class t extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return Mh.TimeoutError=t,Mh.retryAsPromised=e,Mh.default=e,Mh}());var Gh,Vh,Hh,qh,zh,Wh,Xh,Kh,Yh,Jh,Qh,Zh,em,tm,nm,rm,om,im,sm,am,cm,um,lm,fm,pm,dm,hm,mm,ym,vm,wm,Em,gm,_m,bm,Sm,Om,Rm,Im,Tm,Pm,Cm,xm,Nm,Am,Lm,$m,Dm,km,Um,jm,Fm,Mm,Bm,Gm,Vm,Hm,qm,zm,Wm,Xm,Km,Ym,Jm,Qm={},Zm={},ey={},ty={},ny=un();let ry;const{GITHUB_ACTIONS:oy}=Do,iy=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||Cr,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise(((r,o)=>t.mkdir(e,n,((e,t)=>e?o(e):r(t))))),e.stat=e.stat||n.stat||xr,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise(((n,r)=>t.stat(e,((e,t)=>e?r(e):n(t))))),e.statSync=e.statSync||n.statSync||Nr,e.mkdirSync=e.mkdirSync||n.mkdirSync||Ar,t},sy=(e,t,n)=>{const r=Ur(e),o={...iy(t),recursive:!1};if(r===e)try{return o.mkdirSync(e,o)}catch(i){if(i&&"EISDIR"!==i.code)throw i;return}try{return o.mkdirSync(e,o),n||e}catch(i){const t=i;if(t&&"ENOENT"===t.code)return sy(e,o,sy(r,o,n));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw i;try{if(!o.statSync(e).isDirectory())throw i}catch(s){throw i}}},ay=Object.assign((async(e,t,n)=>{const r=iy(t);r.recursive=!1;const o=Ur(e);return o===e?r.mkdirAsync(e,r).catch((e=>{if(e&&"EISDIR"!==e.code)throw e})):r.mkdirAsync(e,r).then((()=>n||e),(async t=>{const i=t;if(i&&"ENOENT"===i.code)return ay(o,r).then((t=>ay(e,r,t)));if(i&&"EEXIST"!==i.code&&"EROFS"!==i.code)throw t;return r.statAsync(e).then((e=>{if(e.isDirectory())return n;throw t}),(()=>{throw t}))}))}),{sync:sy}),cy=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?cy(e,Ur(t),t):void 0))},uy=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?uy(e,Ur(t),t):void 0}},ly=(e,t)=>{const n=iy(t);if(n.recursive=!0,Ur(e)===e)return n.mkdirSync(e,n);const r=uy(n,e);try{return n.mkdirSync(e,n),r}catch(o){if(o&&"ENOENT"===o.code)return sy(e,n);throw o}},fy=Object.assign((async(e,t)=>{const n={...iy(t),recursive:!0};return Ur(e)===e?await n.mkdirAsync(e,n):cy(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return ay(e,n);throw t}))))}),{sync:ly}),py=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,dy=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=Vr(e),"win32"===py){const t=/[*|"<>?:]/,{root:n}=Hr(e);if(t.test(e.substring(n.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},hy=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),my=+hy[0]>10||10==+hy[0]&&+hy[1]>=12,yy=my?e=>iy(e).mkdirSync===Ar:()=>!1,vy=Object.assign(my?e=>iy(e).mkdir===Cr:()=>!1,{sync:yy}),wy=(e,t)=>{e=dy(e);const n=iy(t);return yy(n)?ly(e,n):sy(e,n)},Ey=Object.assign((async(e,t)=>{e=dy(e);const n=iy(t);return vy(n)?fy(e,n):ay(e,n)}),{mkdirpSync:wy,mkdirpNative:fy,mkdirpNativeSync:ly,mkdirpManual:ay,mkdirpManualSync:sy,sync:wy,native:fy,nativeSync:ly,manual:ay,manualSync:sy,useNative:vy,useNativeSync:yy});var gy=ze();const _y=e(Te()),by=e(Fe()),Sy=e(Re()),Oy=/v?(\d\S*)/,Ry=Al((function(){const e="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),t=$r.join(e,"versions.json");return JSON.parse(Tr.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:Iy}=Do,Ty=Al((async function(e){const t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");const n=(await gy.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push(Dr(n,"Scripts"),Dr(n,"Scripts","bin"),Dr(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0});var Py,Cy={},xy=function(){if(Py)return Cy;Py=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.getUbuntuVersion=void 0;const e=Qr;return Cy.getUbuntuVersion=async function(){if("linux"!==process.platform)return[];const t=await(n="lsb_release",r=["-a"],new Promise(((t,o)=>{e.execFile(n,r,{encoding:"utf8",shell:!1},((e,i,s)=>{if(e)return"errno"in e&&"ENOENT"===e.code?void t(null):void o(Error(`Could not execute \`${n} ${r.join(" ")}\`: ${e} (stderr=${s})`));t(i)}))})));var n,r;if(null===t)return[];const o=/^Distributor ID:\s*(.+)$/,i=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,s=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let a=null,c=null,u=!1;for(const e of t.split("\n")){const t=e.match(o);if(null!==t){if("Ubuntu"!==t[1])return[];u=!0}const n=e.match(i);n&&(a=n);const r=e.match(s);if(r&&(c=r),u&&a&&c)break}if(!u)return[];for(const e of[a,c])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},Cy}();const Ny=Al((async function(){try{if(mt()){try{null===Ea.sync("lsb_release",{nothrow:!0})&&await it([{name:"lsb-release"}])}catch{return Nn()}const e=await xy.getUbuntuVersion();return 0===e.length?Nn():e}return null}catch(e){return d(""+e),null}}),{promise:!0}),Ay=Al((async function(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;const t=ce("~/.local/pipx");if(await ae(t))return t;switch(process.platform){case"win32":e=ce("~/AppData/Local/pipx");break;case"darwin":e=ce("~/Library/Application Support/pipx");break;default:e=ce("~/.local/share/pipx")}return await Ey(e),await Ey(Dr(e,"trash")),await Ey(Dr(e,"shared")),await Ey(Dr(e,"venv")),e}),{promise:!0}),Ly=Al((async function(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;const e=ce("~/.local/bin");return await de(e,wv),await Ey(e),e}),{promise:!0});let $y;const Dy=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"]]]),ky=Al((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||yo.release()).split(".")[0]);const[t,n]=Dy.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),Uy=e(Ie()),{GITHUB_ACTIONS:jy}=Do,Fy="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),{GITHUB_ACTIONS:My}=Do,By="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),Gy="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),Vy="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url));class Hy extends Error{constructor(e){super(e),this.name="TimeoutError"}}class qy extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const zy=e=>void 0===globalThis.DOMException?new qy(e):new DOMException(e),Wy=e=>{const t=void 0===e.reason?zy("This operation was aborted."):e.reason;return t instanceof Error?t:zy(t)};var Xy,Ky={},Yy=function(){function e(e){return Object.values(h).includes(e)?e:e in h?h[e]:e}function t(e){if(Object.keys(h).includes(e))return e;for(const[t,n]of Object.entries(h))if(n===e)return t;return e}function n(e,t){try{return(""+s.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\"+e}catch(n){i.warning("vswhere failed: "+n)}return null}function r(r){const o=e(r);let s;if(o){const e=o.split(".")[0]+".9";s=`-version "${o},${e}"`}else s="-latest";let c=n("VC\\Auxiliary\\Build\\vcvarsall.bat",s);if(c&&a.existsSync(c))return i.info("Found with vswhere: "+c),c;i.info("Not found with vswhere");const u=r?[t(r)]:d;for(const e of f)for(const t of u)for(const n of p)if(c=`${e}\\Microsoft Visual Studio\\${t}\\${n}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,i.info("Trying standard location: "+c),a.existsSync(c))return i.info("Found standard location: "+c),c;if(i.info("Not found in standard locations"),c=l+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",a.existsSync(c))return i.info("Found VS 2015: "+c),c;throw i.info("Not found in VS 2015 location: "+c),Error("Microsoft Visual Studio not found")}function o(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}if(Xy)return Ky;Xy=1;const i=We(),s=Qr,a=Tr,c=$r,u=bo,l=u.env["ProgramFiles(x86)"],f=[u.env["ProgramFiles(x86)"],u.env.ProgramFiles],p=["Enterprise","Professional","Community","BuildTools"],d=["2022","2019","2017"],h={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};Ky.vsversion_to_versionnumber=e,Ky.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return Ky.findWithVswhere=n,Ky.findVcvarsall=r,Ky.setupMSVCDevCmd=function(e,t,n,a,l,f){if("win32"!=u.platform)return void i.info("This is not a Windows virtual environment, bye!");u.env.PATH+=c.delimiter+m;let p={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in p&&(e=p[e.toLowerCase()]);var d=[e];a&&!0===JSON.parse(a)&&d.push("uwp"),t&&d.push(t),n&&d.push("-vcvars_ver="+n),l&&!0===JSON.parse(l)&&d.push("-vcvars_spectre_libs=spectre");const h=`"${r(f)}" ${d.join(" ")}`;i.debug("vcvars command-line: "+h);const y=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),v=y[0].split("\r\n"),w=y[1].split("\r\n"),E=y[2].split("\r\n"),g=w.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(g.length>0)throw Error("invalid parameters\r\n"+g.join("\r\n"));let _={};for(let r of v){const[e,t]=r.split("=");_[e]=t}i.startGroup("Environment variables");for(let r of E){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==_[e]&&(i.info("Setting "+e),o(e)&&(t=t.split(";").filter((function(e,t,n){return n.indexOf(e)===t})).join(";")),i.exportVariable(e,t))}i.endGroup(),i.info("Configured Developer Command Prompt")},Ky}(),Jy=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(Jy||{});const Qy="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),{GITHUB_ACTIONS:Zy}=Do,ev="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),tv=Al((async function(e,t,n){const[r,o]=await Promise.all([dr(e,t,n),mr()]);return await rv(n),r}),{promise:!0}),nv=Al((async function(e){if(mt())for(const r of["libtinfo5","libtinfo6"])try{await it([{name:r}])}catch(t){try{if("libtinfo5"===r){m(`Failed to install ${r}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${yh.includes(process.arch)?"amd64":wh.includes(process.arch)?"arm64":process.arch}.deb`,t="http://launchpadlibrarian.net/666971015/"+e,n=new Nd.DownloaderHelper(t,Ir(),{fileName:e});n.on("error",(async e=>{m(`Failed to download ${t}: ${e}`),await n.stop()})),await n.start(),x("dpkg",["-i",Dr(Ir(),e)])}}catch(n){m(`Failed to install ${r}. Ignoring`)}}else ht()?await Et("ncurses5-compat-libs",void 0,"yay"):dt()&&await wt([{name:"ncurses-compat-libs"}])}),{promise:!0}),rv=Al((async function(e){"linux"===process.platform&&await Qn(bn("gcc",void 0,await Ny()),"",e,40)}),{promise:!0}),{GITHUB_ACTIONS:ov}=Do,iv="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url));let sv,av=!1;const cv={llvm:lr,clang:lr,"clang++":lr},uv={gcc:Qn,"g++":Qn},lv={mingw:Wn},fv={msvc:yr,cl:yr,msbuild:yr,visualstudio:yr},pv={appleclang:sr,applellvm:sr,"apple-clang":sr,"apple-llvm":sr},dv={cmakelang:jn,"cmake-lint":jn,"cmake-format":jn,cmakelint:jn,cmakeformat:jn},hv=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],mv={nala:async function(e,t,n){if(!mt())return;if("string"==typeof sv)return{binDir:sv};const r=Ea.sync("nala",{nothrow:!0});if(null!==r)return sv=Ur(r),{binDir:sv};await it([{name:"python3-apt"}]),sv="/usr/bin";try{const t=await rt({name:"nala",version:e});if(void 0!==t)return await it([{name:t}]),{binDir:sv}}catch(o){m("Failed to install nala: "+o)}try{const e=await rt({name:"nala-legacy"});if(void 0!==e)return await it([{name:e}],!0),{binDir:sv}}catch(o){m("Failed to install nala-legacy: "+o)}return await async function(){const e=new Nd.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh",Ir(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=Dr(Ir(),"install-nala.sh"),n=await co(t,"utf8");await uo(t,n.replace(/sudo/g,"")),await it([{name:"wget"}]);try{x("bash",[t])}catch(o){p("Failed to install nala via installer: "+o),x("apt",["install","-y","-t","nala","nala"])}}(),{binDir:sv}},brew:ut,choco:yt,python:Rn,powershell:gr,pwsh:gr,...cv,...uv,...lv,...fv,...pv,...dv,cmake:En,ninja:nr,vcpkg:async function(e,t,n){return av&&null!==Ea.sync("vcpkg",{nothrow:!0})?{binDir:Ur(Ea.sync("vcpkg"))}:("linux"===process.platform&&(ht()?await Promise.all([Et("curl"),Et("zip"),Et("unzip"),Et("tar"),Et("git"),Et("pkg-config")]):dt()?await wt([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):mt()&&await it([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}])),await ae(Dr(t,Tt("bootstrap-vcpkg",".bat")))?h(`Vcpkg folder already exists at ${t}. Skipping the clone`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Ur(t),stdio:"inherit"}),""!==e&&"true"!==e&&(m("Checking out vcpkg version "+e),b("git",["checkout",e],{cwd:t,stdio:"inherit"})),b(Tt(Pt("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await D(t),await de(t,wv),av=!0,{binDir:t})},bazel:async function(e,t,n){switch(process.platform){case"win32":return vt("bazelisk",e);case"darwin":return pt("bazelisk",e);case"linux":if(ht())throw Error("installing bazel on Arch linux is not supported yet");if(dt())return await wt([{name:"dnf-plugins-core"}]),x("dnf",["copr","enable","vbatts/bazel"]),wt([{name:"bazel4"}]);if(mt())return x("bash",["-c",`echo "deb [arch=amd64 signed-by=${await st({fileName:"bazel-archive-keyring.gpg",keyUrl:"https://bazel.build/bazel-release.pub.gpg"})}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),it([{name:"bazel",version:e}],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},conan:function(e,t,n){return An("conan",e)},meson:function(e,t,n){return An("meson",e)},gcovr:function(e,t,n){return An("gcovr",e)},opencppcoverage:vr,OpenCppCoverage:vr,ccache:function(e,t,n){switch(process.platform){case"win32":return vt("ccache",e);case"darwin":return pt("ccache",e);case"linux":if(ht())return Et("ccache",e);if(dt())return wt([{name:"ccache",version:e}]);if(mt())return it([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},sccache:function(e,t,n){switch(process.platform){case"win32":return vt("sccache",e);case"linux":case"darwin":return pt("sccache",e);default:throw Error("Unsupported platform")}},doxygen:async function(e,t,n){switch(process.platform){case"win32":{await Bh((()=>vt("doxygen.install",e)),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>m(e)});const t={binDir:await async function(){if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await ae(Dr(e,"doxygen.exe")))return await de(e,wv),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await Fn(bn("graphviz",void 0)),t}case"darwin":{const e=await pt("doxygen",void 0,{formula:!0});return ky()[0]>11&&await Fn(bn("graphviz",void 0)),e}case"linux":{let o;if(""===e||ht()||dt())if(ht())o=await Et("doxygen",e);else{if(dt())return wt([{name:"doxygen",version:e}]);if(!mt())throw Error("Unsupported linux distributions");o=await it([{name:"doxygen",version:e}])}else{if(!mt())throw Error("Unsupported linux distributions");try{o=await vn("doxygen",e,Bn,t,n);try{await it([{name:"libclang-cpp9"}])}catch(r){m("Failed to download libclang-cpp9 that might be needed for running doxygen. "+r)}}catch(r){h(`Failed to download doxygen binary. ${r}. Falling back to apt-get.`),o=await it([{name:"doxygen"}])}}return await Fn(bn("graphviz",void 0,await Ny())),o}default:throw Error("Unsupported platform")}},graphviz:Fn,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await vt("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await de(e,wv),e}()};case"darwin":return pt("cppcheck",e);case"linux":if(ht())return Et("cppcheck",e);if(dt())return wt([{name:"ccache",version:e}]);if(mt())return it([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},cpplint:function(e,t,n){return An("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return An("flawfinder",e)},lizard:function(e,t,n){return An("lizard",e)},infer:function(e,t,n){return vn("infer",e,er,t,n)},"clang-tidy":pr,clangtidy:pr,"clang-format":fr,clangformat:fr,vcvarsall:ar,kcov:async function(e,t,n){if("linux"!==process.platform)return void m("Kcov is not supported on non-linux");const r=e.split("-");let o=function(e){return e.match(/^v/)?e:"v"+e}(r[0]);const i=r[1],s=function(e){return Number.parseInt(e.replace(/^v/,""),10)}(o);let a;return 38===s&&(o="v38"),"binary"!==i||39>s?(a=await vn("kcov",o,or,t,n),a):(a=await vn("kcov",o,rr,t,n),ht()?await Et("binutils"):dt()?await wt([{name:"binutils"}]):mt()&&await it([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return vt("make",e);case"darwin":{await pt("make",e);const t=Dr(ft(),"opt/make/libexec/gnubin");return await de(t,wv),{binDir:t}}case"linux":if(ht())return Et("make",e);if(dt())return wt([{name:"make",version:e}]);if(mt())return it([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task:function(e,t,n){return vn("task",e,_r,t,n)},sevenzip:ln,"7zip":ln,"7z":ln},yv=Object.keys(mv),vv=["compiler","architecture","timeout",...yv],wv={rcPath:ce("~/.cpprc"),guard:"cpp"};(async function(e){let t=Promise.resolve();$o.GITHUB_ACTIONS||(t=async function(){try{await nd({pkg:rd})}catch(e){d("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const n=function(e){return function(e,t){var n,r,o,i,s,a={_:[]},c=0,u=0,l=0,f=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,d=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=Xe(t.string),t.boolean=Xe(t.boolean),p)for(n in t.alias)for(r=t.alias[n]=Xe(t.alias[n]),c=0;r.length>c;c++)(t.alias[r[c]]=r.concat(n)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(u=(r=t.alias[t.boolean[c]]||[]).length;u-- >0;)t.boolean.push(r[u]);for(c=t.string.length;c-- >0;)for(u=(r=t.alias[t.string[c]]||[]).length;u-- >0;)t.string.push(r[u]);if(h)for(n in t.default)if(i=typeof t.default[n],r=t.alias[n]=t.alias[n]||[],void 0!==t[i])for(t[i].push(n),c=0;r.length>c;c++)t[i].push(r[c]);const m=d?Object.keys(t.alias):[];for(c=0;f>c;c++){if("--"===(o=e[c])){a._=a._.concat(e.slice(++c));break}for(u=0;o.length>u&&45===o.charCodeAt(u);u++);if(0===u)a._.push(o);else if("no-"===o.substring(u,u+3)){if(i=o.substring(u+3),d&&!~m.indexOf(i))return t.unknown(o);a[i]=!1}else{for(l=u+1;o.length>l&&61!==o.charCodeAt(l);l++);for(i=o.substring(u,l),s=o.substring(++l)||c+1===f||45===(""+e[c+1]).charCodeAt(0)||e[++c],r=2===u?[i]:i,l=0;r.length>l;l++){if(i=r[l],d&&!~m.indexOf(i))return t.unknown("-".repeat(u)+i);Ke(a,i,r.length>l+1||s,t)}}}if(h)for(n in t.default)void 0===a[n]&&(a[n]=t.default[n]);if(p)for(n in a)for(r=t.alias[n]||[];r.length>0;)a[r.shift()]=a[n];return a}(e,{string:[...vv,"timeout"],default:Object.fromEntries(vv.map((e=>[e,br(e)]))),alias:{h:"help"},boolean:"help"})}(e);n.help&&(m('\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\t the to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n--$tool_name\t pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n'),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --apple-clang, --vcvarsall"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},"analyzer/linter":{tools:"--clang-tidy, --clang-format, --cppcheck, --cpplint, --flawfinder, --lizard, --infer, , --cmakelang, --cmake-lint, --cmake-format"},cache:{tools:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));const r=n.architecture??process.arch,o=process.env.SETUP_CPP_DIR??ce("~"),i=[],s=[],a=hf.create({autoloadLocales:!0});let c,u;hf.addLocale(vf),of.addLocale(af);const l=await Ny(),f=void 0!==n.compiler?function(e){try{const t=e.split("-"),n=t[0];if(1 in t){const e=t[1];return null===Sy(e)&&m(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}catch(t){return p(`Failed to parse the compiler info ${e}: ${t}`),{compiler:e,version:void 0}}}(n.compiler):void 0;if(!function(e,t,n){const r=void 0!==n&&t.includes(n.compiler),o=(r?t:t.filter((e=>"compiler"!==e))).filter((t=>void 0!==e[t])),i=o.filter((t=>!On(r&&"compiler"===t&&void 0!==n?n.version:e[t]))),s=0!==i.length?r&&"compiler"===i[0]&&void 0!==n?n.version??"true":e[i[0]]??"true":"true";if(i.some((t=>r&&"compiler"===t&&void 0!==n?e.compiler!==`${n.compiler}-${s}`:e[t]!==s)))return!1;for(const a of o)e[a]=r&&"compiler"===a&&void 0!==n?`${n.compiler}-${s}`:s;return!0}(n,[...hv,"compiler"],f))return p("The same version must be used for llvm, clang-format and clang-tidy"),1;ht()&&"string"==typeof n.cppcheck&&"string"==typeof n.gcovr&&(m("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await Et("python-pygments"));let h=!1;for(const p of yv){if($o.isCI&&0!==s.length){h=!0;break}const e=n[p];void 0!==e&&(c=Date.now(),await cr(p,e,l,r,o,i,s,60*Number.parseFloat(n.timeout??"20")*1e3),u=Date.now(),m("took "+(a.format(c,u)||"0 seconds")))}if(!h&&void 0!==f){const e=Date.now();await async function(e,t,n,r,o,i,s){let a;try{if(Cd.startGroup(`Installing ${e} ${t??""}`),e in cv)a=await lr(bn("llvm",t,n),Dr(r,"llvm"),o),await fe("GCOV","llvm-cov gcov",wv);else if(e in uv){const e=bn("gcc",t,n);a=await Qn(e,Dr(r,"gcc"),o),await Zn(e)}else if(e in lv){const e=bn("mingw",t,n);a=await Wn(e,Dr(r,"gcc"),o),await Zn(e)}else e in fv?a=await yr(bn("msvc",t,n),Dr(r,"msvc"),o):e in pv?await sr():(a=null,s.push("Unsupported compiler "+e))}catch(c){p(c),s.push(`Failed to install the ${e} ${t}`)}null!==a&&i.push(Sr(e,a)),Cd.endGroup()}(f.compiler,f.version,l,o,r,i,s);const t=Date.now();m("took "+(a.format(e,t)||"0 seconds"))}if(await async function(e){if(await ae(e.rcPath)){const t=(await Dl(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await kl(e.rcPath,n.join("\n")),await D(e.rcPath)}}(wv),0===i.length&&0===s.length)return d("setup-cpp was called without any arguments. Nothing to do."),0;for(const p of i)console.log(`${p}`);for(const d of s)p(d);if(m("setup-cpp finished"),!$o.GITHUB_ACTIONS)switch(process.platform){case"win32":d("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":d("Run `source ~/.cpprc` or restart your shell to update the environment.")}return await t,0===s.length?0:1})(process.argv).then((e=>{process.exitCode=e})).catch((e=>{p("main() panicked!"),p(e),process.exitCode=1}));export{vi as H,Cd as a,Do as b,xo as c,gy as e,e as g,m as i,ae as p,Be as r,Fh as t,d as w}; +function e(e){return e&&e.__esModule&&{}.hasOwnProperty.call(e,"default")?e.default:e}function t(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function n(){return ko||(ko=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.toCommandProperties=Mo.toCommandValue=void 0,Mo.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Mo.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}:{}}),Mo}function r(){return Vo>Go.length-16&&(Lr.randomFillSync(Go),Vo=0),Go.slice(Vo,Vo+=16)}function o(e){return"string"==typeof e&&Ho.test(e)}function i(e,t=0){const n=(qo[e[t+0]]+qo[e[t+1]]+qo[e[t+2]]+qo[e[t+3]]+"-"+qo[e[t+4]]+qo[e[t+5]]+"-"+qo[e[t+6]]+qo[e[t+7]]+"-"+qo[e[t+8]]+qo[e[t+9]]+"-"+qo[e[t+10]]+qo[e[t+11]]+qo[e[t+12]]+qo[e[t+13]]+qo[e[t+14]]+qo[e[t+15]]).toLowerCase();if(!o(n))throw TypeError("Stringified UUID is invalid");return n}function s(e){if(!o(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function a(e,t,n){function r(e,r,o,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;e.length>n;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=s(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){a=a||0;for(let e=0;16>e;++e)o[a+e]=c[e];return o}return i(c)}try{r.name=e}catch(o){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function c(e){const t="https:"===e.protocol;if(function(e){if(!e.hostname)return!1;if(function(e){const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let n;e.port?n=Number(e.port):"http:"===e.protocol?n=80:"https:"===e.protocol&&(n=443);const r=[e.hostname.toUpperCase()];"number"==typeof n&&r.push(`${r[0]}:${n}`);for(const o of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===o||r.some((e=>e===o||e.endsWith("."+o)||o.startsWith(".")&&e.endsWith(""+o))))return!0;return!1}(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new ti(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new ti("http://"+n)}}function u(){if(gi)return Ri;gi=1;var e=Ri.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};return Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.PersonalAccessTokenCredentialHandler=Ri.BearerCredentialHandler=Ri.BasicCredentialHandler=void 0,Ri.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Ri.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Ri.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Ri}function l(){return bi||(bi=1,function(e){var t=Ii.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Or,r=Tr,{access:o,appendFile:i,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield o(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:i;return yield r(n,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,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(n,r);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:o}=e,i=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),o&&{rowspan:o});return this.wrap(i,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:o}=n||{},i=Object.assign(Object.assign({},r&&{width:r}),o&&{height:o}),s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(Ii)),Ii}function f(){return Oi||(Oi=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function r(e,t={}){d.issueCommand("error",m.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){d.issue("group",e)}function i(){d.issue("endgroup")}var s=jo.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=jo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=jo.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&s(t,e,n);return a(t,e),t},p=jo.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const d=function(){function e(e,t,n){const r=new a(e,t,n);process.stdout.write(""+r+i.EOL)}if(Uo)return Fo;Uo=1;var t=Fo.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=Fo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Fo.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.issue=Fo.issueCommand=void 0;const i=o(Or),s=n();Fo.issueCommand=e,Fo.issue=function(t,n=""){e(t,{},n)};class a{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const o=this.properties[r];o&&(n?n=!1:e+=",",e+=`${r}=${t=o,s.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return Fo}(),h=function(){if(Zo)return Bo;Zo=1;var e=Bo.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Bo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Bo.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&Object.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.prepareKeyValueMessage=Bo.issueFileCommand=void 0;const o=r(Tr),i=r(Or),s=Qo,a=n();return Bo.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!o.existsSync(n))throw Error("Missing file at path: "+n);o.appendFileSync(n,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})},Bo.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+s.v4(),r=a.toCommandValue(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(r.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${i.EOL}${r}${i.EOL}${n}`},Bo}(),m=n(),y=c(Or),v=c($r),w=function(){if(_i)return ei;_i=1;var e=ei.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(ei,"__esModule",{value:!0}),ei.OidcClient=void 0;const t=Ei,n=u(),o=f();class i{static createHttpClient(e=!0,r=10){const o={allowRetries:e,maxRetries:r};return new t.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),o.debug("ID token url is "+e);const n=yield i.getCall(e);return o.setSecret(n),n}catch(r){throw Error("Error message: "+r.message)}}))}}return ei.OidcClient=i,ei}();var E,g;(g=E=e.ExitCode||(e.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exportVariable=function(e,t){const n=m.toCommandValue(t);if(process.env[e]=n,process.env.GITHUB_ENV)return h.issueFileCommand("ENV",h.prepareKeyValueMessage(e,t));d.issueCommand("set-env",{name:e},n)},e.setSecret=function(e){d.issueCommand("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?h.issueFileCommand("PATH",e):d.issueCommand("add-path",{},e),process.env.PATH=`${e}${v.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return h.issueFileCommand("OUTPUT",h.prepareKeyValueMessage(e,t));process.stdout.write(y.EOL),d.issueCommand("set-output",{name:e},m.toCommandValue(t))},e.setCommandEcho=function(e){d.issue("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=E.Failure,r(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){d.issueCommand("debug",{},e)},e.error=r,e.warning=function(e,t={}){d.issueCommand("warning",m.toCommandProperties(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){d.issueCommand("notice",m.toCommandProperties(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+y.EOL)},e.startGroup=o,e.endGroup=i,e.group=function(e,t){return p(this,void 0,void 0,(function*(){let n;o(e);try{n=yield t()}finally{i()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return h.issueFileCommand("STATE",h.prepareKeyValueMessage(e,t));d.issueCommand("save-state",{name:e},m.toCommandValue(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return p(this,void 0,void 0,(function*(){return yield w.OidcClient.getIDToken(e)}))};var _=l();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return _.summary}});var b=l();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var S=function(){if(Si)return Ti;Si=1;var e=Ti.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Ti.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Ti.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&Object.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.toPlatformPath=Ti.toWin32Path=Ti.toPosixPath=void 0;const r=n($r);return Ti.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Ti.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Ti.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Ti}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return S.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return S.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return S.toPlatformPath}})}(jo)),jo}function p(e){return Li?Pi.error(e):console.log(`${e}`)}function d(e){return Li?Pi.warning(e):console.log(`${e}`)}function h(e){return Li?Pi.notice(e):console.log(`${e}`)}function m(e){return Li?Pi.info(e):console.log(e)}function y(){if(Bi)return Mi;Bi=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=$r,n=e?";":":",r=function(){function e(n,r,o){if("function"==typeof r&&(o=r,r={}),!o){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(t,o){e(n,r||{},(function(e,n){e?o(e):t(n)}))}))}t(n,r||{},(function(e,t){e&&("EACCES"===e.code||r&&r.ignoreErrors)&&(e=null,t=!1),o(e,t)}))}return Fi||(Fi=1,t="win32"===process.platform||xo.TESTING_WINDOWS?function(){function e(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;n.length>r;r++){var o=n[r].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,n)}function t(t,r,o){n.stat(t,(function(n,i){o(n,!n&&e(i,t,r))}))}if(Di)return $i;Di=1,$i=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Tr;return $i}():function(){function e(e,r,o){n.stat(e,(function(e,n){o(e,!e&&t(n,r))}))}function t(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=a|c;return n&parseInt("001",8)||n&c&&o===s||n&a&&r===i||n&u&&0===i}(e,t)}if(Ui)return ki;Ui=1,ki=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Tr;return ki}(),ji=e,e.sync=function(e,n){try{return t.sync(e,n||{})}catch(r){if(n&&n.ignoreErrors||"EACCES"===r.code)return!1;throw r}}),ji;var t}(),o=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),i=(t,r)=>{const o=r.colon||n,i=t.match(/\//)||e&&t.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(o)],s=e?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=e?s.split(o):[""];return e&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:s}},s=(e,n,s)=>{"function"==typeof n&&(s=n,n={}),n||(n={});const{pathEnv:a,pathExt:c,pathExtExe:u}=i(e,n),l=[],f=r=>new Promise(((i,s)=>{if(r===a.length)return n.all&&l.length?i(l):s(o(e));const c=a[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,f=t.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;i(p(d,r,0))})),p=(e,t,o)=>new Promise(((i,s)=>{if(o===c.length)return i(f(t+1));const a=c[o];r(e+a,{pathExt:u},((r,s)=>{if(!r&&s){if(!n.all)return i(e+a);l.push(e+a)}return i(p(e,t,o+1))}))}));return s?f(0).then((e=>s(null,e)),s):f(0)};return Mi=s,s.sync=(e,n)=>{n=n||{};const{pathEnv:s,pathExt:a,pathExtExe:c}=i(e,n),u=[];for(let o=0;s.length>o;o++){const i=s[o],f=/^".*"$/.test(i)?i.slice(1,-1):i,p=t.join(f,e),d=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;a.length>e;e++){const t=d+a[e];try{if(r.sync(t,{pathExt:c})){if(!n.all)return t;u.push(t)}}catch(l){}}}if(n.all&&u.length)return u;if(n.nothrow)return null;throw o(e)},Mi}function v(){if(Zi)return Qi;Zi=1;const e=$r,t=function(){function e(e,o){const i=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(l){}let u;try{u=n.sync(e.command,{path:i[r({env:i})],pathExt:o?t.delimiter:void 0})}catch(f){}finally{c&&process.chdir(s)}return u&&(u=t.resolve(a?e.options.cwd:"",u)),u}if(Hi)return Vi;Hi=1;const t=$r,n=y(),r=function(){if(Gi)return os.exports;Gi=1;const e=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};return os.exports=e,os.exports.default=e,os.exports}();return Vi=function(t){return e(t)||e(t,!0)}}(),n=function(){if(qi)return is;qi=1;const e=/([()\][%!^"`<>&|;, *?])/g;return is.command=function(t){return t.replace(e,"^$1")},is.argument=function(t,n){return t=(t=`"${t=(t=(t=""+t).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e,"^$1"),n&&(t=t.replace(e,"^$1")),t},is}(),r=function(){if(Ji)return Yi;Ji=1;const e=Tr,t=function(){if(Ki)return Xi;Ki=1;const e=Wi?zi:(Wi=1,zi=/^#!(.*)/);return Xi=(t="")=>{const n=t.match(e);if(!n)return null;const[r,o]=n[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?o:o?`${i} ${o}`:i}}();return Yi=function(n){const r=Buffer.alloc(150);let o;try{o=e.openSync(n,"r"),e.readSync(o,r,0,150,0),e.closeSync(o)}catch(i){}return t(""+r)}}(),o="win32"===process.platform,i=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;return Qi=function(a,c,u){c&&!Array.isArray(c)&&(u=c,c=null);const l={command:a,args:c=c?c.slice(0):[],options:u=Object.assign({},u),file:void 0,original:{command:a,args:c}};return u.shell?l:function(a){if(!o)return a;const c=function(e){e.file=t(e);const n=e.file&&r(e.file);return n?(e.args.unshift(e.file),e.command=n,t(e)):e.file}(a),u=!i.test(c);if(a.options.forceShell||u){const t=s.test(c);a.command=e.normalize(a.command),a.command=n.command(a.command),a.args=a.args.map((e=>n.argument(e,t)));const r=[a.command].concat(a.args).join(" ");a.args=["/d","/s","/c",`"${r}"`],a.command=process.env.comspec||"cmd.exe",a.options.windowsVerbatimArguments=!0}return a}(l)}}function w(e={}){const{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function g(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function _(e,t,n){const r=aa(e,t,n),o=ea(e,t),i=ta(e,t);let s;sa(i,r.options),(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(r.options);try{s=po.spawn(r.file,r.args,r.options)}catch(f){const e=new po.ChildProcess,t=Promise.reject(Ss({error:f,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return Ys(e,t),e}const a=(e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))})))(s),c=((e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let o;const i=new Promise(((r,i)=>{o=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,i)}),t)})),s=r.finally((()=>{clearTimeout(o)}));return Promise.race([i,s])})(s,r.options,a),u=(async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const o=Cs((()=>{e.kill()}));return r.finally((()=>{o()}))})(s,r.options,c);s.kill=xs.bind(null,s.kill.bind(s)),s.cancel=Ds.bind(null,s,{isCanceled:!1});const l=hs((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},c,l,f]=await(async({stdout:t,stderr:n,all:r},{encoding:o,buffer:i,maxBuffer:s},a)=>{const c=Ws(t,{encoding:o,buffer:i,maxBuffer:s}),u=Ws(n,{encoding:o,buffer:i,maxBuffer:s}),l=Ws(r,{encoding:o,buffer:i,maxBuffer:2*s});try{return await Promise.all([a,c,u,l])}catch(e){return Promise.all([{error:e,signal:e.signal,timedOut:e.timedOut},zs(t,c),zs(n,u),zs(r,l)])}})(s,r.options,u),p=ca(r.options,c),d=ca(r.options,l),h=ca(r.options,f);if(e||0!==t||null!==n){const c=Ss({error:e,exitCode:t,signal:n,stdout:p,stderr:d,all:h,command:o,escapedCommand:i,parsed:r,timedOut:a,isCanceled:!!r.options.signal&&r.options.signal.aborted,killed:s.killed});if(!r.options.reject)return c;throw c}return{command:o,escapedCommand:i,exitCode:0,stdout:p,stderr:d,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((e,t)=>{const n=(({input:e,inputFile:t})=>"string"!=typeof t?e:(qs(e),go(t)))(t);void 0!==n&&(E(n)?n.pipe(e.stdin):e.stdin.end(n))})(s,r.options),s.all=((e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=Hs();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=ks.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ks.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ks.bind(void 0,e,"all"))})(s),Ys(s,l),s}function b(e,t,n){const r=aa(e,t,n),o=ea(e,t),i=ta(e,t);sa(i,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(qs(e),Eo(t)))(e);if(E(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(r.options);let a;try{a=po.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Ss({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=ca(r.options,a.stdout,a.error),u=ca(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Ss({stdout:c,stderr:u,error:a.error,signal:a.signal,exitCode:a.status,command:o,escapedCommand:i,parsed:r,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!r.options.reject)return e;throw e}return{command:o,escapedCommand:i,exitCode:0,stdout:c,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function S(){return pa||(pa=1,function(e){var t=ma.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=ma.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ma.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=ma.__exportStar||function(e,n){for(var r in e)"default"===r||{}.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;const i=r(function(){if(ua)return ya;ua=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.sync=ya.isexe=void 0;const e=Tr,t=oo;ya.isexe=async(e,r={})=>{const{ignoreErrors:o=!1}=r;try{return n(await(0,t.stat)(e),r)}catch(i){if(o||"EACCES"===i.code)return!1;throw i}},ya.sync=(t,r={})=>{const{ignoreErrors:o=!1}=r;try{return n((0,e.statSync)(t),r)}catch(i){if(o||"EACCES"===i.code)return!1;throw i}};const n=(e,t)=>e.isFile()&&r(e,t),r=(e,t)=>{const n=t.uid??process.getuid?.(),r=t.groups??process.getgroups?.()??[],o=t.gid??process.getgid?.()??r[0];if(void 0===n||void 0===o)throw Error("cannot get uid or gid");const i=new Set([o,...r]),s=e.mode,a=e.uid,c=e.gid,u=parseInt("100",8),l=parseInt("010",8),f=u|l;return!!(s&parseInt("001",8)||s&l&&i.has(c)||s&u&&a===n||s&f&&0===n)};return ya}());e.posix=i;const s=r(function(){if(la)return va;la=1,Object.defineProperty(va,"__esModule",{value:!0}),va.sync=va.isexe=void 0;const e=Tr,t=oo;va.isexe=async(e,r={})=>{const{ignoreErrors:o=!1}=r;try{return n(await(0,t.stat)(e),e,r)}catch(i){if(o||"EACCES"===i.code)return!1;throw i}},va.sync=(t,r={})=>{const{ignoreErrors:o=!1}=r;try{return n((0,e.statSync)(t),t,r)}catch(i){if(o||"EACCES"===i.code)return!1;throw i}};const n=(e,t,n)=>e.isFile()&&((e,t)=>{const{pathExt:n=process.env.PATHEXT||""}=t,r=n.split(";");if(-1!==r.indexOf(""))return!0;for(let o=0;r.length>o;o++){const t=r[o].toLowerCase(),n=e.substring(e.length-t.length).toLowerCase();if(t&&n===t)return!0}return!1})(t,n);return va}());e.win32=s,o((fa||(fa=1,Object.defineProperty(wa,"__esModule",{value:!0})),wa),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:i;e.isexe=a.isexe,e.sync=a.sync}(ma)),ma}function O(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return _(function(){if(void 0===ga){const e=Ea.sync("pwsh",{nothrow:!0});null!==e&&(ga=e);const t=Ea.sync("powershell",{nothrow:!0});null!==t&&(ga=t)}if(void 0===ga)throw Error("Could not find powershell");return ga}(),[...t,"-c",e],n)}function R(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function I(){return null!==Ea.sync("sudo",{nothrow:!0})}function T(){return 0===process.getuid?.()||!!process.env.CI}function P(){return T()&&I()}function C(e){return P()?"sudo "+e:e}function x(e,t=[],n=Sa){return P()?function(e,t){const[n,...r]=ra(e);return b(n,r,t)}(A(e,t),n):b(e,L(t),n)}function N(e,t=[],n=Sa){return P()?function(e,t){const[n,...r]=ra(e);return _(n,r,t)}(A(e,t),n):_(e,L(t),n)}function A(e,t){return"sudo "+L([e,...t]).join(" ")}function L(e){return e.map((e=>`'${e}'`))}function $(){return"win32"===process.platform?Oa():T()}async function D(e){if(("linux"===process.platform||"darwin"===process.platform)&&P()&&void 0!==process.env.SUDO_USER){let t=Tr.statSync(e).isDirectory();await N("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],Sa)}}function k(){if(Ca)return Pa;Ca=1;var e=(Ta?Ia:(Ta=1,Ia=function(){}))();return Pa=function(t){return t!==e&&null!==t}}function U(){if(Na)return xa;Na=1;var e=k(),t=[].forEach,n=Object.create;return xa=function(r){var o=n(null);return t.call(arguments,(function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),o)})),o},xa}function j(){if(Ba)return Ma;Ba=1;var e=function(){if(Fa)return ja;Fa=1;var e=Ua?ka:(Ua=1,ka=(La?Aa:(La=1,Aa=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:Da?$a:(Da=1,$a=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return ja=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return Ma=function(n){return t(0,e(n))}}function F(){if(Va)return Ga;Va=1;var e=j();return Ga=function(t,n,r){var o;return isNaN(t)?0>(o=n)?1:r&&o?o-1:o:!1!==t&&e(t)}}function M(){return qa?Ha:(qa=1,Ha=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function B(){if(Wa)return za;Wa=1;var e=k();return za=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function G(){return Ja||(Ja=1,Ya=function(){if(Ka)return Xa;Ka=1;var e=M(),t=B(),n=function(){}.bind,r=function(){}.call,o=Object.keys,i={}.propertyIsEnumerable;return Xa=function(s,a){return function(c,u){var l,f=arguments[2],p=arguments[3];return c=Object(t(c)),e(u),l=o(c),p&&l.sort("function"==typeof p?n.call(p,c):void 0),"function"!=typeof s&&(s=l[s]),r.call(s,l,(function(e,t){return i.call(c,e)?r.call(u,f,c[e],e,c,t):a}))}},Xa}()("forEach")),Ya}function V(){return Qa||(Qa=1),gl}function H(){return lc||(lc=1,uc=(ec?Za:(ec=1,Za=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}))()?Object.assign:function(){if(cc)return ac;cc=1;var e=sc?ic:(sc=1,ic=(nc?tc:(nc=1,tc=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(oc)return rc;oc=1;var e=k(),t=Object.keys;return rc=function(n){return t(e(n)?Object(n):n)}}()),t=B(),n=Math.max;return ac=function(r,o){var i,s,a,c=n(arguments.length,2);for(r=Object(t(r)),a=function(e){try{r[e]=o[e]}catch(t){i||(i=t)}},s=1;c>s;++s)e(o=arguments[s]).forEach(a);if(void 0!==i)throw i;return r},ac}()),uc}function q(){if(mc)return hc;mc=1;var e=B(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;return hc=function(i,s){var a,c=Object(e(s));if(i=Object(e(i)),r(c).forEach((function(e){try{t(i,e,n(s,e))}catch(r){a=r}})),"function"==typeof o&&o(c).forEach((function(e){try{t(i,e,n(s,e))}catch(r){a=r}})),void 0!==a)throw a;return i}}function z(){if(yc)return bl.exports;yc=1;var e,t,n=j();try{Object.defineProperty((function(e,t){return t}),"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(r){}return t=q(),e=function(){var e=[];return function(t){var n,r=0;if(e[t])return e[t];for(n=[];t--;)n.push("a"+(++r).toString(36));return Function("fn","return function ("+n.join(", ")+") { return fn.apply(this, arguments); };")}}(),bl.exports=function(o,i){var s;if(i=n(i),o.length===i)return o;s=e(i)(o);try{t(s,o)}catch(r){}return s},bl.exports}function W(){return wc?vc:(wc=1,vc=function(e){return null!=e})}function X(){if(Ic)return Rc;Ic=1;var e=function(){if(Oc)return Sc;Oc=1;var e=function(){if(bc)return _c;bc=1;var e=function(){if(gc)return Ec;gc=1;var e=W(),t={object:!0,function:!0,undefined:!0};return Ec=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return _c=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return Sc=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(n){return!1}return!e(t)}}(),t=/^\s*class[\s{/}]/,n=function(){}.toString;return Rc=function(r){return!!e(r)&&!t.test(n.call(r))}}function K(){if(Lc)return Sl.exports;Lc=1;var e=W(),t=X(),n=H(),r=U(),o=(Ac||(Ac=1,Nc=function(){if(Pc)return Tc;Pc=1;var e="razdwatrzy";return Tc=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(xc)return Cc;xc=1;var e="".indexOf;return Cc=function(t){return e.call(this,t,arguments[1])>-1},Cc}()),Nc),i=Sl.exports=function(t,i){var s,a,c,u,l;return 2>arguments.length||"string"!=typeof t?(u=i,i=t,t=null):u=arguments[2],e(t)?(s=o.call(t,"c"),a=o.call(t,"e"),c=o.call(t,"w")):(s=c=!0,a=!1),l={value:i,configurable:s,enumerable:a,writable:c},u?n(r(u),l):l};return i.gs=function(i,s,a){var c,u,l,f;return"string"!=typeof i?(l=a,a=s,s=i,i=null):l=arguments[3],e(s)?t(s)?e(a)?t(a)||(l=a,a=void 0):a=void 0:(l=s,s=a=void 0):s=void 0,e(i)?(c=o.call(i,"c"),u=o.call(i,"e")):(c=!0,u=!1),f={get:s,set:a,configurable:c,enumerable:u},l?n(r(l),f):f},Sl.exports}function Y(){return Gc?Bc:(Gc=1,Bc=(jc?Uc:(jc=1,Uc=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(Mc)return Fc;Mc=1;var e=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};return Fc=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}()}())}function J(){if(Xc)return Wc;Xc=1;var e=zc?qc:(zc=1,qc=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return Wc=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function Q(){return ou?ru:(ou=1,ru=function(){if(Hc)return Vc;Hc=1;var e=Y(),t={object:!0,symbol:!0};return Vc=function(){var n=e.Symbol;return"function"==typeof n&&(n("test symbol"),!!t[typeof n.iterator]&&!!t[typeof n.toPrimitive]&&!!t[typeof n.toStringTag])}}()()?Y().Symbol:function(){if(nu)return tu;nu=1;var e,t,n,r=K(),o=J(),i=Y().Symbol,s=function(){if(Yc)return Kc;Yc=1;var e=K(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return Kc=function(o){for(var i,s,a=0;r[o+(a||"")];)++a;return r[o+=a||""]=!0,t(n,i="@@"+o,e.gs(null,(function(n){s||(s=!0,t(this,i,e(n)),s=!1)}))),i}}(),a=function(){if(Qc)return Jc;Qc=1;var e=K(),t=Y().Symbol;return Jc=function(n){return Object.defineProperties(n,{hasInstance:e("",t&&t.hasInstance||n("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||n("isConcatSpreadable")),iterator:e("",t&&t.iterator||n("iterator")),match:e("",t&&t.match||n("match")),replace:e("",t&&t.replace||n("replace")),search:e("",t&&t.search||n("search")),species:e("",t&&t.species||n("species")),split:e("",t&&t.split||n("split")),toPrimitive:e("",t&&t.toPrimitive||n("toPrimitive")),toStringTag:e("",t&&t.toStringTag||n("toStringTag")),unscopables:e("",t&&t.unscopables||n("unscopables"))})}}(),c=function(){if(eu)return Zc;eu=1;var e=K(),t=J(),n=Object.create(null);return Zc=function(r){return Object.defineProperties(r,{for:e((function(e){return n[e]?n[e]:n[e]=r(e+"")})),keyFor:e((function(e){var r;for(r in t(e),n)if(n[r]===e)return r}))})}}(),u=Object.create,l=Object.defineProperties,f=Object.defineProperty;if("function"==typeof i)try{i(),n=!0}catch(p){}else i=null;return t=function(n){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return e(n)},tu=e=function e(o){var a;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return n?i(o):(a=u(t.prototype),l(a,{__description__:r("",o=void 0===o?"":o+""),__name__:r("",s(o))}))},a(e),c(e),l(t.prototype,{constructor:r(e),toString:r("",(function(){return this.__name__}))}),l(e.prototype,{toString:r((function(){return"Symbol ("+o(this).__description__+")"})),valueOf:r((function(){return o(this)}))}),f(e.prototype,e.toPrimitive,r("",(function(){var e=o(this);return"symbol"==typeof e?e:""+e}))),f(e.prototype,e.toStringTag,r("c","Symbol")),f(t.prototype,e.toStringTag,r("c",e.prototype[e.toStringTag])),f(t.prototype,e.toPrimitive,r("c",e.prototype[e.toPrimitive])),tu}())}function Z(){return hu?du:(hu=1,du=(kc?Dc:(kc=1,Dc=function(){var e,t,n=Array.from;return"function"==typeof n&&!(!(t=n(e=["raz","dwa"]))||t===e||"dwa"!==t[1])}))()?Array.from:function(){if(pu)return fu;pu=1;var e=Q().iterator,t=function(){if(su)return iu;su=1;var e={}.toString,t=e.call(function(){return arguments}());return iu=function(n){return e.call(n)===t}}(),n=function(){if(cu)return au;cu=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return au=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=j(),o=M(),i=B(),s=k(),a=function(){if(lu)return uu;lu=1;var e={}.toString,t=e.call("");return uu=function(n){return"string"==typeof n||n&&"object"==typeof n&&(n instanceof String||e.call(n)===t)||!1}}(),c=Array.isArray,u=function(){}.call,l={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;return fu=function(p){var d,h,m,y,v,w,E,g,_,b,S=arguments[1],O=arguments[2];if(p=Object(i(p)),s(S)&&o(S),this&&this!==Array&&n(this))d=this;else{if(!S){if(t(p))return 1!==(v=p.length)?Array.apply(null,p):((y=[,])[0]=p[0],y);if(c(p)){for(y=Array(v=p.length),h=0;v>h;++h)y[h]=p[h];return y}}y=[]}if(!c(p))if(void 0!==(_=p[e])){for(E=o(_).call(p),d&&(y=new d),g=E.next(),h=0;!g.done;)b=S?u.call(S,O,g.value,h):g.value,d?(l.value=b,f(y,h,l)):y[h]=b,g=E.next(),++h;v=h}else if(a(p)){for(v=p.length,d&&(y=new d),h=0,m=0;v>h;++h)b=p[h],v>h+1&&(55296>(w=b.charCodeAt(0))||w>56319||(b+=p[++h])),b=S?u.call(S,O,b,m):b,d?(l.value=b,f(y,m,l)):y[m]=b,++m;v=m}if(void 0===v)for(v=r(p.length),d&&(y=new d(v)),h=0;v>h;++h)b=S?u.call(S,O,p[h],h):p[h],d?(l.value=b,f(y,h,l)):y[h]=b;return d&&(l.value=null,y.length=v),y},fu}())}function ee(){if(bu)return _u;bu=1;var e,t,n,r,o,i=(dc||(dc=1,e=_l,t=H(),n=function(){if(pc)return fc;pc=1;var e=k(),t={function:!0,object:!0};return fc=function(n){return e(n)&&t[typeof n]||!1}}(),r=k(),o=Error.captureStackTrace,e.exports=function(i){var s=Error(i),a=arguments[1],c=arguments[2];return r(c)||n(a)&&(c=a,a=null),r(c)&&t(s,c),r(a)&&(s.code=a),o&&o(s,e.exports),s}),_l.exports),s=z(),a=K(),c=function(){return $c||($c=1,e=Ol,Ol.exports,u=K(),l=M(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,y={}.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0},r=function(e,t){var r,i;return l(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),f.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e){var t,n,r,o,i;if(y.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(i=Array((n=arguments.length)-1),t=1;n>t;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)f.call(r,this,i)}else switch(arguments.length){case 1:p.call(o,this);break;case 2:p.call(o,this,arguments[1]);break;case 3:p.call(o,this,arguments[1],arguments[2]);break;default:for(i=Array((n=arguments.length)-1),t=1;n>t;++t)i[t-1]=arguments[t];f.call(o,this,i)}},s={on:n=function(e,t){var n;return l(t),y.call(this,"__ee__")?n=this.__ee__:(n=v.value=d(null),h(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o=function(e,t){var n,r,o,i;if(l(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:i},a={on:u(n),once:u(r),off:u(o),emit:u(i)},c=m({},a),e.exports=t=function(e){return null==e?d(c):m(Object(e),a)},t.methods=s),Ol.exports;var e,t,n,r,o,i,s,a,c,u,l,f,p,d,h,m,y,v}().methods,u=function(){if(wu)return vu;wu=1;var e,t=function(){if(yu)return mu;yu=1;var e=Z(),t=Array.isArray;return mu=function(n){return t(n)?n:e(n)}}(),n=k(),r=M(),o=[].slice;return e=function(e){return this.map((function(t,n){return t?t(e[n]):e[n]})).concat(o.call(e,this.length))},vu=function(o){return(o=t(o)).forEach((function(e){n(e)&&r(e)})),e.bind(o)}}(),l=function(){if(gu)return Eu;gu=1;var e=M();return Eu=function(t){var n;return"function"==typeof t?{set:t,get:t}:(n={get:e(t.get)},void 0!==t.set?(n.set=e(t.set),t.delete&&(n.delete=e(t.delete)),t.clear&&(n.clear=e(t.clear)),n):(n.set=n.get,n))}}(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperties,m=c.on,y=c.emit;return _u=function(e,t,n){var r,o,c,v,w,E,g,_,b,S,O,R,I,T,P,C=d(null);return o=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(S=l(n.normalizer),c=S.get,v=S.set,w=S.delete,E=S.clear),null!=n.resolvers&&(P=u(n.resolvers)),T=c?s((function(t){var n,o,s=arguments;if(P&&(s=P(s)),null!==(n=c(s))&&hasOwnProperty.call(C,n))return O&&r.emit("get",n,s,this),C[n];if(o=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),null===n){if(null!==(n=c(s)))throw i("Circular invocation","CIRCULAR_INVOCATION");n=v(s)}else if(hasOwnProperty.call(C,n))throw i("Circular invocation","CIRCULAR_INVOCATION");return C[n]=o,R&&r.emit("set",n,null,o),o}),o):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return O&&r.emit("get","data",arguments,this),C.data;if(t=arguments.length?f.call(e,this,arguments):p.call(e,this),hasOwnProperty.call(C,"data"))throw i("Circular invocation","CIRCULAR_INVOCATION");return C.data=t,R&&r.emit("set","data",null,t),t}:function(t){var n,o,s=arguments;if(P&&(s=P(arguments)),o=s[0]+"",hasOwnProperty.call(C,o))return O&&r.emit("get",o,s,this),C[o];if(n=1===s.length?p.call(e,this,s[0]):f.call(e,this,s),hasOwnProperty.call(C,o))throw i("Circular invocation","CIRCULAR_INVOCATION");return C[o]=n,R&&r.emit("set",o,null,n),n},r={original:e,memoized:T,profileName:n.profileName,get:function(e){return P&&(e=P(e)),c?c(e):e[0]+""},has:function(e){return hasOwnProperty.call(C,e)},delete:function(e){var t;hasOwnProperty.call(C,e)&&(w&&w(e),t=C[e],delete C[e],I&&r.emit("delete",e,t))},clear:function(){var e=C;E&&E(),C=d(null),r.emit("clear",e)},on:function(e,t){return"get"===e?O=!0:"set"===e?R=!0:"delete"===e&&(I=!0),m.call(this,e,t)},emit:y,updateEnv:function(){e=r.original}},g=c?s((function(e){var t,n=arguments;P&&(n=P(n)),null!==(t=c(n))&&r.delete(t)}),o):0===t?function(){return r.delete("data")}:function(e){return P&&(e=P(arguments)[0]),r.delete(e)},_=s((function(){var e,n=arguments;return 0===t?C.data:(P&&(n=P(n)),e=c?c(n):n[0]+"",C[e])})),b=s((function(){var e,n=arguments;return 0===t?r.has("data"):(P&&(n=P(n)),null!==(e=c?c(n):n[0]+"")&&r.has(e))})),h(T,{__memoized__:a(!0),delete:a(g),clear:a(r.clear),_get:a(_),_has:a(b)}),r},_u}function te(){if(ku)return Du;ku=1;var e=$u?Lu:($u=1,Lu=(xu?Cu:(xu=1,Cu=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:Au?Nu:(Au=1,Nu=function(e){return e!=e})),t=j(),n=B(),r=[].indexOf,o={}.hasOwnProperty,i=Math.abs,s=Math.floor;return Du=function(a){var c,u,l;if(!e(a))return r.apply(this,arguments);for(u=t(n(this).length),c=l=isNaN(l=arguments[1])?0:0>l?t(this.length)-s(i(l)):s(l);u>c;++c)if(o.call(this,c)&&e(this[c]))return c;return-1},Du}function ne(){if(Hu)return Vu;Hu=1;var e=M(),t=G(),n=function(){}.call;return Vu=function(r,o){var i={},s=arguments[2];return e(o),t(r,(function(e,t,r,a){i[t]=n.call(o,s,e,t,r,a)})),i},Vu}function re(){if(zu)return qu;zu=1;var e=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},t=function(t){var n,r,o=document.createTextNode(""),i=0;return new t((function(){var e;if(n)r&&(n=r.concat(n));else{if(!r)return;n=r}if(r=n,n=null,"function"==typeof r)return e=r,r=null,void e();for(o.data=i=++i%2;r;)e=r.shift(),r.length||(r=null),e()})).observe(o,{characterData:!0}),function(t){e(t),n?"function"==typeof n?n=[n,t]:n.push(t):(n=t,o.data=i=++i%2)}};return qu=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(t){queueMicrotask(e(t))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return t(MutationObserver);if("function"==typeof WebKitMutationObserver)return t(WebKitMutationObserver)}return"function"==typeof setImmediate?function(t){setImmediate(e(t))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(t){setTimeout(e(t),0)}:null}()}function oe(){return Ju?Yu:(Ju=1,Yu=function(e){return"function"==typeof e})}function ie(){function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return sl||(sl=1,Tl.exports=e,Tl.exports.default=e),Tl.exports}function se(){if(al)return Il;al=1;var e=ne(),t=function(){if(Ku)return Xu;Ku=1;var e=[].forEach,t=Object.create;return Xu=function(n){var r=t(null);return e.call(arguments,(function(e){r[e]=!0})),r},Xu}(),n=function(){if(tl)return el;tl=1;var e=B(),t=function(){if(Zu)return Qu;Zu=1;var e=oe();return Qu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return el=function(n){return t(e(n))}}(),r=function(){if(il)return ol;il=1;var e=function(){if(rl)return nl;rl=1;var e=oe();return nl=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return""}}}();return ol=function(t){var n=e(t);return n.length>100&&(n=n.slice(0,99)+"…"),n.replace(/[\n\r\u2028\u2029]/g,(function(e){return JSON.stringify(e).slice(1,-1)}))}}(),o=ie(),i=re(),s=Object.create,a=t("then","then:finally","done","done:finally");return V().promise=function(t,c){var u=s(null),l=s(null),f=s(null);if(!0===t)t=null;else if(t=n(t),!a[t])throw new TypeError("'"+r(t)+"' is not valid promise mode");c.on("set",(function(e,n,r){var s=!1;if(!o(r))return l[e]=r,void c.emit("setasync",e,1);u[e]=1,f[e]=r;var a=function(t){var n=u[e];if(s)throw Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");n&&(delete u[e],l[e]=t,c.emit("setasync",e,n))},p=function(){s=!0,u[e]&&(delete u[e],delete f[e],c.delete(e))},d=t;if(d||(d="then"),"then"===d){var h=function(){i(p)};"function"==typeof(r=r.then((function(e){i(a.bind(this,e))}),h)).finally&&r.finally(h)}else if("done"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");r.done(a,p)}else if("done:finally"===d){if("function"!=typeof r.done)throw Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof r.finally)throw Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");r.done(a),r.finally(p)}})),c.on("get",(function(e,t,n){var r;if(u[e])++u[e];else{var s=function(){c.emit("getasync",e,t,n)};o(r=f[e])?"function"==typeof r.done?r.done(s):r.then((function(){i(s)})):s()}})),c.on("delete",(function(e){if(delete f[e],u[e])delete u[e];else if(hasOwnProperty.call(l,e)){var t=l[e];delete l[e],c.emit("deleteasync",e,[t])}})),c.on("clear",(function(){var t=l;l=s(null),u=s(null),f=s(null),c.emit("clearasync",e(t,(function(e){return[e]})))}))},Il}async function ae(e){try{return await _o.access(e),!0}catch{return!1}}function ce(e){const t=function(){if(P()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?Dr("/Users/",process.env.SUDO_USER):Dr("/home/",process.env.SUDO_USER);{const e=Rr();if(""===e)return;return e}}();return void 0===t?e:e.replace(Ll,t)}async function ue(e){const t=void 0===e.guard?"\n# Automatically Generated by envosman\n":`\n# Automatically Generated by envosman ${e.guard}\nexport SOURCE_${e.guard.toUpperCase()}RC=0\n`;await ae(e.rcPath)&&((await Dl(e.rcPath,"utf8")).includes(t)||(await $l(e.rcPath,`\n${t}\n`),m(`Added ${t} to ${e.rcPath}`)))}async function le(e,t){await ae(t)&&((await Dl(t,"utf-8")).includes(e)||(await $l(t,e),m(`${e} was added to ${t}`)))}async function fe(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:Ul,...n},o=function(e,t=!1){const n=t?Bl(e):e;return Xl(n,'"',"\\")}(t??"",r.escapeSpace);try{if(Kl)try{if(!r.overwrite&&void 0!==process.env[e])return void m(`Environment variable ${e} is already defined. Skipping.`);Pi.exportVariable(e,o)}catch(i){p(i),await pe(e,o,r)}else await pe(e,o,r)}catch(i){p(`${i}\nFailed to export environment variable ${e}=${o}. You should add it manually.`)}}async function pe(e,t,n){const r=t??"";switch(process.platform){case"win32":return n.overwrite||void 0===process.env[e]?(await O(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void m(`${e}='${r}' was set in the environment.`)):void m(`Environment variable ${e} is already defined. Skipping.`);case"linux":case"darwin":return await jl(n),void(n.overwrite?(await Yl(n.rcPath,`\nexport ${e}="${r}"\n`),m(`${e}="${r}" was added to "${n.rcPath}`)):(await Yl(n.rcPath,`\nif [ -z "\${${e}}" ]; then export ${e}="${r}"; fi\n`),m(`if not defined ${e} then ${e}="${r}" was added to "${n.rcPath}`)))}process.env[e]=r}async function de(e,t={}){const n={rcPath:Ul,...t};if(!function(e){return!!Zl.some((t=>t.test(e)))&&(process.env.PATH?.split(kr)??[]).includes(e)}(e)){process.env.PATH=`${e}${kr}${process.env.PATH}`;try{if(Jl)try{Pi.addPath(e)}catch(r){p(r),await he(e,n)}else await he(e,n)}catch(r){p(`${r}\nFailed to add ${e} to the percistent PATH. You should add it manually.`)}}}async function he(e,t){switch(process.platform){case"win32":return await O(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void m(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await jl(t),await Ql(t.rcPath,`\nexport PATH="${e}:$PATH"\n`),void m(`"${e}" was added to "${t.rcPath}"`);default:return}}function me(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function ye(){return ef||(ef=1,e=rf,function(){function t(e,t,o){if(n(e),"object"!=typeof o)throw Error("List of variants should be specified as an object");var i=r[e](t);return void 0!==o[i]?o[i]:null}function n(e){(function(e){return void 0!==r[e]})(e)||function(e){try{me(__dirname+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}}(e)}var r={};e.exports={create:function(e){return n(e),{pluralize:function(n,r){return t(e,n,r)}}},addLocale:function(e,t){r[e]=t},pluralize:t}}()),rf.exports;var e}function ve(){return nf?tf:(nf=1,tf=ye())}function we(){return Ef?wf:(Ef=1,wf={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function Ee(){if(_f)return gf;_f=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return gf=e}function ge(){return bf||(bf=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=we(),i=Ee(),s=(t=e.exports={}).re=[],a=t.safeRe=[],c=t.src=[],u=t.t={};let l=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,r]],d=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(t+"*").join(`${t}{0,${n}}`).split(t+"+").join(`${t}{1,${n}}`);return e})(t),o=l++;i(e,o,t),u[e]=o,c[o]=t,s[o]=RegExp(t,n?"g":void 0),a[o]=RegExp(r,n?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),d("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",f+"+"),d("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),d("FULL",`^${c[u.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),d("LOOSE",`^${c[u.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",c[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),d("XRANGEIDENTIFIER",c[u.NUMERICIDENTIFIER]+"|x|X|\\*"),d("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),d("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),d("COERCE",c[u.COERCEPLAIN]+"(?:$|[^\\d])"),d("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",c[u.COERCE],!0),d("COERCERTLFULL",c[u.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(td,td.exports)),td.exports}function _e(){if(Of)return Sf;Of=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Sf=n=>n?"object"!=typeof n?e:n:t}function be(){if(If)return Rf;If=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:n>t?-1:1};return Rf={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function Se(){if(Pf)return Tf;Pf=1;const e=Ee(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=we(),{safeRe:r,t:o}=ge(),i=_e(),{compareIdentifiers:s}=be();class a{constructor(s,c){if(c=i(c),s instanceof a){if(s.loose===!!c.loose&&s.includePrerelease===!!c.includePrerelease)return s;s=s.version}else if("string"!=typeof s)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",s,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const u=s.trim().match(c.loose?r[o.LOOSE]:r[o.FULL]);if(!u)throw new TypeError("Invalid Version: "+s);if(this.raw=s,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>n||0>this.major)throw new TypeError("Invalid major version");if(this.minor>n||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>n||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=u[4]?u[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=u[5]?u[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof a)){if("string"==typeof t&&t===this.version)return 0;t=new a(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof a||(e=new a(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)}comparePre(t){if(t instanceof a||(t=new a(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return s(r,o)}while(++n)}compareBuild(t){t instanceof a||(t=new a(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return s(r,o)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===s(this.prerelease[0],t)?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}}return Tf=a}function Oe(){if(xf)return Cf;xf=1;const e=Se();return Cf=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(o){if(!r)return null;throw o}}}function Re(){if(Af)return Nf;Af=1;const e=Oe();return Nf=(t,n)=>{const r=e(t,n);return r?r.version:null}}function Ie(){if(Mf)return Ff;Mf=1;const e=Se();return Ff=(t,n)=>new e(t,n).major}function Te(){if(Xf)return Wf;Xf=1;const e=Se();return Wf=(t,n,r)=>new e(t,r).compare(new e(n,r))}function Pe(){if(ep)return Zf;ep=1;const e=Se();return Zf=(t,n,r)=>{const o=new e(t,r),i=new e(n,r);return o.compare(i)||o.compareBuild(i)}}function Ce(){if(sp)return ip;sp=1;const e=Te();return ip=(t,n,r)=>e(t,n,r)>0}function xe(){if(cp)return ap;cp=1;const e=Te();return ap=(t,n,r)=>0>e(t,n,r)}function Ne(){if(lp)return up;lp=1;const e=Te();return up=(t,n,r)=>0===e(t,n,r)}function Ae(){if(pp)return fp;pp=1;const e=Te();return fp=(t,n,r)=>0!==e(t,n,r)}function Le(){if(hp)return dp;hp=1;const e=Te();return dp=(t,n,r)=>e(t,n,r)>=0}function $e(){if(yp)return mp;yp=1;const e=Te();return mp=(t,n,r)=>0>=e(t,n,r)}function De(){if(wp)return vp;wp=1;const e=Ne(),t=Ae(),n=Ce(),r=Le(),o=xe(),i=$e();return vp=(s,a,c,u)=>{switch(a){case"===":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s===c;case"!==":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s!==c;case"":case"=":case"==":return e(s,c,u);case"!=":return t(s,c,u);case">":return n(s,c,u);case">=":return r(s,c,u);case"<":return o(s,c,u);case"<=":return i(s,c,u);default:throw new TypeError("Invalid operator: "+a)}}}function ke(){if(gp)return Ep;gp=1;const e=Se(),t=Oe(),{safeRe:n,t:r}=ge();return Ep=(o,i)=>{if(o instanceof e)return o;if("number"==typeof o&&(o+=""),"string"!=typeof o)return null;let s=null;if((i=i||{}).rtl){const e=i.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(o))&&(!s||s.index+s[0].length!==o.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else s=o.match(i.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);return null===s?null:t(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}${i.includePrerelease&&s[5]?"-"+s[5]:""}${i.includePrerelease&&s[6]?"+"+s[6]:""}`,i)}}function Ue(){if(Op)return Sp;Op=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;this.set.length>e;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;t.length>e;e++)e>0&&(this.formatted+=" "),this.formatted+=(""+t[e]).trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&d))+":"+e,r=n.get(t);if(r)return r;const s=this.options.loose;e=e.replace(s?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE],T(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],u),i("comparator trim",e),e=e.replace(a[c.TILDETRIM],l),i("tilde trim",e),e=e.replace(a[c.CARETTRIM],f),i("caret trim",e);let m=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));s&&(m=m.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(a[c.COMPARATORLOOSE]))))),i("range list",m);const y=new Map,w=m.map((e=>new o(e,this.options)));for(const n of w){if(h(n))return[n];y.set(n.value,n)}y.size>1&&y.has("")&&y.delete("");const E=[...y.values()];return n.set(t,E),E}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>y(t,n)&&e.set.some((e=>y(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options)}catch(t){return!1}for(let n=0;this.set.length>n;n++)if(P(this.set[n],e,this.options))return!0;return!1}}Sp=t;const n=new(bp?_p:(bp=1,_p=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=_e(),o=je(),i=Ee(),s=Se(),{safeRe:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:f}=ge(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:d}=we(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},v=(e,t)=>(i("comp",e,t),e=_(e,t),i("caret",e),e=E(e,t),i("tildes",e),e=S(e,t),i("xrange",e),e=R(e,t),i("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>g(e,t))).join(" "),g=(e,t)=>e.replace(t.loose?a[c.TILDELOOSE]:a[c.TILDE],((t,n,r,o,s)=>{let a;return i("tilde",e,t,n,r,o,s),w(n)?a="":w(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:w(o)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(i("replaceTilde pr",s),a=`>=${n}.${r}.${o}-${s} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",a),a})),_=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{i("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[c.CARETLOOSE]:a[c.CARET],((t,r,o,s,a)=>{let c;return i("caret",e,t,r,o,s,a),w(r)?c="":w(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(s)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===r?"0"===o?`>=${r}.${o}.${s}-${a} <${r}.${o}.${+s+1}-0`:`>=${r}.${o}.${s}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${s}-${a} <${+r+1}.0.0-0`):(i("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${s}${n} <${r}.${o}.${+s+1}-0`:`>=${r}.${o}.${s}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${s} <${+r+1}.0.0-0`),i("caret return",c),c}))},S=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?a[c.XRANGELOOSE]:a[c.XRANGE],((n,r,o,s,a,c)=>{i("xRange",e,n,r,o,s,a,c);const u=w(o),l=u||w(s),f=l||w(a);return"="===r&&f&&(r=""),c=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(l&&(s=0),a=0,">"===r?(r=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===r&&(r="<",l?o=+o+1:s=+s+1),"<"===r&&(c="-0"),n=`${r+o}.${s}.${a}${c}`):l?n=`>=${o}.0.0${c} <${+o+1}.0.0-0`:f&&(n=`>=${o}.${s}.0${c} <${o}.${+s+1}.0-0`),i("xRange return",n),n})),R=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),I=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),T=e=>(t,n,r,o,i,s,a,c,u,l,f,p)=>`${n=w(r)?"":w(o)?`>=${r}.0.0${e?"-0":""}`:w(i)?`>=${r}.${o}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=w(u)?"":w(l)?`<${+u+1}.0.0-0`:w(f)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${f}-${p}`:e?`<${u}.${l}.${+f+1}-0`:"<="+c}`.trim(),P=(e,t,n)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;e.length>n;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Sp}function je(){if(Ip)return Rp;Ip=1;const e=Symbol();class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),s("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,s("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new a(n[2],this.options.loose):e}toString(){return this.value}test(t){if(s("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new a(t,this.options)}catch(n){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,r).test(this.value):""===e.operator?""===e.value||new c(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.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("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}Rp=t;const n=_e(),{safeRe:r,t:o}=ge(),i=De(),s=Ee(),a=Se(),c=Ue();return Rp}function Fe(){if(Pp)return Tp;Pp=1;const e=Ue();return Tp=(t,n,r)=>{try{n=new e(n,r)}catch(o){return!1}return n.test(t)}}function Me(){if(Mp)return Fp;Mp=1;const e=Se(),t=je(),{ANY:n}=t,r=Ue(),o=Fe(),i=Ce(),s=xe(),a=$e(),c=Le();return Fp=(u,l,f,p)=>{let d,h,m,y,v;switch(u=new e(u,p),l=new r(l,p),f){case">":d=i,h=a,m=s,y=">",v=">=";break;case"<":d=s,h=c,m=i,y="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(u,l,p))return!1;for(let e=0;l.set.length>e;++e){let r=null,o=null;if(l.set[e].forEach((e=>{e.semver===n&&(e=new t(">=0.0.0")),r=r||e,o=o||e,d(e.semver,r.semver,p)?r=e:m(e.semver,o.semver,p)&&(o=e)})),r.operator===y||r.operator===v)return!1;if((!o.operator||o.operator===y)&&h(u,o.semver))return!1;if(o.operator===v&&m(u,o.semver))return!1}return!0}}function Be(){if(Qp)return Jp;Qp=1;const e=ge(),t=we(),n=Se(),r=be(),o=Oe(),i=Re(),s=function(){if($f)return Lf;$f=1;const e=Oe();return Lf=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),a=function(){if(kf)return Df;kf=1;const e=Se();return Df=(t,n,r,o,i)=>{"string"==typeof r&&(i=o,o=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,o,i).version}catch(s){return null}}}(),c=function(){if(jf)return Uf;jf=1;const e=Oe();return Uf=(t,n)=>{const r=e(t,null,!0),o=e(n,null,!0),i=r.compare(o);if(0===i)return null;const s=i>0,a=s?r:o,c=s?o:r,u=!!a.prerelease.length;if(c.prerelease.length&&!u)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const l=u?"pre":"";return r.major!==o.major?l+"major":r.minor!==o.minor?l+"minor":r.patch!==o.patch?l+"patch":"prerelease"}}(),u=Ie(),l=function(){if(Gf)return Bf;Gf=1;const e=Se();return Bf=(t,n)=>new e(t,n).minor}(),f=function(){if(Hf)return Vf;Hf=1;const e=Se();return Vf=(t,n)=>new e(t,n).patch}(),p=function(){if(zf)return qf;zf=1;const e=Oe();return qf=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),d=Te(),h=function(){if(Yf)return Kf;Yf=1;const e=Te();return Kf=(t,n,r)=>e(n,t,r)}(),m=function(){if(Qf)return Jf;Qf=1;const e=Te();return Jf=(t,n)=>e(t,n,!0)}(),y=Pe(),v=function(){if(np)return tp;np=1;const e=Pe();return tp=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),w=function(){if(op)return rp;op=1;const e=Pe();return rp=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),E=Ce(),g=xe(),_=Ne(),b=Ae(),S=Le(),O=$e(),R=De(),I=ke(),T=je(),P=Ue(),C=Fe(),x=function(){if(xp)return Cp;xp=1;const e=Ue();return Cp=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),N=function(){if(Ap)return Np;Ap=1;const e=Se(),t=Ue();return Np=(n,r,o)=>{let i=null,s=null,a=null;try{a=new t(r,o)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(i&&-1!==s.compare(t)||(i=t,s=new e(i,o)))})),i}}(),A=function(){if($p)return Lp;$p=1;const e=Se(),t=Ue();return Lp=(n,r,o)=>{let i=null,s=null,a=null;try{a=new t(r,o)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(i&&1!==s.compare(t)||(i=t,s=new e(i,o)))})),i}}(),L=function(){if(kp)return Dp;kp=1;const e=Se(),t=Ue(),n=Ce();return Dp=(r,o)=>{r=new t(r,o);let i=new e("0.0.0");if(r.test(i))return i;if(i=new e("0.0.0-0"),r.test(i))return i;i=null;for(let t=0;r.set.length>t;++t){let o=null;r.set[t].forEach((t=>{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":o&&!n(r,o)||(o=r);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+t.operator)}})),!o||i&&!n(i,o)||(i=o)}return i&&r.test(i)?i:null}}(),$=function(){if(jp)return Up;jp=1;const e=Ue();return Up=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),D=Me(),k=function(){if(Gp)return Bp;Gp=1;const e=Me();return Bp=(t,n,r)=>e(t,n,">",r)}(),U=function(){if(Hp)return Vp;Hp=1;const e=Me();return Vp=(t,n,r)=>e(t,n,"<",r)}(),j=function(){if(zp)return qp;zp=1;const e=Ue();return qp=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),F=function(){if(Xp)return Wp;Xp=1;const e=Fe(),t=Te();return Wp=(n,r,o)=>{const i=[];let s=null,a=null;const c=n.sort(((e,n)=>t(e,n,o)));for(const t of c)e(t,r,o)?(a=t,s||(s=t)):(a&&i.push([s,a]),a=null,s=null);s&&i.push([s,null]);const u=[];for(const[e,t]of i)u.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const l=u.join(" || ");return("string"==typeof r.raw?r.raw:r+"").length>l.length?l:r}}(),M=function(){if(Yp)return Kp;Yp=1;const e=Ue(),t=je(),{ANY:n}=t,r=Fe(),o=Te(),i=[new t(">=0.0.0-0")],s=[new t(">=0.0.0")],a=(e,t,a)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=a.includePrerelease?i:s}if(1===t.length&&t[0].semver===n){if(a.includePrerelease)return!0;t=s}const l=new Set;let f,p,d,h,m,y,v;for(const n of e)">"===n.operator||">="===n.operator?f=c(f,n,a):"<"===n.operator||"<="===n.operator?p=u(p,n,a):l.add(n.semver);if(l.size>1)return null;if(f&&p){if(d=o(f.semver,p.semver,a),d>0)return null;if(0===d&&(">="!==f.operator||"<="!==p.operator))return null}for(const n of l){if(f&&!r(n,f+"",a))return null;if(p&&!r(n,p+"",a))return null;for(const e of t)if(!r(n,e+"",a))return!1;return!0}let w=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,E=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;w&&1===w.prerelease.length&&"<"===p.operator&&0===w.prerelease[0]&&(w=!1);for(const n of t){if(v=v||">"===n.operator||">="===n.operator,y=y||"<"===n.operator||"<="===n.operator,f)if(E&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===E.major&&n.semver.minor===E.minor&&n.semver.patch===E.patch&&(E=!1),">"===n.operator||">="===n.operator){if(h=c(f,n,a),h===n&&h!==f)return!1}else if(">="===f.operator&&!r(f.semver,n+"",a))return!1;if(p)if(w&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===w.major&&n.semver.minor===w.minor&&n.semver.patch===w.patch&&(w=!1),"<"===n.operator||"<="===n.operator){if(m=u(p,n,a),m===n&&m!==p)return!1}else if("<="===p.operator&&!r(p.semver,n+"",a))return!1;if(!n.operator&&(p||f)&&0!==d)return!1}return!(f&&y&&!p&&0!==d||p&&v&&!f&&0!==d||E||w)},c=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r>0?e:0>r||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return 0>r?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return Kp=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let o=!1;e:for(const e of t.set){for(const t of n.set){const n=a(e,t,r);if(o=o||null!==n,n)continue e}if(o)return!1}return!0}}();return Jp={parse:o,valid:i,clean:s,inc:a,diff:c,major:u,minor:l,patch:f,prerelease:p,compare:d,rcompare:h,compareLoose:m,compareBuild:y,sort:v,rsort:w,gt:E,lt:g,eq:_,neq:b,gte:S,lte:O,cmp:R,coerce:I,Comparator:T,Range:P,satisfies:C,toComparators:x,maxSatisfying:N,minSatisfying:A,minVersion:L,validRange:$,outside:D,gtr:k,ltr:U,intersects:j,simplifyRange:F,subset:M,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}function Ge(){return od||(od=1,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.toCommandProperties=Ed.toCommandValue=void 0,Ed.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Ed.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}:{}}),Ed}function Ve(){return cd||(cd=1,function(e){var t=bd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=Or,r=Tr,{access:o,appendFile:i,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield o(t,r.constants.R_OK|r.constants.W_OK)}catch(n){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath}))}wrap(e,t,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:i;return yield r(n,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,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(n,r);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:o}=e,i=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),o&&{rowspan:o});return this.wrap(i,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:o}=n||{},i=Object.assign(Object.assign({},r&&{width:r}),o&&{height:o}),s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(bd)),bd}function He(){return ld||(ld=1,function(e){function t(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,r=Pd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=Pd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Pd.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=Pd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const a=i(Tr),c=i($r);e.chmod=(n=a.promises).chmod,e.copyFile=n.copyFile,e.lstat=n.lstat,e.mkdir=n.mkdir,e.open=n.open,e.readdir=n.readdir,e.readlink=n.readlink,e.rename=n.rename,e.rm=n.rm,e.rmdir=n.rmdir,e.stat=n.stat,e.symlink=n.symlink,e.unlink=n.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=a.constants.O_RDONLY,e.exists=function(t){return s(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(n){if("ENOENT"===n.code)return!1;throw n}return!0}))},e.isDirectory=function(t,n=!1){return s(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){return t=t||"",e.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")}(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(n,r){return s(this,void 0,void 0,(function*(){let o;try{o=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(o&&o.isFile())if(e.IS_WINDOWS){const e=c.extname(n).toUpperCase();if(r.some((t=>t.toUpperCase()===e)))return n}else if(t(o))return n;const i=n;for(const a of r){n=i+a,o=void 0;try{o=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(o&&o.isFile()){if(e.IS_WINDOWS){try{const t=c.dirname(n),r=c.basename(n).toUpperCase();for(const o of yield e.readdir(t))if(r===o.toUpperCase()){n=c.join(t,o);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${n}': ${s}`)}return n}if(t(o))return n}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(Pd)),Pd}function qe(){function e(e){return c(this,void 0,void 0,(function*(){if(f.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield f.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(t){throw Error("File was unable to be removed "+t)}}))}function t(e){return c(this,void 0,void 0,(function*(){u.ok(e,"a path argument must be provided"),yield f.mkdir(e,{recursive:!0})}))}function n(e){return c(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(f.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(l.delimiter))e&&t.push(e);if(f.isRooted(e)){const n=yield f.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(l.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(l.delimiter))e&&n.push(e);const r=[];for(const o of n){const n=yield f.tryGetExecutablePath(l.join(o,e),t);n&&r.push(n)}return r}))}function r(e,n,i,s){return c(this,void 0,void 0,(function*(){if(i>=255)return;i++,yield t(n);const a=yield f.readdir(e);for(const t of a){const a=`${e}/${t}`,c=`${n}/${t}`;(yield f.lstat(a)).isDirectory()?yield r(a,c,i,s):yield o(a,c,s)}yield f.chmod(n,(yield f.stat(e)).mode)}))}function o(e,t,n){return c(this,void 0,void 0,(function*(){if((yield f.lstat(e)).isSymbolicLink()){try{yield f.lstat(t),yield f.unlink(t)}catch(r){"EPERM"===r.code&&(yield f.chmod(t,"0666"),yield f.unlink(t))}const n=yield f.readlink(e);yield f.symlink(n,t,f.IS_WINDOWS?"junction":null)}else(yield f.exists(t))&&!n||(yield f.copyFile(e,t))}))}if(fd)return Td;fd=1;var i=Td.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=Td.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Td.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},c=Td.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Td,"__esModule",{value:!0}),Td.findInPath=Td.which=Td.mkdirP=Td.rmRF=Td.mv=Td.cp=void 0;const u=Zr,l=a($r),f=a(He());return Td.cp=function(e,t,n={}){return c(this,void 0,void 0,(function*(){const{force:i,recursive:s,copySourceDirectory:a}=function(e){return{force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}}(n),c=(yield f.exists(t))?yield f.stat(t):null;if(c&&c.isFile()&&!i)return;const u=c&&c.isDirectory()&&a?l.join(t,l.basename(e)):t;if(!(yield f.exists(e)))throw Error("no such file or directory: "+e);if((yield f.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield r(e,u,0,i)}else{if(""===l.relative(e,u))throw Error(`'${u}' and '${e}' are the same file`);yield o(e,u,i)}}))},Td.mv=function(n,r,o={}){return c(this,void 0,void 0,(function*(){if(yield f.exists(r)){let t=!0;if((yield f.isDirectory(r))&&(r=l.join(r,l.basename(n)),t=yield f.exists(r)),t){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield e(r)}}yield t(l.dirname(r)),yield f.rename(n,r)}))},Td.rmRF=e,Td.mkdirP=t,Td.which=function e(t,r){return c(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const n=yield e(t,!1);if(!n)throw Error(f.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}const o=yield n(t);return o&&o.length>0?o[0]:""}))},Td.findInPath=n,Td}function ze(){function e(e,t,n){return o(this,void 0,void 0,(function*(){const r=s.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=r[0];return t=r.slice(1).concat(t||[]),new s.ToolRunner(o,t,n).exec()}))}if(dd)return Rd;dd=1;var t=Rd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Rd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Rd.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=Rd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.getExecOutput=Rd.exec=void 0;const i=So,s=r(function(){if(pd)return Id;pd=1;var e=Id.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Id.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Id.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&Object.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r},r=Id.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Id,"__esModule",{value:!0}),Id.argStringToArray=Id.ToolRunner=void 0;const o=n(Or),i=n(Yr),s=n(Qr),a=n($r),c=n(qe()),u=n(He()),l=Oo,f="win32"===process.platform;Id.ToolRunner=class extends i.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let o=t?"":"[command]";if(f)if(this._isCmdFile()){o+=n;for(const e of r)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(const e of r)o+=" "+e}else{o+=this._windowsQuoteCmdArg(n);for(const e of r)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=n;for(const e of r)o+=" "+e}return o}_processLineBuffer(e,t,n){try{let r=t+""+e,i=r.indexOf(o.EOL);for(;i>-1;)n(r.substring(0,i)),r=r.substring(i+o.EOL.length),i=r.indexOf(o.EOL);return r}catch(r){return this._debug("error processing line. Failed with error "+r),""}}_getSpawnFileName(){return f&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(f&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const i of e)if(t.some((e=>e===i))){n=!0;break}if(!n)return e;let r='"',o=!0;for(let i=e.length;i>0;i--)r+=e[i-1],o&&"\\"===e[i-1]?r+="\\":'"'===e[i-1]?(o=!0,r+='"'):o=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const n={};return n.cwd=(e=e||{}).cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))&&(this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+o.EOL);const r=new p(n,this.toolPath);if(r.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield u.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const i=this._getSpawnFileName(),a=s.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(a.stderr&&a.stderr.on("data",(e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.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",((n,r)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}},Id.argStringToArray=function(e){function t(e){o&&'"'!==e&&(i+="\\"),i+=e,o=!1}const n=[];let r=!1,o=!1,i="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&r?o=!0:" "!==a||r?t(a):i.length>0&&(n.push(i),i=""):o?t(a):r=!r}return i.length>0&&n.push(i.trim()),n};class p extends i.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=l.setTimeout(p.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}return Id}());return Rd.exec=e,Rd.getExecOutput=function(t,n,r){var s,a;return o(this,void 0,void 0,(function*(){let o="",c="";const u=new i.StringDecoder("utf8"),l=new i.StringDecoder("utf8"),f=null===(s=null==r?void 0:r.listeners)||void 0===s?void 0:s.stdout,p=null===(a=null==r?void 0:r.listeners)||void 0===a?void 0:a.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{o+=u.write(e),f&&f(e)},stderr:e=>{c+=l.write(e),p&&p(e)}}),h=yield e(t,n,Object.assign(Object.assign({},r),{listeners:d}));return o+=u.end(),c+=l.end(),{exitCode:h,stdout:o,stderr:c}}))},Rd}function We(){return md||(md=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function n(e,t={}){(0,l.issueCommand)("error",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)}function r(e){(0,l.issue)("group",e)}function o(){(0,l.issue)("endgroup")}var i=vd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=vd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=vd.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},c=vd.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const l=function(){function e(e,t,n){const r=new s(e,t,n);process.stdout.write(""+r+o.EOL)}if(id)return wd;id=1;var t=wd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=wd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=wd.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r};Object.defineProperty(wd,"__esModule",{value:!0}),wd.issue=wd.issueCommand=void 0;const o=r(Or),i=Ge();wd.issueCommand=e,wd.issue=function(t,n=""){e(t,{},n)};class s{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const o=this.properties[r];o&&(n?n=!1:e+=",",e+=`${r}=${t=o,(0,i.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return(0,i.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return wd}(),f=function(){if(sd)return gd;sd=1;var e=gd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=gd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=gd.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&{}.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r};Object.defineProperty(gd,"__esModule",{value:!0}),gd.prepareKeyValueMessage=gd.issueFileCommand=void 0;const r=n(Lr),o=n(Tr),i=n(Or),s=Ge();return gd.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!o.existsSync(n))throw Error("Missing file at path: "+n);o.appendFileSync(n,`${(0,s.toCommandValue)(t)}${i.EOL}`,{encoding:"utf8"})},gd.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+r.randomUUID(),o=(0,s.toCommandValue)(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(o.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${i.EOL}${o}${i.EOL}${n}`},gd}(),p=Ge(),d=a(Or),h=a($r),m=function(){if(ad)return _d;ad=1;var e=_d.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(_d,"__esModule",{value:!0}),_d.OidcClient=void 0;const t=Ei,r=u(),o=We();class i{static createHttpClient(e=!0,n=10){const o={allowRetries:e,maxRetries:n};return new t.HttpClient("actions/oidc-client",[new r.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),(0,o.debug)("ID token url is "+e);const n=yield i.getCall(e);return(0,o.setSecret)(n),n}catch(n){throw Error("Error message: "+n.message)}}))}}return _d.OidcClient=i,_d}();var y,v;(v=y||(e.ExitCode=y={}))[v.Success=0]="Success",v[v.Failure=1]="Failure",e.exportVariable=function(e,t){const n=(0,p.toCommandValue)(t);if(process.env[e]=n,process.env.GITHUB_ENV)return(0,f.issueFileCommand)("ENV",(0,f.prepareKeyValueMessage)(e,t));(0,l.issueCommand)("set-env",{name:e},n)},e.setSecret=function(e){(0,l.issueCommand)("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?(0,f.issueFileCommand)("PATH",e):(0,l.issueCommand)("add-path",{},e),process.env.PATH=`${e}${h.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return(0,f.issueFileCommand)("OUTPUT",(0,f.prepareKeyValueMessage)(e,t));process.stdout.write(d.EOL),(0,l.issueCommand)("set-output",{name:e},(0,p.toCommandValue)(t))},e.setCommandEcho=function(e){(0,l.issue)("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=y.Failure,n(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,l.issueCommand)("debug",{},e)},e.error=n,e.warning=function(e,t={}){(0,l.issueCommand)("warning",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){(0,l.issueCommand)("notice",(0,p.toCommandProperties)(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+d.EOL)},e.startGroup=r,e.endGroup=o,e.group=function(e,t){return c(this,void 0,void 0,(function*(){let n;r(e);try{n=yield t()}finally{o()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return(0,f.issueFileCommand)("STATE",(0,f.prepareKeyValueMessage)(e,t));(0,l.issueCommand)("save-state",{name:e},(0,p.toCommandValue)(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return c(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))};var w=Ve();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return w.summary}});var E=Ve();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return E.markdownSummary}});var g=function(){if(ud)return Sd;ud=1;var e=Sd.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Sd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Sd.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&{}.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r};Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.toPlatformPath=Sd.toWin32Path=Sd.toPosixPath=void 0;const r=n($r);return Sd.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Sd.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Sd.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Sd}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return g.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return g.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return g.toPlatformPath}}),e.platform=a((hd||(hd=1,function(e){var t=Od.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Od.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Od.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=Od.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=Od.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0;const s=i(Or),a=r(ze());e.platform=s.default.platform(),e.arch=s.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return o(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield o(void 0,void 0,void 0,e.isWindows?function*(){const{stdout:e}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:t}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0});return{name:t.trim(),version:e.trim()}}:e.isMacOS?function*(){var e,t,n,r;const{stdout:o}=yield a.getExecOutput("sw_vers",void 0,{silent:!0}),i=null!==(t=null===(e=o.match(/ProductVersion:\s*(.+)/))||void 0===e?void 0:e[1])&&void 0!==t?t:"";return{name:null!==(r=null===(n=o.match(/ProductName:\s*(.+)/))||void 0===n?void 0:n[1])&&void 0!==r?r:"",version:i}}:function*(){const{stdout:e}=yield a.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,n]=e.trim().split("\n");return{name:t,version:n}})),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}}(Od)),Od))}(vd)),vd}function Xe(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ke(e,t,n,r){var o,i=e[t],s=~r.string.indexOf(t)?null==n||!0===n?"":n+"":"boolean"==typeof n?n:~r.boolean.indexOf(t)?"false"!==n&&("true"===n||(e._.push(0*(o=+n)==0?o:n),!!n)):0*(o=+n)==0?o:n;e[t]=null==i?s:Array.isArray(i)?i.concat(s):[i,s]}async function Ye(e,t,n,r=40){Ad?await async function(e,t,n=40){await N("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await jl(n),await Ld(n.rcPath,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi\n`))}function Je(e){const t={...process.env,DEBIAN_FRONTEND:"noninteractive"};return"nala"===e&&(void 0===t.LANG&&(t.LANG="C.UTF-8"),void 0===t.LC_ALL&&(t.LC_ALL="C.UTF-8")),t}function Qe(){return null!==Ea.sync("nala",{nothrow:!0})}function Ze(){let e;return e=Qe()?"nala":"apt-get",e}function et(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}async function tt(e){try{const{stdout:t}=await _("dpkg",["-s",e],{env:Je("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("Status: install ok installed")))}catch{return!1}}async function nt(e,t=Ze()){return(await Promise.all(e.map((e=>rt(e,t))))).filter((e=>void 0!==e))}async function rt(e,t=Ze()){const n=await async function(e,t){const{name:n,version:r,fallBackToLatest:o=!1}=t;switch(await ot(e,n,r)){case Ud.NameDashVersion:return`${n}-${r}`;case Ud.NameEqualsVersion:return`${n}=${r}`;case Ud.Name:return void 0!==r&&""!==r&&o&&d(`Could not find package ${n} with version ${r}. Installing the latest version.`),n;default:throw Error(`Could not find package ${n} ${r??""}`)}}(t,e);return await tt(n)?void 0:n}async function ot(e,t,n){if(void 0!==n&&""!==n){const{stdout:r}=await _("apt-cache",["search","--names-only",`^${et(t)}-${et(n)}$`],{env:Je(e),stdio:"pipe"});if(""!==r.trim())return Ud.NameDashVersion;try{const{stdout:r}=await _("apt-cache",["show",`${t}=${n}`],{env:Je(e)});if(""===r.trim())return Ud.NameEqualsVersion}catch{}}try{const{stdout:n}=await _("apt-cache",["show",t],{env:Je(e),stdio:"pipe"});if(""!==n.trim())return Ud.Name}catch{}return Dd?Ud.None:(kd(e),ot(e,t,n))}async function it(e,t=!1){try{const r=Ze();for(const{name:t,version:n}of e)m(`Installing ${t} ${n??""} via ${r}`);t&&kd(r),await async function(e,t){const n=[...new Set(t.flatMap((e=>e.repository??[])))];await Promise.all(n.map((t=>async function(e,t=Ze()){await Fd(t),await async function(e){await tt("software-properties-common")||x(e,["install","-y","--fix-broken","-o",$d,"software-properties-common"],{...Sa,env:Je(e)})}(t),x("add-apt-repository",["-y","--no-update",e],{...Sa,env:Je(t)}),kd.clear(),kd(t)}(t,e))))}(r,e);const o=await nt(e,r);if(0===o.length)return m("All packages are already installed"),{binDir:"/usr/bin/"};await Fd(r);try{await async function(e){await Promise.all(e.map((async e=>{var t;void 0!==e.key&&await(t=e.key,"keyUrl"in t?st(t):async function({key:e,keyServer:t=Gd,fileName:n,keyStorePath:r=Gd}){try{ct(n);const o=Dr(r,n);return await ae(o)||(at(),await N("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+o,"--keyserver",t,"--recv-keys",e]),await N("chmod",["644",o])),o}catch(o){return void d(`Failed to add apt key via server ${t}: ${o}`)}}(t))})))}(e),x(r,["install","--fix-broken","-y",...o],{...Sa,env:Je(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;Md.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(d(`Failed to install packages ${o}. Retrying...`),x(r,["install","--fix-broken","-y","-o",$d,...o],{...Sa,env:Je(r)}))}return{binDir:"/usr/bin/"}}catch(n){throw Error("Failed to install apt packages: "+(n instanceof Error?`${n.message}\n${n.stack}`:n+""))}}async function st({keyUrl:e,fileName:t,keyStorePath:n=Bd}){try{ct(t);const r=Dr(n,t);if(!(await ae(r))){at(),await it([{name:"ca-certificates"}]);const n=Dr(Ir(),t),o=new Nd.DownloaderHelper(e,Ir(),{fileName:t});o.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await o.start(),x("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),x("chmod",["644",r])}return r}catch(r){return void d(`Failed to add apt key via download ${e}: ${r}`)}}function at(){x("gpg",["-k"])}function ct(e){if(!e.endsWith(".gpg"))throw Error("Key file name must end with .gpg: "+e)}async function ut(e={}){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof Vd)return{binDir:Vd};const t=await Ea("brew",{nothrow:!0});if(null!==t)return Vd=Ur(t),{binDir:Vd};await it([{name:"ca-certificates"}]);const n=new Nd.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Ir(),{fileName:"install-brew.sh"});return n.on("error",(e=>{throw Error("Failed to download the brew installer script: "+e)})),await n.start(),b("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),Vd=lt(),await de(Vd,e.rcOptions),{binDir:Vd}}function lt(){return Dr(ft(),"bin")}function ft(){if("darwin"===process.platform)return"arm64"===process.arch?"/opt/homebrew":"/usr/local";if("linux"===process.platform)return"/home/linuxbrew/.linuxbrew";throw Error("Unsupported platform for brew")}async function pt(e,t,n={}){"overwrite"in n||(n.overwrite=!0),!0===n.cask&&(n.overwrite=!1),m(`Installing ${e} ${t??""} via brew`),Xd&&null!==Ea.sync("brew",{nothrow:!0})||(await ut(),Xd=!0);const r=lt(),o=Dr(r,"brew"),i=["install",void 0!==t&&""!==t?`${e}@${t}`:e];for(const[s,a]of Object.entries(n))"boolean"==typeof a&&a?i.push("--"+s):"string"==typeof a&&i.push("--"+s,a);return b(o,i,{stdio:"inherit"}),{binDir:r}}function dt(){return"linux"===process.platform&&(void 0===Hd&&(Hd=null!==Ea.sync("dnf",{nothrow:!0})),Hd)}function ht(){return"linux"===process.platform&&(void 0===qd&&(qd=null!==Ea.sync("pacman",{nothrow:!0})),qd)}function mt(){return"linux"===process.platform&&(void 0===zd&&(zd=null!==Ea.sync("apt-get",{nothrow:!0})),zd)}async function yt(e,t,n){if("win32"!==process.platform)return;if("string"==typeof Wd)return{binDir:Wd};const r=Ea.sync("choco",{nothrow:!0});if(null!==r)return Wd=Ur(r),{binDir:Wd};let o="powershell.exe";const i=Ea.sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==i&&(o=i),b(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const s=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await de(s,wv);const a=Ea.sync("choco",{nothrow:!0});return Wd=null!==a?Ur(a):(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin",await ae(Wd)?{binDir:Wd}:void 0}async function vt(e,t,n=[]){m(`Installing ${e} ${t??""} via chocolatey`),Kd&&null!==Ea.sync("choco",{nothrow:!0})||(await yt(0,0,process),Kd=!0);const r=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=r,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...n],{env:o,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...n],{env:o,extendEnv:!1,stdio:"inherit"})}catch(s){if(!s.message.includes("exit code 3010"))throw s;m(e+" might require a reboot for the completion of the installation.")}const i=(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin";return await de(i,wv),{binDir:i}}async function wt(e){for(const{name:t,version:n}of e)m(`Installing ${t} ${n??""} via dnf`);return x("dnf",["-y","install",...await Promise.all(e.map((e=>async function(e,t){if(void 0!==t&&""!==t){const{stdout:n}=await _("dnf",["search","-q",`${e}-${t}`]);if(""!==n.trim())return`${e}-${t}`;{const{stdout:n}=await _("dnf",["search","-q",`${e}${t}`]);if(""!==n.trim())return`${e}${t}`;d(`Failed to install ${e} ${t} via dnf, trying without version`)}}return e}(e.name,e.version))))]),{binDir:"/usr/bin/"}}async function Et(e,t,n){m(`Installing ${e} ${t??""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===Ea.sync("yay",{nothrow:!0}))try{x("pacman",["-S","--noconfirm","base-devel","git"]);const e=Dr(Ir(),"yay");x("mkdir",["-p",e]),T()?(d("Creating a non-root user to build yay"),x("useradd",["-m","-G","wheel","builder"]),x("passwd",["-d","builder"]),x("chown",["-R","builder:builder",e]),x("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),Zd=!0,b("su",["-","builder","-c","git clone https://aur.archlinux.org/yay.git "+e],{stdio:"inherit"}),b("su",["-","builder","-c",`cd ${e} && makepkg -si --noconfirm`],{stdio:"inherit"})):(b("git",["clone","https://aur.archlinux.org/yay.git",e],{stdio:"inherit",cwd:Ir()}),b("makepkg",["-si","--noconfirm"],{stdio:"inherit",cwd:e})),b("rm",["-rf",e],{stdio:"inherit"})}catch(e){throw Error(`Failed to install yay: ${e}. Install yay manually and re-run the script.`)}}(),Yd||"yay"===n||(x(r,["-Sy","--noconfirm"]),Yd=!0),Jd||"yay"===n||(x(r,["-S","--noconfirm","base-devel"]),Jd=!0);const o=e=>"yay"===n?T()&&Zd?x("su",["-","builder","-c","yay -S --noconfirm "+e]):b(n,["-S","--noconfirm",e]):x(n??r,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){const n=await async function(e,t){const n=[];try{const{stdout:r}=await _(e,["-Si",t]);for(const e of r.matchAll(Qd))n.push(e[1])}catch(r){d(`Failed to get available versions for ${t}: ${r}`)}return n}(r,e);if(n.includes(t))try{o(`${e}=${t}`)}catch{o(`${e}${t}`)}else m(`Failed to install ${e} ${t} via pacman, trying without version`),o(e)}else o(e);return{binDir:"/usr/bin/"}}function gt(e,t){return Object.keys(t).forEach((n=>{"default"===n||"__esModule"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:()=>t[n]})})),e}function _t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function bt(e,t=!0){return t?jr(e):jr(e,Fr(e))}function St(e){return Mr(e).replace(RegExp(et(Br)+"$"),"")}function Ot(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function Rt(e,t){const n=Fr(e),r=`${t}${jr(e,n)}${n}`;return Dr(Ur(e),r)}function It(e,t){const n=Fr(e),r=`${jr(e,n)}${t}${n}`;return Dr(Ur(e),r)}function Tt(e,t=".cmd",n=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function Pt(e){return"win32"===process.platform?e:"./"+e}function Ct(e){const t=Fr(e).length;return e.slice(0,-t)}function xt(e,t){return nh(e,t)}function Nt(e,t){const n=Gr(t,e);return!(!n||".."===n||n.startsWith(".."+Br)||n===Vr(e))}function At(){return Sh||(Sh=1,function(e,t){function n(e){x[e]=N++}function r(e){for(var t=0;L.length>t;t++){var n=L[t][0],r=L[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>O)return null;if(!(t.loose?P[x.LOOSE]:P[x.FULL]).test(e))return null;try{return new i(e,t)}catch(n){return null}}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>O)throw new TypeError("version is longer than "+O+" characters");if(!(this instanceof i))return new i(e,t);S("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?P[x.LOOSE]:P[x.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>R||0>this.major)throw new TypeError("Invalid major version");if(this.minor>R||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>R||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&R>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}function s(e,t){var n=D.test(e),r=D.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:t>e?-1:1}function a(e,t,n){return new i(e,n).compare(new i(t,n))}function c(e,t,n){return a(e,t,n)>0}function u(e,t,n){return 0>a(e,t,n)}function l(e,t,n){return 0===a(e,t,n)}function f(e,t,n){return 0!==a(e,t,n)}function p(e,t,n){return a(e,t,n)>=0}function d(e,t,n){return 0>=a(e,t,n)}function h(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return l(e,n,r);case"!=":return f(e,n,r);case">":return c(e,n,r);case">=":return p(e,n,r);case"<":return u(e,n,r);case"<=":return d(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),S("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===k?"":this.operator+this.semver.version,S("comp",this)}function y(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof y)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new y(e.raw,t);if(e instanceof m)return new y(e.value,t);if(!(this instanceof y))return new y(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.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 new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function v(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function w(e){return!e||"x"===e.toLowerCase()||"*"===e}function E(e,t,n,r,o,i,s,a,c,u,l,f,p){return((t=w(n)?"":w(r)?">="+n+".0.0":w(o)?">="+n+"."+r+".0":">="+t)+" "+(a=w(c)?"":w(u)?"<"+(+c+1)+".0.0":w(l)?"<"+c+"."+(+u+1)+".0":f?"<="+c+"."+u+"."+l+"-"+f:"<="+a)).trim()}function g(e,t,n){for(var r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(r=0;e.length>r;r++)if(S(e[r].semver),e[r].semver!==k&&e[r].semver.prerelease.length>0){var o=e[r].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function _(e,t,n){try{t=new y(t,n)}catch(r){return!1}return t.test(e)}function b(e,t,n,r){var o,s,a,l,f;switch(e=new i(e,r),t=new y(t,r),n){case">":o=c,s=d,a=u,l=">",f=">=";break;case"<":o=u,s=p,a=c,l="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var v=null,w=null;if(t.set[h].forEach((function(e){e.semver===k&&(e=new m(">=0.0.0")),w=w||e,o(e.semver,(v=v||e).semver,r)?v=e:a(e.semver,w.semver,r)&&(w=e)})),v.operator===l||v.operator===f)return!1;if((!w.operator||w.operator===l)&&s(e,w.semver))return!1;if(w.operator===f&&a(e,w.semver))return!1}return!0}var S;t=kh.exports=i,S="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var O=256,R=Number.MAX_SAFE_INTEGER||9007199254740991,I=O-6,T=t.re=[],P=t.safeRe=[],C=t.src=[],x=t.tokens={},N=0,A="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",O],[A,I]];n("NUMERICIDENTIFIER"),C[x.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),C[x.NUMERICIDENTIFIERLOOSE]="\\d+",n("NONNUMERICIDENTIFIER"),C[x.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+A+"*",n("MAINVERSION"),C[x.MAINVERSION]="("+C[x.NUMERICIDENTIFIER]+")\\.("+C[x.NUMERICIDENTIFIER]+")\\.("+C[x.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),C[x.MAINVERSIONLOOSE]="("+C[x.NUMERICIDENTIFIERLOOSE]+")\\.("+C[x.NUMERICIDENTIFIERLOOSE]+")\\.("+C[x.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),C[x.PRERELEASEIDENTIFIER]="(?:"+C[x.NUMERICIDENTIFIER]+"|"+C[x.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),C[x.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[x.NUMERICIDENTIFIERLOOSE]+"|"+C[x.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),C[x.PRERELEASE]="(?:-("+C[x.PRERELEASEIDENTIFIER]+"(?:\\."+C[x.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),C[x.PRERELEASELOOSE]="(?:-?("+C[x.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[x.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),C[x.BUILDIDENTIFIER]=A+"+",n("BUILD"),C[x.BUILD]="(?:\\+("+C[x.BUILDIDENTIFIER]+"(?:\\."+C[x.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),C[x.FULLPLAIN]="v?"+C[x.MAINVERSION]+C[x.PRERELEASE]+"?"+C[x.BUILD]+"?",C[x.FULL]="^"+C[x.FULLPLAIN]+"$",n("LOOSEPLAIN"),C[x.LOOSEPLAIN]="[v=\\s]*"+C[x.MAINVERSIONLOOSE]+C[x.PRERELEASELOOSE]+"?"+C[x.BUILD]+"?",n("LOOSE"),C[x.LOOSE]="^"+C[x.LOOSEPLAIN]+"$",n("GTLT"),C[x.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),C[x.XRANGEIDENTIFIERLOOSE]=C[x.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),C[x.XRANGEIDENTIFIER]=C[x.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),C[x.XRANGEPLAIN]="[v=\\s]*("+C[x.XRANGEIDENTIFIER]+")(?:\\.("+C[x.XRANGEIDENTIFIER]+")(?:\\.("+C[x.XRANGEIDENTIFIER]+")(?:"+C[x.PRERELEASE]+")?"+C[x.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),C[x.XRANGEPLAINLOOSE]="[v=\\s]*("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[x.XRANGEIDENTIFIERLOOSE]+")(?:"+C[x.PRERELEASELOOSE]+")?"+C[x.BUILD]+"?)?)?",n("XRANGE"),C[x.XRANGE]="^"+C[x.GTLT]+"\\s*"+C[x.XRANGEPLAIN]+"$",n("XRANGELOOSE"),C[x.XRANGELOOSE]="^"+C[x.GTLT]+"\\s*"+C[x.XRANGEPLAINLOOSE]+"$",n("COERCE"),C[x.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),T[x.COERCERTL]=RegExp(C[x.COERCE],"g"),P[x.COERCERTL]=RegExp(r(C[x.COERCE]),"g"),n("LONETILDE"),C[x.LONETILDE]="(?:~>?)",n("TILDETRIM"),C[x.TILDETRIM]="(\\s*)"+C[x.LONETILDE]+"\\s+",T[x.TILDETRIM]=RegExp(C[x.TILDETRIM],"g"),P[x.TILDETRIM]=RegExp(r(C[x.TILDETRIM]),"g"),n("TILDE"),C[x.TILDE]="^"+C[x.LONETILDE]+C[x.XRANGEPLAIN]+"$",n("TILDELOOSE"),C[x.TILDELOOSE]="^"+C[x.LONETILDE]+C[x.XRANGEPLAINLOOSE]+"$",n("LONECARET"),C[x.LONECARET]="(?:\\^)",n("CARETTRIM"),C[x.CARETTRIM]="(\\s*)"+C[x.LONECARET]+"\\s+",T[x.CARETTRIM]=RegExp(C[x.CARETTRIM],"g"),P[x.CARETTRIM]=RegExp(r(C[x.CARETTRIM]),"g"),n("CARET"),C[x.CARET]="^"+C[x.LONECARET]+C[x.XRANGEPLAIN]+"$",n("CARETLOOSE"),C[x.CARETLOOSE]="^"+C[x.LONECARET]+C[x.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),C[x.COMPARATORLOOSE]="^"+C[x.GTLT]+"\\s*("+C[x.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),C[x.COMPARATOR]="^"+C[x.GTLT]+"\\s*("+C[x.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),C[x.COMPARATORTRIM]="(\\s*)"+C[x.GTLT]+"\\s*("+C[x.LOOSEPLAIN]+"|"+C[x.XRANGEPLAIN]+")",T[x.COMPARATORTRIM]=RegExp(C[x.COMPARATORTRIM],"g"),P[x.COMPARATORTRIM]=RegExp(r(C[x.COMPARATORTRIM]),"g"),n("HYPHENRANGE"),C[x.HYPHENRANGE]="^\\s*("+C[x.XRANGEPLAIN]+")\\s+-\\s+("+C[x.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),C[x.HYPHENRANGELOOSE]="^\\s*("+C[x.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[x.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),C[x.STAR]="(<|>)?=?\\s*\\*";for(var $=0;N>$;$++)S($,C[$]),T[$]||(T[$]=RegExp(C[$]),P[$]=RegExp(r(C[$])));t.parse=o,t.valid=function(e,t){var n=o(e,t);return n?n.version:null},t.clean=function(e,t){var n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=i,i.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},i.prototype.toString=function(){return this.version},i.prototype.compare=function(e){return S("SemVer.compare",this.version,this.options,e),e instanceof i||(e=new i(e,this.options)),this.compareMain(e)||this.comparePre(e)},i.prototype.compareMain=function(e){return e instanceof i||(e=new i(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch)},i.prototype.comparePre=function(e){if(e instanceof i||(e=new i(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],r=e.prerelease[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},i.prototype.compareBuild=function(e){e instanceof i||(e=new i(e,this.options));var t=0;do{var n=this.build[t],r=e.build[t];if(S("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return s(n,r)}while(++t)},i.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new i(e,n).inc(t,r).version}catch(o){return null}},t.diff=function(e,t){if(l(e,t))return null;var n=o(e),r=o(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var s="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return s},t.compareIdentifiers=s;var D=/^[0-9]+$/;t.rcompareIdentifiers=function(e,t){return s(t,e)},t.major=function(e,t){return new i(e,t).major},t.minor=function(e,t){return new i(e,t).minor},t.patch=function(e,t){return new i(e,t).patch},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0)},t.compareBuild=function(e,t,n){var r=new i(e,n),o=new i(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return a(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=c,t.lt=u,t.eq=l,t.neq=f,t.gte=p,t.lte=d,t.cmp=h,t.Comparator=m;var k={};m.prototype.parse=function(e){var t=e.match(this.options.loose?P[x.COMPARATORLOOSE]:P[x.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new i(t[2],this.options.loose):k},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(S("Comparator.test",e,this.options.loose),this.semver===k||e===k)return!0;if("string"==typeof e)try{e=new i(e,this.options)}catch(t){return!1}return h(e,this.operator,this.semver,this.options)},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new y(e.value,t),_(this.value,n,t));if(""===e.operator)return""===e.value||(n=new y(this.value,t),_(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&s||a||c},t.Range=y,y.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},y.prototype.toString=function(){return this.range},y.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[x.HYPHENRANGELOOSE]:P[x.HYPHENRANGE],E),S("hyphen replace",e),e=e.replace(P[x.COMPARATORTRIM],"$1$2$3"),S("comparator trim",e,P[x.COMPARATORTRIM]),e=(e=(e=e.replace(P[x.TILDETRIM],"$1~")).replace(P[x.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?P[x.COMPARATORLOOSE]:P[x.COMPARATOR],r=e.split(" ").map((function(e){return function(e,t){return S("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return S("caret",e,t),e.replace(t.loose?P[x.CARETLOOSE]:P[x.CARET],(function(t,n,r,o,i){var s;return S("caret",e,t,n,r,o,i),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(o)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":i?(S("replaceCaret pr",i),s="0"===n?"0"===r?">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+r+"."+(+o+1):">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+o+"-"+i+" <"+(+n+1)+".0.0"):(S("no pr"),s="0"===n?"0"===r?">="+n+"."+r+"."+o+" <"+n+"."+r+"."+(+o+1):">="+n+"."+r+"."+o+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+o+" <"+(+n+1)+".0.0"),S("caret return",s),s}))}(e,t)})).join(" ")}(e,t),S("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return e.replace(t.loose?P[x.TILDELOOSE]:P[x.TILDE],(function(t,n,r,o,i){var s;return S("tilde",e,t,n,r,o,i),w(n)?s="":w(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":w(o)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":i?(S("replaceTilde pr",i),s=">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+o+" <"+n+"."+(+r+1)+".0",S("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),S("tildes",e),e=function(e,t){return S("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){return(e=e.trim()).replace(t.loose?P[x.XRANGELOOSE]:P[x.XRANGE],(function(n,r,o,i,s,a){S("xRange",e,n,r,o,i,s,a);var c=w(o),u=c||w(i),l=u||w(s);return"="===r&&l&&(r=""),a=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&l?(u&&(i=0),s=0,">"===r?(r=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),n=r+o+"."+i+"."+s+a):u?n=">="+o+".0.0"+a+" <"+(+o+1)+".0.0"+a:l&&(n=">="+o+"."+i+".0"+a+" <"+o+"."+(+i+1)+".0"+a),S("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),S("xrange",e),e=function(e,t){return S("replaceStars",e,t),e.trim().replace(P[x.STAR],"")}(e,t),S("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(r=r.filter((function(e){return!!e.match(n)}))),r.map((function(e){return new m(e,this.options)}),this)},y.prototype.intersects=function(e,t){if(!(e instanceof y))throw new TypeError("a Range is required");return this.set.some((function(n){return v(n,t)&&e.set.some((function(e){return v(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new y(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},y.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(n){return!1}for(var t=0;this.set.length>t;t++)if(g(this.set[t],e,this.options))return!0;return!1},t.satisfies=_,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&-1!==o.compare(e)||(o=new i(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var s=new y(t,n)}catch(a){return null}return e.forEach((function(e){s.test(e)&&(r&&1!==o.compare(e)||(o=new i(r=e,n)))})),r},t.minVersion=function(e,t){e=new y(e,t);var n=new i("0.0.0");if(e.test(n))return n;if(n=new i("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;e.set.length>r;++r)e.set[r].forEach((function(e){var t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!c(n,t)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new y(e,t).range||"*"}catch(n){return null}},t.ltr=function(e,t,n){return b(e,t,"<",n)},t.gtr=function(e,t,n){return b(e,t,">",n)},t.outside=b,t.prerelease=function(e,t){var n=o(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new y(e,n),t=new y(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof i)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=P[x.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),P[x.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;P[x.COERCERTL].lastIndex=-1}else n=e.match(P[x.COERCE]);return null===n?null:o(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,kh.exports)),kh.exports}function Lt(){return Gh||(Gh=1,Zm.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{t.push(((e,t)=>null!=e?r(e):n(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},Zm.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>n(null,e)),n)}),"name",{value:e.name})}),Zm}function $t(){function e(e,t){Object.defineProperty(e,i,{get:function(){return t}})}function t(e){function r(e,t){return this instanceof r?(m.apply(this,arguments),this):r.apply(Object.create(r.prototype),arguments)}function o(e,t){return this instanceof o?(y.apply(this,arguments),this):o.apply(Object.create(o.prototype),arguments)}function i(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,i,s){return E(t,r,o,(function(a,c){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,o,i],a,s||Date.now(),Date.now()])}))}(e,t,r,o)}c(e),e.gracefulify=t,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var s=e.readFile;e.readFile=function(e,t,r){return"function"==typeof t&&(r=t,t=null),function e(t,r,o,i){return s(t,r,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof o&&o.apply(this,arguments):n([e,[t,r,o],s,i||Date.now(),Date.now()])}))}(e,t,r)};var a=e.writeFile;e.writeFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,i,s){return a(t,r,o,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,o,i],a,s||Date.now(),Date.now()])}))}(e,t,r,o)};var l=e.appendFile;l&&(e.appendFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=null),function e(t,r,o,i,s){return l(t,r,o,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,o,i],a,s||Date.now(),Date.now()])}))}(e,t,r,o)});var f=e.copyFile;f&&(e.copyFile=function(e,t,r,o){return"function"==typeof r&&(o=r,r=0),function e(t,r,o,i,s){return f(t,r,o,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):n([e,[t,r,o,i],a,s||Date.now(),Date.now()])}))}(e,t,r,o)});var p=e.readdir;e.readdir=function(e,t,r){function o(e,t,r,o){return function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,s,a)):n([i,[e,t,r],s,o||Date.now(),Date.now()])}}"function"==typeof t&&(r=t,t=null);var i=d.test(process.version)?function(e,t,n,r){return p(e,o(e,t,n,r))}:function(e,t,n,r){return p(e,t,o(e,t,n,r))};return i(e,t,r)};var d=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var h=u(e);r=h.ReadStream,o=h.WriteStream}var m=e.ReadStream;m&&(r.prototype=Object.create(m.prototype),r.prototype.open=function(){var e=this;i(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var y=e.WriteStream;y&&(o.prototype=Object.create(y.prototype),o.prototype.open=function(){var e=this;i(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return o},set:function(e){o=e},enumerable:!0,configurable:!0});var v=r;Object.defineProperty(e,"FileReadStream",{get:function(){return v},set:function(e){v=e},enumerable:!0,configurable:!0});var w=o;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(e){w=e},enumerable:!0,configurable:!0});var E=e.open;return e.open=i,e}function n(e){d("ENQUEUE",e[0].name,e[1]),a[i].push(e),o()}function r(){for(var e=Date.now(),t=0;a[i].length>t;++t)a[i][t].length>2&&(a[i][t][3]=e,a[i][t][4]=e);o()}function o(){if(clearTimeout(p),p=void 0,0!==a[i].length){var e=a[i].shift(),t=e[0],n=e[1],r=e[2],s=e[3],c=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(6e4>Date.now()-s){var u=Date.now()-c;Math.min(1.2*Math.max(c-s,1),100)>u?a[i].push(e):(d("RETRY",t.name,n),t.apply(null,n.concat([s])))}else{d("TIMEOUT",t.name,n);var l=n.pop();"function"==typeof l&&l.call(null,r)}void 0===p&&(p=setTimeout(o,0))}}if(Yh)return Kh;Yh=1;var i,s,a=Tr,c=function(){if(Hh)return Vh;Hh=1;var e=To,t=process.cwd,n=null,r=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=t.call(process)),n};try{process.cwd()}catch(i){}if("function"==typeof process.chdir){var o=process.chdir;process.chdir=function(e){n=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}return Vh=function(t){function n(e){return e?function(n,r,o){return e.call(t,n,r,(function(e){l(e)&&(e=null),o&&o.apply(this,arguments)}))}:e}function o(e){return e?function(n,r){try{return e.call(t,n,r)}catch(i){if(!l(i))throw i}}:e}function s(e){return e?function(n,r,o,i){return e.call(t,n,r,o,(function(e){l(e)&&(e=null),i&&i.apply(this,arguments)}))}:e}function a(e){return e?function(n,r,o){try{return e.call(t,n,r,o)}catch(i){if(!l(i))throw i}}:e}function c(e){return e?function(n,r,o){function i(e,t){t&&(0>t.uid&&(t.uid+=4294967296),0>t.gid&&(t.gid+=4294967296)),o&&o.apply(this,arguments)}return"function"==typeof r&&(o=r,r=null),r?e.call(t,n,r,i):e.call(t,n,i)}:e}function u(e){return e?function(n,r){var o=r?e.call(t,n,r):e.call(t,n);return o&&(0>o.uid&&(o.uid+=4294967296),0>o.gid&&(o.gid+=4294967296)),o}:e}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var f;e.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&((f=t).lchmod=function(t,n,r){f.open(t,e.O_WRONLY|e.O_SYMLINK,n,(function(e,t){e?r&&r(e):f.fchmod(t,n,(function(e){f.close(t,(function(t){r&&r(e||t)}))}))}))},f.lchmodSync=function(t,n){var r,o=f.openSync(t,e.O_WRONLY|e.O_SYMLINK,n),s=!0;try{r=f.fchmodSync(o,n),s=!1}finally{if(s)try{f.closeSync(o)}catch(i){}else f.closeSync(o)}return r}),t.lutimes||function(t){e.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(n,r,o,i){t.open(n,e.O_SYMLINK,(function(e,n){e?i&&i(e):t.futimes(n,r,o,(function(e){t.close(n,(function(t){i&&i(e||t)}))}))}))},t.lutimesSync=function(n,r,o){var s,a=t.openSync(n,e.O_SYMLINK),c=!0;try{s=t.futimesSync(a,r,o),c=!1}finally{if(c)try{t.closeSync(a)}catch(i){}else t.closeSync(a)}return s}):t.futimes&&(t.lutimes=function(e,t,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=a(t.chownSync),t.fchownSync=a(t.fchownSync),t.lchownSync=a(t.lchownSync),t.chmodSync=o(t.chmodSync),t.fchmodSync=o(t.fchmodSync),t.lchmodSync=o(t.lchmodSync),t.stat=c(t.stat),t.fstat=c(t.fstat),t.lstat=c(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(e,t,n){n&&process.nextTick(n)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(e,t,n,r){r&&process.nextTick(r)},t.lchownSync=function(){}),"win32"===r&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,r,o){var i=Date.now(),s=0;e(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&6e4>Date.now()-i)return setTimeout((function(){t.stat(r,(function(t,i){t&&"ENOENT"===t.code?e(n,r,a):o(c)}))}),s),void(100>s&&(s+=10));o&&o(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename)),t.read="function"!=typeof t.read?t.read:function(e){function n(n,r,o,i,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,f,p){if(l&&"EAGAIN"===l.code&&10>u)return u++,e.call(t,n,r,o,i,s,c);a.apply(this,arguments)}}return e.call(t,n,r,o,i,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:function(e){return function(n,r,o,s,a){for(var c=0;;)try{return e.call(t,n,r,o,s,a)}catch(i){if("EAGAIN"===i.code&&10>c){c++;continue}throw i}}}(t.readSync)},Vh}(),u=function(){if(zh)return qh;zh=1;var e=to.Stream;return qh=function(t){return{ReadStream:function n(r,o){if(!(this instanceof n))return new n(r,o);e.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536;for(var s=Object.keys(o=o||{}),a=0,c=s.length;c>a;a++){var u=s[a];this[u]=o[u]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}null===this.fd?t.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()})):process.nextTick((function(){i._read()}))},WriteStream:function n(r,o){if(!(this instanceof n))return new n(r,o);e.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0;for(var i=Object.keys(o=o||{}),s=0,a=i.length;a>s;s++){var c=i[s];this[c]=o[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(0>this.start)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}(),l=function(){if(Xh)return Wh;Xh=1,Wh=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(e){return e.__proto__};return Wh}(),f=Jr;"function"==typeof Symbol&&"function"==typeof Symbol.for?(i=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(i="___graceful-fs.queue",s="___graceful-fs.previous");var p,d=function(){};return f.debuglog?d=f.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=f.format.apply(f,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),a[i]||(e(a,xo[i]||[]),a.close=function(e){function t(t,n){return e.call(a,t,(function(e){e||r(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,s,{value:e}),t}(a.close),a.closeSync=function(e){function t(t){e.apply(a,arguments),r()}return Object.defineProperty(t,s,{value:e}),t}(a.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(a[i]),Zr.equal(a[i].length,0)}))),xo[i]||e(xo,a[i]),Kh=t(l(a)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched&&(Kh=t(a),a.__patched=!0),Kh}function Dt(){return Jh||(Jh=1,function(e){const t=Lt().fromCallback,n=$t(),r=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.assign(e,n),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},e.read=function(e,t,r,o,i,s){return"function"==typeof s?n.read(e,t,r,o,i,s):new Promise(((s,a)=>{n.read(e,t,r,o,i,((e,t,n)=>{if(e)return a(e);s({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeof r[r.length-1]?n.write(e,t,...r):new Promise(((o,i)=>{n.write(e,t,...r,((e,t,n)=>{if(e)return i(e);o({bytesWritten:t,buffer:n})}))}))},e.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?n.readv(e,t,...r):new Promise(((o,i)=>{n.readv(e,t,...r,((e,t,n)=>{if(e)return i(e);o({bytesRead:t,buffers:n})}))}))},e.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?n.writev(e,t,...r):new Promise(((o,i)=>{n.writev(e,t,...r,((e,t,n)=>{if(e)return i(e);o({bytesWritten:t,buffers:n})}))}))},"function"==typeof n.realpath.native?e.realpath.native=t(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}(Qm)),Qm}function kt(){if(Qh)return ty;Qh=1;const e=$r;return ty.checkPath=function(t){if("win32"===process.platform&&/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=Error("Path contains invalid characters: "+t);throw e.code="EINVAL",e}},ty}function Ut(){if(Zh)return ey;Zh=1;const e=Dt(),{checkPath:t}=kt(),n=e=>"number"==typeof e?e:{mode:511,...e}.mode;return ey.makeDir=async(r,o)=>(t(r),e.mkdir(r,{mode:n(o),recursive:!0})),ey.makeDirSync=(r,o)=>(t(r),e.mkdirSync(r,{mode:n(o),recursive:!0})),ey}function jt(){if(tm)return em;tm=1;const e=Lt().fromPromise,{makeDir:t,makeDirSync:n}=Ut(),r=e(t);return em={mkdirs:r,mkdirsSync:n,mkdirp:r,mkdirpSync:n,ensureDir:r,ensureDirSync:n}}function Ft(){if(rm)return nm;rm=1;const e=Lt().fromPromise,t=Dt();return nm={pathExists:e((function(e){return t.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:t.existsSync}}function Mt(){if(im)return om;im=1;const e=Dt(),t=Lt().fromPromise;return om={utimesMillis:t((async function(t,n,r){const o=await e.open(t,"r+");let i=null;try{await e.futimes(o,n,r)}finally{try{await e.close(o)}catch(s){i=s}}if(i)throw i})),utimesMillisSync:function(t,n,r){const o=e.openSync(t,"r+");return e.futimesSync(o,n,r),e.closeSync(o)}}}function Bt(){function e(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function t(e,t){const n=o.resolve(e).split(o.sep).filter((e=>e)),r=o.resolve(t).split(o.sep).filter((e=>e));return n.every(((e,t)=>r[t]===e))}function n(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}if(am)return sm;am=1;const r=Dt(),o=$r,i=Lt().fromPromise;return sm={checkPaths:i((async function(i,s,a,c){const{srcStat:u,destStat:l}=await function(e,t,n){const o=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([o(e),o(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(i,s,c);if(l){if(e(u,l)){const e=o.basename(i),t=o.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${i}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${i}'.`)}if(u.isDirectory()&&t(i,s))throw Error(n(i,s,a));return{srcStat:u,destStat:l}})),checkPathsSync:function(i,s,a,c){const{srcStat:u,destStat:l}=function(e,t,n){let o;const i=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),s=i(e);try{o=i(t)}catch(a){if("ENOENT"===a.code)return{srcStat:s,destStat:null};throw a}return{srcStat:s,destStat:o}}(i,s,c);if(l){if(e(u,l)){const e=o.basename(i),t=o.basename(s);if("move"===a&&e!==t&&e.toLowerCase()===t.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw Error(`Cannot overwrite non-directory '${s}' with directory '${i}'.`);if(!u.isDirectory()&&l.isDirectory())throw Error(`Cannot overwrite directory '${s}' with non-directory '${i}'.`)}if(u.isDirectory()&&t(i,s))throw Error(n(i,s,a));return{srcStat:u,destStat:l}},checkParentPaths:i((async function t(i,s,a,c){const u=o.resolve(o.dirname(i)),l=o.resolve(o.dirname(a));if(l===u||l===o.parse(l).root)return;let f;try{f=await r.stat(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(i,a,c));return t(i,s,l,c)})),checkParentPathsSync:function t(i,s,a,c){const u=o.resolve(o.dirname(i)),l=o.resolve(o.dirname(a));if(l===u||l===o.parse(l).root)return;let f;try{f=r.statSync(l,{bigint:!0})}catch(p){if("ENOENT"===p.code)return;throw p}if(e(s,f))throw Error(n(i,a,c));return t(i,s,l,c)},isSrcSubdir:t,areIdentical:e}}function Gt(){async function e(e,t,n){return!n.filter||n.filter(e,t)}async function t(i,s,a,u){const l=u.dereference?r.stat:r.lstat,f=await l(s);if(f.isDirectory())return async function(n,i,s,a,u){i||await r.mkdir(a);const l=[];for await(const f of await r.opendir(s)){const n=o.join(s,f.name),r=o.join(a,f.name);l.push(e(n,r,u).then((e=>{if(e)return c.checkPaths(n,r,"copy",u).then((({destStat:e})=>t(e,n,r,u)))})))}await Promise.all(l),i||await r.chmod(a,n.mode)}(f,i,s,a,u);if(f.isFile()||f.isCharacterDevice()||f.isBlockDevice())return async function(e,t,o,i,s){if(!t)return n(e,o,i,s);if(s.overwrite)return await r.unlink(i),n(e,o,i,s);if(s.errorOnExist)throw Error(`'${i}' already exists`)}(f,i,s,a,u);if(f.isSymbolicLink())return async function(e,t,n,i){let s=await r.readlink(t);if(i.dereference&&(s=o.resolve(process.cwd(),s)),!e)return r.symlink(s,n);let a=null;try{a=await r.readlink(n)}catch(u){if("EINVAL"===u.code||"UNKNOWN"===u.code)return r.symlink(s,n);throw u}if(i.dereference&&(a=o.resolve(process.cwd(),a)),c.isSrcSubdir(s,a))throw Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`);if(c.isSrcSubdir(a,s))throw Error(`Cannot overwrite '${a}' with '${s}'.`);return await r.unlink(n),r.symlink(s,n)}(i,s,a,u);if(f.isSocket())throw Error("Cannot copy a socket file: "+s);if(f.isFIFO())throw Error("Cannot copy a FIFO pipe: "+s);throw Error("Unknown file: "+s)}async function n(e,t,n,o){if(await r.copyFile(t,n),o.preserveTimestamps){128&e.mode||await function(e,t){return r.chmod(e,128|t)}(n,e.mode);const o=await r.stat(t);await a(n,o.atime,o.mtime)}return r.chmod(n,e.mode)}if(um)return cm;um=1;const r=Dt(),o=$r,{mkdirs:i}=jt(),{pathExists:s}=Ft(),{utimesMillis:a}=Mt(),c=Bt();return cm=async function(n,r,a={}){"function"==typeof a&&(a={filter:a}),a.clobber=!("clobber"in a)||!!a.clobber,a.overwrite="overwrite"in a?!!a.overwrite:a.clobber,a.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:u,destStat:l}=await c.checkPaths(n,r,"copy",a);if(await c.checkParentPaths(n,u,r,"copy"),!(await e(n,r,a)))return;const f=o.dirname(r);await s(f)||await i(f),await t(l,n,r,a)}}function Vt(){function e(e,o,a,c){const l=(c.dereference?i.statSync:i.lstatSync)(o);if(l.isDirectory())return function(e,t,o,s,a){return t?r(o,s,a):function(e,t,o,s){return i.mkdirSync(o),r(t,o,s),n(o,e)}(e.mode,o,s,a)}(l,e,o,a,c);if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return function(e,n,r,o,s){return n?function(e,n,r,o){if(o.overwrite)return i.unlinkSync(r),t(e,n,r,o);if(o.errorOnExist)throw Error(`'${r}' already exists`)}(e,r,o,s):t(e,r,o,s)}(l,e,o,a,c);if(l.isSymbolicLink())return function(e,t,n,r){let o=i.readlinkSync(t);if(r.dereference&&(o=s.resolve(process.cwd(),o)),e){let e;try{e=i.readlinkSync(n)}catch(a){if("EINVAL"===a.code||"UNKNOWN"===a.code)return i.symlinkSync(o,n);throw a}if(r.dereference&&(e=s.resolve(process.cwd(),e)),u.isSrcSubdir(o,e))throw Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(u.isSrcSubdir(e,o))throw Error(`Cannot overwrite '${e}' with '${o}'.`);return function(e,t){return i.unlinkSync(t),i.symlinkSync(e,t)}(o,n)}return i.symlinkSync(o,n)}(e,o,a,c);if(l.isSocket())throw Error("Cannot copy a socket file: "+o);if(l.isFIFO())throw Error("Cannot copy a FIFO pipe: "+o);throw Error("Unknown file: "+o)}function t(e,t,r,o){return i.copyFileSync(t,r),o.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){n(e,128|t)}(r,e),function(e,t){const n=i.statSync(e);c(t,n.atime,n.mtime)}(t,r)}(e.mode,t,r),n(r,e.mode)}function n(e,t){return i.chmodSync(e,t)}function r(e,t,n){const r=i.opendirSync(e);try{let i;for(;null!==(i=r.readSync());)o(i.name,e,t,n)}finally{r.closeSync()}}function o(t,n,r,o){const i=s.join(n,t),a=s.join(r,t);if(o.filter&&!o.filter(i,a))return;const{destStat:c}=u.checkPathsSync(i,a,"copy",o);return e(c,i,a,o)}if(fm)return lm;fm=1;const i=$t(),s=$r,a=jt().mkdirsSync,c=Mt().utimesMillisSync,u=Bt();return lm=function(t,n,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:o,destStat:c}=u.checkPathsSync(t,n,"copy",r);if(u.checkParentPathsSync(t,o,n,"copy"),r.filter&&!r.filter(t,n))return;const l=s.dirname(n);return i.existsSync(l)||a(l),e(c,t,n,r)}}function Ht(){if(dm)return pm;dm=1;const e=Lt().fromPromise;return pm={copy:e(Gt()),copySync:Vt()}}function qt(){if(mm)return hm;mm=1;const e=$t(),t=Lt().fromCallback;return hm={remove:t((function(t,n){e.rm(t,{recursive:!0,force:!0},n)})),removeSync:function(t){e.rmSync(t,{recursive:!0,force:!0})}}}function zt(){function e(e){let t;try{t=n.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=r.join(e,t),i.removeSync(t)}))}if(vm)return ym;vm=1;const t=Lt().fromPromise,n=Dt(),r=$r,o=jt(),i=qt(),s=t((async function(e){let t;try{t=await n.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map((t=>i.remove(r.join(e,t)))))}));return ym={emptyDirSync:e,emptydirSync:e,emptyDir:s,emptydir:s}}function Wt(){if(Em)return wm;Em=1;const e=Lt().fromPromise,t=$r,n=Dt(),r=jt();return wm={createFile:e((async function(e){let o;try{o=await n.stat(e)}catch{}if(o&&o.isFile())return;const i=t.dirname(e);let s=null;try{s=await n.stat(i)}catch(a){if("ENOENT"===a.code)return await r.mkdirs(i),void(await n.writeFile(e,""));throw a}s.isDirectory()?await n.writeFile(e,""):await n.readdir(i)})),createFileSync:function(e){let o;try{o=n.statSync(e)}catch{}if(o&&o.isFile())return;const i=t.dirname(e);try{n.statSync(i).isDirectory()||n.readdirSync(i)}catch(s){if(!s||"ENOENT"!==s.code)throw s;r.mkdirsSync(i)}n.writeFileSync(e,"")}}}function Xt(){if(_m)return gm;_m=1;const e=Lt().fromPromise,t=$r,n=Dt(),r=jt(),{pathExists:o}=Ft(),{areIdentical:i}=Bt();return gm={createLink:e((async function(e,s){let a,c;try{a=await n.lstat(s)}catch{}try{c=await n.lstat(e)}catch(l){throw l.message=l.message.replace("lstat","ensureLink"),l}if(a&&i(c,a))return;const u=t.dirname(s);await o(u)||await r.mkdirs(u),await n.link(e,s)})),createLinkSync:function(e,o){let s;try{s=n.lstatSync(o)}catch{}try{const t=n.lstatSync(e);if(s&&i(t,s))return}catch(c){throw c.message=c.message.replace("lstat","ensureLink"),c}const a=t.dirname(o);return n.existsSync(a)||r.mkdirsSync(a),n.linkSync(e,o)}}}function Kt(){if(Sm)return bm;Sm=1;const e=$r,t=Dt(),{pathExists:n}=Ft(),r=Lt().fromPromise;return bm={symlinkPaths:r((async function(r,o){if(e.isAbsolute(r)){try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:r}}const i=e.dirname(o),s=e.join(i,r);if(await n(s))return{toCwd:s,toDst:r};try{await t.lstat(r)}catch(a){throw a.message=a.message.replace("lstat","ensureSymlink"),a}return{toCwd:r,toDst:e.relative(i,r)}})),symlinkPathsSync:function(n,r){if(e.isAbsolute(n)){if(!t.existsSync(n))throw Error("absolute srcpath does not exist");return{toCwd:n,toDst:n}}const o=e.dirname(r),i=e.join(o,n);if(t.existsSync(i))return{toCwd:i,toDst:n};if(!t.existsSync(n))throw Error("relative srcpath does not exist");return{toCwd:n,toDst:e.relative(o,n)}}}}function Yt(){if(Rm)return Om;Rm=1;const e=Dt(),t=Lt().fromPromise;return Om={symlinkType:t((async function(t,n){if(n)return n;let r;try{r=await e.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(t,n){if(n)return n;let r;try{r=e.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}}function Jt(){if(Tm)return Im;Tm=1;const e=Lt().fromPromise,t=$r,n=Dt(),{mkdirs:r,mkdirsSync:o}=jt(),{symlinkPaths:i,symlinkPathsSync:s}=Kt(),{symlinkType:a,symlinkTypeSync:c}=Yt(),{pathExists:u}=Ft(),{areIdentical:l}=Bt();return Im={createSymlink:e((async function(e,o,s){let c;try{c=await n.lstat(o)}catch{}if(c&&c.isSymbolicLink()){const[t,r]=await Promise.all([n.stat(e),n.stat(o)]);if(l(t,r))return}const f=await i(e,o);e=f.toDst;const p=await a(f.toCwd,s),d=t.dirname(o);return await u(d)||await r(d),n.symlink(e,o,p)})),createSymlinkSync:function(e,r,i){let a;try{a=n.lstatSync(r)}catch{}if(a&&a.isSymbolicLink()){const t=n.statSync(e),o=n.statSync(r);if(l(t,o))return}const u=s(e,r);e=u.toDst,i=c(u.toCwd,i);const f=t.dirname(r);return n.existsSync(f)||o(f),n.symlinkSync(e,r,i)}}}function Qt(){if(Cm)return Pm;Cm=1;const{createFile:e,createFileSync:t}=Wt(),{createLink:n,createLinkSync:r}=Xt(),{createSymlink:o,createSymlinkSync:i}=Jt();return Pm={createFile:e,createFileSync:t,ensureFile:e,ensureFileSync:t,createLink:n,createLinkSync:r,ensureLink:n,ensureLinkSync:r,createSymlink:o,createSymlinkSync:i,ensureSymlink:o,ensureSymlinkSync:i}}function Zt(){return Nm?xm:(Nm=1,xm={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:o}={}){const i=n?t:"";return JSON.stringify(e,r,o).replace(/\n/g,t)+i},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}})}function en(){if(Dm)return $m;Dm=1;const e=function(){if(Lm)return Am;let e;Lm=1;try{e=$t()}catch(s){e=Tr}const t=Lt(),{stringify:n,stripBom:r}=Zt(),o=t.fromPromise((async function(n,o={}){"string"==typeof o&&(o={encoding:o});const i=o.fs||e,s=!("throws"in o)||o.throws;let a,c=await t.fromCallback(i.readFile)(n,o);c=r(c);try{a=JSON.parse(c,o?o.reviver:null)}catch(u){if(s)throw u.message=`${n}: ${u.message}`,u;return null}return a})),i=t.fromPromise((async function(r,o,i={}){const s=i.fs||e,a=n(o,i);await t.fromCallback(s.writeFile)(r,a,i)}));return Am={readFile:o,readFileSync:function(t,n={}){"string"==typeof n&&(n={encoding:n});const o=n.fs||e,i=!("throws"in n)||n.throws;try{let e=o.readFileSync(t,n);return e=r(e),JSON.parse(e,n.reviver)}catch(s){if(i)throw s.message=`${t}: ${s.message}`,s;return null}},writeFile:i,writeFileSync:function(t,r,o={}){const i=o.fs||e,s=n(r,o);return i.writeFileSync(t,s,o)}}}();return $m={readJson:e.readFile,readJsonSync:e.readFileSync,writeJson:e.writeFile,writeJsonSync:e.writeFileSync}}function tn(){if(Um)return km;Um=1;const e=Lt().fromPromise,t=Dt(),n=$r,r=jt(),o=Ft().pathExists;return km={outputFile:e((async function(e,i,s="utf-8"){const a=n.dirname(e);return await o(a)||await r.mkdirs(a),t.writeFile(e,i,s)})),outputFileSync:function(e,...o){const i=n.dirname(e);t.existsSync(i)||r.mkdirsSync(i),t.writeFileSync(e,...o)}}}function nn(){if(Fm)return jm;Fm=1;const{stringify:e}=Zt(),{outputFile:t}=tn();return jm=async function(n,r,o={}){const i=e(r,o);await t(n,i,o)}}function rn(){if(Bm)return Mm;Bm=1;const{stringify:e}=Zt(),{outputFileSync:t}=tn();return Mm=function(n,r,o){const i=e(r,o);t(n,i,o)}}function on(){if(Vm)return Gm;Vm=1;const e=Lt().fromPromise,t=en();return t.outputJson=e(nn()),t.outputJsonSync=rn(),t.outputJSON=t.outputJson,t.outputJSONSync=t.outputJsonSync,t.writeJSON=t.writeJson,t.writeJSONSync=t.writeJsonSync,t.readJSON=t.readJson,t.readJSONSync=t.readJsonSync,Gm=t}function sn(){if(qm)return Hm;qm=1;const e=Dt(),t=$r,{copy:n}=Ht(),{remove:r}=qt(),{mkdirp:o}=jt(),{pathExists:i}=Ft(),s=Bt();return Hm=async function(a,c,u={}){const l=u.overwrite||u.clobber||!1,{srcStat:f,isChangingCase:p=!1}=await s.checkPaths(a,c,"move",u);await s.checkParentPaths(a,f,c,"move");const d=t.dirname(c);return t.parse(d).root!==d&&await o(d),async function(t,o,s,a){if(!a)if(s)await r(o);else if(await i(o))throw Error("dest already exists.");try{await e.rename(t,o)}catch(c){if("EXDEV"!==c.code)throw c;await async function(e,t,o){const i={overwrite:o,errorOnExist:!0,preserveTimestamps:!0};return await n(e,t,i),r(e)}(t,o,s)}}(a,c,l,p)}}function an(){function e(e,n,i){try{t.renameSync(e,n)}catch(s){if("EXDEV"!==s.code)throw s;return function(e,t,n){return r(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),o(e)}(e,n,i)}}if(Wm)return zm;Wm=1;const t=$t(),n=$r,r=Ht().copySync,o=qt().removeSync,i=jt().mkdirpSync,s=Bt();return zm=function(r,a,c){const u=(c=c||{}).overwrite||c.clobber||!1,{srcStat:l,isChangingCase:f=!1}=s.checkPathsSync(r,a,"move",c);return s.checkParentPathsSync(r,l,a,"move"),function(e){const t=n.dirname(e);return n.parse(t).root===t}(a)||i(n.dirname(a)),function(n,r,i,s){if(s)return e(n,r,i);if(i)return o(r),e(n,r,i);if(t.existsSync(r))throw Error("dest already exists.");return e(n,r,i)}(r,a,u,f)}}function cn(){if(Km)return Xm;Km=1;const e=Lt().fromPromise;return Xm={move:e(sn()),moveSync:an()}}function un(){return Jm?Ym:(Jm=1,Ym={...Dt(),...Ht(),...zt(),...Qt(),...on(),...jt(),...cn(),...tn(),...Ft(),...qt()})}function ln(e,t,n){switch(process.platform){case"win32":return vt("7zip",e);case"darwin":return pt("p7zip",e);case"linux":if(ht())return Et("p7zip",e);if(dt())return wt([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(mt())return it([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function fn(e){const t=e.split(".").pop();return"tar"===t?0:"gz"===t||"tgz"===t?1:"xz"===t||"txz"===t?2:"zip"===t?3:("7z"===t||"exe"===t||d(`Unknown archive type: ${t}. Defaulting to 7z`),4)}function pn(e){switch(e){case 0:case 1:case 2:return yn;case 3:return mn;default:return dn}}async function dn(e,t){const n=jr(e);if(/.*\.tar\..+$/.test(n)){const r=Ur(e);await hn(e,r);const o=n.slice(0,-3),i=Dr(r,o);await hn(i,r),await io(i);const s=o.slice(0,-4),a=Dr(r,s);m(`Moving ${a} to ${t}`),await ny.move(a,t,{overwrite:!0})}else await hn(e,t);return t}async function hn(e,t){m(`7z: extracting ${e} to ${t}`),await _(await async function(){return void 0===ry&&(null===Ea.sync("7z",{nothrow:!0})&&await ln("",0,process),ry="7z"),ry}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await D(t)}async function mn(e,t){return null!==Ea.sync("7z",{nothrow:!0})?dn(e,t):null!==Ea.sync("unzip",{nothrow:!0})?(await _("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await D(t),t):dn(e,t)}async function yn(e,t,n=0,r=[]){await async function(e){switch(m("Installing tar extraction dependencies"),e){case 1:"linux"===process.platform&&(ht()?(await Et("gzip"),await Et("tar")):dt()?await wt([{name:"gzip"},{name:"tar"}]):mt()&&await it([{name:"gzip"},{name:"tar"}]));break;case 2:"linux"===process.platform&&(ht()?(await Et("xz"),await Et("tar")):dt()?await wt([{name:"xz"},{name:"tar"}]):mt()&&await it([{name:"xz-utils"},{name:"tar"}]));break;default:throw Error(`Unsupported archive type: ${e} for tar extraction`)}}(fn(e));try{await ny.mkdirp(t)}catch{}try{await _("tar",["xf",e,"-C",t,"--strip-components="+n,...r],{stdio:"inherit"})}catch(o){"win32"===process.platform&&o.message.includes("Can't create '\\\\?\\C:")&&d(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`)}return await D(t),t}async function vn(e,t,n,r,o){m(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=process.env.RUNNER_TEMP??Ir(),process.env.RUNNER_TOOL_CACHE=process.env.RUNNER_TOOL_CACHE??Dr(Ir(),"setup-cpp","hostedtoolcache");const{url:i,binRelativeDir:s,binFileName:a,extractedFolderName:c,extractFunction:u}=await n(t,process.platform,o);if(oy)try{const n=Fh.find(e,t);if(n){const r=Dr(n,c),o=Dr(r,s);if(await ae(Dr(o,a)))return m(`${e} ${t} was found in the cache at ${o}.`),await de(o,wv),{installDir:r,binDir:o}}}catch{}const l=Dr(r,c),f=Dr(l,s),p=Dr(f,a);return await async function(e,t,n,r,o,i,s,a){if((await Promise.all([ae(e),ae(t)])).includes(!1))try{const e=await async function(e,t,n){m(`Download ${e} ${t}`);return await Bh((()=>{const e=Dr(process.env.RUNNER_TEMP??Ir(),`${Date.now()}-${jr(n)}`);return Fh.downloadTool(n,e)}),{name:n,max:4,backoffBase:2e3,report:e=>m(e)})}(n,r,o);m(`Extracting ${e} to ${i}`);const t=s??pn(fn(o));await t(e,i)}catch(c){throw Error(`Failed to download ${n} ${r} ${a} from ${o}: ${c}`)}if(m(`Add ${e} to PATH`),await de(e,wv),!(await ae(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await so(t,"755")}catch(c){d(`Failed to make ${t} executable: ${c}`)}}(f,p,e,t,i,r,u,o),await async function(e,t,n){oy&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==br("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await Fh.cacheDir(e,t,n))}(r,e,t),{installDir:l,binDir:f}}function wn(e,t,n){const r=hh(e)??e;switch(t){case"win32":{const t=mh(r,"v3.19.6");let o;yh.includes(n)?o=t?"win64-x64":"windows-x86_64":vh.includes(n)?o=t?"win32-x86":"windows-i386":wh.includes(n)?o="windows-arm64":(m(`Trying unsupported arch '${n}' for cmake on Windows`),o="windows-"+n);const i=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:Ot("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const t=`cmake-${e}-${mh(r,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:Ot("cmake"),extractedFolderName:t,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`}}case"linux":{const t=mh(r,"v3.19.8");let o;wh.includes(n)?o=t?"Linux-aarch64":"linux-aarch64":yh.includes(n)?o=t?"Linux-x86_64":"linux-x86_64":(m(`Trying unsupported arch '${n}' for cmake on Linux`),o="linux-"+n);const i=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:Ot("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function En(e,t,n){return vn("cmake",e,wn,t,n)}async function gn(e,t,n=Oy){const r=await async function(e,t=Oy){try{const n=await gy.getExecOutput(e,["--version"]),r=n.stdout||n.stderr||"",o=r.trim().match(t)?.[1];return hh(o)??void 0}catch(n){return void console.error(n)}}(e,n);if(void 0===r||""===t)return!1;try{return-1!==_y(r,t)}catch{return by(r,t)}}function _n(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}function bn(e,t,n=null){return On(t)?Sn(e,n)??"":t}function Sn(e,t=null){const n=Ry()[e];if(void 0===n)return;if("string"==typeof n)return n;const r=n[process.platform]??n.else;if(void 0===r)throw Error(`Platform "${process.platform}" not found in versions data for tool "${e}"`);if("string"==typeof r)return r;const o=r,i=mt()?"ubuntu":ht()?"archlinux":"else",s=o[i]??o.else;if(void 0===s)throw Error(`Distro "${i}" not found in versions data for tool "${e}"`);if("string"==typeof s)return s;const a=s,c=null!==t?function(e,t){const n=e[0],r=Object.keys(t).map((e=>Number.parseInt(e,10))).filter((e=>!Number.isNaN(e))).sort(((e,t)=>t-e)).find((e=>n>=e));return void 0!==r?t[r]??t.else:t.else}(t,a):a.else;if(void 0===c)throw Error(`Architecture "${process.arch}" not found in versions data for tool "${e}"`);return"string"==typeof c?c:c[process.arch]??c.else}function On(e){return"true"===e||void 0===e}async function Rn(e,t,n){const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let o,i=await In(t);if(void 0!==i){const e=Ur(i);o={bin:i,installDir:e,binDir:e}}else{if(Iy)try{m("Installing python in GitHub Actions");const{setupActionsPython:e}=await import("./assets/actions_python-NQlJj7Cn.mjs");if(await e(r,t,n),i=await In(t),void 0===i)throw Error("Python binary could not be found");const s=Ur(i);o={bin:i,installDir:s,binDir:s}}catch(s){d(""+s)}void 0===o&&(o=await async function(e,t){let n;switch(process.platform){case"win32":{e?await vt("python3",t,["--params=/InstallDir:"+e]):await vt("python3",t);const r=await In(e);if(void 0===r)throw Error("Python binary could not be found");const o=Ur(r);await de(o,wv),n={installDir:o,binDir:o,bin:r};break}case"darwin":{n=await pt("python3",t);const e=await _("brew",["--prefix","python"],{stdio:"pipe"}),r=Dr(e.stdout,"libexec","bin");await de(r,wv);break}case"linux":if(ht())n=await Et("python",t);else if(dt())n=await wt([{name:"python3",version:t}]);else{if(!mt())throw Error("Unsupported linux distributions");n=await it([{name:"python3",version:t},{name:"python-is-python3"}])}break;default:throw Error("Unsupported platform")}return n}(t,r))}if(void 0===i||void 0===o.bin){if(i=await In(t),void 0===i)throw Error("Python binary could not be found");o={bin:i,installDir:Ur(i),binDir:Ur(i)}}return o}(e,t,n);Zr(void 0!==r.bin);const o=r.bin;await async function(e){if(await async function(e){try{return await _(e,["-m","venv","-h"],{stdio:"ignore"}),!0}catch{}return!1}(e))m("venv module already installed.");else try{await Un("venv")}catch(t){m(`Failed to install venv: ${""+t}. Ignoring...`)}}(o);const i=await async function(e){const t=await Pn();return void 0===t?(m("pip was not found. Installing pip"),await async function(e){await xn(e)||(await Un("pip"),await xn(e))}(e),Pn()):t}(o);if(void 0===i)throw Error("pip was not installed correctly");return await async function(e){try{if(!(await kn(e)))try{await Un("pipx",ht()),await Ln(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){throw Error("pipx was not installed completely: "+t)}if(await kn(e))return void(await _(e,["-m","pipx","ensurepath"],{stdio:"inherit"}));if(await async function(){return null!==await Ea("pipx",{nothrow:!0})}())return h("pipx module not found. Trying to install with pipx binary..."),void(await _("pipx",["ensurepath"],{stdio:"inherit"}));throw Error("pipx module or pipx binary not found. Corrput pipx installation.")}catch(t){h(`Failed to install pipx: ${""+t}. Ignoring...`)}}(o),await async function(e){try{await Ln(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await Ln(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){m(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(o),r}async function In(e){for(const t of["python","python3"]){const n=await Tn(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=Hr(Rr()).root,t=(await ao(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await Tn(t,Dr(e,n));if(void 0!==r)return r}}}async function Tn(e,t){try{const n=Sn("python");if(void 0!==t){const r=Dr(t,Ot(e));if(await ae(r)&&await gn(r,n))return r}const r=await Ea(e,{nothrow:!0,all:!0})??[];for(const e of r)if(await gn(e,n))return e}catch{}}async function Pn(){for(const e of["pip3","pip"]){const t=await Cn(e);if(void 0!==t)return t}}async function Cn(e){try{const t=Sn("pip"),n=await Ea(e,{nothrow:!0,all:!0})??[];for(const e of n)if(await gn(e,t))return e}catch{}}async function xn(e){try{return await _(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){m(""+t);try{return await _(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){m(""+n)}}return!1}function Nn(){if(!("version"in Or)||"function"!=typeof Or.version)return null;const e=Or.version().match(/(\d+)\.(\d+)\.(\d+)/);return null===e?null:[Number.parseInt(e[1],10),Number.parseInt(e[2],10),Number.parseInt(e[3],10)]}async function An(e,t,n={}){return Ln(await async function(e){if(void 0!==$y)return $y;const t=e??bn("python",void 0,await Ny());return $y=(await Rn(t,"",process.arch)).bin,$y}(n.pythonVersion),e,t,n)}async function Ln(e,t,n,r={}){const{usePipx:o=!0,user:i=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=o&&!a&&await kn(e),u=c?"pipx":"pip",l=t.replace(/\[.*]/g,"").trim();if(!s){const t=c?await async function(e,t){try{const n=await _(e,["-m","pipx","list","--json"],{stdio:"ignore",reject:!1});if(0!==n.exitCode||"string"!=typeof n.stdout)return!1;const r=JSON.parse(n.stdout);if(t in r.venvs)return!0;for(const e of Object.values(r.venvs))if(e.metadata.main_package.package_or_url===t||e.metadata.main_package.package===t)return!0}catch{}return!1}(e,l):await async function(e,t){try{return 0===(await _(e,["-m","pip","-qq","show",t],{stdio:"ignore",reject:!1})).exitCode}catch{return!1}}(e,l);if(t)return{binDir:c?await $n():await Dn(e,l)}}const f=await async function(e,t){return 0===(await _(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode}(e,l);if(f)try{Cd.info(`Installing ${t} ${n??""} via ${u}`);const r=void 0!==n&&""!==n?`${t}==${n}`:t,o=s?c?["upgrade"]:["install","--upgrade"]:["install"],a=!c&&i?["--user"]:[],l=process.env;c&&i&&(l.PIPX_HOME=await Ay(),l.PIPX_BIN_DIR=await Ly()),b(e,["-m",u,...o,...a,r],{stdio:"inherit",env:l})}catch(p){if(Cd.info(`Failed to install ${t} via ${u}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await Un(t))throw Error(`Failed to install ${t} via ${u}: ${p}.`)}else if(null===await Un(t))throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);return{binDir:c?await $n():await Dn(e,l)}}function $n(){return Ly()}async function Dn(e,t){const n=await Ty(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>ae(Dr(e,Ot(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=Ea.sync(Ot(t),{nothrow:!0});return null!==r?Ur(r):e[e.length-1]}(n,t);return await de(r,wv),r}async function kn(e){return 0===(await _(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}function Un(e,t=!0){if("linux"===process.platform){if(Cd.info(`Installing ${e} via the system package manager`),ht())return Et(t?"python-"+e:e);if(dt())return wt([{name:t?"python3-"+e:e}]);if(mt())return it([{name:t?"python3-"+e:e}])}else if("darwin"===process.platform)return["venv"].includes(e)?null:pt(e);return null}function jn(e,t,n){return An("cmakelang[YAML]",e)}async function Fn(e,t,n){switch(process.platform){case"win32":return await vt("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await de(e,wv),{binDir:e}}throw Error("Unsupported platform")}();case"darwin":return pt("graphviz",e);case"linux":if(ht())return Et("graphviz",e);if(dt())return wt([{name:"graphviz",version:e}]);if(mt())return it([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function Mn(e,t){const{ArchiveHdi:n}=await import("./assets/hdi-BTtpGNI1.mjs"),r=new n(e);await r.read((async e=>{await e.extract(Dr(t,e.path))}))}function Bn(e,t,n){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:Ot("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:Ot("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}case"darwin":{const t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:Ot("doxygen"),extractedFolderName:t,extractFunction:Mn,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Gn(){if("darwin"===process.platform)try{const e=await gy.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await fe("SDKROOT",t.trim(),wv):p("SDKROOT not set")}catch(e){p(e)}}async function Vn(){const e=Dr(By,"gcc_matcher.json");if(!(await ae(e)))return d("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");m("::add-matcher::"+e)}async function Hn(e){const t=await co(e,"utf-8");return JSON.parse(t)}function qn(e,t){const n=Object.keys(e),r=new Map;if(void 0===t.filterMapTag)for(const a of n)r.set(a,a);else for(const a of n){const e=t.filterMapTag(a);void 0!==e&&r.set(e,a)}if(0===r.size)return;const o=t.versionSatisfies??by,i=function(e){if(null===Sy(e))try{const t=hh(e);if(null!==t){const n=/^[<=>^~]/.test(t.version)?t.version:"^"+t.version;return m(`Coerced version '${e}' to '${n}'`),n}}catch(t){}return e}(t.version),s=[];for(const[a,c]of r.entries())o(a,i)&&s.push(c);if(0!==s.length)for(const a of s){let n=e[a];if(void 0===n)continue;if(void 0!==t.filterName&&(n=n.filter(t.filterName)),0===n.length)continue;const r=zn(a,n,t);if(void 0!==r)return r}}function zn(e,t,n){if(!(void 0!==n.keywords&&0!==n.keywords.length||void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length))return{tag:e,name:t[0]};let r=[];if(void 0!==n.keywords&&0!==n.keywords.length)for(const o of t)n.keywords.every((e=>!("string"!=typeof e||!o.includes(e))||Array.isArray(e)&&e.some((e=>o.includes(e)))))&&r.push(o);else r=t;if(0!==r.length){if(void 0!==n.optionalKeywords&&0!==n.optionalKeywords.length){const t=r.map((e=>{let t=0;for(const r of n.optionalKeywords)("string"==typeof r&&e.includes(r)||Array.isArray(r)&&r.some((t=>e.includes(t))))&&t++;return t})),o=Math.max(...t);return{tag:e,name:r[t.indexOf(o)]}}return{tag:e,name:r[0]}}}async function Wn(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await vt("gcc-arm-embedded",e));try{r=await vn("g++",e,Xn,t,n)}catch(o){m(`Failed to download g++ binary. ${o}. Falling back to chocolatey.`),r=await async function(e,t){let n;if(await vt("mingw",e),"x64"===t&&await ae("C:/tools/mingw64/bin")?(n="C:/tools/mingw64/bin",await de(n,wv)):"ia32"===t&&await ae("C:/tools/mingw32/bin")?(n="C:/tools/mingw32/bin",await de(n,wv)):await ae((process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(n=(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin"),void 0!==n)return{binDir:n}}(e,n)}break;case"linux":if(ht())r=await Et("mingw-w64-gcc",e);else if(dt())r=await wt([{name:"mingw64-gcc",version:e}]);else{if(!mt())throw Error("Unsupported Linux distro for "+n);r=await it([{name:"mingw-w64",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}return void 0!==r&&await async function(e){const t=[];"win32"===process.platform&&t.push(fe("CC",Ot(e+"/gcc"),wv),fe("CXX",Ot(e+"/g++"),wv)),jy&&await Vn(),await Promise.all(t)}(r.binDir),r}async function Xn(e,t,n){if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const r=await Hn(Dr(Fy,"github_brechtsanders_winlibs_mingw.json")),o=Kn(e),i=Yn(e),s=Jn(e),a=qn(r,{version:e,keywords:[{x64:"x86_64",ia32:"i386"}[n]??n],filterName:e=>!(void 0!==o&&o!==Kn(e)||void 0!==i&&i!==Yn(e)||void 0!==s&&s!==Jn(e)),versionSatisfies:(e,t)=>{const n=hh(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return by(n,t)&&(void 0===o||o===Kn(e))&&(void 0===i||i===Yn(e))}});if(void 0===a)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:Ot("g++"),extractedFolderName:"mingw64",extractFunction:dn,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${a.tag}/${a.name}`}}function Kn(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function Yn(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function Jn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function Qn(e,t,n,r=40){let o;switch(process.platform){case"win32":o=await Wn(e,t,n);break;case"darwin":o=await pt("gcc",e);break;case"linux":if(ht())o=await Et("gcc",e);else if(dt())o=await wt([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]);else if(mt())if(""===e)o=await it([{name:"gcc"},{name:"g++"}]);else try{o=await it([{name:"gcc",version:e},{name:"g++",version:e}])}catch(i){o=await it([{name:"gcc",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}},{name:"g++",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])}break;default:throw Error("Unsupported platform for "+n)}if(void 0!==o)return await async function(e,t,n=40){if("win32"===process.platform)return;const r=[];{let o=e;""===e&&(o=await async function(e,t){try{let n="gcc";if(await ae(e+"/gcc"))n=e+"/gcc";else{const t=(await ao(e)).sort(((e,t)=>function(e,t){const n=hh(e),r=hh(t);return null!==n&&null!==r?r.compare(n):t.localeCompare(e)}(e.match(/^gcc-?(.*)(\.exe)?$/)?.[1]??"",t.match(/^gcc-?(.*)(\.exe)?$/)?.[1]??"")));for(const r of t)if(r.startsWith("gcc")){n=`${e}/${r}`;break}}const{stdout:r}=await _(n,["--version"],{stdio:"pipe"}),o=r.match(/gcc.* \(.*\) ([\d.]+)/);return null!==o?o[1]:(d("Failed to parse gcc version from: "+r),t)}catch(i){return p("Failed to get gcc version: "+i),t}}(t,o),m("Using gcc version "+o));const s=Uy(hh(o)??o);5>s?(r.push(fe("CC",`${t}/gcc-${o}`,wv),fe("CXX",`${t}/g++-${o}`,wv)),mt()&&r.push(Ye("cc",`${t}/gcc-${o}`,wv,n),Ye("cxx",`${t}/g++-${o}`,wv,n),Ye("gcc",`${t}/gcc-${o}`,wv,n),Ye("g++",`${t}/g++-${o}`,wv,n))):(r.push(fe("CC",`${t}/gcc-${s}`,wv),fe("CXX",`${t}/g++-${s}`,wv)),mt()&&r.push(Ye("cc",`${t}/gcc-${s}`,wv,n),Ye("cxx",`${t}/g++-${s}`,wv,n),Ye("gcc",`${t}/gcc-${s}`,wv,n),Ye("g++",`${t}/g++-${s}`,wv,n)))}r.push(Gn()),My&&await Vn(),await Promise.all(r)}(e,o.binDir,r),o}function Zn(e){const t=Sy(e),n=null!==t?Uy(t):e;return fe("GCOV",""!==n?"gcov-"+n:"gcov",wv)}async function er(e,t,n){const{keywords:r,optionalKeywords:o}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),yh.includes(t)?(r.push("64"),r.push("x86_64")):(m(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),yh.includes(t)?r.push("x86_64"):wh.includes(t)?r.push("arm64"):(m(`Using arch ${t} for infer`),n.push(t));break;default:m(`Using ${e} ${t} for infer`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(t,n),i=qn(await Hn(Dr(Gy,"github_facebook_infer.json")),{version:e,keywords:r,optionalKeywords:o,filterMapTag:e=>e.replace(/^v/,"")});if(void 0!==i)return{url:`https://github.com/facebook/infer/releases/download/${i.tag}/${i.name}`,extractedFolderName:""+jr(i.name,".tar.xz"),binRelativeDir:"bin",binFileName:Ot("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${o}`)}function tr(e,t,n){const r=function(e,t){switch(e){case"win32":return yh.includes(t)||vh.includes(t)?"win":wh.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return yh.includes(t)||vh.includes(t)?"linux":wh.includes(t)?"linux-aarch64":"linux";default:throw Error(`Unsupported platform '${e}'`)}}(t,n);return{binRelativeDir:"",binFileName:Ot("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function nr(e,t,n){return vn("ninja",e,tr,t,n)}function rr(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:Ot("kcov")}}function or(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:Ot("kcov"),extractFunction:ir}}async function ir(e,t){const n=await yn(e,t,1),r=await async function(){let e=Ea.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await En(bn("cmake",void 0,await Ny()),Dr(ce("~"),"cmake"),"");e=Dr(t,"cmake")}return null===Ea.sync("ninja",{nothrow:!0})&&await nr(bn("ninja",void 0,await Ny()),Dr(ce("~"),"ninja"),""),e}();"linux"===process.platform&&(ht()?await Promise.all([Et("libdwarf"),Et("libcurl-openssl")]):dt()?await wt([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):mt()&&await it([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==Ea.sync("patch",{nothrow:!0})){const e=Dr(Vy,"gcc13.patch");await _("patch",["-N","-p1","-i",e],{cwd:n,stdio:"inherit"})}else m("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13")}catch{}const o=Dr(n,"build");return await _(r,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await _(r,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function sr(){"darwin"===process.platform&&(null!==await Ea("clang",{nothrow:!0})&&null!==await Ea("clang++",{nothrow:!0})&&(h("Assuming clang is an Apple Clang compiler"),await Promise.all([fe("CC","clang",wv),fe("CXX","clang++",wv)])),Po("Apple Clang automatic installation is not supported yet"))}async function ar(e,t,n,r,o,i,s){void 0!==t&&await ae(t)&&(m(`Adding ${t} to PATH`),await fe("VCTargetsPath",t,wv)),await Yy.setupMSVCDevCmd(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}}(n),o,r,i,s,e)}async function cr(e,t,n,r,o,i,s,a=12e5){Cd.startGroup(`Installing ${e} ${t}`);try{await function(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:i={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t;let s,a;const c=new Promise(((c,u)=>{if("number"!=typeof n||1!==Math.sign(n))throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:e}=t;e.aborted&&u(Wy(e)),a=()=>{u(Wy(e))},e.addEventListener("abort",a,{once:!0})}if(n===1/0)return void e.then(c,u);const l=new Hy;s=i.setTimeout.call(void 0,(()=>{if(r)try{c(r())}catch(t){u(t)}else"function"==typeof e.cancel&&e.cancel(),!1===o?c():o instanceof Error?u(o):(l.message=o??`Promise timed out after ${n} milliseconds`,u(l))}),n),(async()=>{try{c(await e)}catch(t){u(t)}})()})).finally((()=>{c.clear(),a&&t.signal&&t.signal.removeEventListener("abort",a)}));return c.clear=()=>{i.clearTimeout.call(void 0,s),s=void 0},c}(async function(e,t,n,r,o,i){const s=hv.includes(e);let a;if("vcvarsall"===e)await ar(bn(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await ut({rcOptions:wv});else{const i=Dr(o,s?"llvm":e),c=bn(e,t,n),u=mv[e];a=await u(c,i,r)}i.push(Sr(e,a))}(e,t,n,r,o,i),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`})}catch(c){p(c),c instanceof Error&&void 0!==c.stack&&p(c.stack),s.push(e+" failed to install")}Cd.endGroup()}async function ur(e,t,n){const r=await async function(e,t,n){const{keywords:r,optionalKeywords:o}=await async function(e,t){const n=[],r=[];switch(e){case"win32":{r.push(".exe",".exe");const e=[];yh.includes(t)?(e.push("win64"),r.push(["x86_64","X64"])):vh.includes(t)?e.push("win32"):wh.includes(t)?e.push("woa64"):(m(`Using arch ${t} for LLVM`),e.push(t)),e.push("windows","Windows"),n.push(e);break}case"linux":{const e=["linux","Linux"];if(mt()){r.push("ubuntu");const e=await Ny();if(null!==e){r.push(""+e[0]);const t=10>e[1]?"0"+e[1]:""+e[1];r.push(`${e[0]}.${t}`),r.push(`${e[0]}.${t}.${e[2]}`)}}else dt()&&r.push("rhel");yh.includes(t)?n.push(["x86_64","X64"]):vh.includes(t)?n.push("x86"):wh.includes(t)?n.push("aarch64"):Eh.includes(t)?n.push("armv7a"):gh.includes(t)?n.push("powerpc64le"):_h.includes(t)?n.push("sparc64"):(m(`Using arch ${t} for LLVM`),n.push(t)),n.push(e);break}case"darwin":n.push(["apple","macos","macOS"]),yh.includes(t)?r.push(["x86_64","X64"]):wh.includes(t)?r.push(["arm64","ARM64"]):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),yh.includes(t)?n.push("amd64"):vh.includes(t)?n.push("i386"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),yh.includes(t)?n.push("amd64"):bh.includes(t)?n.push("sparcv9"):(m(`Using arch ${t} for LLVM`),n.push(t));break;default:m(`Using ${e} ${t} for LLVM`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(e,t),i=qn(await Hn(Dr(Qy,"github_llvm_llvm-project.json")),{version:n,keywords:r,optionalKeywords:o,filterMapTag:e=>e.replace(/^llvmorg-/,"")});if(void 0!==i)return`https://github.com/llvm/llvm-project/releases/download/${i.tag}/${i.name}`;const s=qn(await Hn(Dr(Qy,"llvm_org_releases.json")),{version:n,keywords:r,optionalKeywords:o});if(void 0!==s)return`https://releases.llvm.org/${s.tag}/${s.name}`;throw Error(`No asset found for version ${n} matching ${r} and ${o}`)}(t,n,e);return m("Downloading LLVM from "+r),{url:r,extractedFolderName:"",binRelativeDir:"bin",binFileName:Ot("clang"),extractFunction:"win32"===t?pn(fn(r)):(e,t)=>yn(e,t,1)}}async function lr(e,t,n){const r=await tv(e,t,n);return await async function(e,t){const n=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",o=hr(t),i=[fe("CC",Ot(e+"/bin/clang"),wv),fe("CXX",Ot(e+"/bin/clang++"),wv),fe("LLVM_PATH",e,wv),fe("LD_LIBRARY_PATH",`${n}${kr}${e}/lib`,wv),fe("DYLD_LIBRARY_PATH",`${r}${kr}${e}/lib`,wv),fe("LLVM_LDFLAGS","-L"+_n(e+"/lib"),wv),fe("LLVM_CPPFLAGS","-I"+_n(e+"/include"),wv),await ae(`${e}/lib/clang/${t}/include`)?fe("LLVM_CPATH",`${e}/lib/clang/${t}/include`,wv):await ae(`${e}/lib/clang/${o}/include`)?fe("LLVM_CPATH",`${e}/lib/clang/${o}/include`,wv):Promise.resolve(),fe("LIBRARY_PATH",e+"/lib",wv),Gn()];if(mt()){const t=60;i.push(Ye("cc",e+"/bin/clang",wv,t),Ye("cxx",e+"/bin/clang++",wv,t),Ye("clang",e+"/bin/clang",wv),Ye("clang++",e+"/bin/clang++",wv),Ye("lld",e+"/bin/lld",wv),Ye("ld.lld",e+"/bin/ld.lld",wv),Ye("llvm-ar",e+"/bin/llvm-ar",wv))}await Promise.all(i)}(r.installDir??t,e),r}function fr(e,t,n){return dr(e,t,n,Jy.ClangFormat)}function pr(e,t,n){return dr(e,t,n)}async function dr(e,t,n,r=Jy.All){const o=hr(e);if(mt())try{return await async function(e,t=0){const n="/usr/lib/llvm-"+e;await it([{name:"ca-certificates"}]);const r=new Nd.DownloaderHelper("https://apt.llvm.org/llvm.sh",Ir(),{fileName:"llvm.sh"});r.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await r.start();const o=await co(r.getDownloadPath(),"utf-8"),i=Dr(Ir(),"llvm-setup-cpp.sh"),s=await async function(e,t,n,r){let o=function(e){return"1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?e.replace(/set -eux/g,"set -eu"):e}(e);return o=function(e){return e.replace(/add-apt-repository\s*(-y)?\s*"\${REPO_NAME}"/g,`add-apt-repository -y -n "\${REPO_NAME}"\napt-get update -o ${$d} -y`)}(o),o=function(e,t,n){return 1===e?t.replace(/ -y \$PKG/g," -y clang-format-"+n):t}(r,o,n),o=await async function(e){let t=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${$d} -y --fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map((async e=>{const n=e.replace("$LLVM_VERSION","*");await async function(e){try{const{stdout:t}=await _("dpkg",["-l",e],{env:Je("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("ii")))}catch{return!1}}(n)&&(Co("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(o),o=function(e){return Qe()?e.replace(/apt-get/g,"nala"):e}(o),await uo(t,o),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}]}(o,i,e,t);return await it(s),await so(i,"755"),await N("bash",[i,""+e,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:12e5}),await de(n+"/bin",wv),{installDir:""+n,binDir:n+"/bin",bin:n+"/bin/clang++"}}(o,r)}catch(s){m(`Failed to install llvm via system package manager ${s}. Trying to remove the repository`);try{x(Dr(ev,"llvm_repo_remove.bash"),[""+o])}catch(a){m("Failed to remove llvm repository "+a)}}const i=await vn("llvm",e,ur,t,n);return await nv(o),i}function hr(e){const t=function(e){if(null===Sy(e))try{const t=hh(e);if(null!==t)return m(`Coerced version '${e}' to '${t}'`),t.version}catch(t){}return e}(e);return Number.parseInt(t.split(".")[0],10)}async function mr(){if(Zy){const e=Dr(ev,"llvm_matcher.json");if(!(await ae(e)))return d("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");m("::add-matcher::"+e)}}async function yr(e,t,n,r,o,i){if("win32"!==process.platform)return;const s=Yy.vsversion_to_versionnumber(e);m(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=Yy.findVcvarsall(s);u=!0,m("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===s?(a="14.0",await vt("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),c="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===s?(a="14.16",await vt("visualstudio2017buildtools","15.9.41.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===s?(a="14.29",await vt("visualstudio2019buildtools","16.11.7.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===s?(a=void 0,await vt("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):p(`The given MSVC versions ${e} is not supported yet.`)}catch(l){p(l)}await ar(s,c,n,a,r,o,i),ov&&await async function(){const e=Dr(iv,"msvc_matcher.json");if(!(await ae(e)))return d("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");m("::add-matcher::"+e)}()}async function vr(e,t,n){if("win32"===process.platform)return await vt("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await de(e,wv),e}()}}function wr(e,t,n){return{url:Er(t,n,e),binRelativeDir:"",binFileName:Ot("pwsh"),extractedFolderName:""}}function Er(e,t,n){switch(e){case"win32":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/PowerShell-${n}-${["ia32","x86","i386","x32"].includes(t)?"win-x86":"win-x64"}.zip`;case"darwin":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${["arm","arm64"].includes(t)?"osx-arm64":"osx-x64"}.tar.gz`;case"linux":return`https://github.com/PowerShell/PowerShell/releases/download/v${n}/powershell-${n}-${{arm64:"linux-arm64",arm:"linux-arm64",arm32:"linux-arm32",aarch64:"linux-arm64",x64:"linux-x64"}[t]??"linux-x64"}.tar.gz`;default:throw Error(`Unsupported platform '${e}'`)}}async function gr(e,t,n){try{return await vn("pwsh",e,wr,t,n)}catch(r){return p(`Failed to setup pwsh via download: ${r}. Trying package managers...`),async function(e){switch(process.platform){case"win32":{await vt("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await de(t,wv),{binDir:t}}case"darwin":return pt("powershell",e,{cask:!0,overwrite:!1});case"linux":if(ht())return Et("powershell-bin",e,"yay");if(dt())return await wt([{name:"curl"}]),x("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),wt([{name:"powershell",version:e}]);if(mt()){await it([{name:"curl"}]);const t=await Ny();return x("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),x("dpkg",["-i","packages-microsoft-prod.deb"]),it([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}(e)}}function _r(e,t,n){const r=function(e){return"win32"===e?"windows":e}(t),o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}}(n),i="win32"===t?"zip":"tar.gz";return{binRelativeDir:"",binFileName:Ot("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${o}.${i}`}}function br(e){const t=Cd.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function Sr(e,t){let n=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(n+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(n+="\n- The binary directory is "+t.binDir)),n}import Or,{homedir as Rr,tmpdir as Ir}from"os";import Tr,{promises as Pr,mkdir as Cr,stat as xr,statSync as Nr,mkdirSync as Ar}from"fs";import Lr from"crypto";import $r,{join as Dr,delimiter as kr,dirname as Ur,basename as jr,extname as Fr,normalize as Mr,sep as Br,relative as Gr,resolve as Vr,parse as Hr}from"path";import*as qr from"http";import zr from"http";import*as Wr from"https";import Xr from"https";import"net";import Kr from"tls";import Yr from"events";import Jr from"util";import Qr from"child_process";import Zr from"assert";import eo from"buffer";import to from"stream";import{debuglog as no}from"node:util";import ro from"node:process";import oo,{rm as io,chmod as so,readdir as ao,readFile as co,writeFile as uo}from"fs/promises";import{Buffer as lo}from"node:buffer";import fo from"node:path";import po,{ChildProcess as ho}from"node:child_process";import{fileURLToPath as mo}from"node:url";import yo,{constants as vo}from"node:os";import{createWriteStream as wo,readFileSync as Eo,createReadStream as go,promises as _o}from"node:fs";import bo from"process";import So from"string_decoder";import Oo from"timers";import Ro,{fileURLToPath as Io}from"url";import To from"constants";import{error as Po,info as Co}from"console";var xo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},No={};const Ao=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{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"}];var Lo,$o=(Lo||(Lo=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=Ao,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,e.id=null,n.forEach((function(n){const o=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));e[n.constant]=o,o&&(e.name=n.name,e.isPR=function(e){switch(typeof e.pr){case"string":return!!r[e.pr];case"object":return"env"in e.pr?"any"in e.pr?e.pr.any.some((function(t){return r[e.pr.env]===t})):e.pr.env in r&&r[e.pr.env]!==e.pr.ne:"any"in e.pr?e.pr.any.some((function(e){return!!r[e]})):t(e.pr);default:return null}}(n),e.id=n.constant)})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(No)),No);const Do=e($o);var ko,Uo,jo={},Fo={},Mo={},Bo={};const Go=new Uint8Array(256);let Vo=Go.length;const Ho=/^(?:[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,qo=[];for(let Ev=0;256>Ev;++Ev)qo.push((Ev+256).toString(16).substr(1));let zo,Wo,Xo=0,Ko=0;const Yo=a("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Lr.createHash("md5").update(e).digest()})),Jo=a("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Lr.createHash("sha1").update(e).digest()})),Qo=t(Object.freeze(Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:s,stringify:i,v1:function(e,t,n){let o=t&&n||0;const s=t||Array(16);let a=(e=e||{}).node||zo,c=void 0!==e.clockseq?e.clockseq:Wo;if(null==a||null==c){const t=e.random||(e.rng||r)();null==a&&(a=zo=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==c&&(c=Wo=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Ko+1;const f=u-Xo+(l-Ko)/1e4;if(0>f&&void 0===e.clockseq&&(c=c+1&16383),(0>f||u>Xo)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Xo=u,Ko=l,Wo=c,u+=122192928e5;const p=(1e4*(268435455&u)+l)%4294967296;s[o++]=p>>>24&255,s[o++]=p>>>16&255,s[o++]=p>>>8&255,s[o++]=255&p;const d=u/4294967296*1e4&268435455;s[o++]=d>>>8&255,s[o++]=255&d,s[o++]=d>>>24&15|16,s[o++]=d>>>16&255,s[o++]=c>>>8|128,s[o++]=255&c;for(let r=0;6>r;++r)s[o+r]=a[r];return t||i(s)},v3:Yo,v4:function(e,t,n){const o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;16>e;++e)t[n+e]=o[e];return t}return i(o)},v5:Jo,validate:o,version:function(e){if(!o(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var Zo,ei={};class ti extends URL{_decodedUsername;_decodedPassword;constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var ni,ri,oi,ii,si,ai,ci,ui,li={},fi=(oi||(oi=1,ri=function(){function e(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,r,o,i){for(var s=n(r,o,i),a=0,c=t.requests.length;c>a;++a){var u=t.requests[a];if(u.host===s.host&&u.port===s.port)return t.requests.splice(a,1),void u.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function t(t,n){var o=this;e.prototype.createSocket.call(o,t,(function(e){var s=t.request.getHeader("host"),a=r({},o.options,{socket:e,servername:s?s.replace(/:.*$/,""):t.host}),c=i.connect(0,a);o.sockets[o.sockets.indexOf(e)]=c,n(c)}))}function n(e,t,n){return"string"==typeof e?{host:e,port:t,localAddress:n}:e}function r(e){for(var t=1,n=arguments.length;n>t;++t){var r=arguments[t];if("object"==typeof r)for(var o=Object.keys(r),i=0,s=o.length;s>i;++i){var a=o[i];void 0!==r[a]&&(e[a]=r[a])}}return e}if(ni)return li;ni=1;var o,i=Kr,s=zr,a=Xr,c=Yr,u=Jr;return li.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},li.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},li.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},li.httpsOverHttps=function(n){var r=new e(n);return r.request=a.request,r.createSocket=t,r.defaultPort=443,r},u.inherits(e,c.EventEmitter),e.prototype.addRequest=function(e,t,o,i){var s=this,a=r({request:e},s.options,n(t,o,i));this.maxSockets>s.sockets.length?s.createSocket(a,(function(t){function n(){s.emit("free",t,a)}function r(e){s.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)})):s.requests.push(a)},e.prototype.createSocket=function(e,t){function n(n,r,a){var u;return c.removeAllListeners(),r.removeAllListeners(),200!==n.statusCode?(o("tunneling socket could not be established, statusCode=%d",n.statusCode),r.destroy(),(u=Error("tunneling socket could not be established, statusCode="+n.statusCode)).code="ECONNRESET",e.request.emit("error",u),void i.removeSocket(s)):a.length>0?(o("got illegal response body from proxy"),r.destroy(),(u=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",u),void i.removeSocket(s)):(o("tunneling connection has established"),i.sockets[i.sockets.indexOf(s)]=r,t(r))}var i=this,s={};i.sockets.push(s);var a=r({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(a.localAddress=e.localAddress),a.proxyAuth&&(a.headers=a.headers||{},a.headers["Proxy-Authorization"]="Basic "+new Buffer(a.proxyAuth).toString("base64")),o("making CONNECT request");var c=i.request(a);c.useChunkedEncodingByDefault=!1,c.once("response",(function(e){e.upgrade=!0})),c.once("upgrade",(function(e,t,r){process.nextTick((function(){n(e,t,r)}))})),c.once("connect",n),c.once("error",(function(t){c.removeAllListeners(),o("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=Error("tunneling socket could not be established, cause="+t.message);n.code="ECONNRESET",e.request.emit("error",n),i.removeSocket(s)})),c.end()},e.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},o=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=[].slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},li.debug=o,li}()),ri);(si=ii||(ii={}))[si.OK=200]="OK",si[si.MultipleChoices=300]="MultipleChoices",si[si.MovedPermanently=301]="MovedPermanently",si[si.ResourceMoved=302]="ResourceMoved",si[si.SeeOther=303]="SeeOther",si[si.NotModified=304]="NotModified",si[si.UseProxy=305]="UseProxy",si[si.SwitchProxy=306]="SwitchProxy",si[si.TemporaryRedirect=307]="TemporaryRedirect",si[si.PermanentRedirect=308]="PermanentRedirect",si[si.BadRequest=400]="BadRequest",si[si.Unauthorized=401]="Unauthorized",si[si.PaymentRequired=402]="PaymentRequired",si[si.Forbidden=403]="Forbidden",si[si.NotFound=404]="NotFound",si[si.MethodNotAllowed=405]="MethodNotAllowed",si[si.NotAcceptable=406]="NotAcceptable",si[si.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",si[si.RequestTimeout=408]="RequestTimeout",si[si.Conflict=409]="Conflict",si[si.Gone=410]="Gone",si[si.TooManyRequests=429]="TooManyRequests",si[si.InternalServerError=500]="InternalServerError",si[si.NotImplemented=501]="NotImplemented",si[si.BadGateway=502]="BadGateway",si[si.ServiceUnavailable=503]="ServiceUnavailable",si[si.GatewayTimeout=504]="GatewayTimeout",(ci=ai||(ai={})).Accept="accept",ci.ContentType="content-type",(ui||(ui={})).ApplicationJson="application/json";const pi=[ii.MovedPermanently,ii.ResourceMoved,ii.SeeOther,ii.TemporaryRedirect,ii.PermanentRedirect],di=[ii.BadGateway,ii.ServiceUnavailable,ii.GatewayTimeout],hi=["OPTIONS","GET","DELETE","HEAD"];class mi extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,mi.prototype)}statusCode;result}class yi{constructor(e){this.message=e}message;async readBody(){return new Promise((async e=>{let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))}async readBodyBuffer(){return new Promise((async e=>{const t=[];this.message.on("data",(e=>{t.push(e)})),this.message.on("end",(()=>{e(Buffer.concat(t))}))}))}}class vi{userAgent;handlers;requestOptions;_ignoreSslError=!1;_socketTimeout;_allowRedirects=!0;_allowRedirectDowngrade=!1;_maxRedirects=50;_allowRetries=!1;_maxRetries=1;_agent;_proxyAgent;_proxyAgentDispatcher;_keepAlive=!1;_disposed=!1;constructor(e,t,n){this.userAgent=e,this.handlers=t||[],this.requestOptions=n,n&&(null!=n.ignoreSslError&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,null!=n.allowRedirects&&(this._allowRedirects=n.allowRedirects),null!=n.allowRedirectDowngrade&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),null!=n.maxRedirects&&(this._maxRedirects=Math.max(n.maxRedirects,0)),null!=n.keepAlive&&(this._keepAlive=n.keepAlive),null!=n.allowRetries&&(this._allowRetries=n.allowRetries),null!=n.maxRetries&&(this._maxRetries=n.maxRetries))}async options(e,t){return this.request("OPTIONS",e,null,t||{})}async get(e,t){return this.request("GET",e,null,t||{})}async del(e,t){return this.request("DELETE",e,null,t||{})}async post(e,t,n){return this.request("POST",e,t,n||{})}async patch(e,t,n){return this.request("PATCH",e,t,n||{})}async put(e,t,n){return this.request("PUT",e,t,n||{})}async head(e,t){return this.request("HEAD",e,null,t||{})}async sendStream(e,t,n,r){return this.request(e,t,n,r)}async getJson(e,t={}){t[ai.Accept]=this._getExistingOrDefaultHeader(t,ai.Accept,ui.ApplicationJson);const n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ai.Accept]=this._getExistingOrDefaultHeader(n,ai.Accept,ui.ApplicationJson),n[ai.ContentType]=this._getExistingOrDefaultHeader(n,ai.ContentType,ui.ApplicationJson);const o=await this.post(e,r,n);return this._processResponse(o,this.requestOptions)}async putJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ai.Accept]=this._getExistingOrDefaultHeader(n,ai.Accept,ui.ApplicationJson),n[ai.ContentType]=this._getExistingOrDefaultHeader(n,ai.ContentType,ui.ApplicationJson);const o=await this.put(e,r,n);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,n={}){const r=JSON.stringify(t,null,2);n[ai.Accept]=this._getExistingOrDefaultHeader(n,ai.Accept,ui.ApplicationJson),n[ai.ContentType]=this._getExistingOrDefaultHeader(n,ai.ContentType,ui.ApplicationJson);const o=await this.patch(e,r,n);return this._processResponse(o,this.requestOptions)}async request(e,t,n,r){if(this._disposed)throw Error("Client has already been disposed.");const o=new URL(t);let i=this._prepareRequest(e,o,r);const s=this._allowRetries&&hi.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(i,n),a&&a.message&&a.message.statusCode===ii.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,i,n):a}let t=this._maxRedirects;for(;a.message.statusCode&&pi.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const c=new URL(s);if("https:"===o.protocol&&o.protocol!==c.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(await a.readBody(),c.hostname!==o.hostname)for(const e in r)"authorization"===e.toLowerCase()&&delete r[e];i=this._prepareRequest(e,c,r),a=await this.requestRaw(i,n),t--}if(!a.message.statusCode||!di.includes(a.message.statusCode))return a;c+=1,s>c&&(await a.readBody(),await this._performExponentialBackoff(c))}while(s>c);return a}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}async requestRaw(e,t){return new Promise(((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e?r(e):t?n(t):r(Error("Unknown error"))}))}))}requestRawWithCallback(e,t,n){function r(e,t){o||(o=!0,n(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1;const i=e.httpModule.request(e.options,(e=>{r(void 0,new yi(e))}));let s;i.on("socket",(e=>{s=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),r(Error("Request timeout: "+e.options.path))})),i.on("error",(function(e){r(e)})),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){i.end()})),t.pipe(i)):i.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}async getAgentDispatcher(e){const t=new URL(e),n=c(t);if(n&&n.hostname)return await this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const o="https:"===r.parsedUrl.protocol;r.httpModule=o?Wr:qr;const i=o?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):i,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(const s of this.handlers)s.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},wi(this.requestOptions.headers),wi(e||{})):wi(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=wi(this.requestOptions.headers)[t]),e[t]||r||n}_getAgent(e){let t;const n=c(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;const o="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||qr.globalAgent.maxSockets),n&&n.hostname){const e={maxSockets:i,keepAlive:this._keepAlive,proxy:{...(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`},host:n.hostname,port:n.port}};let r;const s="https:"===n.protocol;r=o?s?fi.httpsOverHttps:fi.httpsOverHttp:s?fi.httpOverHttps:fi.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=o?new Wr.Agent(e):new qr.Agent(e),this._agent=t}return o&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}async _getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;const r="https:"===e.protocol;return n=new(await import("./assets/proxy-agent-DB9QOaSI.mjs").then((e=>e.p)))({uri:t.href,pipelining:this._keepAlive?1:0,...(t.username||t.password)&&{token:"Basic "+Buffer.from(`${t.username}:${t.password}`).toString("base64")}}),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}async _performExponentialBackoff(e){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}async _processResponse(e,t){return new Promise((async(n,r)=>{const o=e.message.statusCode||0,i={statusCode:o,result:null,headers:{}};let s,a;o===ii.NotFound&&n(i);try{a=await e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,(function(e,t){if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),i.result=s),i.headers=e.message.headers}catch(c){}if(o>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${o})`;const t=new mi(e,o);t.result=i.result,r(t)}else n(i)}))}}const wi=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),Ei=t(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return ai},HttpClient:vi,HttpClientError:mi,HttpClientResponse:yi,get HttpCodes(){return ii},get MediaTypes(){return ui},getProxyUrl:function(e){const t=c(new URL(e));return t?t.href:""},isHttps:function(e){return"https:"===new URL(e).protocol}},Symbol.toStringTag,{value:"Module"})));var gi,_i,bi,Si,Oi,Ri={},Ii={},Ti={},Pi=f(),Ci={};const xi=[{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"}];var Ni;const Ai=e((Ni||(Ni=1,function(e){function t(e){return"string"==typeof e?!!r[e]:"env"in e?r[e.env]&&r[e.env].includes(e.includes):"any"in e?e.any.some((function(e){return!!r[e]})):Object.keys(e).every((function(t){return r[t]===e[t]}))}const n=xi,r=process.env;Object.defineProperty(e,"_vendors",{value:n.map((function(e){return e.constant}))}),e.name=null,e.isPR=null,n.forEach((function(n){const o=(Array.isArray(n.env)?n.env:[n.env]).every((function(e){return t(e)}));if(e[n.constant]=o,o)switch(e.name=n.name,typeof n.pr){case"string":e.isPR=!!r[n.pr];break;case"object":e.isPR="env"in n.pr?n.pr.env in r&&r[n.pr.env]!==n.pr.ne:"any"in n.pr?n.pr.any.some((function(e){return!!r[e]})):t(n.pr);break;default:e.isPR=null}})),e.isCI=!("false"===r.CI||!(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name))}(Ci)),Ci)),{GITHUB_ACTIONS:Li}=Ai;var $i,Di,ki,Ui,ji,Fi,Mi,Bi,Gi,Vi,Hi,qi,zi,Wi,Xi,Ki,Yi,Ji,Qi,Zi,es,ts,ns,rs={exports:{}},os={exports:{}},is={};const ss=e(function(){function e(e,o,i){const s=n(e,o,i),a=t.spawn(s.command,s.args,s.options);return r.hookChildProcess(a,s),a}if(ns)return rs.exports;ns=1;const t=Qr,n=v(),r=function(){function e(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function t(t,r){return n&&1===t&&!r.file?e(r.original,"spawn"):null}if(ts)return es;ts=1;const n="win32"===process.platform;return es={hookChildProcess:function(e,r){if(!n)return;const o=e.emit;e.emit=function(n,i){if("exit"===n){const n=t(i,r);if(n)return o.call(e,"error",n)}return o.apply(e,arguments)}},verifyENOENT:t,verifyENOENTSync:function(t,r){return n&&1===t&&!r.file?e(r.original,"spawnSync"):null},notFoundError:e},es}();return rs.exports=e,rs.exports.spawn=e,rs.exports.sync=function(e,o,i){const s=n(e,o,i),a=t.spawnSync(s.command,s.args,s.options);return a.error=a.error||r.verifyENOENTSync(a.status,s),a},rs.exports._parse=n,rs.exports._enoent=r,rs.exports}()),as=({env:e=ro.env,...t}={})=>{const n=w({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=ro.cwd(),path:t=ro.env[w()],preferLocal:n=!0,execPath:r=ro.execPath,addExecPath:o=!0}={})=>{const i=e instanceof URL?mo(e):e,s=fo.resolve(i),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(fo.join(t,"node_modules/.bin")),n=t,t=fo.resolve(t,"..")})(a,s),o&&((e,t,n)=>{const r=t instanceof URL?mo(t):t;e.push(fo.resolve(n,r,".."))})(a,r,s),[...a,t].join(fo.delimiter)})(t),e},cs=(e,t,n,r)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!us(o,i)&&r||Object.defineProperty(e,n,i)},us=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},ls=(e,t)=>`/* Wrapped ${e}*/\n${t}`,fs=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ps=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),ds=new WeakMap,hs=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const o=e.displayName||e.name||"",i=function(...s){if(ds.set(i,++r),1===r)n=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return n};return function(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:r}=e;for(const o of Reflect.ownKeys(t))cs(e,t,o,n);((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,t),((e,t,n)=>{const r=""===n?"":`with ${n.trim()}() `,o=ls.bind(null,r,""+t);Object.defineProperty(o,"name",ps),Object.defineProperty(e,"toString",{...fs,value:o})})(e,t,r)}(i,e),ds.set(i,r),i};hs.callCount=e=>{if(!ds.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ds.get(e)};const ms=(e,t)=>({name:"SIGRT"+(t+1),number:ys+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ys=34,vs=[{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"}],ws=()=>{const e=Array.from({length:64-ys+1},ms);return[...vs,...e].map(Es)},Es=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=vo,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}},gs=({name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s}],_s=(()=>{const e=ws();return Object.fromEntries(e.map(gs))})(),bs=(e,t)=>{const n=t.find((({name:t})=>vo.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=ws(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=bs(e,t);if(void 0===n)return{};const{name:r,description:o,supported:i,action:s,forced:a,standard:c}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:s,forced:a,standard:c}}})(n,e)));Object.assign({},...t)})();const Ss=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:i,command:s,escapedCommand:a,timedOut:c,isCanceled:u,killed:l,parsed:{options:{timeout:f,cwd:p=ro.cwd()}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:_s[o].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==n?"failed with "+n:void 0!==r?`was killed with ${r} (${o})`:void 0!==i?"failed with exit code "+i:"failed")({timedOut:c,timeout:f,errorCode:r&&r.code,signal:o,signalDescription:d,exitCode:i=null===i?void 0:i,isCanceled:u}),m=`Command ${h}: ${s}`,y="[object Error]"==={}.toString.call(r),v=y?`${m}\n${r.message}`:m,w=[v,t,e].filter(Boolean).join("\n");return y?(r.originalMessage=r.message,r.message=w):r=Error(w),r.shortMessage=v,r.command=s,r.escapedCommand=a,r.exitCode=i,r.signal=o,r.signalDescription=d,r.stdout=e,r.stderr=t,r.cwd=p,void 0!==n&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=u,r.killed=l&&!c,r},Os=["stdin","stdout","stderr"];var Rs,Is,Ts={exports:{}},Ps={exports:{}};const Cs=e(function(){if(Is)return Ts.exports;Is=1;var e=xo.process;const t=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(t(e)){var n,r=Zr,o=(Rs||(Rs=1,(y=Ps).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&y.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&y.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Ps.exports),i=/^win/i.test(e.platform),s=Yr;"function"!=typeof s&&(s=s.EventEmitter),e.__signal_exit_emitter__?n=e.__signal_exit_emitter__:((n=e.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),Ts.exports=function(e,o){if(!t(xo.process))return function(){};r.equal(typeof e,"function","a callback must be provided for exit handler"),!1===l&&f();var i="exit";return o&&o.alwaysLast&&(i="afterexit"),n.on(i,e),function(){n.removeListener(i,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&a()}};var a=function(){l&&t(xo.process)&&(l=!1,o.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};Ts.exports.unload=a;var c=function(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))},u={};o.forEach((function(r){u[r]=function(){t(xo.process)&&e.listeners(r).length===n.count&&(a(),c("exit",null,r),c("afterexit",null,r),i&&"SIGHUP"===r&&(r="SIGINT"),e.kill(e.pid,r))}})),Ts.exports.signals=function(){return o};var l=!1,f=function(){!l&&t(xo.process)&&(l=!0,n.count+=1,o=o.filter((function(t){try{return e.on(t,u[t]),!0}catch(n){return!1}})),e.emit=m,e.reallyExit=d)};Ts.exports.load=f;var p=e.reallyExit,d=function(n){t(xo.process)&&(e.exitCode=n||0,c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),p.call(e,e.exitCode))},h=e.emit,m=function(n,r){if("exit"===n&&t(xo.process)){void 0!==r&&(e.exitCode=r);var o=h.apply(this,arguments);return c("exit",e.exitCode,null),c("afterexit",e.exitCode,null),o}return h.apply(this,arguments)}}else Ts.exports=function(){return function(){}};var y;return Ts.exports}()),xs=(e,t="SIGTERM",n={})=>{const r=e(t);return Ns(e,t,n,r),r},Ns=(e,t,n,r)=>{if(!As(t,n,r))return;const o=$s(n),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()},As=(e,{forceKillAfterTimeout:t},n)=>Ls(e)&&!1!==t&&n,Ls=e=>e===yo.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),$s=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Ds=(e,t)=>{e.kill()&&(t.isCanceled=!0)},ks=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(wo(n)),e;if(g(n))return e[t].pipe(n),e;if(!(e=>e instanceof ho&&"function"==typeof e.then)(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!g(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n};var Us,js,Fs,Ms={exports:{}};const Bs=e(function(){async function e(e,n){if(!e)throw Error("Expected a stream");n={maxBuffer:1/0,...n};const{maxBuffer:r}=n,a=o(n);return await new Promise(((n,o)=>{const c=e=>{e&&a.getBufferedLength()<=t.MAX_LENGTH&&(e.bufferedData=a.getBufferedValue()),o(e)};(async()=>{try{await i(e,a),n()}catch(t){c(t)}})(),a.on("data",(()=>{a.getBufferedLength()>r&&c(new s)}))})),a.getBufferedValue()}if(Fs)return Ms.exports;Fs=1;const{constants:t}=eo,n=to,{promisify:r}=Jr,o=function(){if(js)return Us;js=1;const{PassThrough:e}=to;return Us=t=>{t={...t};const{array:n}=t;let{encoding:r}=t;const o="buffer"===r;let i=!1;n?i=!(r||o):r=r||"utf8",o&&(r=null);const s=new e({objectMode:i});r&&s.setEncoding(r);let a=0;const c=[];return s.on("data",(e=>{c.push(e),i?a=c.length:a+=e.length})),s.getBufferedValue=()=>n?c:o?Buffer.concat(c,a):c.join(""),s.getBufferedLength=()=>a,s}}(),i=r(n.pipeline);class s extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}return Ms.exports=e,Ms.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),Ms.exports.array=(t,n)=>e(t,{...n,array:!0}),Ms.exports.MaxBufferError=s,Ms.exports}());var Gs,Vs;const Hs=e(function(){if(Vs)return Gs;Vs=1;const{PassThrough:e}=to;return Gs=function(){function t(e){return Array.isArray(e)?(e.forEach(t),this):(r.push(e),e.once("end",n.bind(null,e)),e.once("error",o.emit.bind(o,"error")),e.pipe(o,{end:!1}),this)}function n(e){!(r=r.filter((function(t){return t!==e}))).length&&o.readable&&o.end()}var r=[],o=new e({objectMode:!0});return o.setMaxListeners(0),o.add=t,o.isEmpty=function(){return 0==r.length},o.on("unpipe",n),[].slice.call(arguments).forEach(t),o}}()),qs=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},zs=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},Ws=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?Bs(e,{encoding:t,maxBuffer:r}):Bs.buffer(e,{maxBuffer:r})},Xs=(async()=>{})().constructor.prototype,Ks=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Xs,e)])),Ys=(e,t)=>{for(const[n,r]of Ks){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},Js=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Qs=/^[\w.-]+$/,Zs=/"/g,ea=(e,t)=>Js(e,t).join(" "),ta=(e,t)=>Js(e,t).map((e=>(e=>"string"!=typeof e||Qs.test(e)?e:`"${e.replace(Zs,'\\"')}"`)(e))).join(" "),na=/ +/g,ra=e=>{const t=[];for(const n of e.trim().split(na)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},oa=no("execa").enabled,ia=(e,t)=>(e+"").padStart(t,"0"),sa=(e,{verbose:t})=>{t&&ro.stderr.write(`[${(()=>{const e=new Date;return`${ia(e.getHours(),2)}:${ia(e.getMinutes(),2)}:${ia(e.getSeconds(),2)}.${ia(e.getMilliseconds(),3)}`})()}] ${e}\n`)},aa=(e,t,n={})=>{const r=ss._parse(e,t,n);return e=r.command,t=r.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=r.options).cwd||ro.cwd(),execPath:ro.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oa,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const i=t?{...ro.env,...e}:e;return n?as({env:i,cwd:r,execPath:o}):i})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Os.map((t=>e[t]));if((e=>Os.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Os.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Os.length)},((e,n)=>t[n]))})(n),"win32"===ro.platform&&"cmd"===fo.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},ca=(e,t,n)=>"string"==typeof t||lo.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e}(t):t:void 0===n?void 0:"";var ua,la,fa,pa,da,ha,ma={},ya={},va={},wa={};const Ea=e(function(){if(ha)return da;ha=1;const{isexe:e,sync:t}=S(),{join:n,delimiter:r,sep:o,posix:i}=$r,s="win32"===process.platform,a=RegExp(`[${i.sep}${o===i.sep?"":o}]`.replace(/(\\)/g,"\\$1")),c=RegExp("^\\."+a.source),u=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),l=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:o=r})=>{const i=e.match(a)?[""]:[...s?[process.cwd()]:[],...(t||"").split(o)];if(s){const t=n||[".EXE",".CMD",".BAT",".COM"].join(o),r=t.split(o).flatMap((e=>[e,e.toLowerCase()]));return e.includes(".")&&""!==r[0]&&r.unshift(""),{pathEnv:i,pathExt:r,pathExtExe:t}}return{pathEnv:i,pathExt:[""]}},f=(e,t)=>{const r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&c.test(t)?t.slice(0,2):"")+n(r,t)},p=async(t,n={})=>{const{pathEnv:r,pathExt:o,pathExtExe:i}=l(t,n),s=[];for(const a of r){const r=f(a,t);for(const t of o){const o=r+t;if(await e(o,{pathExt:i,ignoreErrors:!0})){if(!n.all)return o;s.push(o)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(t)};return da=p,p.sync=(e,n={})=>{const{pathEnv:r,pathExt:o,pathExtExe:i}=l(e,n),s=[];for(const a of r){const r=f(a,e);for(const e of o){const o=r+e;if(t(o,{pathExt:i,ignoreErrors:!0})){if(!n.all)return o;s.push(o)}}}if(n.all&&s.length)return s;if(n.nothrow)return null;throw u(e)},da}());let ga;var _a,ba={};R(ba,"hasSudo",(()=>I)),R(ba,"isRoot",(()=>T)),R(ba,"isSudo",(()=>P)),R(ba,"prependSudo",(()=>C)),R(ba,"defaultExecOptions",(()=>Sa)),R(ba,"execRootSync",(()=>x)),R(ba,"execRoot",(()=>N));let Sa={stdio:"inherit",shell:!0};R(_a={},"isAdminWindows",(()=>Oa)),R(_a,"isAdminPosix",(()=>Ra)),R(_a,"isAdmin",(()=>$));let Oa=async function(){if("win32"!==process.platform)return!1;try{return await _("fsutil",["dirty","query",process.env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&async function(){try{return await _("fltmc"),!0}catch{return!1}}()}},Ra=T;var Ia,Ta,Pa,Ca,xa,Na,Aa,La,$a,Da,ka,Ua,ja,Fa,Ma,Ba,Ga,Va,Ha,qa,za,Wa,Xa,Ka,Ya,Ja;R({},"grantUserWriteAccess",(()=>D));var Qa,Za,ec,tc,nc,rc,oc,ic,sc,ac,cc,uc,lc,fc,pc,dc,hc,mc,yc,vc,wc,Ec,gc,_c,bc,Sc,Oc,Rc,Ic,Tc,Pc,Cc,xc,Nc,Ac,Lc,$c,Dc,kc,Uc,jc,Fc,Mc,Bc,Gc,Vc,Hc,qc,zc,Wc,Xc,Kc,Yc,Jc,Qc,Zc,eu,tu,nu,ru,ou,iu,su,au,cu,uu,lu,fu,pu,du,hu,mu,yu,vu,wu,Eu,gu,_u,bu,Su,Ou,Ru,Iu,Tu,Pu,Cu,xu,Nu,Au,Lu,$u,Du,ku,Uu,ju,Fu,Mu,Bu,Gu,Vu,Hu,qu,zu,Wu,Xu,Ku,Yu,Ju,Qu,Zu,el,tl,nl,rl,ol,il,sl,al,cl,ul,ll,fl,pl,dl,hl,ml,yl,vl,wl,El,gl={},_l={exports:{}},bl={exports:{}},Sl={exports:{}},Ol={exports:{}},Rl={},Il={},Tl={exports:{}},Pl={},Cl={},xl={},Nl={};const Al=e(function(){if(El)return wl;El=1;var e=U(),t=F(),n=function(){if(Ou)return Su;Ou=1;var e=M(),t=G(),n=V(),r=ee(),o=F();return Su=function i(s){var a,c,u;if(e(s),(a=Object(arguments[1])).async&&a.promise)throw Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(s,"__memoized__")&&!a.force?s:(c=o(a.length,s.length,a.async&&n.async),u=r(s,c,a),t(n,(function(e,t){a[t]&&e(a[t],u,a)})),i.__profiler__&&i.__profiler__(u),u.updateEnv(),u.memoized)},Su}();return wl=function(r){var o,i=e(arguments[1]);return i.normalizer||0!==(o=i.length=t(i.length,r.length,i.async))&&(i.primitive?!1===o?i.normalizer=Iu?Ru:(Iu=1,Ru=function(e){var t,n,r=e.length;if(!r)return"";for(t=e[n=0]+"";--r;)t+=""+e[++n];return t}):o>1&&(i.normalizer=(Pu?Tu:(Pu=1,Tu=function(e){return e?function(t){for(var n=t[0]+"",r=0,o=e;--o;)n+=""+t[++r];return n}:function(){return""}}))(o)):i.normalizer=!1===o?function(){if(ju)return Uu;ju=1;var e=te(),t=Object.create;return Uu=function(){var n=0,r=[],o=t(null);return{get:function(t){var n,o=0,i=r,s=t.length;if(0===s)return i[s]||null;if(i=i[s]){for(;s-1>o;){if(-1===(n=e.call(i[0],t[o])))return null;i=i[1][n],++o}return-1===(n=e.call(i[0],t[o]))?null:i[1][n]||null}return null},set:function(t){var i,s=0,a=r,c=t.length;if(0===c)a[c]=++n;else{for(a[c]||(a[c]=[[],[]]),a=a[c];c-1>s;)-1===(i=e.call(a[0],t[s]))&&(i=a[0].push(t[s])-1,a[1].push([[],[]])),a=a[1][i],++s;-1===(i=e.call(a[0],t[s]))&&(i=a[0].push(t[s])-1),a[1][i]=++n}return o[n]=t,n},delete:function(t){var n,i=0,s=r,a=o[t],c=a.length,u=[];if(0===c)delete s[c];else if(s=s[c]){for(;c-1>i;){if(-1===(n=e.call(s[0],a[i])))return;u.push(s,n),s=s[1][n],++i}if(-1===(n=e.call(s[0],a[i])))return;for(t=s[1][n],s[0].splice(n,1),s[1].splice(n,1);!s[0].length&&u.length;)n=u.pop(),(s=u.pop())[0].splice(n,1),s[1].splice(n,1)}delete o[t]},clear:function(){r=[],o=t(null)}}}}()():1===o?function(){if(Mu)return Fu;Mu=1;var e=te();return Fu=function(){var t=0,n=[],r=[];return{get:function(t){var o=e.call(n,t[0]);return-1===o?null:r[o]},set:function(e){return n.push(e[0]),r.push(++t),t},delete:function(t){var o=e.call(r,t);-1!==o&&(n.splice(o,1),r.splice(o,1))},clear:function(){n=[],r=[]}}}}()():function(){if(Gu)return Bu;Gu=1;var e=te(),t=Object.create;return Bu=function(n){var r=0,o=[[],[]],i=t(null);return{get:function(t){for(var r,i=0,s=o;n-1>i;){if(-1===(r=e.call(s[0],t[i])))return null;s=s[1][r],++i}return-1===(r=e.call(s[0],t[i]))?null:s[1][r]||null},set:function(t){for(var s,a=0,c=o;n-1>a;)-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1,c[1].push([[],[]])),c=c[1][s],++a;return-1===(s=e.call(c[0],t[a]))&&(s=c[0].push(t[a])-1),c[1][s]=++r,i[r]=t,r},delete:function(t){for(var r,s=0,a=o,c=[],u=i[t];n-1>s;){if(-1===(r=e.call(a[0],u[s])))return;c.push(a,r),a=a[1][r],++s}if(-1!==(r=e.call(a[0],u[s]))){for(t=a[1][r],a[0].splice(r,1),a[1].splice(r,1);!a[0].length&&c.length;)r=c.pop(),(a=c.pop())[0].splice(r,1),a[1].splice(r,1);delete i[t]}},clear:function(){o=[[],[]],i=t(null)}}}}()(o)),i.async&&function(){if(Wu)return Rl;Wu=1;var e=Z(),t=ne(),n=q(),r=z(),o=re(),i=[].slice,s=function(){}.apply,a=Object.create;V().async=function(c,u){var l,f,p,d=a(null),h=a(null),m=u.memoized,y=u.original;u.memoized=r((function(e){var t=arguments,n=t[t.length-1];return"function"==typeof n&&(l=n,t=i.call(t,0,-1)),m.apply(f=this,p=t)}),m);try{n(u.memoized,m)}catch(v){}u.on("get",(function(e){var t,n,r;if(l){if(d[e])return"function"==typeof d[e]?d[e]=[d[e],l]:d[e].push(l),void(l=null);t=l,n=f,r=p,l=f=p=null,o((function(){var o;hasOwnProperty.call(h,e)?(o=h[e],u.emit("getasync",e,r,n),s.call(t,o.context,o.args)):(l=t,f=n,p=r,m.apply(n,r))}))}})),u.original=function(){var t,n,r,i;return l?(t=e(arguments),n=function t(n){var r,a,c=t.id;if(null!=c){if(delete t.id,r=d[c],delete d[c],r)return a=e(arguments),u.has(c)&&(n?u.delete(c):(h[c]={context:this,args:a},u.emit("setasync",c,"function"==typeof r?1:r.length))),"function"==typeof r?i=s.call(r,this,a):r.forEach((function(e){i=s.call(e,this,a)}),this),i}else o(s.bind(t,this,arguments))},r=l,l=f=p=null,t.push(n),i=s.call(y,this,t),n.cb=r,l=n,i):s.call(y,this,arguments)},u.on("set",(function(e){l?(d[e]?"function"==typeof d[e]?d[e]=[d[e],l.cb]:d[e].push(l.cb):d[e]=l.cb,delete l.cb,l.id=e,l=null):u.delete(e)})),u.on("delete",(function(e){var t;hasOwnProperty.call(d,e)||h[e]&&(t=h[e],delete h[e],u.emit("deleteasync",e,i.call(t.args,1)))})),u.on("clear",(function(){var e=h;h=a(null),u.emit("clearasync",t(e,(function(e){return i.call(e.args,1)})))}))}}(),i.promise&&se(),i.dispose&&function(){if(cl)return Pl;cl=1;var e=M(),t=G(),n=V(),r=function(){}.apply;n.dispose=function(o,i,s){var a;if(e(o),s.async&&n.async||s.promise&&n.promise)return i.on("deleteasync",a=function(e,t){r.call(o,null,t)}),void i.on("clearasync",(function(e){t(e,(function(e,t){a(t,e)}))}));i.on("delete",a=function(e,t){o(t)}),i.on("clear",(function(e){t(e,(function(e,t){a(t,e)}))}))}}(),i.maxAge&&function(){if(dl)return Cl;dl=1;var e=Z(),t=G(),n=re(),r=ie(),o=function(){if(pl)return fl;pl=1;var e=j(),t=ll?ul:(ll=1,ul=2147483647);return fl=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}(),i=V(),s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;i.maxAge=function(l,f,p){var d,h,m,y;(l=o(l))&&(d=u(null),f.on("set"+(h=p.async&&i.async||p.promise&&i.promise?"async":""),(function(e){d[e]=setTimeout((function(){f.delete(e)}),l),"function"==typeof d[e].unref&&d[e].unref(),y&&(y[e]&&"nextTick"!==y[e]&&clearTimeout(y[e]),y[e]=setTimeout((function(){delete y[e]}),m),"function"==typeof y[e].unref&&y[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],y&&("nextTick"!==y[e]&&clearTimeout(y[e]),delete y[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(y={},m=(1-m)*l,f.on("get"+h,(function(t,o,i){y[t]||(y[t]="nextTick",n((function(){var n;"nextTick"===y[t]&&(delete y[t],f.delete(t),p.async&&(o=e(o)).push(s),n=f.memoized.apply(i,o),p.promise&&r(n)&&("function"==typeof n.done?n.done(s,s):n.then(s,s)))})))}))),f.on("clear"+h,(function(){t(d,(function(e){clearTimeout(e)})),d={},y&&(t(y,(function(e){"nextTick"!==e&&clearTimeout(e)})),y={})})))}}(),i.max&&function(){if(yl)return xl;yl=1;var e=j(),t=function(){if(ml)return hl;ml=1;var e=j(),t=Object.create,n={}.hasOwnProperty;return hl=function(r){var o,i=0,s=1,a=t(null),c=t(null),u=0;return r=e(r),{hit:function(e){var t=c[e],l=++u;if(a[l]=e,c[e]=l,!t){if(++i,r>=i)return;return o(e=a[s]),e}if(delete a[t],s===t)for(;!n.call(a,++s);)continue},delete:o=function(e){var t=c[e];if(t&&(delete a[t],delete c[e],--i,s===t)){if(!i)return u=0,void(s=1);for(;!n.call(a,++s);)continue}},clear:function(){i=0,s=1,a=t(null),c=t(null),u=0}}}}(),n=V();n.max=function(r,o,i){var s,a,c;(r=e(r))&&(a=t(r),o.on("set"+(s=i.async&&n.async||i.promise&&n.promise?"async":""),c=function(e){void 0!==(e=a.hit(e))&&o.delete(e)}),o.on("get"+s,c),o.on("delete"+s,a.delete),o.on("clear"+s,a.clear))}}(),i.refCounter&&function(){if(vl)return Nl;vl=1;var e=K(),t=V(),n=Object.create,r=Object.defineProperties;t.refCounter=function(o,i,s){var a,c;a=n(null),i.on("set"+(c=s.async&&t.async||s.promise&&t.promise?"async":""),(function(e,t){a[e]=t||1})),i.on("get"+c,(function(e){++a[e]})),i.on("delete"+c,(function(e){delete a[e]})),i.on("clear"+c,(function(){a={}})),r(i.memoized,{deleteRef:e((function(){var e=i.get(arguments);return null===e?null:a[e]?! --a[e]&&(i.delete(e),!0):null})),getRefCount:e((function(){var e=i.get(arguments);return null===e?0:a[e]?a[e]:0}))})}}(),n(r,i)}}()),Ll=/^~(?=$|\/|\\)/,{appendFile:$l,readFile:Dl,writeFile:kl}=Pr,Ul=ce("~/.bashrc"),jl=Al((async function(e){const t=void 0===e.guard?`\nsource "${e.rcPath}"\n`:`\n# ${e.guard}\nif [[ "$SOURCE_${e.guard.toUpperCase()}RC" != 0 && -f "${e.rcPath}" ]]; then source "${e.rcPath}"; fi\n`;try{await Promise.all([ue(e),le(t,ce("~/.bashrc")),le(t,ce("~/.profile"))])}catch(n){d(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${n}`)}}),{promise:!0});var Fl,Ml;const Bl=e(function(){if(Ml)return Fl;Ml=1;const e=Or,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return Fl=function(e){return t?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&Number(t)>=17134.1184)(...r.exec(n).splice(1))?e:e.replace(/(\s+)/g,"%20")}}());var Gl,Vl,Hl,ql,zl,Wl={exports:{}};const Xl=e((Hl||(Hl=1,ql=function(){if(Vl)return Gl;Vl=1;var e=/[|\\{}()[\]^$+*?.]/g;return Gl=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),zl=function(e){return e.split("").reverse().join("")},Wl.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+ql(t)+"])(?!"+ql(n)+")","g"),zl(zl(e).replace(r,"$1"+n)))}),Wl.exports)),{GITHUB_ACTIONS:Kl}=Ai,{appendFile:Yl}=Pr,{GITHUB_ACTIONS:Jl}=Ai,{appendFile:Ql}=Pr,Zl=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var ef,tf,nf,rf={exports:{}};const of=e(ve());var sf;const af=e((sf||(sf=1,ye().addLocale("en",(function(e){var t=Math.floor(Math.abs(e)),n=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===n?"one":"other"}))),{}));var cf,uf,lf,ff,pf,df={exports:{}};const hf=e(pf?ff:(pf=1,ff=function(){function e(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:n}=t;s[e]=n}}function t(e,t,r){const o=function(e){const t=s[e.locale];let n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),n=Array.from(new Set(n));let r=null;if(n.some((function(e){if(void 0!==t[e])return r=t[e],!0})),null===r)throw Error("Can not find any unit type data for locale: "+e.locale);return r}(r);return n.pluralize(r.locale,t,o[e]).replace("{0}",t)}if(lf)return uf;lf=1;const n=ve(),r=cf?df.exports:(cf=1,df.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)),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={};return uf={create:function(n){return n=Object.assign({},i,n||{}),{format:function(i,a,c){return function(n,i,a){if(function(t,n){const{autoload:o}=n;if(!s[t]){if(!r||!o)throw Error(`Missing locale: ${t}, you must load it manually before using it`);!function(t){try{e(me(`../locales/${t}.js`))}catch(n){throw Error(`Failed to load locale: ${t} from ../locales/${t}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${n}`)}}(t)}}(a.locale,{autoload:a.autoloadLocales}),!n)throw Error("Missing first date argument");if(!i)throw Error("Missing second date argument");const c=function(e,t){let n=t-e;const r=[];return o.some((function(e){const t=e[0],o=e[1],i=Math.floor(n/o);if(n-=i*o,r.push([t,i]),0>=n)return!0})),r}(n,i),u=[];for(const e of c){const[n,r]=e;if(r>0&&u.push(t(n,r,a)),u.length>=a.span)break}return u.join(a.delimiter)}(i,a,c=Object.assign({},n,c||{}))}}},addLocale:e,defaultConfig:i}}()));var mf,yf;const vf=e(yf?mf:(yf=1,mf={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}}));var wf,Ef,gf,_f,bf,Sf,Of,Rf,If,Tf,Pf,Cf,xf,Nf,Af,Lf,$f,Df,kf,Uf,jf,Ff,Mf,Bf,Gf,Vf,Hf,qf,zf,Wf,Xf,Kf,Yf,Jf,Qf,Zf,ep,tp,np,rp,op,ip,sp,ap,cp,up,lp,fp,pp,dp,hp,mp,yp,vp,wp,Ep,gp,_p,bp,Sp,Op,Rp,Ip,Tp,Pp,Cp,xp,Np,Ap,Lp,$p,Dp,kp,Up,jp,Fp,Mp,Bp,Gp,Vp,Hp,qp,zp,Wp,Xp,Kp,Yp,Jp,Qp,Zp,ed,td={exports:{}};const nd=e(function(){function e(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{a(r.next(e))}catch(t){o(t)}}function s(e){try{a(r.throw(e))}catch(t){o(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,s)}a((r=r.call(e)).next())}))}function t(e,t){function n(n){return function(c){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,n[0]&&(a=0)),a;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&i[3]>n[1])){a.label=n[1];break}if(6===n[0]&&i[1]>a.label){a.label=i[1],i=n;break}if(i&&i[2]>a.label){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(c){n=[6,c],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,c])}}var r,o,i,s,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}if(ed)return Zp;ed=1;var n=bo,r=Be(),o=Or,i=$r,s=Tr,a=Xr,c=n.env.npm_package_json,u=n.env.npm_config_user_agent,l=!(!u||!u.startsWith("npm")),f=!(!c||!c.endsWith("package.json")),p=l||f,d=!(!u||!u.startsWith("yarn")),h=p||d,m=o.homedir(),y=process.env.XDG_CONFIG_HOME||i.join(m,".config","simple-update-notifier"),v=function(e){return i.join(y,"".concat(e.replace("@","").replace("/","__"),".json"))},w=function(n,r){return e(void 0,0,void 0,(function(){var e;return t(this,(function(t){return e="https://registry.npmjs.org/-/package/".concat(n,"/dist-tags"),[2,new Promise((function(t,n){a.get(e,(function(e){var o="";e.on("data",(function(e){return o+=e})),e.on("end",(function(){try{var e=JSON.parse(o)[r];e||n(Error("Error getting version")),t(e)}catch(i){n(Error("Could not parse version response"))}}))})).on("error",(function(e){return n(e)}))}))]}))}))},E=function(n){var o=n.pkg,i=n.updateCheckInterval,a=void 0===i?864e5:i,c=n.distTag,u=void 0===c?"latest":c,l=n.alwaysRun,f=n.debug;return e(void 0,0,void 0,(function(){var e,i;return t(this,(function(t){switch(t.label){case 0:return s.existsSync(y)||s.mkdirSync(y,{recursive:!0}),e=function(e){var t=v(e);try{if(!s.existsSync(t))return;return JSON.parse(s.readFileSync(t,"utf8")).lastUpdateCheck}catch(n){return}}(o.name),l||!e||e<(new Date).getTime()-a?[4,w(o.name,u)]:[3,2];case 1:return i=t.sent(),c=v(o.name),s.writeFileSync(c,JSON.stringify({lastUpdateCheck:(new Date).getTime()})),r.gt(i,o.version)?[2,i]:(f&&console.error("Latest version (".concat(i,") not newer than current version (").concat(o.version,")")),[3,3]);case 2:f&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(a,"ms but only ").concat((new Date).getTime()-e,"ms since last check.")),t.label=3;case 3:return[2,!1]}var c}))}))};return Zp=function(n){return e(void 0,0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:if(!n.alwaysRun&&(!process.stdout.isTTY||h&&!n.shouldNotifyInNpmScript))return n.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,E(n)];case 2:return(e=t.sent())&&console.error(function(e){for(var t=e.split("\n"),n=Math.max.apply(Math,t.map((function(e){return e.length}))),r=["┌".concat("─".repeat(n+2),"┐")],o=0,i=t;i.length>o;o++)r.push("│ ".concat(i[o].padEnd(n)," │"));return r.push("└".concat("─".repeat(n+2),"┘")),r.join("\n")}("New version of ".concat(n.pkg.name," available!\nCurrent Version: ").concat(n.pkg.version,"\nLatest Version: ").concat(e))),[3,4];case 3:return r=t.sent(),n.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2]}}))}))}}()),rd={name:"setup-cpp",version:"0.46.1"};var od,id,sd,ad,cd,ud,ld,fd,pd,dd,hd,md,yd,vd={},wd={},Ed={},gd={},_d={},bd={},Sd={},Od={},Rd={},Id={},Td={},Pd={},Cd=We(),xd={},Nd=(yd||(yd=1,function(e){function t(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(e,"__esModule",{value:!0}),e.DownloaderHelper=e.DH_STATES=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n,r=0;t.length>r;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=t(Tr),s=Ro,a=t($r),c=t(zr),u=t(Xr),l=Yr,f=e.DH_STATES={IDLE:"IDLE",SKIPPED:"SKIPPED",STARTED:"STARTED",DOWNLOADING:"DOWNLOADING",RETRY:"RETRY",PAUSED:"PAUSED",RESUMED:"RESUMED",STOPPED:"STOPPED",FINISHED:"FINISHED",FAILED:"FAILED"};e.DownloaderHelper=function(e){function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{captureRejections:!0}));return i.__validate(e,r)?(i.url=i.requestURL=e.trim(),i.state=f.IDLE,i.__defaultOpts={body:null,retry:!1,method:"GET",headers:{},fileName:"",timeout:-1,metadata:null,override:!1,forceResume:!1,removeOnStop:!0,removeOnFail:!0,progressThrottle:1e3,httpRequestOptions:{},httpsRequestOptions:{},resumeOnIncomplete:!0,resumeIfFileExists:!1,resumeOnIncompleteMaxRetry:5},i.__opts=Object.assign({},i.__defaultOpts),i.__pipes=[],i.__total=0,i.__downloaded=0,i.__progress=0,i.__retryCount=0,i.__retryTimeout=null,i.__resumeRetryCount=0,i.__states=f,i.__promise=null,i.__request=null,i.__response=null,i.__isAborted=!1,i.__isResumed=!1,i.__isResumable=!1,i.__isRedirected=!1,i.__destFolder=r,i.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0},i.__fileName="",i.__filePath="",i.updateOptions(o),i):n(i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"start",value:function(){var e=this,t=function(){return new Promise((function(t,n){e.__promise={resolve:t,reject:n},e.__start()}))};return this.__opts.resumeIfFileExists&&this.state!==this.__states.RESUMED?this.getTotalSize().then((function(n){var r=n.name,o=n.total,s=e.__opts.override;return e.__opts.override=!0,e.__filePath=e.__getFilePath(r),e.__opts.override=s,e.__filePath&&i.existsSync(e.__filePath)?e.__getFilesizeInBytes(e.__filePath)===o?t():e.resumeFromFile(e.__filePath,{total:o,fileName:r}):t()})):t()}},{key:"pause",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return e.__setState(e.__states.PAUSED),e.emit("pause"),!0})))}},{key:"resume",value:function(){return this.__promise?this.state===this.__states.STOPPED?Promise.resolve(!1):(this.__setState(this.__states.RESUMED),this.__isResumable&&(this.__isResumed=!0,this.__reqOptions.headers.range="bytes="+this.__downloaded+"-"),this.emit("resume",this.__isResumed),this.__start()):this.start()}},{key:"stop",value:function(){var e=this;return this.state===this.__states.STOPPED?Promise.resolve(!0):(this.__requestAbort(),this.__closeFileStream().then((function(){return e.__opts.removeOnStop?new Promise((function(t,n){i.access(e.__filePath,(function(r){return r?(e.__emitStop(),t(!0)):void i.unlink(e.__filePath,(function(r){return r?(e.__setState(e.__states.FAILED),e.emit("error",r),n(r)):(e.__emitStop(),void t(!0))}))}))})):(e.__emitStop(),Promise.resolve(!0))})))}},{key:"pipe",value:function(e){return this.__pipes.push({stream:e,options:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}),e}},{key:"unpipe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=function(t){return e.__response?e.__response.unpipe(t):t.unpipe()};t?this.__pipes.find((function(e){return e.stream===t}))&&(n(t),this.__pipes=this.__pipes.filter((function(e){return e.stream!==t}))):(this.__pipes.forEach((function(e){return n(e.stream)})),this.__pipes=[])}},{key:"getDownloadPath",value:function(){return this.__filePath}},{key:"isResumable",value:function(){return this.__isResumable}},{key:"updateOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.__opts=Object.assign({},this.__opts,e),this.__headers=this.__opts.headers,this.__opts.timeout>-1&&(this.__opts.httpRequestOptions.timeout=this.__opts.timeout,this.__opts.httpsRequestOptions.timeout=this.__opts.timeout),("number"!=typeof this.__opts.progressThrottle||0>this.__opts.progressThrottle)&&(this.__opts.progressThrottle=this.__defaultOpts.progressThrottle),this.url=t||this.url,this.__reqOptions=this.__getReqOptions(this.__opts.method,this.url,this.__opts.headers),this.__initProtocol(this.url)}},{key:"getOptions",value:function(){return this.__opts}},{key:"getMetadata",value:function(){return this.__opts.metadata}},{key:"getStats",value:function(){return{total:this.__total,name:this.__fileName,downloaded:this.__downloaded,progress:this.__progress,speed:this.__statsEstimate.bytes}}},{key:"getTotalSize",value:function(){var e=this;return new Promise((function(t,n){var r=function(t){e.__initProtocol(t);var n=Object.assign({},e.__headers);n.hasOwnProperty("range")&&delete n.range;var r=e.__getReqOptions("HEAD",t,n);return Object.assign({},e.__reqOptions,r)},o=function(i,a){var c=e.__protocol.request(a,(function(a){if(e.__isRequireRedirect(a)){var c=/^https?:\/\//.test(a.headers.location)?a.headers.location:new s.URL(a.headers.location,i).href;return e.emit("redirected",c,i),o(c,r(c))}return 200===a.statusCode?void t({name:e.__getFileNameFromHeaders(a.headers,a),total:parseInt(a.headers["content-length"])||null}):n(Error("Response status was "+a.statusCode))}));c.on("error",(function(e){return n(e)})),c.on("timeout",(function(){return n(Error("timeout"))})),c.on("uncaughtException",(function(e){return n(e)})),c.end()};o(e.url,r(e.url))}))}},{key:"getResumeState",value:function(){return{downloaded:this.__downloaded,filePath:this.__filePath,fileName:this.__fileName,total:this.__total}}},{key:"resumeFromFile",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.__opts.override=!0,this.__filePath=e,(n.total&&n.fileName?Promise.resolve({name:n.fileName,total:n.total}):this.getTotalSize()).then((function(e){var r=e.name;return t.__total=n.total||e.total,t.__fileName=n.fileName||r,t.__downloaded=n.downloaded||t.__getFilesizeInBytes(t.__filePath),t.__reqOptions.headers.range="bytes="+t.__downloaded+"-",t.__isResumed=!0,t.__isResumable=!0,t.__setState(t.__states.RESUMED),t.emit("resume",t.__isResumed),new Promise((function(e,n){t.__promise={resolve:e,reject:n},t.__start()}))}))}},{key:"__start",value:function(){this.__isRedirected||this.state===this.__states.RESUMED||(this.emit("start"),this.__setState(this.__states.STARTED),this.__initProtocol(this.url)),this.__response=null,this.__isAborted=!1,this.__request&&!this.__request.destroyed&&this.__request.destroy(),this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__request=this.__downloadRequest(this.__promise.resolve,this.__promise.reject),this.__request.on("error",this.__onError(this.__promise.resolve,this.__promise.reject)),this.__request.on("timeout",this.__onTimeout(this.__promise.resolve,this.__promise.reject)),this.__request.on("uncaughtException",this.__onError(this.__promise.resolve,this.__promise.reject,!0)),this.__opts.body&&this.__request.write(this.__opts.body),this.__request.end()}},{key:"__resolvePending",value:function(){if(this.__promise){var e=this.__promise.resolve;return this.__promise=null,e(!0)}}},{key:"__downloadRequest",value:function(e,t){var n=this;return this.__protocol.request(this.__reqOptions,(function(r){if(n.__response=r,n.__isResumed||(n.__total=parseInt(r.headers["content-length"])||null,n.__resetStats()),n.__isRequireRedirect(r)){var o=/^https?:\/\//.test(r.headers.location)?r.headers.location:new s.URL(r.headers.location,n.url).href;return n.__isRedirected=!0,n.__initProtocol(o),n.emit("redirected",o,n.url),n.__start()}if(200!==r.statusCode&&206!==r.statusCode){var i=Error("Response status was "+r.statusCode);return i.status=r.statusCode||0,i.body=r.body||"",n.__setState(n.__states.FAILED),n.emit("error",i),t(i)}(n.__opts.forceResume||r.headers.hasOwnProperty("accept-ranges")&&"none"!==r.headers["accept-ranges"])&&(n.__isResumable=!0),n.__startDownload(r,e,t)}))}},{key:"__startDownload",value:function(e,t,n){var o=this,s=e;if(this.__isResumed)this.__fileStream=i.createWriteStream(this.__filePath,{flags:"a"});else{var c=this.__getFileNameFromHeaders(e.headers);if(this.__filePath=this.__getFilePath(c),this.__fileName=this.__filePath.split(a.sep).pop(),i.existsSync(this.__filePath)){var u=this.__getFilesizeInBytes(this.__filePath),l=this.__total?this.__total:0;if("object"===r(this.__opts.override)&&this.__opts.override.skip&&(this.__opts.override.skipSmaller||u>=l))return this.emit("skip",{totalSize:this.__total,fileName:this.__fileName,filePath:this.__filePath,downloadedSize:u}),this.__setState(this.__states.SKIPPED),t(!0)}this.__fileStream=i.createWriteStream(this.__filePath,{})}this.emit("download",{fileName:this.__fileName,filePath:this.__filePath,totalSize:this.__total,isResumed:this.__isResumed,downloadedSize:this.__downloaded}),this.__retryCount=0,this.__isResumed=!1,this.__isRedirected=!1,this.__setState(this.__states.DOWNLOADING),this.__statsEstimate.time=new Date,this.__statsEstimate.throttleTime=new Date,s.on("data",(function(e){return o.__calculateStats(e.length)})),this.__pipes.forEach((function(e){s.pipe(e.stream,e.options),s=e.stream})),s.pipe(this.__fileStream),s.on("error",this.__onError(t,n)),this.__fileStream.on("finish",this.__onFinished(t,n)),this.__fileStream.on("error",this.__onError(t,n))}},{key:"__hasFinished",value:function(){return!this.__isAborted&&-1===[this.__states.PAUSED,this.__states.STOPPED,this.__states.RETRY,this.__states.FAILED,this.__states.RESUMED].indexOf(this.state)}},{key:"__isRequireRedirect",value:function(e){return e.statusCode>300&&400>e.statusCode&&e.headers.hasOwnProperty("location")&&e.headers.location}},{key:"__onFinished",value:function(e,t){var n=this;return function(){n.__fileStream.close((function(r){if(r)return t(r);if(n.__hasFinished()){var o=!!n.__total&&n.__downloaded!==n.__total;if(o&&n.__isResumable&&n.__opts.resumeOnIncomplete&&n.__opts.resumeOnIncompleteMaxRetry>=n.__resumeRetryCount)return n.__resumeRetryCount++,n.emit("warning",Error("uncomplete download, retrying")),n.resume();n.__setState(n.__states.FINISHED),n.__pipes=[],n.emit("end",{fileName:n.__fileName,filePath:n.__filePath,totalSize:n.__total,incomplete:o,onDiskSize:n.__getFilesizeInBytes(n.__filePath),downloadedSize:n.__downloaded})}return e(n.__downloaded===n.__total)}))}}},{key:"__closeFileStream",value:function(){var e=this;return this.__fileStream?new Promise((function(t,n){e.__fileStream.close((function(e){return e?n(e):t(!0)}))})):Promise.resolve(!0)}},{key:"__onError",value:function(e,t){var n=this,r=!(2>=arguments.length||void 0===arguments[2])&&arguments[2];return function(e){return n.__pipes=[],r&&n.__requestAbort(),n.state===n.__states.STOPPED||n.state===n.__states.FAILED?void 0:n.__opts.retry?n.__retry(e).catch((function(r){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",r||e),t(r||e)}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("error",e),t(e)}))}}},{key:"__retry",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.__opts.retry||"object"!==r(this.__opts.retry))return Promise.reject(t||Error("wrong retry options"));var n=this.__opts.retry,o=n.delay,i=void 0===o?0:o,s=n.maxRetries;return(void 0===s?999:s)>this.__retryCount?(this.__retryCount++,this.__setState(this.__states.RETRY),this.emit("retry",this.__retryCount,this.__opts.retry,t),this.__response&&(this.__response.unpipe(),this.__pipes.forEach((function(e){return e.stream.unpipe()}))),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then((function(){return new Promise((function(t){return e.__retryTimeout=setTimeout((function(){return t(e.__downloaded>0?e.resume():e.__start())}),i)}))}))):Promise.reject(t||Error("reached the maximum retries"))}},{key:"__onTimeout",value:function(e,t){var n=this;return function(){return n.__requestAbort(),n.__opts.retry?n.__retry(Error("timeout")).catch((function(e){n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),e?t(e):(n.emit("timeout"),t(Error("timeout")))}))})):n.__removeFile().finally((function(){n.__setState(n.__states.FAILED),n.emit("timeout"),t(Error("timeout"))}))}}},{key:"__resetStats",value:function(){this.__retryCount=0,this.__downloaded=0,this.__progress=0,this.__resumeRetryCount=0,this.__statsEstimate={time:0,bytes:0,prevBytes:0,throttleTime:0}}},{key:"__getFileNameFromHeaders",value:function(e,t){var n="",r=e.hasOwnProperty("content-disposition"),o=r?e["content-disposition"].match(/.*filename\*=.*?'.*?'([^"].+?[^"])(?:(?:;)|$)/i):null,i=!r||o?null:e["content-disposition"].match(/.*filename="(.*?)";?/i),c=!r||o||i?null:e["content-disposition"].match(/.*filename=([^"].+?[^"])(?:(?:;)|$)/i);return r&&(o||i||c)?(n=(n=e["content-disposition"]).trim(),o?n=o[1]:i?n=i[1]:c&&(n=c[1]),n=n.replace(/[/\\]/g,"")):n=a.basename(new s.URL(this.requestURL).pathname).length>0?a.basename(new s.URL(this.requestURL).pathname):new s.URL(this.requestURL).hostname+".html",this.__opts.fileName?this.__getFileNameFromOpts(n,t):n.replace(/\.*$/,"")}},{key:"__getFilePath",value:function(e){var t=a.join(this.__destFolder,e),n=t;return this.__opts.override||this.state===this.__states.RESUMED||t!==(n=this.__uniqFileNameSync(n))&&this.emit("renamed",{path:n,fileName:n.split(a.sep).pop(),prevPath:t,prevFileName:t.split(a.sep).pop()}),n}},{key:"__getFileNameFromOpts",value:function(e,t){if(!this.__opts.fileName)return e;if("string"==typeof this.__opts.fileName)return this.__opts.fileName;if("function"==typeof this.__opts.fileName){var n=a.join(this.__destFolder,e);return t&&t.headers||this.__response&&this.__response.headers?this.__opts.fileName(e,n,(t||this.__response).headers["content-type"]):this.__opts.fileName(e,n)}if("object"===r(this.__opts.fileName)){var o=this.__opts.fileName,i=o.name,s=!!o.hasOwnProperty("ext")&&o.ext;if("string"==typeof s)return i+"."+s;if("boolean"==typeof s){if(s)return i;var c=e.includes(".")?e.split(".").pop():"";return""===c?i:i+"."+c}}return e}},{key:"__calculateStats",value:function(e){var t=new Date,n=t-this.__statsEstimate.time,r=t-this.__statsEstimate.throttleTime,o=this.__total||0;e&&(this.__downloaded+=e,this.__progress=0===o?0:this.__downloaded/o*100,(this.__downloaded===o||n>1e3)&&(this.__statsEstimate.time=t,this.__statsEstimate.bytes=this.__downloaded-this.__statsEstimate.prevBytes,this.__statsEstimate.prevBytes=this.__downloaded),(this.__downloaded===o||r>this.__opts.progressThrottle)&&(this.__statsEstimate.throttleTime=t,this.emit("progress.throttled",this.getStats())),this.emit("progress",this.getStats()))}},{key:"__setState",value:function(e){this.state=e,this.emit("stateChanged",this.state)}},{key:"__getReqOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new s.URL(t),o={protocol:r.protocol,host:r.hostname,port:r.port,path:r.pathname+r.search,method:e};return n&&(o.headers=n),o}},{key:"__getFilesizeInBytes",value:function(e){try{return i.statSync(e,{throwIfNoEntry:!1}).size||0}catch(t){this.emit("warning",t)}return 0}},{key:"__validate",value:function(e,t){if("string"!=typeof e)throw Error("URL should be an string");if(""===e.trim())throw Error("URL couldn't be empty");if("string"!=typeof t)throw Error("Destination Folder should be an string");if(""===t.trim())throw Error("Destination Folder couldn't be empty");if(!i.existsSync(t))throw Error("Destination Folder must exist");if(!i.statSync(t).isDirectory())throw Error("Destination Folder must be a directory");try{i.accessSync(t,i.constants.W_OK)}catch(n){throw Error("Destination Folder must be writable")}return!0}},{key:"__initProtocol",value:function(e){var t=this.__getReqOptions(this.__opts.method,e,this.__headers);this.requestURL=e,e.indexOf("https://")>-1?(this.__protocol=u,t.agent=new u.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpsRequestOptions)):(this.__protocol=c,t.agent=new c.Agent({keepAlive:!1}),this.__reqOptions=Object.assign({},t,this.__opts.httpRequestOptions))}},{key:"__uniqFileNameSync",value:function(e){if("string"!=typeof e||""===e)return e;try{i.accessSync(e,i.F_OK);var t=e.match(/(.*)(\([0-9]+\))(\..*)$/),n=t?t[1].trim():e,r=t?parseInt(t[2].replace(/\(|\)/,"")):0,o=e.split(".").pop();return o!==e&&o.length>0?n=n.replace(o="."+o,""):o="",this.__uniqFileNameSync(n+" ("+ ++r+")"+o)}catch(s){return e}}},{key:"__removeFile",value:function(){var e=this;return new Promise((function(t){return e.__fileStream?void e.__fileStream.close((function(n){return n&&e.emit("warning",n),e.__opts.removeOnFail?i.access(e.__filePath,(function(r){return r?t():void i.unlink(e.__filePath,(function(r){r&&e.emit("warning",n),t()}))})):void t()})):t()}))}},{key:"__requestAbort",value:function(){this.__isAborted=!0,this.__retryTimeout&&(clearTimeout(this.__retryTimeout),this.__retryTimeout=null),this.__response&&this.__response.destroy(),this.__request&&(this.__request.destroy?this.__request.destroy():this.__request.abort())}},{key:"__emitStop",value:function(){this.__resolvePending(),this.__setState(this.__states.STOPPED),this.emit("stop")}}]),t}(l.EventEmitter)}(xd)),xd);const{GITHUB_ACTIONS:Ad}=Ai,{appendFile:Ld}=Pr,$d="Dpkg::Lock::Timeout=300";let Dd=!1;const kd=Al((function(e=Ze()){x(e,"nala"!==e?["update","-y","-o",$d]:["update","-o",$d],{...Sa,env:Je(e)}),Dd=!0}));var Ud,jd;(jd=Ud||(Ud={}))[jd.NameDashVersion=0]="NameDashVersion",jd[jd.NameEqualsVersion=1]="NameEqualsVersion",jd[jd.Name=2]="Name",jd[jd.None=3]="None";const Fd=Al((async function(e){kd(e);const t=await nt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&x(e,["install","-y","--fix-broken","-o",$d,...t],{...Sa,env:Je(e)})}),{promise:!0}),Md=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"],Bd="/etc/apt/trusted.gpg.d",Gd="keyserver.ubuntu.com";let Vd,Hd,qd,zd,Wd,Xd=!1,Kd=!1,Yd=!1,Jd=!1;const Qd=/Version\s*:\s*(.*)/g;let Zd=!1;var eh,th;const nh=e(function(){if(th)return eh;th=1;var e=$r;return eh=function(t,n){if("string"!=typeof t)return t;if(0===t.length)return t;var r,o=e.basename(t,e.extname(t))+n,i=e.join(e.dirname(t),o);return(r=t.slice(0,2))==="."+e.sep||"./"===r?"."+e.sep+i:i}}());var rh={},oh={};_t(oh,"name",(()=>bt));var ih={};_t(ih,"normalizeTrim",(()=>St));var sh={};_t(sh,"addExeExt",(()=>Ot));var ah={};_t(ah,"addNamePrefix",(()=>Rt));var ch={};_t(ch,"addNameSuffix",(()=>It));var uh={};_t(uh,"addShExt",(()=>Tt));var lh={};_t(lh,"addShRelativePrefix",(()=>Pt));var fh={};_t(fh,"removeExt",(()=>Ct));var ph={};_t(ph,"replaceExt",(()=>xt));var dh={};_t(dh,"isPathInside",(()=>Nt)),gt(rh,oh),gt(rh,ih),gt(rh,sh),gt(rh,ah),gt(rh,ch),gt(rh,uh),gt(rh,lh),gt(rh,fh),gt(rh,ph),gt(rh,dh);const hh=e(ke()),mh=e($e()),yh=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],vh=["x86","i386","ia32","win32","32","x32"],wh=["aarch64","arm64","woa64","arm"],Eh=["armv7","armv7a"],gh=["powerpc64le","ppc64le"],_h=["sparc64"],bh=["sparcv9"];var Sh,Oh,Rh,Ih,Th,Ph,Ch,xh,Nh,Ah,Lh,$h={},Dh={exports:{}},kh={exports:{}},Uh=Dh.exports,jh={},Fh=function(){function e(e,t){const n=[];t=t||w.arch();const r=E.join(s(),e);if(y.existsSync(r)){const e=y.readdirSync(r);for(const i of e)if(o(i)){const e=E.join(r,i,t||"");y.existsSync(e)&&y.existsSync(e+".complete")&&n.push(i)}}return n}function t(e){return p(this,void 0,void 0,(function*(){return e||(e=E.join(a(),R.default())),yield m.mkdirP(e),e}))}function n(e,t,n){return p(this,void 0,void 0,(function*(){const r=E.join(s(),e,_.clean(t)||t,n||"");h.debug("destination "+r);const o=r+".complete";return yield m.rmRF(r),yield m.rmRF(o),yield m.mkdirP(r),r}))}function r(e,t,n){const r=E.join(s(),e,_.clean(t)||t,n||"");y.writeFileSync(r+".complete",""),h.debug("finished caching tool")}function o(e){const t=_.clean(e)||"";h.debug("isExplicit: "+t);const n=null!=_.valid(t);return h.debug("explicit? "+n),n}function i(e,t){let n="";h.debug(`evaluating ${e.length} versions`);for(let r=(e=e.sort(((e,t)=>_.gt(e,t)?1:-1))).length-1;r>=0;r--){const o=e[r];if(_.satisfies(o,t)){n=o;break}}return h.debug(n?"matched: "+n:"match not found"),n}function s(){const e=process.env.RUNNER_TOOL_CACHE||"";return O.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return O.ok(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=xo[e];return void 0!==n?n:t}if(Ah)return $h;Ah=1;var u=$h.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=$h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=$h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&u(t,e,n);return l(t,e),t},p=$h.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},d=$h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($h,"__esModule",{value:!0}),$h.evaluateVersions=$h.isExplicitVersion=$h.findFromManifest=$h.getManifestFromRepo=$h.findAllVersions=$h.find=$h.cacheFile=$h.cacheDir=$h.extractZip=$h.extractXar=$h.extractTar=$h.extract7z=$h.downloadTool=$h.HTTPError=void 0;const h=f(We()),m=f(qe()),y=f(Tr),v=f((Oh||(Oh=1,function(e,t){var n=Uh&&Uh.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=Uh&&Uh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Uh&&Uh.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&n(t,e,o);return r(t,e),t},i=Uh&&Uh.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const s=o(At()),a=We(),c=Or,u=Qr,l=Tr;t._findMatch=function(t,n,r,o){return i(this,void 0,void 0,(function*(){const i=c.platform();let u,l,f;for(const c of r){const r=c.version;if(a.debug(`check ${r} satisfies ${t}`),s.satisfies(r,t)&&(!n||c.stable===n)&&(f=c.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${i}`);let n=t.arch===o&&t.platform===i;if(n&&t.platform_version){const r=e.exports._getOsVersion();n=r===t.platform_version||s.satisfies(r,t.platform_version)}return n})),f)){a.debug("matched "+c.version),l=c;break}}return l&&f&&(u=Object.assign({},l),u.files=[f]),u}))},t._getOsVersion=function(){const t=c.platform();let n="";if("darwin"===t)n=""+u.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){n=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return n},t._readLinuxVersionFile=function(){const e="/etc/lsb-release",t="/etc/os-release";let n="";return l.existsSync(e)?n=""+l.readFileSync(e):l.existsSync(t)&&(n=""+l.readFileSync(t)),n}}(Dh,Dh.exports)),Dh.exports)),w=f(Or),E=f($r),g=f(Ei),_=f(At()),b=f(to),S=f(Jr),O=Zr,R=d(function(){if(xh)return Ch;xh=1;var e=function(){if(Ih)return Rh;Ih=1;var e=Lr;return Rh=function(){return e.randomBytes(16)}}(),t=function(){if(Ph)return Th;Ph=1;for(var e=[],t=0;256>t;++t)e[t]=(t+256).toString(16).substr(1);return Th=function(t,n){var r=n||0;return""+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]}}();return Ch=function(n,r,o){var i=r&&o||0;"string"==typeof n&&(r="binary"===n?Array(16):null,n=null);var s=(n=n||{}).random||(n.rng||e)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,r)for(var a=0;16>a;++a)r[i+a]=s[a];return r||t(s)}}()),I=ze(),T=function(){if(Nh)return jh;Nh=1;var e=jh.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=jh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=jh.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var o in n)"default"!==o&&Object.hasOwnProperty.call(n,o)&&e(r,n,o);return t(r,n),r},r=jh.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(t){i(t)}}function a(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(jh,"__esModule",{value:!0}),jh.RetryHelper=void 0;const o=n(We());return jh.RetryHelper=class{constructor(e,t,n){if(1>e)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(e,t){return r(this,void 0,void 0,(function*(){let n=1;for(;this.maxAttempts>n;){try{return yield e()}catch(r){if(t&&!t(r))throw r;o.info(r.message)}const i=this.getSleepAmount();o.info(`Waiting ${i} seconds before trying again`),yield this.sleep(i),n++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return r(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}},jh}();class P extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}$h.HTTPError=P;const C="win32"===process.platform,x="darwin"===process.platform;return $h.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||E.join(a(),R.default()),yield m.mkdirP(E.dirname(t)),h.debug("Downloading "+e),h.debug("Destination "+t);const o=c("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),i=c("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new T.RetryHelper(3,o,i);return yield s.execute((()=>p(this,void 0,void 0,(function*(){return yield function(e,t,n,r){return p(this,void 0,void 0,(function*(){if(y.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new g.HttpClient("actions/tool-cache",[],{allowRetries:!1});n&&(h.debug("set auth"),void 0===r&&(r={}),r.authorization=n);const i=yield o.get(e,r);if(200!==i.message.statusCode){const t=new P(i.message.statusCode);throw h.debug(`Failed to download from "${e}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),t}const s=S.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message))();let u=!1;try{return yield s(a,y.createWriteStream(t)),h.debug("download complete"),u=!0,t}finally{if(!u){h.debug("download failed");try{yield m.rmRF(t)}catch(l){h.debug(`Failed to delete '${t}'. ${l.message}`)}}}}))}(e,t||"",n,r)}))),(e=>!(e instanceof P&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},$h.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){O.ok(C,"extract7z() not supported on current OS"),O.ok(e,'parameter "file" is required'),n=yield t(n);const o=process.cwd();if(process.chdir(n),r)try{const t=["x",h.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield I.exec(`"${r}"`,t,n)}finally{process.chdir(o)}else{const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${E.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${n.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],r={silent:!0};try{const e=yield m.which("powershell",!0);yield I.exec(`"${e}"`,t,r)}finally{process.chdir(o)}}return n}))},$h.extractTar=function(e,n,r="xz"){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");n=yield t(n),h.debug("Checking tar --version");let o="";yield I.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>o+=""+e,stderr:e=>o+=""+e}}),h.debug(o.trim());const i=o.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],h.isDebug()&&!r.includes("v")&&s.push("-v");let a=n,c=e;return C&&i&&(s.push("--force-local"),a=n.replace(/\\/g,"/"),c=e.replace(/\\/g,"/")),i&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",a,"-f",c),yield I.exec("tar",s),n}))},$h.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let o;O.ok(x,"extractXar() not supported on current OS"),O.ok(e,'parameter "file" is required'),n=yield t(n),o=r instanceof Array?r:[r],o.push("-x","-C",n,"-f",e),h.isDebug()&&o.push("-v");const i=yield m.which("xar",!0);var s;return yield I.exec(`"${i}"`,(s=o,Array.from(new Set(s)))),n}))},$h.extractZip=function(e,n){return p(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return n=yield t(n),C?yield function(e,t){return p(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield m.which("pwsh",!1);if(o){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`].join(" ")];h.debug("Using pwsh at path: "+o),yield I.exec(`"${o}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${r}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${r}', $true) }`].join(" ")],t=yield m.which("powershell",!0);h.debug("Using powershell at path: "+t),yield I.exec(`"${t}"`,e)}}))}(e,n):yield function(e,t){return p(this,void 0,void 0,(function*(){const n=yield m.which("unzip",!0),r=[e];h.isDebug()||r.unshift("-q"),r.unshift("-o"),yield I.exec(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},$h.cacheDir=function(e,t,o,i){return p(this,void 0,void 0,(function*(){if(o=_.clean(o)||o,i=i||w.arch(),h.debug(`Caching tool ${t} ${o} ${i}`),h.debug("source dir: "+e),!y.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,o,i);for(const t of y.readdirSync(e)){const n=E.join(e,t);yield m.cp(n,s,{recursive:!0})}return r(t,o,i),s}))},$h.cacheFile=function(e,t,o,i,s){return p(this,void 0,void 0,(function*(){if(i=_.clean(i)||i,s=s||w.arch(),h.debug(`Caching tool ${o} ${i} ${s}`),h.debug("source file: "+e),!y.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield n(o,i,s),c=E.join(a,t);return h.debug("destination file "+c),yield m.cp(e,c),r(o,i,s),a}))},$h.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||w.arch(),o(n)||(n=i(e(t,r),n));let a="";if(n){n=_.clean(n)||"";const e=E.join(s(),t,n,r);h.debug("checking cache: "+e),y.existsSync(e)&&y.existsSync(e+".complete")?(h.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):h.debug("not found")}return a},$h.findAllVersions=e,$h.getManifestFromRepo=function(e,t,n,r="master"){return p(this,void 0,void 0,(function*(){let o=[];const i=`https://api.github.com/repos/${e}/${t}/git/trees/${r}`,s=new g.HttpClient("tool-cache"),a={};n&&(h.debug("set auth"),a.authorization=n);const c=yield s.getJson(i,a);if(!c.result)return o;let u="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){u=e.url;break}a.accept="application/vnd.github.VERSION.raw";let l=yield(yield s.get(u,a)).readBody();if(l){l=l.replace(/^\uFEFF/,"");try{o=JSON.parse(l)}catch(f){h.debug("Invalid json")}}return o}))},$h.findFromManifest=function(e,t,n,r=w.arch()){return p(this,void 0,void 0,(function*(){return yield v._findMatch(e,t,n,r)}))},$h.isExplicitVersion=o,$h.evaluateVersions=i,$h}(),Mh={};const Bh=e(function(){function e(n,r){if(!n||!r)throw Error("retry-as-promised must be passed a callback and a options set");const o={$current:"$current"in(r="number"==typeof r?{max:r}:r)?r.$current:1,max:r.max,timeout:r.timeout||void 0,match:r.match?Array.isArray(r.match)?r.match:[r.match]:[],backoffBase:void 0===r.backoffBase?100:r.backoffBase,backoffExponent:r.backoffExponent||1.1,report:r.report,name:r.name||n.name||"unknown"};return o.match&&!Array.isArray(o.match)&&(o.match=[o.match]),o.report&&o.report("Trying "+o.name+" #"+o.$current+" at "+(new Date).toLocaleTimeString(),o),new Promise((function(r,i){let s,a,c;o.timeout&&(s=setTimeout((function(){a&&clearTimeout(a),i(new t(o.name+" timed out",c))}),o.timeout)),Promise.resolve(n({current:o.$current})).then(r).then((function(){s&&clearTimeout(s),a&&clearTimeout(a)})).catch((function(t){s&&clearTimeout(s),a&&clearTimeout(a),c=t,o.report&&o.report(t&&""+t||t,o,t);var u=o.max>o.$current;if(!u)return i(t);if(u=0===o.match.length||o.match.some((function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0}catch(n){return!!e(t)}return e===""+t||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(""+t))}(e,t)})),!u)return i(t);var l=o.backoffBase*Math.pow(o.backoffExponent,o.$current-1);o.$current++,o.report&&o.report(`Retrying ${o.name} (${o.$current})`,o),l?(o.report&&o.report(`Delaying retry of ${o.name} by ${l}`,o),a=setTimeout((function(){e(n,o).then(r).catch(i)}),l)):e(n,o).then(r).catch(i)}))}))}if(Lh)return Mh;Lh=1,Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.retryAsPromised=Mh.TimeoutError=void 0;class t extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return Mh.TimeoutError=t,Mh.retryAsPromised=e,Mh.default=e,Mh}());var Gh,Vh,Hh,qh,zh,Wh,Xh,Kh,Yh,Jh,Qh,Zh,em,tm,nm,rm,om,im,sm,am,cm,um,lm,fm,pm,dm,hm,mm,ym,vm,wm,Em,gm,_m,bm,Sm,Om,Rm,Im,Tm,Pm,Cm,xm,Nm,Am,Lm,$m,Dm,km,Um,jm,Fm,Mm,Bm,Gm,Vm,Hm,qm,zm,Wm,Xm,Km,Ym,Jm,Qm={},Zm={},ey={},ty={},ny=un();let ry;const{GITHUB_ACTIONS:oy}=Do,iy=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||Cr,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise(((r,o)=>t.mkdir(e,n,((e,t)=>e?o(e):r(t))))),e.stat=e.stat||n.stat||xr,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise(((n,r)=>t.stat(e,((e,t)=>e?r(e):n(t))))),e.statSync=e.statSync||n.statSync||Nr,e.mkdirSync=e.mkdirSync||n.mkdirSync||Ar,t},sy=(e,t,n)=>{const r=Ur(e),o={...iy(t),recursive:!1};if(r===e)try{return o.mkdirSync(e,o)}catch(i){if(i&&"EISDIR"!==i.code)throw i;return}try{return o.mkdirSync(e,o),n||e}catch(i){const t=i;if(t&&"ENOENT"===t.code)return sy(e,o,sy(r,o,n));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw i;try{if(!o.statSync(e).isDirectory())throw i}catch(s){throw i}}},ay=Object.assign((async(e,t,n)=>{const r=iy(t);r.recursive=!1;const o=Ur(e);return o===e?r.mkdirAsync(e,r).catch((e=>{if(e&&"EISDIR"!==e.code)throw e})):r.mkdirAsync(e,r).then((()=>n||e),(async t=>{const i=t;if(i&&"ENOENT"===i.code)return ay(o,r).then((t=>ay(e,r,t)));if(i&&"EEXIST"!==i.code&&"EROFS"!==i.code)throw t;return r.statAsync(e).then((e=>{if(e.isDirectory())return n;throw t}),(()=>{throw t}))}))}),{sync:sy}),cy=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?cy(e,Ur(t),t):void 0))},uy=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?uy(e,Ur(t),t):void 0}},ly=(e,t)=>{const n=iy(t);if(n.recursive=!0,Ur(e)===e)return n.mkdirSync(e,n);const r=uy(n,e);try{return n.mkdirSync(e,n),r}catch(o){if(o&&"ENOENT"===o.code)return sy(e,n);throw o}},fy=Object.assign((async(e,t)=>{const n={...iy(t),recursive:!0};return Ur(e)===e?await n.mkdirAsync(e,n):cy(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return ay(e,n);throw t}))))}),{sync:ly}),py=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,dy=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=Vr(e),"win32"===py){const t=/[*|"<>?:]/,{root:n}=Hr(e);if(t.test(e.substring(n.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},hy=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),my=+hy[0]>10||10==+hy[0]&&+hy[1]>=12,yy=my?e=>iy(e).mkdirSync===Ar:()=>!1,vy=Object.assign(my?e=>iy(e).mkdir===Cr:()=>!1,{sync:yy}),wy=(e,t)=>{e=dy(e);const n=iy(t);return yy(n)?ly(e,n):sy(e,n)},Ey=Object.assign((async(e,t)=>{e=dy(e);const n=iy(t);return vy(n)?fy(e,n):ay(e,n)}),{mkdirpSync:wy,mkdirpNative:fy,mkdirpNativeSync:ly,mkdirpManual:ay,mkdirpManualSync:sy,sync:wy,native:fy,nativeSync:ly,manual:ay,manualSync:sy,useNative:vy,useNativeSync:yy});var gy=ze();const _y=e(Te()),by=e(Fe()),Sy=e(Re()),Oy=/v?(\d\S*)/,Ry=Al((function(){const e="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),t=$r.join(e,"versions.json");return JSON.parse(Tr.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:Iy}=Do,Ty=Al((async function(e){const t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");const n=(await gy.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push(Dr(n,"Scripts"),Dr(n,"Scripts","bin"),Dr(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0});var Py,Cy={},xy=function(){if(Py)return Cy;Py=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.getUbuntuVersion=void 0;const e=Qr;return Cy.getUbuntuVersion=async function(){if("linux"!==process.platform)return[];const t=await(n="lsb_release",r=["-a"],new Promise(((t,o)=>{e.execFile(n,r,{encoding:"utf8",shell:!1},((e,i,s)=>{if(e)return"errno"in e&&"ENOENT"===e.code?void t(null):void o(Error(`Could not execute \`${n} ${r.join(" ")}\`: ${e} (stderr=${s})`));t(i)}))})));var n,r;if(null===t)return[];const o=/^Distributor ID:\s*(.+)$/,i=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,s=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let a=null,c=null,u=!1;for(const e of t.split("\n")){const t=e.match(o);if(null!==t){if("Ubuntu"!==t[1])return[];u=!0}const n=e.match(i);n&&(a=n);const r=e.match(s);if(r&&(c=r),u&&a&&c)break}if(!u)return[];for(const e of[a,c])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},Cy}();const Ny=Al((async function(){try{if(mt()){try{null===Ea.sync("lsb_release",{nothrow:!0})&&await it([{name:"lsb-release"}])}catch{return Nn()}const e=await xy.getUbuntuVersion();return 0===e.length?Nn():e}return null}catch(e){return d(""+e),null}}),{promise:!0}),Ay=Al((async function(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;const t=ce("~/.local/pipx");if(await ae(t))return t;switch(process.platform){case"win32":e=ce("~/AppData/Local/pipx");break;case"darwin":e=ce("~/Library/Application Support/pipx");break;default:e=ce("~/.local/share/pipx")}return await Ey(e),await Ey(Dr(e,"trash")),await Ey(Dr(e,"shared")),await Ey(Dr(e,"venv")),e}),{promise:!0}),Ly=Al((async function(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;const e=ce("~/.local/bin");return await de(e,wv),await Ey(e),e}),{promise:!0});let $y;const Dy=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"]]]),ky=Al((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||yo.release()).split(".")[0]);const[t,n]=Dy.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),Uy=e(Ie()),{GITHUB_ACTIONS:jy}=Do,Fy="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),{GITHUB_ACTIONS:My}=Do,By="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),Gy="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),Vy="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url));class Hy extends Error{constructor(e){super(e),this.name="TimeoutError"}}class qy extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const zy=e=>void 0===globalThis.DOMException?new qy(e):new DOMException(e),Wy=e=>{const t=void 0===e.reason?zy("This operation was aborted."):e.reason;return t instanceof Error?t:zy(t)};var Xy,Ky={},Yy=function(){function e(e){return Object.values(h).includes(e)?e:e in h?h[e]:e}function t(e){if(Object.keys(h).includes(e))return e;for(const[t,n]of Object.entries(h))if(n===e)return t;return e}function n(e,t){try{return(""+s.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\"+e}catch(n){i.warning("vswhere failed: "+n)}return null}function r(r){const o=e(r);let s;if(o){const e=o.split(".")[0]+".9";s=`-version "${o},${e}"`}else s="-latest";let c=n("VC\\Auxiliary\\Build\\vcvarsall.bat",s);if(c&&a.existsSync(c))return i.info("Found with vswhere: "+c),c;i.info("Not found with vswhere");const u=r?[t(r)]:d;for(const e of f)for(const t of u)for(const n of p)if(c=`${e}\\Microsoft Visual Studio\\${t}\\${n}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,i.info("Trying standard location: "+c),a.existsSync(c))return i.info("Found standard location: "+c),c;if(i.info("Not found in standard locations"),c=l+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",a.existsSync(c))return i.info("Found VS 2015: "+c),c;throw i.info("Not found in VS 2015 location: "+c),Error("Microsoft Visual Studio not found")}function o(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}if(Xy)return Ky;Xy=1;const i=We(),s=Qr,a=Tr,c=$r,u=bo,l=u.env["ProgramFiles(x86)"],f=[u.env["ProgramFiles(x86)"],u.env.ProgramFiles],p=["Enterprise","Professional","Community","BuildTools"],d=["2022","2019","2017"],h={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};Ky.vsversion_to_versionnumber=e,Ky.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return Ky.findWithVswhere=n,Ky.findVcvarsall=r,Ky.setupMSVCDevCmd=function(e,t,n,a,l,f){if("win32"!=u.platform)return void i.info("This is not a Windows virtual environment, bye!");u.env.PATH+=c.delimiter+m;let p={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in p&&(e=p[e.toLowerCase()]);var d=[e];a&&!0===JSON.parse(a)&&d.push("uwp"),t&&d.push(t),n&&d.push("-vcvars_ver="+n),l&&!0===JSON.parse(l)&&d.push("-vcvars_spectre_libs=spectre");const h=`"${r(f)}" ${d.join(" ")}`;i.debug("vcvars command-line: "+h);const y=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),v=y[0].split("\r\n"),w=y[1].split("\r\n"),E=y[2].split("\r\n"),g=w.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(g.length>0)throw Error("invalid parameters\r\n"+g.join("\r\n"));let _={};for(let r of v){const[e,t]=r.split("=");_[e]=t}i.startGroup("Environment variables");for(let r of E){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==_[e]&&(i.info("Setting "+e),o(e)&&(t=t.split(";").filter((function(e,t,n){return n.indexOf(e)===t})).join(";")),i.exportVariable(e,t))}i.endGroup(),i.info("Configured Developer Command Prompt")},Ky}(),Jy=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(Jy||{});const Qy="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),{GITHUB_ACTIONS:Zy}=Do,ev="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url)),tv=Al((async function(e,t,n){const[r,o]=await Promise.all([dr(e,t,n),mr()]);return await rv(n),r}),{promise:!0}),nv=Al((async function(e){if(mt())for(const r of["libtinfo5","libtinfo6"])try{await it([{name:r}])}catch(t){try{if("libtinfo5"===r){m(`Failed to install ${r}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${yh.includes(process.arch)?"amd64":wh.includes(process.arch)?"arm64":process.arch}.deb`,t="http://launchpadlibrarian.net/666971015/"+e,n=new Nd.DownloaderHelper(t,Ir(),{fileName:e});n.on("error",(async e=>{m(`Failed to download ${t}: ${e}`),await n.stop()})),await n.start(),x("dpkg",["-i",Dr(Ir(),e)])}}catch(n){m(`Failed to install ${r}. Ignoring`)}}else ht()?await Et("ncurses5-compat-libs",void 0,"yay"):dt()&&await wt([{name:"ncurses-compat-libs"}])}),{promise:!0}),rv=Al((async function(e){"linux"===process.platform&&await Qn(bn("gcc",void 0,await Ny()),"",e,40)}),{promise:!0}),{GITHUB_ACTIONS:ov}=Do,iv="string"==typeof __dirname?__dirname:$r.dirname(Io(import.meta.url));let sv,av=!1;const cv={llvm:lr,clang:lr,"clang++":lr},uv={gcc:Qn,"g++":Qn},lv={mingw:Wn},fv={msvc:yr,cl:yr,msbuild:yr,visualstudio:yr},pv={appleclang:sr,applellvm:sr,"apple-clang":sr,"apple-llvm":sr},dv={cmakelang:jn,"cmake-lint":jn,"cmake-format":jn,cmakelint:jn,cmakeformat:jn},hv=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],mv={nala:async function(e,t,n){if(!mt())return;if("string"==typeof sv)return{binDir:sv};const r=Ea.sync("nala",{nothrow:!0});if(null!==r)return sv=Ur(r),{binDir:sv};await it([{name:"python3-apt"}]),sv="/usr/bin";try{const t=await rt({name:"nala",version:e});if(void 0!==t)return await it([{name:t}]),{binDir:sv}}catch(o){m("Failed to install nala: "+o)}try{const e=await rt({name:"nala-legacy"});if(void 0!==e)return await it([{name:e}],!0),{binDir:sv}}catch(o){m("Failed to install nala-legacy: "+o)}return await async function(){const e=new Nd.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh",Ir(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=Dr(Ir(),"install-nala.sh"),n=await co(t,"utf8");await uo(t,n.replace(/sudo/g,"")),await it([{name:"wget"}]);try{x("bash",[t])}catch(o){p("Failed to install nala via installer: "+o),x("apt",["install","-y","-t","nala","nala"])}}(),{binDir:sv}},brew:ut,choco:yt,python:Rn,powershell:gr,pwsh:gr,...cv,...uv,...lv,...fv,...pv,...dv,cmake:En,ninja:nr,vcpkg:async function(e,t,n){return av&&null!==Ea.sync("vcpkg",{nothrow:!0})?{binDir:Ur(Ea.sync("vcpkg"))}:("linux"===process.platform&&(ht()?await Promise.all([Et("curl"),Et("zip"),Et("unzip"),Et("tar"),Et("git"),Et("pkg-config")]):dt()?await wt([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):mt()&&await it([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}])),await ae(Dr(t,Tt("bootstrap-vcpkg",".bat")))?h(`Vcpkg folder already exists at ${t}. Skipping the clone`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Ur(t),stdio:"inherit"}),""!==e&&"true"!==e&&(m("Checking out vcpkg version "+e),b("git",["checkout",e],{cwd:t,stdio:"inherit"})),b(Tt(Pt("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await D(t),await de(t,wv),av=!0,{binDir:t})},bazel:async function(e,t,n){switch(process.platform){case"win32":return vt("bazelisk",e);case"darwin":return pt("bazelisk",e);case"linux":if(ht())throw Error("installing bazel on Arch linux is not supported yet");if(dt())return await wt([{name:"dnf-plugins-core"}]),x("dnf",["copr","enable","vbatts/bazel"]),wt([{name:"bazel4"}]);if(mt())return x("bash",["-c",`echo "deb [arch=amd64 signed-by=${await st({fileName:"bazel-archive-keyring.gpg",keyUrl:"https://bazel.build/bazel-release.pub.gpg"})}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),it([{name:"bazel",version:e}],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},conan:function(e,t,n){return An("conan",e)},meson:function(e,t,n){return An("meson",e)},gcovr:function(e,t,n){return An("gcovr",e)},opencppcoverage:vr,OpenCppCoverage:vr,ccache:function(e,t,n){switch(process.platform){case"win32":return vt("ccache",e);case"darwin":return pt("ccache",e);case"linux":if(ht())return Et("ccache",e);if(dt())return wt([{name:"ccache",version:e}]);if(mt())return it([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},sccache:function(e,t,n){switch(process.platform){case"win32":return vt("sccache",e);case"linux":case"darwin":return pt("sccache",e);default:throw Error("Unsupported platform")}},doxygen:async function(e,t,n){switch(process.platform){case"win32":{await Bh((()=>vt("doxygen.install",e)),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>m(e)});const t={binDir:await async function(){if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await ae(Dr(e,"doxygen.exe")))return await de(e,wv),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await Fn(bn("graphviz",void 0)),t}case"darwin":{const e=await pt("doxygen",void 0,{formula:!0});return ky()[0]>11&&await Fn(bn("graphviz",void 0)),e}case"linux":{let o;if(""===e||ht()||dt())if(ht())o=await Et("doxygen",e);else{if(dt())return wt([{name:"doxygen",version:e}]);if(!mt())throw Error("Unsupported linux distributions");o=await it([{name:"doxygen",version:e}])}else{if(!mt())throw Error("Unsupported linux distributions");try{o=await vn("doxygen",e,Bn,t,n);try{await it([{name:"libclang-cpp9"}])}catch(r){m("Failed to download libclang-cpp9 that might be needed for running doxygen. "+r)}}catch(r){h(`Failed to download doxygen binary. ${r}. Falling back to apt-get.`),o=await it([{name:"doxygen"}])}}return await Fn(bn("graphviz",void 0,await Ny())),o}default:throw Error("Unsupported platform")}},graphviz:Fn,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await vt("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await de(e,wv),e}()};case"darwin":return pt("cppcheck",e);case"linux":if(ht())return Et("cppcheck",e);if(dt())return wt([{name:"ccache",version:e}]);if(mt())return it([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},cpplint:function(e,t,n){return An("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return An("flawfinder",e)},lizard:function(e,t,n){return An("lizard",e)},infer:function(e,t,n){return vn("infer",e,er,t,n)},"clang-tidy":pr,clangtidy:pr,"clang-format":fr,clangformat:fr,vcvarsall:ar,kcov:async function(e,t,n){if("linux"!==process.platform)return void m("Kcov is not supported on non-linux");const r=e.split("-");let o=function(e){return e.match(/^v/)?e:"v"+e}(r[0]);const i=r[1],s=function(e){return Number.parseInt(e.replace(/^v/,""),10)}(o);let a;return 38===s&&(o="v38"),"binary"!==i||39>s?(a=await vn("kcov",o,or,t,n),a):(a=await vn("kcov",o,rr,t,n),ht()?await Et("binutils"):dt()?await wt([{name:"binutils"}]):mt()&&await it([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return vt("make",e);case"darwin":{await pt("make",e);const t=Dr(ft(),"opt/make/libexec/gnubin");return await de(t,wv),{binDir:t}}case"linux":if(ht())return Et("make",e);if(dt())return wt([{name:"make",version:e}]);if(mt())return it([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task:function(e,t,n){return vn("task",e,_r,t,n)},sevenzip:ln,"7zip":ln,"7z":ln},yv=Object.keys(mv),vv=["compiler","architecture","timeout",...yv],wv={rcPath:ce("~/.cpprc"),guard:"cpp"};(async function(e){let t=Promise.resolve();$o.GITHUB_ACTIONS||(t=async function(){try{await nd({pkg:rd})}catch(e){d("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const n=function(e){return function(e,t){var n,r,o,i,s,a={_:[]},c=0,u=0,l=0,f=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,d=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=Xe(t.string),t.boolean=Xe(t.boolean),p)for(n in t.alias)for(r=t.alias[n]=Xe(t.alias[n]),c=0;r.length>c;c++)(t.alias[r[c]]=r.concat(n)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(u=(r=t.alias[t.boolean[c]]||[]).length;u-- >0;)t.boolean.push(r[u]);for(c=t.string.length;c-- >0;)for(u=(r=t.alias[t.string[c]]||[]).length;u-- >0;)t.string.push(r[u]);if(h)for(n in t.default)if(i=typeof t.default[n],r=t.alias[n]=t.alias[n]||[],void 0!==t[i])for(t[i].push(n),c=0;r.length>c;c++)t[i].push(r[c]);const m=d?Object.keys(t.alias):[];for(c=0;f>c;c++){if("--"===(o=e[c])){a._=a._.concat(e.slice(++c));break}for(u=0;o.length>u&&45===o.charCodeAt(u);u++);if(0===u)a._.push(o);else if("no-"===o.substring(u,u+3)){if(i=o.substring(u+3),d&&!~m.indexOf(i))return t.unknown(o);a[i]=!1}else{for(l=u+1;o.length>l&&61!==o.charCodeAt(l);l++);for(i=o.substring(u,l),s=o.substring(++l)||c+1===f||45===(""+e[c+1]).charCodeAt(0)||e[++c],r=2===u?[i]:i,l=0;r.length>l;l++){if(i=r[l],d&&!~m.indexOf(i))return t.unknown("-".repeat(u)+i);Ke(a,i,r.length>l+1||s,t)}}}if(h)for(n in t.default)void 0===a[n]&&(a[n]=t.default[n]);if(p)for(n in a)for(r=t.alias[n]||[];r.length>0;)a[r.shift()]=a[n];return a}(e,{string:[...vv,"timeout"],default:Object.fromEntries(vv.map((e=>[e,br(e)]))),alias:{h:"help"},boolean:"help"})}(e);n.help&&(m('\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\t the to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n--$tool_name\t pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n'),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --apple-clang, --vcvarsall"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},"analyzer/linter":{tools:"--clang-tidy, --clang-format, --cppcheck, --cpplint, --flawfinder, --lizard, --infer, , --cmakelang, --cmake-lint, --cmake-format"},cache:{tools:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));const r=n.architecture??process.arch,o=process.env.SETUP_CPP_DIR??ce("~"),i=[],s=[],a=hf.create({autoloadLocales:!0});let c,u;hf.addLocale(vf),of.addLocale(af);const l=await Ny(),f=void 0!==n.compiler?function(e){try{const t=e.split("-"),n=t[0];if(1 in t){const e=t[1];return null===Sy(e)&&m(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}}catch(t){return p(`Failed to parse the compiler info ${e}: ${t}`),{compiler:e,version:void 0}}}(n.compiler):void 0;if(!function(e,t,n){const r=void 0!==n&&t.includes(n.compiler),o=(r?t:t.filter((e=>"compiler"!==e))).filter((t=>void 0!==e[t])),i=o.filter((t=>!On(r&&"compiler"===t&&void 0!==n?n.version:e[t]))),s=0!==i.length?r&&"compiler"===i[0]&&void 0!==n?n.version??"true":e[i[0]]??"true":"true";if(i.some((t=>r&&"compiler"===t&&void 0!==n?e.compiler!==`${n.compiler}-${s}`:e[t]!==s)))return!1;for(const a of o)e[a]=r&&"compiler"===a&&void 0!==n?`${n.compiler}-${s}`:s;return!0}(n,[...hv,"compiler"],f))return p("The same version must be used for llvm, clang-format and clang-tidy"),1;ht()&&"string"==typeof n.cppcheck&&"string"==typeof n.gcovr&&(m("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await Et("python-pygments"));let h=!1;for(const p of yv){if($o.isCI&&0!==s.length){h=!0;break}const e=n[p];void 0!==e&&(c=Date.now(),await cr(p,e,l,r,o,i,s,60*Number.parseFloat(n.timeout??"20")*1e3),u=Date.now(),m("took "+(a.format(c,u)||"0 seconds")))}if(!h&&void 0!==f){const e=Date.now();await async function(e,t,n,r,o,i,s){let a;try{if(Cd.startGroup(`Installing ${e} ${t??""}`),e in cv)a=await lr(bn("llvm",t,n),Dr(r,"llvm"),o),await fe("GCOV","llvm-cov gcov",wv);else if(e in uv){const e=bn("gcc",t,n);a=await Qn(e,Dr(r,"gcc"),o),await Zn(e)}else if(e in lv){const e=bn("mingw",t,n);a=await Wn(e,Dr(r,"gcc"),o),await Zn(e)}else e in fv?a=await yr(bn("msvc",t,n),Dr(r,"msvc"),o):e in pv?await sr():(a=null,s.push("Unsupported compiler "+e))}catch(c){p(c),s.push(`Failed to install the ${e} ${t}`)}null!==a&&i.push(Sr(e,a)),Cd.endGroup()}(f.compiler,f.version,l,o,r,i,s);const t=Date.now();m("took "+(a.format(e,t)||"0 seconds"))}if(await async function(e){if(await ae(e.rcPath)){const t=(await Dl(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await kl(e.rcPath,n.join("\n")),await D(e.rcPath)}}(wv),0===i.length&&0===s.length)return d("setup-cpp was called without any arguments. Nothing to do."),0;for(const p of i)console.log(`${p}`);for(const d of s)p(d);if(m("setup-cpp finished"),!$o.GITHUB_ACTIONS)switch(process.platform){case"win32":d("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":d("Run `source ~/.cpprc` or restart your shell to update the environment.")}return await t,0===s.length?0:1})(process.argv).then((e=>{process.exitCode=e})).catch((e=>{p("main() panicked!"),p(e),process.exitCode=1}));export{vi as H,Cd as a,Do as b,xo as c,gy as e,e as g,m as i,ae as p,Be as r,Fh as t,d as w}; //# sourceMappingURL=setup-cpp.mjs.map diff --git a/package-version.json b/package-version.json index 36609375..257085a2 100644 --- a/package-version.json +++ b/package-version.json @@ -1,4 +1,4 @@ { "name": "setup-cpp", - "version": "0.46.0" + "version": "0.46.1" } diff --git a/package.json b/package.json index d3e1ab96..7a6894f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-cpp", - "version": "0.46.0", + "version": "0.46.1", "description": "Install all the tools required for building and testing C++/C projects.", "repository": "https://github.com/aminya/setup-cpp", "license": "Apache-2.0",