diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2736576f..1d03fae7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -224,12 +224,12 @@ jobs: os: - ubuntu-24.04 container: - - { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.45.0" } - - { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.45.0" } - - { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.45.0" } - - { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.45.0" } - # - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.45.0" } - # - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.45.0" } + - { 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" } steps: - uses: actions/checkout@v4 with: diff --git a/README.md b/README.md index 4bbda9d6..4189074d 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.45.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.0), 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.45.0/setup-cpp-x64-windows.exe" +curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.0/setup-cpp-x64-windows.exe" # linux x64 -curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.45.0/setup-cpp-x64-linux" +curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.0/setup-cpp-x64-linux" chmod +x ./setup-cpp # macos arm64 -curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.45.0/setup-cpp-arm64-macos" +curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.0/setup-cpp-arm64-macos" chmod +x ./setup-cpp # macos x64 -curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.45.0/setup-cpp-x64-macos" +curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.46.0/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.45.0 AS builder +FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.46.0 AS builder ``` ```dockerfile -FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.45.0 AS builder +FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.46.0 AS builder ``` ```dockerfile -FROM aminya/setup-cpp-fedora-llvm:40-0.45.0 AS builder +FROM aminya/setup-cpp-fedora-llvm:40-0.46.0 AS builder ``` ```dockerfile -FROM aminya/setup-cpp-arch-llvm:base-0.45.0 AS builder +FROM aminya/setup-cpp-arch-llvm:base-0.46.0 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.45.0 && \ + npm install -g setup-cpp@v0.46.0 && \ # 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.45.0 + npm install -g setup-cpp@v0.46.0 # 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 addaeded..f6d09edc 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.45.0 && \ + npm install -g setup-cpp@v0.46.0 && \ # 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 9ca82de7..4a6087cf 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.45.0 && \ + npm install -g setup-cpp@v0.46.0 && \ # 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 1699e922..5dd036fc 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.45.0 && \ + npm install -g setup-cpp@v0.46.0 && \ # 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 0f8754f2..2fffe556 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.45.0 && \ + npm install -g setup-cpp@v0.46.0 && \ # 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 61b8c41b..99bdc631 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.45.0 && \ + npm install -g setup-cpp@v0.46.0 && \ # 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 135426b3..35119c96 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.45.0 && \ + npm install -g setup-cpp@v0.46.0 && \ # 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 c3a62290..19684d4a 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.45.0 && \ + npm install -g setup-cpp@v0.46.0 && \ # install the compiler and tools setup-cpp \ --nala true \ diff --git a/dist/legacy/setup-cpp.js b/dist/legacy/setup-cpp.js index 059cfb8c..a574df11 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 br||(br=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.toCommandProperties=Sr.toCommandValue=void 0,Sr.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Sr.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}:{}}),Sr}function o(){return Cr>Pr.length-16&&(Yn.randomFillSync(Pr),Cr=0),Pr.slice(Cr,Cr+=16)}function i(e){return"string"==typeof e&&xr.test(e)}function s(e,t=0){const n=(Ar[e[t+0]]+Ar[e[t+1]]+Ar[e[t+2]]+Ar[e[t+3]]+"-"+Ar[e[t+4]]+Ar[e[t+5]]+"-"+Ar[e[t+6]]+Ar[e[t+7]]+"-"+Ar[e[t+8]]+Ar[e[t+9]]+"-"+Ar[e[t+10]]+Ar[e[t+11]]+Ar[e[t+12]]+Ar[e[t+13]]+Ar[e[t+14]]+Ar[e[t+15]]).toLowerCase();if(!i(n))throw TypeError("Stringified UUID is invalid");return n}function a(e){if(!i(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,o,i){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,o){i=i||0;for(let e=0;16>e;++e)o[i+e]=c[e];return o}return s(c)}try{r.name=e}catch(o){}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 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 Br(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new Br("http://"+n)}}function l(){if(so)return fo;so=1;var e=fo.__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(fo,"__esModule",{value:!0}),fo.PersonalAccessTokenCredentialHandler=fo.BearerCredentialHandler=fo.BasicCredentialHandler=void 0,fo.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")}))}},fo.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")}))}},fo.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")}))}},fo}function f(){return co||(co=1,function(e){var t=po.__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=Xn,r=Kn,{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}(po)),po}function p(){return lo||(lo=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 o(e){d.issue("group",e)}function i(){d.issue("endgroup")}var s=Rr.__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=Rr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=Rr.__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=Rr.__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(Or)return Ir;Or=1;var t=Ir.__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=Ir.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Ir.__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};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.issue=Ir.issueCommand=void 0;const i=o(Xn),s=r();Ir.issueCommand=e,Ir.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 Ir}(),h=function(){if(Mr)return Tr;Mr=1;var e=Tr.__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=Tr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Tr.__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(Tr,"__esModule",{value:!0}),Tr.prepareKeyValueMessage=Tr.issueFileCommand=void 0;const o=n(Kn),i=n(Xn),s=jr,a=r();return Tr.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"})},Tr.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}`},Tr}(),m=r(),v=c(Xn),y=c(Qn),_=function(){if(ao)return Fr;ao=1;var e=Fr.__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(Fr,"__esModule",{value:!0}),Fr.OidcClient=void 0;const t=io,r=l(),o=p();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)}`),o.debug("ID token url is "+e);const n=yield i.getCall(e);return o.setSecret(n),n}catch(n){throw Error("Error message: "+n.message)}}))}}return Fr.OidcClient=i,Fr}();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}${y.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(v.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+v.EOL)},e.startGroup=o,e.endGroup=i,e.group=function(e,t){return u(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 u(this,void 0,void 0,(function*(){return yield _.OidcClient.getIDToken(e)}))};var w=f();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return w.summary}});var b=f();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var O=function(){if(uo)return ho;uo=1;var e=ho.__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=ho.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=ho.__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(ho,"__esModule",{value:!0}),ho.toPlatformPath=ho.toWin32Path=ho.toPosixPath=void 0;const r=n(Qn);return ho.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},ho.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},ho.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},ho}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return O.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return O.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return O.toPlatformPath}})}(Rr)),Rr}function d(e){return go?mo.error(e):console.log(`${e}`)}function h(e){return go?mo.warning(e):console.log(`${e}`)}function m(e){return go?mo.notice(e):console.log(`${e}`)}function v(e){return go?mo.info(e):console.log(e)}function y(){if(Po)return To;Po=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=Qn,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 So||(So=1,t="win32"===process.platform||vr.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(bo)return wo;bo=1,wo=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Kn;return wo}():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(Ro)return Oo;Ro=1,Oo=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Kn;return Oo}(),Io=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}}),Io;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 To=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)},To}function _(){if(Fo)return Mo;Fo=1;const e=Qn,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(Ao)return xo;Ao=1;const t=Qn,n=y(),r=function(){if(Co)return qo.exports;Co=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 qo.exports=e,qo.exports.default=e,qo.exports}();return xo=function(t){return e(t)||e(t,!0)}}(),n=function(){if(Lo)return zo;Lo=1;const e=/([()\][%!^"`<>&|;, *?])/g;return zo.command=function(t){return t.replace(e,"^$1")},zo.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},zo}(),r=function(){if(jo)return ko;jo=1;const e=Kn,t=function(){if(Uo)return Do;Uo=1;const e=$o?No:($o=1,No=/^#!(.*)/);return Do=(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 ko=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 Mo=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 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 w(e){return g(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function b(e,t,n){const r=Xi(e,t,n),o=Bi(e,t),i=Gi(e,t);let s;Wi(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=ir.spawn(r.file,r.args,r.options)}catch(f){const e=new ir.ChildProcess,t=Promise.reject(li({error:f,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return ki(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=vi((()=>{e.kill()}));return r.finally((()=>{o()}))})(s,r.options,c);s.kill=yi.bind(null,s.kill.bind(s)),s.cancel=bi.bind(null,s,{isCanceled:!1});const l=ti((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=$i(t,{encoding:o,buffer:i,maxBuffer:s}),u=$i(n,{encoding:o,buffer:i,maxBuffer:s}),l=$i(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},Ni(t,c),Ni(n,u),Ni(r,l)])}})(s,r.options,u),p=Ki(r.options,c),d=Ki(r.options,l),h=Ki(r.options,f);if(e||0!==t||null!==n){const c=li({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:(Li(e),Kn.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=Ai();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=Oi.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=Oi.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=Oi.bind(void 0,e,"all"))})(s),ki(s,l),s}function O(e,t,n){const r=Xi(e,t,n),o=Bi(e,t),i=Gi(e,t);Wi(i,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(Li(e),Kn.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=ir.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw li({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=Ki(r.options,a.stdout,a.error),u=Ki(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=li({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 R(){return Ps||(Ps=1,function(e){var t=Yi.__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=Yi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Yi.__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=Yi.__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(Is)return Qi;Is=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.sync=Qi.isexe=void 0;const e=Kn,t=Rs;Qi.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}},Qi.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)=>{var n,r,o,i,s,a,c,u;const l=null!=(r=t.uid)?r:null==(n=process.getuid)?void 0:n.call(process),f=null!=(s=null!=(i=t.groups)?i:null==(o=process.getgroups)?void 0:o.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,v=e.gid,y=parseInt("100",8),_=parseInt("010",8),E=y|_;return!!(h&parseInt("001",8)||h&_&&d.has(v)||h&y&&m===l||h&E&&0===l)};return Qi}());e.posix=i;const s=r(function(){if(Ss)return As;Ss=1,Object.defineProperty(As,"__esModule",{value:!0}),As.sync=As.isexe=void 0;const e=Kn,t=Rs;As.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}},As.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 As}());e.win32=s,o((Ts||(Ts=1,Object.defineProperty(Ls,"__esModule",{value:!0})),Ls),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:i;e.isexe=a.isexe,e.sync=a.sync}(Yi)),Yi}function I(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return b(function(){if(void 0===$s){const e=Ns.sync("pwsh",{nothrow:!0});null!==e&&($s=e);const t=Ns.sync("powershell",{nothrow:!0});null!==t&&($s=t)}if(void 0===$s)throw Error("Could not find powershell");return $s}(),[...t,"-c",e],n)}function S(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function T(){return null!==Ns.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 A(e,t=[],n=ks){return C()?function(e,t){const[n,...r]=Vi(e);return O(n,r,t)}(N(e,t),n):O(e,$(t),n)}function L(e,t=[],n=ks){return C()?function(e,t){const[n,...r]=Vi(e);return b(n,r,t)}(N(e,t),n):b(e,$(t),n)}function N(e,t){return"sudo "+$([e,...t]).join(" ")}function $(e){return e.map((e=>`'${e}'`))}function D(){return"win32"===process.platform?js():P()}async function U(e){if(("linux"===process.platform||"darwin"===process.platform)&&C()&&void 0!==process.env.SUDO_USER){let t=Kn.statSync(e).isDirectory();await L("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],ks)}}function k(){if(Hs)return Gs;Hs=1;var e=(Bs?Fs:(Bs=1,Fs=function(){}))();return Gs=function(t){return t!==e&&null!==t}}function j(){if(qs)return Vs;qs=1;var e=k(),t=[].forEach,n=Object.create;return Vs=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},Vs}function M(){if(ta)return ea;ta=1;var e=function(){if(Zs)return Js;Zs=1;var e=Qs?Ys:(Qs=1,Ys=(Ws?zs:(Ws=1,zs=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:Ks?Xs:(Ks=1,Xs=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return Js=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return ea=function(n){return t(0,e(n))}}function F(){if(ra)return na;ra=1;var e=M();return na=function(t,n,r){var o;return isNaN(t)?0>(o=n)?1:r&&o?o-1:o:!1!==t&&e(t)}}function B(){return ia?oa:(ia=1,oa=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function G(){if(aa)return sa;aa=1;var e=k();return sa=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function H(){return fa||(fa=1,la=function(){if(ua)return ca;ua=1;var e=B(),t=G(),n=function(){}.bind,r=function(){}.call,o=Object.keys,i={}.propertyIsEnumerable;return ca=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}))}},ca}()("forEach")),la}function V(){return pa||(pa=1),$u}function q(){return Ra||(Ra=1,Oa=(ha?da:(ha=1,da=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(ba)return wa;ba=1;var e=ga?Ea:(ga=1,Ea=(va?ma:(va=1,ma=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(_a)return ya;_a=1;var e=k(),t=Object.keys;return ya=function(n){return t(e(n)?Object(n):n)}}()),t=G(),n=Math.max;return wa=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},wa}()),Oa}function z(){if(Ca)return Pa;Ca=1;var e=G(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;return Pa=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 W(){if(xa)return Uu.exports;xa=1;var e,t,n=M();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); };")}}(),Uu.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},Uu.exports}function X(){return La?Aa:(La=1,Aa=function(e){return null!=e})}function K(){if(Fa)return Ma;Fa=1;var e=function(){if(ja)return ka;ja=1;var e=function(){if(Ua)return Da;Ua=1;var e=function(){if($a)return Na;$a=1;var e=X(),t={object:!0,function:!0,undefined:!0};return Na=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return Da=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return ka=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 Ma=function(r){return!!e(r)&&!t.test(n.call(r))}}function Y(){if(Wa)return ku.exports;Wa=1;var e=X(),t=K(),n=q(),r=j(),o=(za||(za=1,qa=function(){if(Ga)return Ba;Ga=1;var e="razdwatrzy";return Ba=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(Va)return Ha;Va=1;var e="".indexOf;return Ha=function(t){return e.call(this,t,arguments[1])>-1},Ha}()),qa),i=ku.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},ku.exports}function Q(){return nc?tc:(nc=1,tc=(Ja?Qa:(Ja=1,Qa=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(ec)return Za;ec=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 Za=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(cc)return ac;cc=1;var e=sc?ic:(sc=1,ic=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return ac=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function Z(){return _c?yc:(_c=1,yc=function(){if(oc)return rc;oc=1;var e=Q(),t={object:!0,symbol:!0};return rc=function(){var n=e.Symbol;return"function"==typeof n&&(n("test symbol"),!!t[typeof n.iterator]&&!!t[typeof n.toPrimitive]&&!!t[typeof n.toStringTag])}}()()?Q().Symbol:function(){if(vc)return mc;vc=1;var e,t,n,r=Y(),o=J(),i=Q().Symbol,s=function(){if(lc)return uc;lc=1;var e=Y(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return uc=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(pc)return fc;pc=1;var e=Y(),t=Q().Symbol;return fc=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(hc)return dc;hc=1;var e=Y(),t=J(),n=Object.create(null);return dc=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)},mc=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])),mc}())}function ee(){return Pc?Tc:(Pc=1,Tc=(Ya?Ka:(Ya=1,Ka=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(Sc)return Ic;Sc=1;var e=Z().iterator,t=function(){if(gc)return Ec;gc=1;var e={}.toString,t=e.call(function(){return arguments}());return Ec=function(n){return e.call(n)===t}}(),n=function(){if(bc)return wc;bc=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return wc=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=M(),o=B(),i=G(),s=k(),a=function(){if(Rc)return Oc;Rc=1;var e={}.toString,t=e.call("");return Oc=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 Ic=function(p){var d,h,m,v,y,_,E,g,w,b,O=arguments[1],R=arguments[2];if(p=Object(i(p)),s(O)&&o(O),this&&this!==Array&&n(this))d=this;else{if(!O){if(t(p))return 1!==(y=p.length)?Array.apply(null,p):((v=[,])[0]=p[0],v);if(c(p)){for(v=Array(y=p.length),h=0;y>h;++h)v[h]=p[h];return v}}v=[]}if(!c(p))if(void 0!==(w=p[e])){for(E=o(w).call(p),d&&(v=new d),g=E.next(),h=0;!g.done;)b=O?u.call(O,R,g.value,h):g.value,d?(l.value=b,f(v,h,l)):v[h]=b,g=E.next(),++h;y=h}else if(a(p)){for(y=p.length,d&&(v=new d),h=0,m=0;y>h;++h)b=p[h],y>h+1&&(55296>(_=b.charCodeAt(0))||_>56319||(b+=p[++h])),b=O?u.call(O,R,b,m):b,d?(l.value=b,f(v,m,l)):v[m]=b,++m;y=m}if(void 0===y)for(y=r(p.length),d&&(v=new d(y)),h=0;y>h;++h)b=O?u.call(O,R,p[h],h):p[h],d?(l.value=b,f(v,h,l)):v[h]=b;return d&&(l.value=null,v.length=y),v},Ic}())}function te(){if(Uc)return Dc;Uc=1;var e,t,n,r,o,i=(Ta||(Ta=1,e=Du,t=q(),n=function(){if(Sa)return Ia;Sa=1;var e=k(),t={function:!0,object:!0};return Ia=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}),Du.exports),s=W(),a=Y(),c=function(){return Xa||(Xa=1,e=ju,ju.exports,u=Y(),l=B(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,v={}.hasOwnProperty,y={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(v.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),v.call(this,"__ee__")?n=this.__ee__:(n=y.value=d(null),h(this,"__ee__",y),y.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),!v.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),ju.exports;var e,t,n,r,o,i,s,a,c,u,l,f,p,d,h,m,v,y}().methods,u=function(){if(Lc)return Ac;Lc=1;var e,t=function(){if(xc)return Cc;xc=1;var e=ee(),t=Array.isArray;return Cc=function(n){return t(n)?n:e(n)}}(),n=k(),r=B(),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))},Ac=function(o){return(o=t(o)).forEach((function(e){n(e)&&r(e)})),e.bind(o)}}(),l=function(){if($c)return Nc;$c=1;var e=B();return Nc=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,v=c.emit;return Dc=function(e,t,n){var r,o,c,y,_,E,g,w,b,O,R,I,S,T,P,C=d(null);return o=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(O=l(n.normalizer),c=O.get,y=O.set,_=O.delete,E=O.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 R&&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=y(s)}else if(hasOwnProperty.call(C,n))throw i("Circular invocation","CIRCULAR_INVOCATION");return C[n]=o,I&&r.emit("set",n,null,o),o}),o):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return R&&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,I&&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 R&&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,I&&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)&&(_&&_(e),t=C[e],delete C[e],S&&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?R=!0:"set"===e?I=!0:"delete"===e&&(S=!0),m.call(this,e,t)},emit:v,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)},w=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(w),_has:a(b)}),r},Dc}function ne(){if(Yc)return Kc;Yc=1;var e=Xc?Wc:(Xc=1,Wc=(Vc?Hc:(Vc=1,Hc=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:zc?qc:(zc=1,qc=function(e){return e!=e})),t=M(),n=G(),r=[].indexOf,o={}.hasOwnProperty,i=Math.abs,s=Math.floor;return Kc=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},Kc}function re(){if(ou)return ru;ou=1;var e=B(),t=H(),n=function(){}.call;return ru=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},ru}function oe(){if(su)return iu;su=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 iu=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 ie(){return fu?lu:(fu=1,lu=function(e){return"function"==typeof e})}function se(){function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return gu||(gu=1,Bu.exports=e,Bu.exports.default=e),Bu.exports}function ae(){if(wu)return Fu;wu=1;var e=re(),t=function(){if(uu)return cu;uu=1;var e=[].forEach,t=Object.create;return cu=function(n){var r=t(null);return e.call(arguments,(function(e){r[e]=!0})),r},cu}(),n=function(){if(mu)return hu;mu=1;var e=G(),t=function(){if(du)return pu;du=1;var e=ie();return pu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return hu=function(n){return t(e(n))}}(),r=function(){if(Eu)return _u;Eu=1;var e=function(){if(yu)return vu;yu=1;var e=ie();return vu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return""}}}();return _u=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=se(),i=oe(),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]})))}))},Fu}async function ce(e){try{return await Kn.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?Qn.join("/Users/",process.env.SUDO_USER):Qn.join("/home/",process.env.SUDO_USER);{const e=Xn.homedir();if(""===e)return;return e}}();return void 0===t?e:e.replace(Wu,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 Ku(e.rcPath,"utf8")).includes(t)||(await Xu(e.rcPath,`\n${t}\n`),v(`Added ${t} to ${e.rcPath}`)))}async function fe(e,t){await ce(t)&&((await Ku(t,"utf-8")).includes(e)||(await Xu(t,e),v(`${e} was added to ${t}`)))}async function pe(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:Qu,...n},o=function(e,t=!1){const n=t?tl(e):e;return cl(n,'"',"\\")}(null!=t?t:"",r.escapeSpace);try{if(ul)try{if(!r.overwrite&&void 0!==process.env[e])return void v(`Environment variable ${e} is already defined. Skipping.`);mo.exportVariable(e,o)}catch(i){d(i),await de(e,o,r)}else await de(e,o,r)}catch(i){d(`${i}\nFailed to export environment variable ${e}=${o}. 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 I(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void v(`${e}='${r}' was set in the environment.`)):void v(`Environment variable ${e} is already defined. Skipping.`);case"linux":case"darwin":return await Ju(n),void(n.overwrite?(await ll(n.rcPath,`\nexport ${e}="${r}"\n`),v(`${e}="${r}" was added to "${n.rcPath}`)):(await ll(n.rcPath,`\nif [ -z "\${${e}}" ]; then export ${e}="${r}"; fi\n`),v(`if not defined ${e} then ${e}="${r}" was added to "${n.rcPath}`)))}process.env[e]=r}async function he(e,t={}){const n={rcPath:Qu,...t};if(!function(e){var t,n;return!!dl.some((t=>t.test(e)))&&(null!=(n=null==(t=process.env.PATH)?void 0:t.split(Qn.delimiter))?n:[]).includes(e)}(e)){process.env.PATH=`${e}${Qn.delimiter}${process.env.PATH}`;try{if(fl)try{mo.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 I(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void v(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await Ju(t),await pl(t.rcPath,`\nexport PATH="${e}:$PATH"\n`),void v(`"${e}" was added to "${t.rcPath}"`);default:return}}function ve(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 hl||(hl=1,e=yl,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{ve(__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}}()),yl.exports;var e}function _e(){return vl?ml:(vl=1,ml=ye())}function Ee(){return Ll?Al:(Ll=1,Al={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($l)return Nl;$l=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 Nl=e}function we(){return Dl||(Dl=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Ee(),i=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",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*$")}(mp,mp.exports)),mp.exports}function be(){if(kl)return Ul;kl=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Ul=n=>n?"object"!=typeof n?e:n:t}function Oe(){if(Ml)return jl;Ml=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 jl={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function Re(){if(Bl)return Fl;Bl=1;const e=ge(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Ee(),{safeRe:r,t:o}=we(),i=be(),{compareIdentifiers:s}=Oe();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 Fl=a}function Ie(){if(Hl)return Gl;Hl=1;const e=Re();return Gl=(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 Se(){if(ql)return Vl;ql=1;const e=Ie();return Vl=(t,n)=>{const r=e(t,n);return r?r.version:null}}function Te(){if(Zl)return Jl;Zl=1;const e=Re();return Jl=(t,n)=>new e(t,n).major}function Pe(){if(cf)return af;cf=1;const e=Re();return af=(t,n,r)=>new e(t,r).compare(new e(n,r))}function Ce(){if(hf)return df;hf=1;const e=Re();return df=(t,n,r)=>{const o=new e(t,r),i=new e(n,r);return o.compare(i)||o.compareBuild(i)}}function xe(){if(gf)return Ef;gf=1;const e=Pe();return Ef=(t,n,r)=>e(t,n,r)>0}function Ae(){if(bf)return wf;bf=1;const e=Pe();return wf=(t,n,r)=>0>e(t,n,r)}function Le(){if(Rf)return Of;Rf=1;const e=Pe();return Of=(t,n,r)=>0===e(t,n,r)}function Ne(){if(Sf)return If;Sf=1;const e=Pe();return If=(t,n,r)=>0!==e(t,n,r)}function $e(){if(Pf)return Tf;Pf=1;const e=Pe();return Tf=(t,n,r)=>e(t,n,r)>=0}function De(){if(xf)return Cf;xf=1;const e=Pe();return Cf=(t,n,r)=>0>=e(t,n,r)}function Ue(){if(Lf)return Af;Lf=1;const e=Le(),t=Ne(),n=xe(),r=$e(),o=Ae(),i=De();return Af=(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($f)return Nf;$f=1;const e=Re(),t=Ie(),{safeRe:n,t:r}=we();return Nf=(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 je(){if(jf)return kf;jf=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=>y(e,this.options))).join(" ").split(/\s+/).map((e=>S(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 v=new Map,_=m.map((e=>new o(e,this.options)));for(const n of _){if(h(n))return[n];v.set(n.value,n)}v.size>1&&v.has("")&&v.delete("");const E=[...v.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=>v(t,n)&&e.set.some((e=>v(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}}kf=t;const n=new(Uf?Df:(Uf=1,Df=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(),o=Me(),i=ge(),s=Re(),{safeRe:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:f}=we(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:d}=Ee(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(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},y=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=E(e,t),i("tildes",e),e=O(e,t),i("xrange",e),e=I(e,t),i("stars",e),e),_=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),_(n)?a="":_(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:_(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})),w=(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),_(r)?c="":_(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(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}))},O=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>R(e,t))).join(" ")),R=(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=_(o),l=u||_(s),f=l||_(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})),I=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),S=(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=_(r)?"":_(o)?`>=${r}.0.0${e?"-0":""}`:_(i)?`>=${r}.${o}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=_(u)?"":_(l)?`<${+u+1}.0.0-0`:_(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 kf}function Me(){if(Ff)return Mf;Ff=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(">")))}}Mf=t;const n=be(),{safeRe:r,t:o}=we(),i=Ue(),s=ge(),a=Re(),c=je();return Mf}function Fe(){if(Gf)return Bf;Gf=1;const e=je();return Bf=(t,n,r)=>{try{n=new e(n,r)}catch(o){return!1}return n.test(t)}}function Be(){if(ep)return Zf;ep=1;const e=Re(),t=Me(),{ANY:n}=t,r=je(),o=Fe(),i=xe(),s=Ae(),a=De(),c=$e();return Zf=(u,l,f,p)=>{let d,h,m,v,y;switch(u=new e(u,p),l=new r(l,p),f){case">":d=i,h=a,m=s,v=">",y=">=";break;case"<":d=s,h=c,m=i,v="<",y="<=";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===v||r.operator===y)return!1;if((!o.operator||o.operator===v)&&h(u,o.semver))return!1;if(o.operator===y&&m(u,o.semver))return!1}return!0}}function Ge(){if(pp)return fp;pp=1;const e=we(),t=Ee(),n=Re(),r=Oe(),o=Ie(),i=Se(),s=function(){if(Wl)return zl;Wl=1;const e=Ie();return zl=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),a=function(){if(Kl)return Xl;Kl=1;const e=Re();return Xl=(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(Ql)return Yl;Ql=1;const e=Ie();return Yl=(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=Te(),l=function(){if(tf)return ef;tf=1;const e=Re();return ef=(t,n)=>new e(t,n).minor}(),f=function(){if(rf)return nf;rf=1;const e=Re();return nf=(t,n)=>new e(t,n).patch}(),p=function(){if(sf)return of;sf=1;const e=Ie();return of=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),d=Pe(),h=function(){if(lf)return uf;lf=1;const e=Pe();return uf=(t,n,r)=>e(n,t,r)}(),m=function(){if(pf)return ff;pf=1;const e=Pe();return ff=(t,n)=>e(t,n,!0)}(),v=Ce(),y=function(){if(vf)return mf;vf=1;const e=Ce();return mf=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),_=function(){if(_f)return yf;_f=1;const e=Ce();return yf=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),E=xe(),g=Ae(),w=Le(),b=Ne(),O=$e(),R=De(),I=Ue(),S=ke(),T=Me(),P=je(),C=Fe(),x=function(){if(Vf)return Hf;Vf=1;const e=je();return Hf=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),A=function(){if(zf)return qf;zf=1;const e=Re(),t=je();return qf=(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(Xf)return Wf;Xf=1;const e=Re(),t=je();return Wf=(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}}(),N=function(){if(Yf)return Kf;Yf=1;const e=Re(),t=je(),n=xe();return Kf=(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(Jf)return Qf;Jf=1;const e=je();return Qf=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),D=Be(),U=function(){if(np)return tp;np=1;const e=Be();return tp=(t,n,r)=>e(t,n,">",r)}(),k=function(){if(op)return rp;op=1;const e=Be();return rp=(t,n,r)=>e(t,n,"<",r)}(),j=function(){if(sp)return ip;sp=1;const e=je();return ip=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),M=function(){if(cp)return ap;cp=1;const e=Fe(),t=Pe();return ap=(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}}(),F=function(){if(lp)return up;lp=1;const e=je(),t=Me(),{ANY:n}=t,r=Fe(),o=Pe(),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,v,y;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 _=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,E=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;_&&1===_.prerelease.length&&"<"===p.operator&&0===_.prerelease[0]&&(_=!1);for(const n of t){if(y=y||">"===n.operator||">="===n.operator,v=v||"<"===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(_&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===_.major&&n.semver.minor===_.minor&&n.semver.patch===_.patch&&(_=!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&&v&&!p&&0!==d||p&&y&&!f&&0!==d||E||_)},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 up=(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 fp={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:v,sort:y,rsort:_,gt:E,lt:g,eq:w,neq:b,gte:O,lte:R,cmp:I,coerce:S,Comparator:T,Range:P,satisfies:C,toComparators:x,maxSatisfying:A,minSatisfying:L,minVersion:N,validRange:$,outside:D,gtr:U,ltr:k,intersects:j,simplifyRange:M,subset:F,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 He(){return _p||(_p=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.toCommandProperties=Np.toCommandValue=void 0,Np.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Np.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}:{}}),Np}function Ve(){return bp||(bp=1,function(e){var t=Up.__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=Xn,r=Kn,{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}(Up)),Up}function qe(){return Rp||(Rp=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=Gp.__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=Gp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Gp.__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=Gp.__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(Kn),c=i(Qn);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"}}(Gp)),Gp}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 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(Ip)return Bp;Ip=1;var i=Bp.__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=Bp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Bp.__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=Bp.__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(Bp,"__esModule",{value:!0}),Bp.findInPath=Bp.which=Bp.mkdirP=Bp.rmRF=Bp.mv=Bp.cp=void 0;const u=sr,l=a(Qn),f=a(qe());return Bp.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)}}))},Bp.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)}))},Bp.rmRF=e,Bp.mkdirP=t,Bp.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]:""}))},Bp.findInPath=n,Bp}function We(){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(Tp)return Mp;Tp=1;var t=Mp.__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=Mp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Mp.__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=Mp.__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(Mp,"__esModule",{value:!0}),Mp.getExecOutput=Mp.exec=void 0;const i=ur,s=r(function(){if(Sp)return Fp;Sp=1;var e=Fp.__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=Fp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Fp.__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=Fp.__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(Fp,"__esModule",{value:!0}),Fp.argStringToArray=Fp.ToolRunner=void 0;const o=n(Xn),i=n(tr),s=n(ir),a=n(Qn),c=n(ze()),u=n(qe()),l=lr,f="win32"===process.platform;Fp.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)}}))))}))}},Fp.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 Fp}());return Mp.exec=e,Mp.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}}))},Mp}function Xe(){return Cp||(Cp=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 o(){(0,u.issue)("endgroup")}var i=Ap.__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=Ap.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Ap.__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=Ap.__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 u=function(){function e(e,t,n){const r=new s(e,t,n);process.stdout.write(""+r+o.EOL)}if(Ep)return Lp;Ep=1;var t=Lp.__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=Lp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Lp.__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(Lp,"__esModule",{value:!0}),Lp.issue=Lp.issueCommand=void 0;const o=r(Xn),i=He();Lp.issueCommand=e,Lp.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 Lp}(),f=function(){if(gp)return $p;gp=1;var e=$p.__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=$p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=$p.__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($p,"__esModule",{value:!0}),$p.prepareKeyValueMessage=$p.issueFileCommand=void 0;const r=n(Yn),o=n(Kn),i=n(Xn),s=He();return $p.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"})},$p.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}`},$p}(),p=He(),d=a(Xn),h=a(Qn),m=function(){if(wp)return Dp;wp=1;var e=Dp.__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(Dp,"__esModule",{value:!0}),Dp.OidcClient=void 0;const t=io,r=l(),o=Xe();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 Dp.OidcClient=i,Dp}();var v,y;(y=v||(e.ExitCode=v={}))[y.Success=0]="Success",y[y.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=v.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=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,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 _=Ve();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return _.summary}});var E=Ve();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return E.markdownSummary}});var g=function(){if(Op)return kp;Op=1;var e=kp.__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=kp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=kp.__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(kp,"__esModule",{value:!0}),kp.toPlatformPath=kp.toWin32Path=kp.toPosixPath=void 0;const r=n(Qn);return kp.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},kp.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},kp.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},kp}();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((Pp||(Pp=1,function(e){var t=jp.__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=jp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=jp.__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=jp.__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=jp.__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(Xn),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 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})}))}}(jp)),jp))}(Ap)),Ap}function Ke(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ye(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 Qe(e,t,n,r=40){zp?await async function(e,t,n=40){await L("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await Ju(n),await Wp(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 Ze(){return null!==Ns.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: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 rt(e,t=et()){return(await Promise.all(e.map((e=>ot(e,t))))).filter((e=>void 0!==e))}async function ot(e,t=et()){const n=await async function(e,t,n){switch(await it(e,t,n)){case Qp.NameDashVersion:return`${t}-${n}`;case Qp.NameEqualsVersion:return`${t}=${n}`;case Qp.Name:return void 0!==n&&""!==n&&h(`Could not find package ${t} with version ${n}. Installing the latest version.`),t;default:throw Error(`Could not find package ${t} ${null!=n?n:""}`)}}(t,e.name,e.version);return await nt(n)?void 0:n}async function it(e,t,n){if(void 0!==n&&""!==n){const{stdout:r}=await b("apt-cache",["search","--names-only",`^${tt(t)}-${tt(n)}$`],{env:Je(e),stdio:"pipe"});if(""!==r.trim())return Qp.NameDashVersion;try{const{stdout:r}=await b("apt-cache",["show",`${t}=${n}`],{env:Je(e)});if(""===r.trim())return Qp.NameEqualsVersion}catch{}}try{const{stdout:n}=await b("apt-cache",["show",t],{env:Je(e),stdio:"pipe"});if(""!==n.trim())return Qp.Name}catch{}return Kp?Qp.None:(Yp(e),it(e,t,n))}async function st(e,t=!1){try{const r=et();for(const{name:t,version:n}of e)v(`Installing ${t} ${null!=n?n:""} via ${r}`);t&&Yp(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 Zp(t),await async function(e){await nt("software-properties-common")||A(e,["install","-y","--fix-broken","-o",Xp,"software-properties-common"],{...ks,env:Je(e)})}(t),A("add-apt-repository",["-y","--no-update",e],{...ks,env:Je(t)}),Yp.clear(),Yp(t)}(t,e))))}(r,e);const o=await rt(e,r);if(0===o.length)return v("All packages are already installed"),{binDir:"/usr/bin/"};await Zp(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=nd,fileName:n,keyStorePath:r=nd}){try{ut(n);const o=Qn.join(r,n);return await ce(o)||(ct(),await L("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+o,"--keyserver",t,"--recv-keys",e]),await L("chmod",["644",o])),o}catch(o){return void h(`Failed to add apt key via server ${t}: ${o}`)}}(t))})))}(e),A(r,["install","--fix-broken","-y",...o],{...ks,env:Je(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;ed.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(h(`Failed to install packages ${o}. Retrying...`),A(r,["install","--fix-broken","-y","-o",Xp,...o],{...ks,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 at({keyUrl:e,fileName:t,keyStorePath:n=td}){try{ut(t);const r=Qn.join(n,t);if(!(await ce(r))){ct(),await st([{name:"ca-certificates"}]);const n=Qn.join(Xn.tmpdir(),t),o=new qp.DownloaderHelper(e,Xn.tmpdir(),{fileName:t});o.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await o.start(),A("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),A("chmod",["644",r])}return r}catch(r){return void h(`Failed to add apt key via download ${e}: ${r}`)}}function ct(){A("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 rd)return{binDir:rd};const t=await Ns("brew",{nothrow:!0});if(null!==t)return rd=Qn.dirname(t),{binDir:rd};await st([{name:"ca-certificates"}]);const n=new qp.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Xn.tmpdir(),{fileName:"install-brew.sh"});return n.on("error",(e=>{throw Error("Failed to download the brew installer script: "+e)})),await n.start(),O("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),rd=ft(),await he(rd,e.rcOptions),{binDir:rd}}function ft(){return Qn.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),v(`Installing ${e} ${null!=t?t:""} via brew`),cd&&null!==Ns.sync("brew",{nothrow:!0})||(await lt(),cd=!0);const r=ft(),o=Qn.join(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 O(o,i,{stdio:"inherit"}),{binDir:r}}function ht(){return"linux"===process.platform&&(void 0===od&&(od=null!==Ns.sync("dnf",{nothrow:!0})),od)}function mt(){return"linux"===process.platform&&(void 0===id&&(id=null!==Ns.sync("pacman",{nothrow:!0})),id)}function vt(){return"linux"===process.platform&&(void 0===sd&&(sd=null!==Ns.sync("apt-get",{nothrow:!0})),sd)}async function yt(e,t,n){var r;if("win32"!==process.platform)return;if("string"==typeof ad)return{binDir:ad};const o=Ns.sync("choco",{nothrow:!0});if(null!==o)return ad=Qn.dirname(o),{binDir:ad};let i="powershell.exe";const s=Ns.sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(i=s),O(i,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await he(a,_m);const c=Ns.sync("choco",{nothrow:!0});return ad=null!==c?Qn.dirname(c):(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin",await ce(ad)?{binDir:ad}:void 0}async function _t(e,t,n=[]){var r;v(`Installing ${e} ${null!=t?t:""} via chocolatey`),ud&&null!==Ns.sync("choco",{nothrow:!0})||(await yt(0,0,process),ud=!0);const o=process.env.PATH,i={...process.env};if(i.TMP=void 0,i.TEMP=void 0,i.Path=void 0,i.PATH=o,void 0!==t&&""!==t)O("choco",["install","-y",e,"--version="+t,...n],{env:i,extendEnv:!1,stdio:"inherit"});else try{O("choco",["install","-y",e,...n],{env:i,extendEnv:!1,stdio:"inherit"})}catch(a){if(!a.message.includes("exit code 3010"))throw a;v(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,_m),{binDir:s}}async function Et(e){for(const{name:t,version:n}of e)v(`Installing ${t} ${null!=n?n:""} via dnf`);return A("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){v(`Installing ${e} ${null!=t?t:""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===Ns.sync("yay",{nothrow:!0}))try{A("pacman",["-S","--noconfirm","base-devel","git"]);const e=Qn.join(Xn.tmpdir(),"yay");A("mkdir",["-p",e]),P()?(h("Creating a non-root user to build yay"),A("useradd",["-m","-G","wheel","builder"]),A("passwd",["-d","builder"]),A("chown",["-R","builder:builder",e]),A("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),dd=!0,O("su",["-","builder","-c","git clone https://aur.archlinux.org/yay.git "+e],{stdio:"inherit"}),O("su",["-","builder","-c",`cd ${e} && makepkg -si --noconfirm`],{stdio:"inherit"})):(O("git",["clone","https://aur.archlinux.org/yay.git",e],{stdio:"inherit",cwd:Xn.tmpdir()}),O("makepkg",["-si","--noconfirm"],{stdio:"inherit",cwd:e})),O("rm",["-rf",e],{stdio:"inherit"})}catch(e){throw Error(`Failed to install yay: ${e}. Install yay manually and re-run the script.`)}}(),ld||"yay"===n||(A(r,["-Sy","--noconfirm"]),ld=!0),fd||"yay"===n||(A(r,["-S","--noconfirm","base-devel"]),fd=!0);const o=e=>"yay"===n?P()&&dd?A("su",["-","builder","-c","yay -S --noconfirm "+e]):O(n,["-S","--noconfirm",e]):A(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(pd))n.push(e[1])}catch(r){h(`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 v(`Failed to install ${e} ${t} via pacman, trying without version`),o(e)}else o(e);return{binDir:"/usr/bin/"}}function wt(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 Ot(e,t=!0){return t?Qn.basename(e):Qn.basename(e,Qn.extname(e))}function Rt(e){return Qn.normalize(e).replace(RegExp(tt(Qn.sep)+"$"),"")}function It(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function St(e,t){const n=Qn.extname(e),r=`${t}${Qn.basename(e,n)}${n}`;return Qn.join(Qn.dirname(e),r)}function Tt(e,t){const n=Qn.extname(e),r=`${Qn.basename(e,n)}${t}${n}`;return Qn.join(Qn.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=Qn.extname(e).length;return e.slice(0,-t)}function At(e,t){return vd(e,t)}function Lt(e,t){const n=Qn.relative(t,e);return!(!n||".."===n||n.startsWith(".."+Qn.sep)||n===Qn.resolve(e))}function Nt(){return kd||(kd=1,function(e,t){function n(e){x[e]=A++}function r(e){for(var t=0;N.length>t;t++){var n=N[t][0],r=N[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>R)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>R)throw new TypeError("version is longer than "+R+" characters");if(!(this instanceof i))return new i(e,t);O("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>I||0>this.major)throw new TypeError("Invalid major version");if(this.minor>I||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>I||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&&I>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(" "),O("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===U?"":this.operator+this.semver.version,O("comp",this)}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(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 y(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 _(e){return!e||"x"===e.toLowerCase()||"*"===e}function E(e,t,n,r,o,i,s,a,c,u,l,f,p){return((t=_(n)?"":_(r)?">="+n+".0.0":_(o)?">="+n+"."+r+".0":">="+t)+" "+(a=_(c)?"":_(u)?"<"+(+c+1)+".0.0":_(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(O(e[r].semver),e[r].semver!==U&&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 w(e,t,n){try{t=new v(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 v(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(w(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var y=null,_=null;if(t.set[h].forEach((function(e){e.semver===U&&(e=new m(">=0.0.0")),_=_||e,o(e.semver,(y=y||e).semver,r)?y=e:a(e.semver,_.semver,r)&&(_=e)})),y.operator===l||y.operator===f)return!1;if((!_.operator||_.operator===l)&&s(e,_.semver))return!1;if(_.operator===f&&a(e,_.semver))return!1}return!0}var O;t=Yd.exports=i,O="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 R=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,S=R-6,T=t.re=[],P=t.safeRe=[],C=t.src=[],x=t.tokens={},A=0,L="[a-zA-Z0-9-]",N=[["\\s",1],["\\d",R],[L,S]];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;A>$;$++)O($,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 O("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(O("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(O("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 U={};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):U},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(O("Comparator.test",e,this.options.loose),this.semver===U||e===U)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 v(e.value,t),w(this.value,n,t));if(""===e.operator)return""===e.value||(n=new v(this.value,t),w(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=v,v.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},v.prototype.toString=function(){return this.range},v.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[x.HYPHENRANGELOOSE]:P[x.HYPHENRANGE],E),O("hyphen replace",e),e=e.replace(P[x.COMPARATORTRIM],"$1$2$3"),O("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 O("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return O("caret",e,t),e.replace(t.loose?P[x.CARETLOOSE]:P[x.CARET],(function(t,n,r,o,i){var s;return O("caret",e,t,n,r,o,i),_(n)?s="":_(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":_(o)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":i?(O("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"):(O("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"),O("caret return",s),s}))}(e,t)})).join(" ")}(e,t),O("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 O("tilde",e,t,n,r,o,i),_(n)?s="":_(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":_(o)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":i?(O("replaceTilde pr",i),s=">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+o+" <"+n+"."+(+r+1)+".0",O("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),O("tildes",e),e=function(e,t){return O("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){O("xRange",e,n,r,o,i,s,a);var c=_(o),u=c||_(i),l=u||_(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),O("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),O("xrange",e),e=function(e,t){return O("replaceStars",e,t),e.trim().replace(P[x.STAR],"")}(e,t),O("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)},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw new TypeError("a Range is required");return this.set.some((function(n){return y(n,t)&&e.set.some((function(e){return y(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new v(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},v.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=w,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var s=new v(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 v(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 v(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 v(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 v(e,n),t=new v(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,Yd.exports)),Yd.exports}function $t(e,t,n){switch(process.platform){case"win32":return _t("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(vt())return st([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function Dt(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)}async function Ut(e,t){return await b(await async function(){return void 0===rh&&(null===Ns.sync("7z",{nothrow:!0})&&await $t("",0,process),rh="7z"),rh}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await U(t),t}function kt(e,t){return Ut(e,t)}async function jt(e,t){return null!==Ns.sync("7z",{nothrow:!0})?Ut(e,t):null!==Ns.sync("unzip",{nothrow:!0})?(await b("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await U(t),t):Ut(e,t)}async function Mt(e,t,n=0,r=[]){await async function(e){switch(v("Installing tar extraction dependencies"),e){case 1:"linux"===process.platform&&(mt()?(await gt("gzip"),await gt("tar")):ht()?await Et([{name:"gzip"},{name:"tar"}]):vt()&&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"}]):vt()&&await st([{name:"xz-utils"},{name:"tar"}]));break;default:throw Error(`Unsupported archive type: ${e} for tar extraction`)}}(Dt(e));try{await nh.mkdirP(t)}catch{}try{await b("tar",["xf",e,"-C",t,"--strip-components="+n,...r],{stdio:"inherit"})}catch(o){"win32"===process.platform&&o.message.includes("Can't create '\\\\?\\C:")&&h(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`)}return await U(t),t}async function Ft(e,t,n,r,o){var i,s;v(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!=(i=process.env.RUNNER_TEMP)?i:Xn.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!=(s=process.env.RUNNER_TOOL_CACHE)?s:Qn.join(Xn.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:u,extractedFolderName:l,extractFunction:f}=await n(t,process.platform,o);if(oh)try{const n=Zd.find(e,t);if(n){const r=Qn.join(n,l),o=Qn.join(r,c);if(await ce(Qn.join(o,u)))return v(`${e} ${t} was found in the cache at ${o}.`),await he(o,_m),{installDir:r,binDir:o}}}catch{}const p=Qn.join(r,l),d=Qn.join(p,c),m=Qn.join(d,u);return await async function(e,t,n,r,o,i,s,a){if((await Promise.all([ce(e),ce(t)])).includes(!1))try{const e=await async function(e,t,n){v(`Download ${e} ${t}`);const r=await th((()=>{var e;const t=Qn.join(null!=(e=process.env.RUNNER_TEMP)?e:Xn.tmpdir(),`${Date.now()}-${Qn.basename(n)}`);return Zd.downloadTool(n,t)}),{name:n,max:4,backoffBase:2e3,report:e=>v(e)});return r}(n,r,o);v(`Extracting ${e} to ${i}`);const t=null!=s?s:function(e){switch(e){case 0:case 1:case 2:return Mt;case 3:return jt;default:return Ut}}(Dt(o));await t(e,i)}catch(c){throw Error(`Failed to download ${n} ${r} ${a} from ${o}: ${c}`)}if(v(`Add ${e} to PATH`),await he(e,_m),!(await ce(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await ts(t,"755")}catch(c){h(`Failed to make ${t} executable: ${c}`)}}(d,m,e,t,a,r,f,o),await async function(e,t,n){oh&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==zn("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await Zd.cacheDir(e,t,n))}(r,e,t),{installDir:p,binDir:d}}function Bt(e,t,n){var r;const o=null!=(r=Pd(e))?r:e;switch(t){case"win32":{const t=Cd(o,"v3.19.6");let r;xd.includes(n)?r=t?"win64-x64":"windows-x86_64":Ad.includes(n)?r=t?"win32-x86":"windows-i386":Ld.includes(n)?r="windows-arm64":(v(`Trying unsupported arch '${n}' for cmake on Windows`),r="windows-"+n);const i=`cmake-${e}-${r}`;return{binRelativeDir:"bin/",binFileName:It("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const t=`cmake-${e}-${Cd(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:It("cmake"),extractedFolderName:t,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`}}case"linux":{const t=Cd(o,"v3.19.8");let r;Ld.includes(n)?r=t?"Linux-aarch64":"linux-aarch64":xd.includes(n)?r=t?"Linux-x86_64":"linux-x86_64":(v(`Trying unsupported arch '${n}' for cmake on Linux`),r="linux-"+n);const i=`cmake-${e}-${r}`;return{binRelativeDir:"bin/",binFileName:It("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function Gt(e,t,n){return Ft("cmake",e,Bt,t,n)}async function Ht(e,t,n=Rh){const r=await async function(e,t=Rh){var n,r;try{const o=await gh.getExecOutput(e,["--version"]),i=null==(n=(o.stdout||o.stderr||"").trim().match(t))?void 0:n[1];return null!=(r=Pd(i))?r:void 0}catch(o){return void console.error(o)}}(e,n);if(void 0===r||""===t)return!1;try{return-1!==wh(r,t)}catch{return bh(r,t)}}function Vt(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}function qt(e,t,n=null){var r;return Wt(t)?null!=(r=zt(e,n))?r:"":t}function zt(e,t=null){var n,r,o;const i=Ih()[e];if(void 0===i)return;if("string"==typeof i)return i;const s=null!=(n=i[process.platform])?n:i.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=vt()?"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],o=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!==o&&null!=(n=t[o])?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!=(o=f[process.arch])?o:f.else}function Wt(e){return"true"===e||void 0===e}async function Xt(e,t,n){const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let o,i=await Kt(t);if(void 0!==i){const e=Qn.dirname(i);o={bin:i,installDir:e,binDir:e}}else{if(Sh)try{v("Installing python in GitHub Actions");const{setupActionsPython:e}=await Promise.resolve().then((()=>require("./assets/actions_python-Czj4ScEf.js")));if(await e(r,t,n),i=await Kt(t),void 0===i)throw Error("Python binary could not be found");const s=Qn.dirname(i);o={bin:i,installDir:s,binDir:s}}catch(s){h(""+s)}void 0===o&&(o=await async function(e,t){let n;switch(process.platform){case"win32":{e?await _t("python3",t,["--params=/InstallDir:"+e]):await _t("python3",t);const r=await Kt(e);if(void 0===r)throw Error("Python binary could not be found");const o=Qn.dirname(r);await he(o,_m),n={installDir:o,binDir:o,bin:r};break}case"darwin":{n=await dt("python3",t);const e=await b("brew",["--prefix","python"],{stdio:"pipe"}),r=Qn.join(e.stdout,"libexec","bin");await he(r,_m);break}case"linux":if(mt())n=await gt("python",t);else if(ht())n=await Et([{name:"python3",version:t}]);else{if(!vt())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===i||void 0===o.bin){if(i=await Kt(t),void 0===i)throw Error("Python binary could not be found");o={bin:i,installDir:Qn.dirname(i),binDir:Qn.dirname(i)}}return o}(e,t,n);sr(void 0!==r.bin);const o=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))v("venv module already installed.");else try{await an("venv")}catch(t){v(`Failed to install venv: ${""+t}. Ignoring...`)}}(o);const i=await async function(e){const t=await Qt();return void 0===t?(v("pip was not found. Installing pip"),await async function(e){await Zt(e)||(await an("pip"),await Zt(e))}(e),Qt()):t}(o);if(void 0===i)throw Error("pip was not installed correctly");return await async function(e){try{if(!(await sn(e)))try{await an("pipx",mt()),await nn(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){throw Error("pipx was not installed completely: "+t)}if(await sn(e))return void(await b(e,["-m","pipx","ensurepath"],{stdio:"inherit"}));if(await async function(){return null!==await Ns("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...`)}}(o),await async function(e){try{await nn(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await nn(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){v(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(o),r}async function Kt(e){for(const t of["python","python3"]){const n=await Yt(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=Qn.parse(Xn.homedir()).root,t=(await fs(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await Yt(t,Qn.join(e,n));if(void 0!==r)return r}}}async function Yt(e,t){var n;try{const r=zt("python");if(void 0!==t){const n=Qn.join(t,It(e));if(await ce(n)&&await Ht(n,r))return n}const o=null!=(n=await Ns(e,{nothrow:!0,all:!0}))?n:[];for(const e of o)if(await Ht(e,r))return e}catch{}}async function Qt(){for(const e of["pip3","pip"]){const t=await Jt(e);if(void 0!==t)return t}}async function Jt(e){var t;try{const n=zt("pip"),r=null!=(t=await Ns(e,{nothrow:!0,all:!0}))?t:[];for(const e of r)if(await Ht(e,n))return e}catch{}}async function Zt(e){try{return await b(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){v(""+t);try{return await b(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){v(""+n)}}return!1}function en(){if(!("version"in Xn)||"function"!=typeof Xn.version)return null;const e=Xn.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 tn(e,t,n={}){return nn(await async function(e){if(void 0!==$h)return $h;const t=null!=e?e:qt("python",void 0,await Ah());return $h=(await Xt(t,"",process.arch)).bin,$h}(n.pythonVersion),e,t,n)}async function nn(e,t,n,r={}){const{usePipx:o=!0,user:i=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=o&&!a&&await sn(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 rn():await on(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{Hp.info(`Installing ${t} ${null!=n?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 Lh(),l.PIPX_BIN_DIR=await Nh()),O(e,["-m",u,...o,...a,r],{stdio:"inherit",env:l})}catch(p){if(Hp.info(`Failed to install ${t} via ${u}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await an(t))throw Error(`Failed to install ${t} via ${u}: ${p}.`)}else if(null===await an(t))throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);return{binDir:c?await rn():await on(e,l)}}function rn(){return Nh()}async function on(e,t){const n=await Th(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>ce(Qn.join(e,It(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=Ns.sync(It(t),{nothrow:!0});return null!==r?Qn.dirname(r):e[e.length-1]}(n,t);return await he(r,_m),r}async function sn(e){return 0===(await b(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}function an(e,t=!0){if("linux"===process.platform){if(Hp.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(vt())return st([{name:t?"python3-"+e:e}])}else if("darwin"===process.platform)return["venv"].includes(e)?null:dt(e);return null}function cn(e,t,n){return tn("cmakelang[YAML]",e)}async function un(e,t,n){switch(process.platform){case"win32":return await _t("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await he(e,_m),{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(vt())return st([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function ln(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(Qn.join(t,e.path))}))}function fn(e,t,n){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:It("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:It("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:It("doxygen"),extractedFolderName:t,extractFunction:ln,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function pn(){if("darwin"===process.platform)try{const e=await gh.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await pe("SDKROOT",t.trim(),_m):d("SDKROOT not set")}catch(e){d(e)}}async function dn(){const e=Qn.join(Bh,"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");v("::add-matcher::"+e)}async function hn(e){const t=await ps(e,"utf-8");return JSON.parse(t)}function mn(e,t){var n;const r=Object.keys(e),o=new Map;if(void 0===t.filterMapTag)for(const c of r)o.set(c,c);else for(const c of r){const e=t.filterMapTag(c);void 0!==e&&o.set(e,c)}if(0===o.size)return;const i=null!=(n=t.versionSatisfies)?n:bh,s=function(e){if(null===Oh(e))try{const t=Pd(e);if(null!==t){const n=/^[<=>^~]/.test(t.version)?t.version:"^"+t.version;return v(`Coerced version '${e}' to '${n}'`),n}}catch(t){}return e}(t.version),a=[];for(const[c,u]of o.entries())i(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=vn(c,n,t);if(void 0!==r)return r}}function vn(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=>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)e.includes(r)&&t++;return t})),o=Math.max(...t);return{tag:e,name:r[t.indexOf(o)]}}return{tag:e,name:r[0]}}}async function yn(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await _t("gcc-arm-embedded",e));try{r=await Ft("g++",e,_n,t,n)}catch(o){v(`Failed to download g++ binary. ${o}. Falling back to chocolatey.`),r=await async function(e,t){var n,r;let o;if(await _t("mingw",e),"x64"===t&&await ce("C:/tools/mingw64/bin")?(o="C:/tools/mingw64/bin",await he(o,_m)):"ia32"===t&&await ce("C:/tools/mingw32/bin")?(o="C:/tools/mingw32/bin",await he(o,_m)):await ce((null!=(n=process.env.ChocolateyInstall)?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(o=(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin"),void 0!==o)return{binDir:o}}(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(!vt())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",It(e+"/gcc"),_m),pe("CXX",It(e+"/g++"),_m)),jh&&await dn(),await Promise.all(t)}(r.binDir),r}async function _n(e,t,n){var r;if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const o=await hn(Qn.join(Mh,"github_brechtsanders_winlibs_mingw.json")),i=En(e),s=gn(e),a=wn(e),c=mn(o,{version:e,keywords:[null!=(r={x64:"x86_64",ia32:"i386"}[n])?r:n],filterName:e=>!(void 0!==i&&i!==En(e)||void 0!==s&&s!==gn(e)||void 0!==a&&a!==wn(e)),versionSatisfies:(e,t)=>{const n=Pd(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return bh(n,t)&&(void 0===i||i===En(e))&&(void 0===s||s===gn(e))}});if(void 0===c)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:It("g++"),extractedFolderName:"mingw64",extractFunction:Ut,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${c.tag}/${c.name}`}}function En(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function gn(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function wn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function bn(e,t,n,r=40){let o;switch(process.platform){case"win32":o=await yn(e,t,n);break;case"darwin":o=await dt("gcc",e);break;case"linux":if(mt())o=await gt("gcc",e);else if(ht())o=await Et([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]);else if(vt())if(""===e)o=await st([{name:"gcc"},{name:"g++"}]);else try{o=await st([{name:"gcc",version:e},{name:"g++",version:e}])}catch(i){o=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!==o)return await async function(e,t,n=40){var r;if("win32"===process.platform)return;const o=[];{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 fs(e)).sort(((e,t)=>{var n,r,o,i;return function(e,t){const n=Pd(e),r=Pd(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!=(i=null==(o=t.match(/^gcc-?(.*)(\.exe)?$/))?void 0:o[1])?i:"")}));for(const r of t)if(r.startsWith("gcc")){n=`${e}/${r}`;break}}const{stdout:r}=await b(n,["--version"],{stdio:"pipe"}),o=r.match(/gcc.* \(.*\) ([\d.]+)/);return null!==o?o[1]:(h("Failed to parse gcc version from: "+r),t)}catch(i){return d("Failed to get gcc version: "+i),t}}(t,s),v("Using gcc version "+s));const a=kh(null!=(r=Pd(s))?r:s);5>a?(o.push(pe("CC",`${t}/gcc-${s}`,_m),pe("CXX",`${t}/g++-${s}`,_m)),vt()&&o.push(Qe("cc",`${t}/gcc-${s}`,_m,n),Qe("cxx",`${t}/g++-${s}`,_m,n),Qe("gcc",`${t}/gcc-${s}`,_m,n),Qe("g++",`${t}/g++-${s}`,_m,n))):(o.push(pe("CC",`${t}/gcc-${a}`,_m),pe("CXX",`${t}/g++-${a}`,_m)),vt()&&o.push(Qe("cc",`${t}/gcc-${a}`,_m,n),Qe("cxx",`${t}/g++-${a}`,_m,n),Qe("gcc",`${t}/gcc-${a}`,_m,n),Qe("g++",`${t}/g++-${a}`,_m,n)))}o.push(pn()),Fh&&await dn(),await Promise.all(o)}(e,o.binDir,r),o}function On(e){const t=Oh(e),n=null!==t?kh(t):e;return pe("GCOV",""!==n?"gcov-"+n:"gcov",_m)}async function Rn(e,t,n){const{keywords:r,optionalKeywords:o}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),xd.includes(t)?(r.push("64"),r.push("x86_64")):(v(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),xd.includes(t)?r.push("x86_64"):Ld.includes(t)?r.push("arm64"):(v(`Using arch ${t} for infer`),n.push(t));break;default:v(`Using ${e} ${t} for infer`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(t,n),i=mn(await hn(Qn.join(Gh,"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:""+Qn.basename(i.name,".tar.xz"),binRelativeDir:"bin",binFileName:It("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${o}`)}function In(e,t,n){const r=function(e,t){switch(e){case"win32":return xd.includes(t)||Ad.includes(t)?"win":Ld.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return xd.includes(t)||Ad.includes(t)?"linux":Ld.includes(t)?"linux-aarch64":"linux";default:throw Error(`Unsupported platform '${e}'`)}}(t,n);return{binRelativeDir:"",binFileName:It("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function Sn(e,t,n){return Ft("ninja",e,In,t,n)}function Tn(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:It("kcov")}}function Pn(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:It("kcov"),extractFunction:Cn}}async function Cn(e,t){const n=await Mt(e,t,1),r=await async function(){let e=Ns.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Gt(qt("cmake",void 0,await Ah()),Qn.join(ue("~"),"cmake"),"");e=Qn.join(t,"cmake")}return null===Ns.sync("ninja",{nothrow:!0})&&await Sn(qt("ninja",void 0,await Ah()),Qn.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"}]):vt()&&await st([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==Ns.sync("patch",{nothrow:!0})){const e=Qn.join(Hh,"gcc13.patch");await b("patch",["-N","-p1","-i",e],{cwd:n,stdio:"inherit"})}else v("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13")}catch{}const o=Qn.join(n,"build");return await b(r,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await b(r,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function xn(){"darwin"===process.platform&&(null!==await Ns("clang",{nothrow:!0})&&null!==await Ns("clang++",{nothrow:!0})&&(m("Assuming clang is an Apple Clang compiler"),await Promise.all([pe("CC","clang",_m),pe("CXX","clang++",_m)])),fr.error("Apple Clang automatic installation is not supported yet"))}async function An(e,t,n,r,o,i,s){void 0!==t&&await ce(t)&&(v(`Adding ${t} to PATH`),await pe("VCTargetsPath",t,_m)),await Yh.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 Ln(e,t,n,r,o,i,s,a=12e5){Hp.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(Wh(e)),a=()=>{u(Wh(e))},e.addEventListener("abort",a,{once:!0})}if(n===1/0)return void e.then(c,u);const l=new Vh;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=null!=o?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=hm.includes(e);let a;if("vcvarsall"===e)await An(qt(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await lt({rcOptions:_m});else{const i=Qn.join(o,s?"llvm":e),c=qt(e,t,n),u=mm[e];a=await u(c,i,r)}i.push(Wn(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){d(c),c instanceof Error&&void 0!==c.stack&&d(c.stack),s.push(e+" failed to install")}Hp.endGroup()}async function Nn(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("windows","Windows"),xd.includes(t)?r.push("win64","win64","win64","x86_64","X64"):Ad.includes(t)?n.push("win32"):Ld.includes(t)?n.push("woa64"):(v(`Using arch ${t} for LLVM`),n.push(t));break;case"linux":if(r.push("linux","Linux"),vt()){r.push("ubuntu");const e=await Ah();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");xd.includes(t)?r.push("x86_64","X64"):Ad.includes(t)?n.push("x86"):Ld.includes(t)?n.push("aarch64"):Nd.includes(t)?n.push("armv7a"):$d.includes(t)?n.push("powerpc64le"):Dd.includes(t)?n.push("sparc64"):(v(`Using arch ${t} for LLVM`),n.push(t));break;case"darwin":r.push("apple","macos","macOS"),xd.includes(t)?r.push("x86_64","X64"):Ld.includes(t)?r.push("arm64","ARM64"):(v(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),xd.includes(t)?n.push("amd64"):Ad.includes(t)?n.push("i386"):(v(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),xd.includes(t)?n.push("amd64"):Ud.includes(t)?n.push("sparcv9"):(v(`Using arch ${t} for LLVM`),n.push(t));break;default:v(`Using ${e} ${t} for LLVM`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(e,t),i=mn(await hn(Qn.join(Jh,"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=mn(await hn(Qn.join(Jh,"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 v("Downloading LLVM from "+r),{url:r,extractedFolderName:"",binRelativeDir:"bin",binFileName:It("clang"),extractFunction:"win32"===t?kt:(e,t)=>Mt(e,t,1)}}async function $n(e,t,n){var r;const o=await tm(e,t,n);return await async function(e,t){var n,r;const o=null!=(n=process.env.LD_LIBRARY_PATH)?n:"",i=null!=(r=process.env.DYLD_LIBRARY_PATH)?r:"",s=jn(t),a=[pe("CC",It(e+"/bin/clang"),_m),pe("CXX",It(e+"/bin/clang++"),_m),pe("LLVM_PATH",e,_m),pe("LD_LIBRARY_PATH",`${o}${Qn.delimiter}${e}/lib`,_m),pe("DYLD_LIBRARY_PATH",`${i}${Qn.delimiter}${e}/lib`,_m),pe("LLVM_LDFLAGS","-L"+Vt(e+"/lib"),_m),pe("LLVM_CPPFLAGS","-I"+Vt(e+"/include"),_m),await ce(`${e}/lib/clang/${t}/include`)?pe("LLVM_CPATH",`${e}/lib/clang/${t}/include`,_m):await ce(`${e}/lib/clang/${s}/include`)?pe("LLVM_CPATH",`${e}/lib/clang/${s}/include`,_m):Promise.resolve(),pe("LIBRARY_PATH",e+"/lib",_m),pn()];if(vt()){const t=60;a.push(Qe("cc",e+"/bin/clang",_m,t),Qe("cxx",e+"/bin/clang++",_m,t),Qe("clang",e+"/bin/clang",_m),Qe("clang++",e+"/bin/clang++",_m),Qe("lld",e+"/bin/lld",_m),Qe("ld.lld",e+"/bin/ld.lld",_m),Qe("llvm-ar",e+"/bin/llvm-ar",_m))}await Promise.all(a)}(null!=(r=o.installDir)?r:t,e),o}function Dn(e,t,n){return kn(e,t,n,Qh.ClangFormat)}function Un(e,t,n){return kn(e,t,n)}async function kn(e,t,n,r=Qh.All){const o=jn(e);if(vt())try{return await async function(e,t=0){const n="/usr/lib/llvm-"+e;await st([{name:"ca-certificates"}]);const r=new qp.DownloaderHelper("https://apt.llvm.org/llvm.sh",Xn.tmpdir(),{fileName:"llvm.sh"});r.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await r.start();const o=await ps(r.getDownloadPath(),"utf-8"),i=Qn.join(Xn.tmpdir(),"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 ${Xp} -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 ${Xp} -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:Je("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("ii")))}catch{return!1}}(n)&&(fr.info("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(o),o=function(e){return Ze()?e.replace(/apt-get/g,"nala"):e}(o),await bs(t,o),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}]}(o,i,e,t);return await st(s),await ts(i,"755"),await L("bash",[i,""+e,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:12e5}),await he(n+"/bin",_m),{installDir:""+n,binDir:n+"/bin",bin:n+"/bin/clang++"}}(o,r)}catch(s){v(`Failed to install llvm via system package manager ${s}. Trying to remove the repository`);try{A(Qn.join(em,"llvm_repo_remove.bash"),[""+o])}catch(a){v("Failed to remove llvm repository "+a)}}const i=await Ft("llvm",e,Nn,t,n);return await nm(o),i}function jn(e){const t=function(e){if(null===Oh(e))try{const t=Pd(e);if(null!==t)return v(`Coerced version '${e}' to '${t}'`),t.version}catch(t){}return e}(e);return Number.parseInt(t.split(".")[0],10)}async function Mn(){if(Zh){const e=Qn.join(em,"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");v("::add-matcher::"+e)}}async function Fn(e,t,n,r,o,i){if("win32"!==process.platform)return;const s=Yh.vsversion_to_versionnumber(e);v(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=Yh.findVcvarsall(s);u=!0,v("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===s?(a="14.0",await _t("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 _t("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 _t("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 _t("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):d(`The given MSVC versions ${e} is not supported yet.`)}catch(l){d(l)}await An(s,c,n,a,r,o,i),om&&await async function(){const e=Qn.join(im,"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");v("::add-matcher::"+e)}()}async function Bn(e,t,n){if("win32"===process.platform)return await _t("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await he(e,_m),e}()}}function Gn(e,t,n){return{url:Hn(t,n,e),binRelativeDir:"",binFileName:It("pwsh"),extractedFolderName:""}}function Hn(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 Vn(e,t,n){try{return await Ft("pwsh",e,Gn,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 _t("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await he(t,_m),{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"}]),A("/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(vt()){await st([{name:"curl"}]);const t=await Ah();return A("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),A("dpkg",["-i","packages-microsoft-prod.deb"]),st([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}(e)}}function qn(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:It("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${o}.${i}`}}function zn(e){const t=Hp.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function Wn(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 Xn=require("os"),Kn=require("fs"),Yn=require("crypto"),Qn=require("path"),Jn=require("http"),Zn=require("https");require("net");const er=require("tls"),tr=require("events"),nr=require("util"),rr=require("buffer"),or=require("process"),ir=require("child_process"),sr=require("assert"),ar=require("stream"),cr=require("url"),ur=require("string_decoder"),lr=require("timers"),fr=require("console");var pr="undefined"!=typeof document?document.currentScript:null;const dr=e(Kn),hr=e(Jn),mr=e(Zn);var vr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},yr={};const _r=[{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 Er,gr=(Er||(Er=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=_r,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))}(yr)),yr);const wr=t(gr);var br,Or,Rr={},Ir={},Sr={},Tr={};const Pr=new Uint8Array(256);let Cr=Pr.length;const xr=/^(?:[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,Ar=[];for(let Em=0;256>Em;++Em)Ar.push((Em+256).toString(16).substr(1));let Lr,Nr,$r=0,Dr=0;const Ur=c("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Yn.createHash("md5").update(e).digest()})),kr=c("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Yn.createHash("sha1").update(e).digest()})),jr=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 i=t||Array(16);let a=(e=e||{}).node||Lr,c=void 0!==e.clockseq?e.clockseq:Nr;if(null==a||null==c){const t=e.random||(e.rng||o)();null==a&&(a=Lr=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==c&&(c=Nr=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Dr+1;const f=u-$r+(l-Dr)/1e4;if(0>f&&void 0===e.clockseq&&(c=c+1&16383),(0>f||u>$r)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");$r=u,Dr=l,Nr=c,u+=122192928e5;const p=(1e4*(268435455&u)+l)%4294967296;i[r++]=p>>>24&255,i[r++]=p>>>16&255,i[r++]=p>>>8&255,i[r++]=255&p;const d=u/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=c>>>8|128,i[r++]=255&c;for(let o=0;6>o;++o)i[r+o]=a[o];return t||s(i)},v3:Ur,v4:function(e,t,n){const r=(e=e||{}).random||(e.rng||o)();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:kr,validate:i,version:function(e){if(!i(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var Mr,Fr={};class Br 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 Gr,Hr,Vr,qr,zr,Wr,Xr,Kr,Yr={},Qr=(Vr||(Vr=1,Hr=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(Gr)return Yr;Gr=1;var o,i=er,s=Jn,a=Zn,c=tr,u=nr;return Yr.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},Yr.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},Yr.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},Yr.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(){},Yr.debug=o,Yr}()),Hr);(zr=qr||(qr={}))[zr.OK=200]="OK",zr[zr.MultipleChoices=300]="MultipleChoices",zr[zr.MovedPermanently=301]="MovedPermanently",zr[zr.ResourceMoved=302]="ResourceMoved",zr[zr.SeeOther=303]="SeeOther",zr[zr.NotModified=304]="NotModified",zr[zr.UseProxy=305]="UseProxy",zr[zr.SwitchProxy=306]="SwitchProxy",zr[zr.TemporaryRedirect=307]="TemporaryRedirect",zr[zr.PermanentRedirect=308]="PermanentRedirect",zr[zr.BadRequest=400]="BadRequest",zr[zr.Unauthorized=401]="Unauthorized",zr[zr.PaymentRequired=402]="PaymentRequired",zr[zr.Forbidden=403]="Forbidden",zr[zr.NotFound=404]="NotFound",zr[zr.MethodNotAllowed=405]="MethodNotAllowed",zr[zr.NotAcceptable=406]="NotAcceptable",zr[zr.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",zr[zr.RequestTimeout=408]="RequestTimeout",zr[zr.Conflict=409]="Conflict",zr[zr.Gone=410]="Gone",zr[zr.TooManyRequests=429]="TooManyRequests",zr[zr.InternalServerError=500]="InternalServerError",zr[zr.NotImplemented=501]="NotImplemented",zr[zr.BadGateway=502]="BadGateway",zr[zr.ServiceUnavailable=503]="ServiceUnavailable",zr[zr.GatewayTimeout=504]="GatewayTimeout",(Xr=Wr||(Wr={})).Accept="accept",Xr.ContentType="content-type",(Kr||(Kr={})).ApplicationJson="application/json";const Jr=[qr.MovedPermanently,qr.ResourceMoved,qr.SeeOther,qr.TemporaryRedirect,qr.PermanentRedirect],Zr=[qr.BadGateway,qr.ServiceUnavailable,qr.GatewayTimeout],eo=["OPTIONS","GET","DELETE","HEAD"];class to extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,to.prototype)}statusCode;result}class no{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 ro{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[Wr.Accept]=this._getExistingOrDefaultHeader(t,Wr.Accept,Kr.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[Wr.Accept]=this._getExistingOrDefaultHeader(n,Wr.Accept,Kr.ApplicationJson),n[Wr.ContentType]=this._getExistingOrDefaultHeader(n,Wr.ContentType,Kr.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[Wr.Accept]=this._getExistingOrDefaultHeader(n,Wr.Accept,Kr.ApplicationJson),n[Wr.ContentType]=this._getExistingOrDefaultHeader(n,Wr.ContentType,Kr.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[Wr.Accept]=this._getExistingOrDefaultHeader(n,Wr.Accept,Kr.ApplicationJson),n[Wr.ContentType]=this._getExistingOrDefaultHeader(n,Wr.ContentType,Kr.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&&eo.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(i,n),a&&a.message&&a.message.statusCode===qr.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&&Jr.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||!Zr.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 no(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=u(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?mr:hr;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({},oo(this.requestOptions.headers),oo(e||{})):oo(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=oo(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 o="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||hr.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?Qr.httpsOverHttps:Qr.httpsOverHttp:s?Qr.httpOverHttps:Qr.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=o?new mr.Agent(e):new hr.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 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 o=e.message.statusCode||0,i={statusCode:o,result:null,headers:{}};let s,a;o===qr.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 to(e,o);t.result=i.result,r(t)}else n(i)}))}}const oo=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),io=n(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return Wr},HttpClient:ro,HttpClientError:to,HttpClientResponse:no,get HttpCodes(){return qr},get MediaTypes(){return Kr},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 so,ao,co,uo,lo,fo={},po={},ho={},mo=p(),vo={};const yo=[{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 _o;const Eo=t((_o||(_o=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=yo,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))}(vo)),vo)),{GITHUB_ACTIONS:go}=Eo;var wo,bo,Oo,Ro,Io,So,To,Po,Co,xo,Ao,Lo,No,$o,Do,Uo,ko,jo,Mo,Fo,Bo,Go,Ho,Vo={exports:{}},qo={exports:{}},zo={};const Wo=t(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(Ho)return Vo.exports;Ho=1;const t=ir,n=_(),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 Bo;Go=1;const n="win32"===process.platform;return Bo={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},Bo}();return Vo.exports=e,Vo.exports.spawn=e,Vo.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},Vo.exports._parse=n,Vo.exports._enoent=r,Vo.exports}()),Xo=({env:e=or.env,...t}={})=>{const n=E({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=or.cwd(),path:t=or.env[E()],preferLocal:n=!0,execPath:r=or.execPath,addExecPath:o=!0}={})=>{const i=e instanceof URL?cr.fileURLToPath(e):e,s=Qn.resolve(i),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(Qn.join(t,"node_modules/.bin")),n=t,t=Qn.resolve(t,"..")})(a,s),o&&((e,t,n)=>{const r=t instanceof URL?cr.fileURLToPath(t):t;e.push(Qn.resolve(n,r,".."))})(a,r,s),[...a,t].join(Qn.delimiter)})(t),e},Ko=(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);!Yo(o,i)&&r||Object.defineProperty(e,n,i)},Yo=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)},Qo=(e,t)=>`/* Wrapped ${e}*/\n${t}`,Jo=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Zo=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),ei=new WeakMap,ti=(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(ei.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))Ko(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=Qo.bind(null,r,""+t);Object.defineProperty(o,"name",Zo),Object.defineProperty(e,"toString",{...Jo,value:o})})(e,t,r)}(i,e),ei.set(i,r),i};ti.callCount=e=>{if(!ei.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ei.get(e)};const ni=(e,t)=>({name:"SIGRT"+(t+1),number:ri+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ri=34,oi=[{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"}],ii=()=>{const e=Array.from({length:64-ri+1},ni);return[...oi,...e].map(si)},si=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=Xn.constants,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}},ai=({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}],ci=(()=>{const e=ii();return Object.fromEntries(e.map(ai))})(),ui=(e,t)=>{const n=t.find((({name:t})=>Xn.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=ii(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=ui(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 li=({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=or.cwd()}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:ci[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}`,v="[object Error]"==={}.toString.call(r),y=v?`${m}\n${r.message}`:m,_=[y,t,e].filter(Boolean).join("\n");return v?(r.originalMessage=r.message,r.message=_):r=Error(_),r.shortMessage=y,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},fi=["stdin","stdout","stderr"];var pi,di,hi={exports:{}},mi={exports:{}};const vi=t(function(){if(di)return hi.exports;di=1;var e=vr.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=sr,o=(pi||(pi=1,(v=mi).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&v.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&v.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),mi.exports),i=/^win/i.test(e.platform),s=tr;"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),hi.exports=function(e,o){if(!t(vr.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(vr.process)&&(l=!1,o.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};hi.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(vr.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))}})),hi.exports.signals=function(){return o};var l=!1,f=function(){!l&&t(vr.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)};hi.exports.load=f;var p=e.reallyExit,d=function(n){t(vr.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(vr.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 hi.exports=function(){return function(){}};var v;return hi.exports}()),yi=(e,t="SIGTERM",n={})=>{const r=e(t);return _i(e,t,n,r),r},_i=(e,t,n,r)=>{if(!Ei(t,n,r))return;const o=wi(n),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()},Ei=(e,{forceKillAfterTimeout:t},n)=>gi(e)&&!1!==t&&n,gi=e=>e===Xn.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),wi=({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},bi=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Oi=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(Kn.createWriteStream(n)),e;if(w(n))return e[t].pipe(n),e;if(!(e=>e instanceof ir.ChildProcess&&"function"==typeof e.then)(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!w(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n};var Ri,Ii,Si,Ti={exports:{}};const Pi=t(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(Si)return Ti.exports;Si=1;const{constants:t}=rr,n=ar,{promisify:r}=nr,o=function(){if(Ii)return Ri;Ii=1;const{PassThrough:e}=ar;return Ri=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 Ti.exports=e,Ti.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),Ti.exports.array=(t,n)=>e(t,{...n,array:!0}),Ti.exports.MaxBufferError=s,Ti.exports}());var Ci,xi;const Ai=t(function(){if(xi)return Ci;xi=1;const{PassThrough:e}=ar;return Ci=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}}()),Li=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Ni=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},$i=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?Pi(e,{encoding:t,maxBuffer:r}):Pi.buffer(e,{maxBuffer:r})},Di=(async()=>{})().constructor.prototype,Ui=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Di,e)])),ki=(e,t)=>{for(const[n,r]of Ui){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},ji=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Mi=/^[\w.-]+$/,Fi=/"/g,Bi=(e,t)=>ji(e,t).join(" "),Gi=(e,t)=>ji(e,t).map((e=>(e=>"string"!=typeof e||Mi.test(e)?e:`"${e.replace(Fi,'\\"')}"`)(e))).join(" "),Hi=/ +/g,Vi=e=>{const t=[];for(const n of e.trim().split(Hi)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},qi=nr.debuglog("execa").enabled,zi=(e,t)=>(e+"").padStart(t,"0"),Wi=(e,{verbose:t})=>{t&&or.stderr.write(`[${(()=>{const e=new Date;return`${zi(e.getHours(),2)}:${zi(e.getMinutes(),2)}:${zi(e.getSeconds(),2)}.${zi(e.getMilliseconds(),3)}`})()}] ${e}\n`)},Xi=(e,t,n={})=>{const r=Wo._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||or.cwd(),execPath:or.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:qi,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const i=t?{...or.env,...e}:e;return n?Xo({env:i,cwd:r,execPath:o}):i})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return fi.map((t=>e[t]));if((e=>fi.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+fi.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,fi.length)},((e,n)=>t[n]))})(n),"win32"===or.platform&&"cmd"===Qn.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Ki=(e,t,n)=>"string"==typeof t||rr.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 Yi={},Qi={};const Ji=dr.promises,{access:Zi,appendFile:es,chmod:ts,chown:ns,copyFile:rs,lchmod:os,lchown:is,link:ss,lstat:as,mkdir:cs,mkdtemp:us,open:ls,readdir:fs,readFile:ps,readlink:ds,realpath:hs,rename:ms,rmdir:vs,stat:ys,symlink:_s,truncate:Es,unlink:gs,utimes:ws,writeFile:bs}=dr.promises,Os="rm"in dr.promises?dr.promises.rm:nr.promisify(dr.unlink),Rs=n(Object.freeze(Object.defineProperty({__proto__:null,access:Zi,appendFile:es,chmod:ts,chown:ns,copyFile:rs,default:Ji,lchmod:os,lchown:is,link:ss,lstat:as,mkdir:cs,mkdtemp:us,open:ls,readFile:ps,readdir:fs,readlink:ds,realpath:hs,rename:ms,rm:Os,rmdir:vs,stat:ys,symlink:_s,truncate:Es,unlink:gs,utimes:ws,writeFile:bs},Symbol.toStringTag,{value:"Module"})));var Is,Ss,Ts,Ps,Cs,xs,As={},Ls={};const Ns=t(function(){if(xs)return Cs;xs=1;const{isexe:e,sync:t}=R(),{join:n,delimiter:r,sep:o,posix:i}=Qn,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 Cs=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)},Cs}());let $s;var Ds,Us={};S(Us,"hasSudo",(()=>T)),S(Us,"isRoot",(()=>P)),S(Us,"isSudo",(()=>C)),S(Us,"prependSudo",(()=>x)),S(Us,"defaultExecOptions",(()=>ks)),S(Us,"execRootSync",(()=>A)),S(Us,"execRoot",(()=>L));let ks={stdio:"inherit",shell:!0};S(Ds={},"isAdminWindows",(()=>js)),S(Ds,"isAdminPosix",(()=>Ms)),S(Ds,"isAdmin",(()=>D));let js=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}}()}},Ms=P;var Fs,Bs,Gs,Hs,Vs,qs,zs,Ws,Xs,Ks,Ys,Qs,Js,Zs,ea,ta,na,ra,oa,ia,sa,aa,ca,ua,la,fa;S({},"grantUserWriteAccess",(()=>U));var pa,da,ha,ma,va,ya,_a,Ea,ga,wa,ba,Oa,Ra,Ia,Sa,Ta,Pa,Ca,xa,Aa,La,Na,$a,Da,Ua,ka,ja,Ma,Fa,Ba,Ga,Ha,Va,qa,za,Wa,Xa,Ka,Ya,Qa,Ja,Za,ec,tc,nc,rc,oc,ic,sc,ac,cc,uc,lc,fc,pc,dc,hc,mc,vc,yc,_c,Ec,gc,wc,bc,Oc,Rc,Ic,Sc,Tc,Pc,Cc,xc,Ac,Lc,Nc,$c,Dc,Uc,kc,jc,Mc,Fc,Bc,Gc,Hc,Vc,qc,zc,Wc,Xc,Kc,Yc,Qc,Jc,Zc,eu,tu,nu,ru,ou,iu,su,au,cu,uu,lu,fu,pu,du,hu,mu,vu,yu,_u,Eu,gu,wu,bu,Ou,Ru,Iu,Su,Tu,Pu,Cu,xu,Au,Lu,Nu,$u={},Du={exports:{}},Uu={exports:{}},ku={exports:{}},ju={exports:{}},Mu={},Fu={},Bu={exports:{}},Gu={},Hu={},Vu={},qu={};const zu=t(function(){if(Nu)return Lu;Nu=1;var e=j(),t=F(),n=function(){if(jc)return kc;jc=1;var e=B(),t=H(),n=V(),r=te(),o=F();return kc=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)},kc}();return Lu=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=Fc?Mc:(Fc=1,Mc=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=(Gc?Bc:(Gc=1,Bc=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(Jc)return Qc;Jc=1;var e=ne(),t=Object.create;return Qc=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(eu)return Zc;eu=1;var e=ne();return Zc=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(nu)return tu;nu=1;var e=ne(),t=Object.create;return tu=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(au)return Mu;au=1;var e=ee(),t=re(),n=z(),r=W(),o=oe(),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,v=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(y){}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(v,this,t),n.cb=r,l=n,i):s.call(v,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&&ae(),i.dispose&&function(){if(bu)return Gu;bu=1;var e=B(),t=H(),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(Tu)return Hu;Tu=1;var e=ee(),t=H(),n=oe(),r=se(),o=function(){if(Su)return Iu;Su=1;var e=M(),t=Ru?Ou:(Ru=1,Ou=2147483647);return Iu=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,v;(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(),v&&(v[e]&&"nextTick"!==v[e]&&clearTimeout(v[e]),v[e]=setTimeout((function(){delete v[e]}),m),"function"==typeof v[e].unref&&v[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],v&&("nextTick"!==v[e]&&clearTimeout(v[e]),delete v[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(v={},m=(1-m)*l,f.on("get"+h,(function(t,o,i){v[t]||(v[t]="nextTick",n((function(){var n;"nextTick"===v[t]&&(delete v[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={},v&&(t(v,(function(e){"nextTick"!==e&&clearTimeout(e)})),v={})})))}}(),i.max&&function(){if(xu)return Vu;xu=1;var e=M(),t=function(){if(Cu)return Pu;Cu=1;var e=M(),t=Object.create,n={}.hasOwnProperty;return Pu=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(Au)return qu;Au=1;var e=Y(),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)}}()),Wu=/^~(?=$|\/|\\)/,{appendFile:Xu,readFile:Ku,writeFile:Yu}=Kn.promises,Qu=ue("~/.bashrc"),Ju=zu((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 Zu,el;const tl=t(function(){if(el)return Zu;el=1;const e=Xn,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return Zu=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 nl,rl,ol,il,sl,al={exports:{}};const cl=t((ol||(ol=1,il=function(){if(rl)return nl;rl=1;var e=/[|\\{}()[\]^$+*?.]/g;return nl=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),sl=function(e){return e.split("").reverse().join("")},al.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+il(t)+"])(?!"+il(n)+")","g"),sl(sl(e).replace(r,"$1"+n)))}),al.exports)),{GITHUB_ACTIONS:ul}=Eo,{appendFile:ll}=Kn.promises,{GITHUB_ACTIONS:fl}=Eo,{appendFile:pl}=Kn.promises,dl=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var hl,ml,vl,yl={exports:{}};const _l=t(_e());var El;const gl=t((El||(El=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 wl,bl,Ol,Rl,Il,Sl={exports:{}};const Tl=t(Il?Rl:(Il=1,Rl=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(Ol)return bl;Ol=1;const n=_e(),r=wl?Sl.exports:(wl=1,Sl.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 bl={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(ve(`../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 Pl,Cl;const xl=t(Cl?Pl:(Cl=1,Pl={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 Al,Ll,Nl,$l,Dl,Ul,kl,jl,Ml,Fl,Bl,Gl,Hl,Vl,ql,zl,Wl,Xl,Kl,Yl,Ql,Jl,Zl,ef,tf,nf,rf,of,sf,af,cf,uf,lf,ff,pf,df,hf,mf,vf,yf,_f,Ef,gf,wf,bf,Of,Rf,If,Sf,Tf,Pf,Cf,xf,Af,Lf,Nf,$f,Df,Uf,kf,jf,Mf,Ff,Bf,Gf,Hf,Vf,qf,zf,Wf,Xf,Kf,Yf,Qf,Jf,Zf,ep,tp,np,rp,op,ip,sp,ap,cp,up,lp,fp,pp,dp,hp,mp={exports:{}};const vp=t(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(hp)return dp;hp=1;var n=or,r=Ge(),o=Xn,i=Qn,s=Kn,a=Zn,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(),v=process.env.XDG_CONFIG_HOME||i.join(m,".config","simple-update-notifier"),y=function(e){return i.join(v,"".concat(e.replace("@","").replace("/","__"),".json"))},_=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(v)||s.mkdirSync(v,{recursive:!0}),e=function(e){var t=y(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,_(o.name,u)]:[3,2];case 1:return i=t.sent(),c=y(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 dp=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]}}))}))}}()),yp={name:"setup-cpp",version:"0.45.0"};var _p,Ep,gp,wp,bp,Op,Rp,Ip,Sp,Tp,Pp,Cp,xp,Ap={},Lp={},Np={},$p={},Dp={},Up={},kp={},jp={},Mp={},Fp={},Bp={},Gp={},Hp=Xe(),Vp={},qp=(xp||(xp=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(Kn),s=cr,a=t(Qn),c=t(Jn),u=t(Zn),l=tr,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)}(Vp)),Vp);const{GITHUB_ACTIONS:zp}=Eo,{appendFile:Wp}=Kn.promises,Xp="Dpkg::Lock::Timeout=300";let Kp=!1;const Yp=zu((function(e=et()){A(e,"nala"!==e?["update","-y","-o",Xp]:["update","-o",Xp],{...ks,env:Je(e)}),Kp=!0}));var Qp,Jp;(Jp=Qp||(Qp={}))[Jp.NameDashVersion=0]="NameDashVersion",Jp[Jp.NameEqualsVersion=1]="NameEqualsVersion",Jp[Jp.Name=2]="Name",Jp[Jp.None=3]="None";const Zp=zu((async function(e){Yp(e);const t=await rt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&A(e,["install","-y","--fix-broken","-o",Xp,...t],{...ks,env:Je(e)})}),{promise:!0}),ed=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"],td="/etc/apt/trusted.gpg.d",nd="keyserver.ubuntu.com";let rd,od,id,sd,ad,cd=!1,ud=!1,ld=!1,fd=!1;const pd=/Version\s*:\s*(.*)/g;let dd=!1;var hd,md;const vd=t(function(){if(md)return hd;md=1;var e=Qn;return hd=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 yd={},_d={};bt(_d,"name",(()=>Ot));var Ed={};bt(Ed,"normalizeTrim",(()=>Rt));var gd={};bt(gd,"addExeExt",(()=>It));var wd={};bt(wd,"addNamePrefix",(()=>St));var bd={};bt(bd,"addNameSuffix",(()=>Tt));var Od={};bt(Od,"addShExt",(()=>Pt));var Rd={};bt(Rd,"addShRelativePrefix",(()=>Ct));var Id={};bt(Id,"removeExt",(()=>xt));var Sd={};bt(Sd,"replaceExt",(()=>At));var Td={};bt(Td,"isPathInside",(()=>Lt)),wt(yd,_d),wt(yd,Ed),wt(yd,gd),wt(yd,wd),wt(yd,bd),wt(yd,Od),wt(yd,Rd),wt(yd,Id),wt(yd,Sd),wt(yd,Td);const Pd=t(ke()),Cd=t(De()),xd=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],Ad=["x86","i386","ia32","win32","32","x32"],Ld=["aarch64","arm64","woa64","arm"],Nd=["armv7","armv7a"],$d=["powerpc64le","ppc64le"],Dd=["sparc64"],Ud=["sparcv9"];var kd,jd,Md,Fd,Bd,Gd,Hd,Vd,qd,zd,Wd,Xd={},Kd={exports:{}},Yd={exports:{}},Qd=Kd.exports,Jd={},Zd=function(){function e(e,t){const n=[];t=t||_.arch();const r=E.join(s(),e);if(v.existsSync(r)){const e=v.readdirSync(r);for(const i of e)if(o(i)){const e=E.join(r,i,t||"");v.existsSync(e)&&v.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(),I.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,w.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,w.clean(t)||t,n||"");v.writeFileSync(r+".complete",""),h.debug("finished caching tool")}function o(e){const t=w.clean(e)||"";h.debug("isExplicit: "+t);const n=null!=w.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)=>w.gt(e,t)?1:-1))).length-1;r>=0;r--){const o=e[r];if(w.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 R.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return R.ok(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=vr[e];return void 0!==n?n:t}if(zd)return Xd;zd=1;var u=Xd.__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=Xd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=Xd.__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=Xd.__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=Xd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.evaluateVersions=Xd.isExplicitVersion=Xd.findFromManifest=Xd.getManifestFromRepo=Xd.findAllVersions=Xd.find=Xd.cacheFile=Xd.cacheDir=Xd.extractZip=Xd.extractXar=Xd.extractTar=Xd.extract7z=Xd.downloadTool=Xd.HTTPError=void 0;const h=f(Xe()),m=f(ze()),v=f(Kn),y=f((jd||(jd=1,function(e,t){var n=Qd&&Qd.__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=Qd&&Qd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Qd&&Qd.__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=Qd&&Qd.__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(Nt()),a=Xe(),c=Xn,u=ir,l=Kn;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}}(Kd,Kd.exports)),Kd.exports)),_=f(Xn),E=f(Qn),g=f(io),w=f(Nt()),b=f(ar),O=f(nr),R=sr,I=d(function(){if(Vd)return Hd;Vd=1;var e=function(){if(Fd)return Md;Fd=1;var e=Yn;return Md=function(){return e.randomBytes(16)}}(),t=function(){if(Gd)return Bd;Gd=1;for(var e=[],t=0;256>t;++t)e[t]=(t+256).toString(16).substr(1);return Bd=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 Hd=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)}}()),S=We(),T=function(){if(qd)return Jd;qd=1;var e=Jd.__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=Jd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Jd.__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=Jd.__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(Jd,"__esModule",{value:!0}),Jd.RetryHelper=void 0;const o=n(Xe());return Jd.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)))}))}},Jd}();class P extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}Xd.HTTPError=P;const C="win32"===process.platform,x="darwin"===process.platform;return Xd.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||E.join(a(),I.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(v.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=O.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message))();let u=!1;try{return yield s(a,v.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)))}))},Xd.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){R.ok(C,"extract7z() not supported on current OS"),R.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 S.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 S.exec(`"${e}"`,t,r)}finally{process.chdir(o)}}return n}))},Xd.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 S.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 S.exec("tar",s),n}))},Xd.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let o;R.ok(x,"extractXar() not supported on current OS"),R.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 S.exec(`"${i}"`,(s=o,Array.from(new Set(s)))),n}))},Xd.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 S.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 S.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 S.exec(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},Xd.cacheDir=function(e,t,o,i){return p(this,void 0,void 0,(function*(){if(o=w.clean(o)||o,i=i||_.arch(),h.debug(`Caching tool ${t} ${o} ${i}`),h.debug("source dir: "+e),!v.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,o,i);for(const t of v.readdirSync(e)){const n=E.join(e,t);yield m.cp(n,s,{recursive:!0})}return r(t,o,i),s}))},Xd.cacheFile=function(e,t,o,i,s){return p(this,void 0,void 0,(function*(){if(i=w.clean(i)||i,s=s||_.arch(),h.debug(`Caching tool ${o} ${i} ${s}`),h.debug("source file: "+e),!v.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}))},Xd.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||_.arch(),o(n)||(n=i(e(t,r),n));let a="";if(n){n=w.clean(n)||"";const e=E.join(s(),t,n,r);h.debug("checking cache: "+e),v.existsSync(e)&&v.existsSync(e+".complete")?(h.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):h.debug("not found")}return a},Xd.findAllVersions=e,Xd.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}))},Xd.findFromManifest=function(e,t,n,r=_.arch()){return p(this,void 0,void 0,(function*(){return yield y._findMatch(e,t,n,r)}))},Xd.isExplicitVersion=o,Xd.evaluateVersions=i,Xd}(),eh={};const th=t(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(Wd)return eh;Wd=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.retryAsPromised=eh.TimeoutError=void 0;class t extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return eh.TimeoutError=t,eh.retryAsPromised=e,eh.default=e,eh}());var nh=ze();let rh;const{GITHUB_ACTIONS:oh}=wr,ih=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||Kn.mkdir,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||Kn.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||Kn.statSync,e.mkdirSync=e.mkdirSync||n.mkdirSync||Kn.mkdirSync,t},sh=(e,t,n)=>{const r=Qn.dirname(e),o={...ih(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 sh(e,o,sh(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}}},ah=Object.assign((async(e,t,n)=>{const r=ih(t);r.recursive=!1;const o=Qn.dirname(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 ah(o,r).then((t=>ah(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:sh}),ch=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?ch(e,Qn.dirname(t),t):void 0))},uh=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?uh(e,Qn.dirname(t),t):void 0}},lh=(e,t)=>{const n=ih(t);if(n.recursive=!0,Qn.dirname(e)===e)return n.mkdirSync(e,n);const r=uh(n,e);try{return n.mkdirSync(e,n),r}catch(o){if(o&&"ENOENT"===o.code)return sh(e,n);throw o}},fh=Object.assign((async(e,t)=>{const n={...ih(t),recursive:!0};return Qn.dirname(e)===e?await n.mkdirAsync(e,n):ch(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return ah(e,n);throw t}))))}),{sync:lh}),ph=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,dh=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=Qn.resolve(e),"win32"===ph){const t=/[*|"<>?:]/,{root:n}=Qn.parse(e);if(t.test(e.substring(n.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},hh=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),mh=+hh[0]>10||10==+hh[0]&&+hh[1]>=12,vh=mh?e=>ih(e).mkdirSync===Kn.mkdirSync:()=>!1,yh=Object.assign(mh?e=>ih(e).mkdir===Kn.mkdir:()=>!1,{sync:vh}),_h=(e,t)=>{e=dh(e);const n=ih(t);return vh(n)?lh(e,n):sh(e,n)},Eh=Object.assign((async(e,t)=>{e=dh(e);const n=ih(t);return yh(n)?fh(e,n):ah(e,n)}),{mkdirpSync:_h,mkdirpNative:fh,mkdirpNativeSync:lh,mkdirpManual:ah,mkdirpManualSync:sh,sync:_h,native:fh,nativeSync:lh,manual:ah,manualSync:sh,useNative:yh,useNativeSync:vh});var gh=We();const wh=t(Pe()),bh=t(Fe()),Oh=t(Se()),Rh=/v?(\d\S*)/,Ih=zu((function(){const e="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),t=Qn.join(e,"versions.json");return JSON.parse(Kn.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:Sh}=wr,Th=zu((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 gh.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push(Qn.join(n,"Scripts"),Qn.join(n,"Scripts","bin"),Qn.join(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0});var Ph,Ch={},xh=function(){if(Ph)return Ch;Ph=1,Object.defineProperty(Ch,"__esModule",{value:!0}),Ch.getUbuntuVersion=void 0;const e=ir;return Ch.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[]},Ch}();const Ah=zu((async function(){try{if(vt()){try{null===Ns.sync("lsb_release",{nothrow:!0})&&await st([{name:"lsb-release"}])}catch{return en()}const e=await xh.getUbuntuVersion();return 0===e.length?en():e}return null}catch(e){return h(""+e),null}}),{promise:!0}),Lh=zu((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 Eh(e),await Eh(Qn.join(e,"trash")),await Eh(Qn.join(e,"shared")),await Eh(Qn.join(e,"venv")),e}),{promise:!0}),Nh=zu((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,_m),await Eh(e),e}),{promise:!0});let $h;const Dh=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"]]]),Uh=zu((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||Xn.release()).split(".")[0]);const[t,n]=Dh.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),kh=t(Te()),{GITHUB_ACTIONS:jh}=wr,Mh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:Fh}=wr,Bh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),Gh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),Hh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href));class Vh extends Error{constructor(e){super(e),this.name="TimeoutError"}}class qh extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const zh=e=>void 0===globalThis.DOMException?new qh(e):new DOMException(e),Wh=e=>{const t=void 0===e.reason?zh("This operation was aborted."):e.reason;return t instanceof Error?t:zh(t)};var Xh,Kh={},Yh=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(Xh)return Kh;Xh=1;const i=Xe(),s=ir,a=Kn,c=Qn,u=or,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"};Kh.vsversion_to_versionnumber=e,Kh.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return Kh.findWithVswhere=n,Kh.findVcvarsall=r,Kh.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 v=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),y=v[0].split("\r\n"),_=v[1].split("\r\n"),E=v[2].split("\r\n"),g=_.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 w={};for(let r of y){const[e,t]=r.split("=");w[e]=t}i.startGroup("Environment variables");for(let r of E){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==w[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")},Kh}(),Qh=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(Qh||{});const Jh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:Zh}=wr,em="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),tm=zu((async function(e,t,n){const[r,o]=await Promise.all([kn(e,t,n),Mn()]);return await rm(n),r}),{promise:!0}),nm=zu((async function(e){if(vt())if(e>10)try{await st([{name:"libtinfo6"}])}catch(t){v(`Failed to install libtinfo6 ${t}\nSkipping the dependency`)}else try{await st([{name:"libtinfo5"}])}catch(t){v(`Failed to install libtinfo5 ${t}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${xd.includes(process.arch)?"amd64":Ld.includes(process.arch)?"arm64":process.arch}.deb`,n="http://launchpadlibrarian.net/666971015/"+e,r=new qp.DownloaderHelper(n,Xn.tmpdir(),{fileName:e});r.on("error",(e=>{throw Error(`Failed to download ${n}: ${e}`)})),await r.start(),A("dpkg",["-i",Qn.join(Xn.tmpdir(),e)])}else mt()?await gt("ncurses5-compat-libs",void 0,"yay"):ht()&&await Et([{name:"ncurses-compat-libs"}])}),{promise:!0}),rm=zu((async function(e){"linux"===process.platform&&await bn(qt("gcc",void 0,await Ah()),"",e,40)}),{promise:!0}),{GITHUB_ACTIONS:om}=wr,im="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href));let sm,am=!1;const cm={llvm:$n,clang:$n,"clang++":$n},um={gcc:bn,"g++":bn},lm={mingw:yn},fm={msvc:Fn,cl:Fn,msbuild:Fn,visualstudio:Fn},pm={appleclang:xn,applellvm:xn,"apple-clang":xn,"apple-llvm":xn},dm={cmakelang:cn,"cmake-lint":cn,"cmake-format":cn,cmakelint:cn,cmakeformat:cn},hm=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],mm={nala:async function(e,t,n){if(!vt())return;if("string"==typeof sm)return{binDir:sm};const r=Ns.sync("nala",{nothrow:!0});if(null!==r)return sm=Qn.dirname(r),{binDir:sm};await st([{name:"python3-apt"}]),sm="/usr/bin";try{const t=await ot({name:"nala",version:e});if(void 0!==t)return await st([{name:t}]),{binDir:sm}}catch(o){v("Failed to install nala: "+o)}try{const e=await ot({name:"nala-legacy"});if(void 0!==e)return await st([{name:e}],!0),{binDir:sm}}catch(o){v("Failed to install nala-legacy: "+o)}return await async function(){const e=new qp.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh",Xn.tmpdir(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=Qn.join(Xn.tmpdir(),"install-nala.sh"),n=await ps(t,"utf8");await bs(t,n.replace(/sudo/g,"")),await st([{name:"wget"}]);try{A("bash",[t])}catch(o){d("Failed to install nala via installer: "+o),A("apt",["install","-y","-t","nala","nala"])}}(),{binDir:sm}},brew:lt,choco:yt,python:Xt,powershell:Vn,pwsh:Vn,...cm,...um,...lm,...fm,...pm,...dm,cmake:Gt,ninja:Sn,vcpkg:async function(e,t,n){return am&&null!==Ns.sync("vcpkg",{nothrow:!0})?{binDir:Qn.dirname(Ns.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"}]):vt()&&await st([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}])),await ce(Qn.join(t,Pt("bootstrap-vcpkg",".bat")))?m(`Vcpkg folder already exists at ${t}. Skipping the clone`):O("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Qn.dirname(t),stdio:"inherit"}),""!==e&&"true"!==e&&(v("Checking out vcpkg version "+e),O("git",["checkout",e],{cwd:t,stdio:"inherit"})),O(Pt(Ct("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await U(t),await he(t,_m),am=!0,{binDir:t})},bazel:async function(e,t,n){switch(process.platform){case"win32":return _t("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"}]),A("dnf",["copr","enable","vbatts/bazel"]),Et([{name:"bazel4"}]);if(vt())return A("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 tn("conan",e)},meson:function(e,t,n){return tn("meson",e)},gcovr:function(e,t,n){return tn("gcovr",e)},opencppcoverage:Bn,OpenCppCoverage:Bn,ccache:function(e,t,n){switch(process.platform){case"win32":return _t("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(vt())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 _t("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 th((()=>_t("doxygen.install",e)),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>v(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(Qn.join(e,"doxygen.exe")))return await he(e,_m),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await un(qt("graphviz",void 0)),t}case"darwin":{const e=await dt("doxygen",void 0,{formula:!0});return Uh()[0]>11&&await un(qt("graphviz",void 0)),e}case"linux":{let o;if(""===e||mt()||ht())if(mt())o=await gt("doxygen",e);else{if(ht())return Et([{name:"doxygen",version:e}]);if(!vt())throw Error("Unsupported linux distributions");o=await st([{name:"doxygen",version:e}])}else{if(!vt())throw Error("Unsupported linux distributions");try{o=await Ft("doxygen",e,fn,t,n);try{await st([{name:"libclang-cpp9"}])}catch(r){v("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.`),o=await st([{name:"doxygen"}])}}return await un(qt("graphviz",void 0,await Ah())),o}default:throw Error("Unsupported platform")}},graphviz:un,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await _t("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await he(e,_m),e}()};case"darwin":return dt("cppcheck",e);case"linux":if(mt())return gt("cppcheck",e);if(ht())return Et([{name:"ccache",version:e}]);if(vt())return st([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},cpplint:function(e,t,n){return tn("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return tn("flawfinder",e)},lizard:function(e,t,n){return tn("lizard",e)},infer:function(e,t,n){return Ft("infer",e,Rn,t,n)},"clang-tidy":Un,clangtidy:Un,"clang-format":Dn,clangformat:Dn,vcvarsall:An,kcov:async function(e,t,n){if("linux"!==process.platform)return void v("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 Ft("kcov",o,Pn,t,n),a):(a=await Ft("kcov",o,Tn,t,n),mt()?await gt("binutils"):ht()?await Et([{name:"binutils"}]):vt()&&await st([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return _t("make",e);case"darwin":{await dt("make",e);const t=Qn.join(pt(),"opt/make/libexec/gnubin");return await he(t,_m),{binDir:t}}case"linux":if(mt())return gt("make",e);if(ht())return Et([{name:"make",version:e}]);if(vt())return st([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task:function(e,t,n){return Ft("task",e,qn,t,n)},sevenzip:$t,"7zip":$t,"7z":$t},vm=Object.keys(mm),ym=["compiler","architecture","timeout",...vm],_m={rcPath:ue("~/.cpprc"),guard:"cpp"};(async function(e){var t,n,r;let o=Promise.resolve();gr.GITHUB_ACTIONS||(o=async function(){try{await vp({pkg:yp})}catch(e){h("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const i=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=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(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);Ye(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:[...ym,"timeout"],default:Object.fromEntries(ym.map((e=>[e,zn(e)]))),alias:{h:"help"},boolean:"help"})}(e);i.help&&(v('\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=i.architecture)?t:process.arch,a=null!=(n=process.env.SETUP_CPP_DIR)?n:ue("~"),c=[],u=[],l=Tl.create({autoloadLocales:!0});let f,p;Tl.addLocale(xl),_l.addLocale(gl);const m=await Ah(),y=void 0!==i.compiler?function(e){try{const t=e.split("-"),n=t[0];if(1 in t){const e=t[1];return null===Oh(e)&&v(`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}}}(i.compiler):void 0;if(!function(e,t,n){var r,o;const i=void 0!==n&&t.includes(n.compiler),s=(i?t:t.filter((e=>"compiler"!==e))).filter((t=>void 0!==e[t])),a=s.filter((t=>!Wt(i&&"compiler"===t&&void 0!==n?n.version:e[t]))),c=0!==a.length?i&&"compiler"===a[0]&&void 0!==n?null!=(r=n.version)?r:"true":null!=(o=e[a[0]])?o:"true":"true";if(a.some((t=>i&&"compiler"===t&&void 0!==n?e.compiler!==`${n.compiler}-${c}`:e[t]!==c)))return!1;for(const u of s)e[u]=i&&"compiler"===u&&void 0!==n?`${n.compiler}-${c}`:c;return!0}(i,[...hm,"compiler"],y))return d("The same version must be used for llvm, clang-format and clang-tidy"),1;mt()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&(v("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await gt("python-pygments"));let _=!1;for(const d of vm){if(gr.isCI&&0!==u.length){_=!0;break}const e=i[d];void 0!==e&&(f=Date.now(),await Ln(d,e,m,s,a,c,u,60*Number.parseFloat(null!=(r=i.timeout)?r:"20")*1e3),p=Date.now(),v("took "+(l.format(f,p)||"0 seconds")))}if(!_&&void 0!==y){const e=Date.now();await async function(e,t,n,r,o,i,s){let a;try{if(Hp.startGroup(`Installing ${e} ${null!=t?t:""}`),e in cm)a=await $n(qt("llvm",t,n),Qn.join(r,"llvm"),o),await pe("GCOV","llvm-cov gcov",_m);else if(e in um){const e=qt("gcc",t,n);a=await bn(e,Qn.join(r,"gcc"),o),await On(e)}else if(e in lm){const e=qt("mingw",t,n);a=await yn(e,Qn.join(r,"gcc"),o),await On(e)}else e in fm?a=await Fn(qt("msvc",t,n),Qn.join(r,"msvc"),o):e in pm?await xn():(a=null,s.push("Unsupported compiler "+e))}catch(c){d(c),s.push(`Failed to install the ${e} ${t}`)}null!==a&&i.push(Wn(e,a)),Hp.endGroup()}(y.compiler,y.version,m,a,s,c,u);const t=Date.now();v("took "+(l.format(e,t)||"0 seconds"))}if(await async function(e){if(await ce(e.rcPath)){const t=(await Ku(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await Yu(e.rcPath,n.join("\n")),await U(e.rcPath)}}(_m),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(v("setup-cpp finished"),!gr.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 o,0===u.length?0:1})(process.argv).then((e=>{process.exitCode=e})).catch((e=>{d("main() panicked!"),d(e),process.exitCode=1})),exports.HttpClient=ro,exports.ciInfo=wr,exports.commonjsGlobal=vr,exports.coreExports=Hp,exports.execExports=gh,exports.getAugmentedNamespace=n,exports.getDefaultExportFromCjs=t,exports.info=v,exports.pathExists=ce,exports.requireSemver=Ge,exports.toolCacheExports=Zd,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 br||(br=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.toCommandProperties=Sr.toCommandValue=void 0,Sr.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Sr.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}:{}}),Sr}function o(){return Cr>Pr.length-16&&(Yn.randomFillSync(Pr),Cr=0),Pr.slice(Cr,Cr+=16)}function i(e){return"string"==typeof e&&xr.test(e)}function s(e,t=0){const n=(Ar[e[t+0]]+Ar[e[t+1]]+Ar[e[t+2]]+Ar[e[t+3]]+"-"+Ar[e[t+4]]+Ar[e[t+5]]+"-"+Ar[e[t+6]]+Ar[e[t+7]]+"-"+Ar[e[t+8]]+Ar[e[t+9]]+"-"+Ar[e[t+10]]+Ar[e[t+11]]+Ar[e[t+12]]+Ar[e[t+13]]+Ar[e[t+14]]+Ar[e[t+15]]).toLowerCase();if(!i(n))throw TypeError("Stringified UUID is invalid");return n}function a(e){if(!i(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,o,i){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,o){i=i||0;for(let e=0;16>e;++e)o[i+e]=c[e];return o}return s(c)}try{r.name=e}catch(o){}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 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 Br(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new Br("http://"+n)}}function l(){if(so)return fo;so=1;var e=fo.__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(fo,"__esModule",{value:!0}),fo.PersonalAccessTokenCredentialHandler=fo.BearerCredentialHandler=fo.BasicCredentialHandler=void 0,fo.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")}))}},fo.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")}))}},fo.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")}))}},fo}function f(){return co||(co=1,function(e){var t=po.__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=Xn,r=Kn,{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}(po)),po}function p(){return lo||(lo=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 o(e){d.issue("group",e)}function i(){d.issue("endgroup")}var s=Rr.__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=Rr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=Rr.__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=Rr.__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(Or)return Ir;Or=1;var t=Ir.__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=Ir.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Ir.__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};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.issue=Ir.issueCommand=void 0;const i=o(Xn),s=r();Ir.issueCommand=e,Ir.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 Ir}(),h=function(){if(Mr)return Tr;Mr=1;var e=Tr.__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=Tr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Tr.__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(Tr,"__esModule",{value:!0}),Tr.prepareKeyValueMessage=Tr.issueFileCommand=void 0;const o=n(Kn),i=n(Xn),s=jr,a=r();return Tr.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"})},Tr.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}`},Tr}(),m=r(),v=c(Xn),y=c(Qn),_=function(){if(ao)return Fr;ao=1;var e=Fr.__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(Fr,"__esModule",{value:!0}),Fr.OidcClient=void 0;const t=io,r=l(),o=p();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)}`),o.debug("ID token url is "+e);const n=yield i.getCall(e);return o.setSecret(n),n}catch(n){throw Error("Error message: "+n.message)}}))}}return Fr.OidcClient=i,Fr}();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}${y.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(v.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+v.EOL)},e.startGroup=o,e.endGroup=i,e.group=function(e,t){return u(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 u(this,void 0,void 0,(function*(){return yield _.OidcClient.getIDToken(e)}))};var w=f();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return w.summary}});var b=f();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var O=function(){if(uo)return ho;uo=1;var e=ho.__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=ho.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=ho.__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(ho,"__esModule",{value:!0}),ho.toPlatformPath=ho.toWin32Path=ho.toPosixPath=void 0;const r=n(Qn);return ho.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},ho.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},ho.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},ho}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return O.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return O.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return O.toPlatformPath}})}(Rr)),Rr}function d(e){return go?mo.error(e):console.log(`${e}`)}function h(e){return go?mo.warning(e):console.log(`${e}`)}function m(e){return go?mo.notice(e):console.log(`${e}`)}function v(e){return go?mo.info(e):console.log(e)}function y(){if(Po)return To;Po=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=Qn,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 So||(So=1,t="win32"===process.platform||vr.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(bo)return wo;bo=1,wo=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Kn;return wo}():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(Ro)return Oo;Ro=1,Oo=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Kn;return Oo}(),Io=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}}),Io;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 To=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)},To}function _(){if(Fo)return Mo;Fo=1;const e=Qn,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(Ao)return xo;Ao=1;const t=Qn,n=y(),r=function(){if(Co)return qo.exports;Co=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 qo.exports=e,qo.exports.default=e,qo.exports}();return xo=function(t){return e(t)||e(t,!0)}}(),n=function(){if(Lo)return zo;Lo=1;const e=/([()\][%!^"`<>&|;, *?])/g;return zo.command=function(t){return t.replace(e,"^$1")},zo.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},zo}(),r=function(){if(jo)return ko;jo=1;const e=Kn,t=function(){if(Uo)return Do;Uo=1;const e=$o?No:($o=1,No=/^#!(.*)/);return Do=(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 ko=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 Mo=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 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 w(e){return g(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function b(e,t,n){const r=Xi(e,t,n),o=Bi(e,t),i=Gi(e,t);let s;Wi(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=ir.spawn(r.file,r.args,r.options)}catch(f){const e=new ir.ChildProcess,t=Promise.reject(li({error:f,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return ki(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=vi((()=>{e.kill()}));return r.finally((()=>{o()}))})(s,r.options,c);s.kill=yi.bind(null,s.kill.bind(s)),s.cancel=bi.bind(null,s,{isCanceled:!1});const l=ti((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=$i(t,{encoding:o,buffer:i,maxBuffer:s}),u=$i(n,{encoding:o,buffer:i,maxBuffer:s}),l=$i(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},Ni(t,c),Ni(n,u),Ni(r,l)])}})(s,r.options,u),p=Ki(r.options,c),d=Ki(r.options,l),h=Ki(r.options,f);if(e||0!==t||null!==n){const c=li({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:(Li(e),Kn.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=Ai();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=Oi.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=Oi.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=Oi.bind(void 0,e,"all"))})(s),ki(s,l),s}function O(e,t,n){const r=Xi(e,t,n),o=Bi(e,t),i=Gi(e,t);Wi(i,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(Li(e),Kn.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=ir.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw li({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=Ki(r.options,a.stdout,a.error),u=Ki(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=li({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 R(){return Ps||(Ps=1,function(e){var t=Yi.__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=Yi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Yi.__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=Yi.__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(Is)return Qi;Is=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.sync=Qi.isexe=void 0;const e=Kn,t=Rs;Qi.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}},Qi.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)=>{var n,r,o,i,s,a,c,u;const l=null!=(r=t.uid)?r:null==(n=process.getuid)?void 0:n.call(process),f=null!=(s=null!=(i=t.groups)?i:null==(o=process.getgroups)?void 0:o.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,v=e.gid,y=parseInt("100",8),_=parseInt("010",8),E=y|_;return!!(h&parseInt("001",8)||h&_&&d.has(v)||h&y&&m===l||h&E&&0===l)};return Qi}());e.posix=i;const s=r(function(){if(Ss)return As;Ss=1,Object.defineProperty(As,"__esModule",{value:!0}),As.sync=As.isexe=void 0;const e=Kn,t=Rs;As.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}},As.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 As}());e.win32=s,o((Ts||(Ts=1,Object.defineProperty(Ls,"__esModule",{value:!0})),Ls),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:i;e.isexe=a.isexe,e.sync=a.sync}(Yi)),Yi}function I(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return b(function(){if(void 0===$s){const e=Ns.sync("pwsh",{nothrow:!0});null!==e&&($s=e);const t=Ns.sync("powershell",{nothrow:!0});null!==t&&($s=t)}if(void 0===$s)throw Error("Could not find powershell");return $s}(),[...t,"-c",e],n)}function S(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function T(){return null!==Ns.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 A(e,t=[],n=ks){return C()?function(e,t){const[n,...r]=Vi(e);return O(n,r,t)}(N(e,t),n):O(e,$(t),n)}function L(e,t=[],n=ks){return C()?function(e,t){const[n,...r]=Vi(e);return b(n,r,t)}(N(e,t),n):b(e,$(t),n)}function N(e,t){return"sudo "+$([e,...t]).join(" ")}function $(e){return e.map((e=>`'${e}'`))}function D(){return"win32"===process.platform?js():P()}async function U(e){if(("linux"===process.platform||"darwin"===process.platform)&&C()&&void 0!==process.env.SUDO_USER){let t=Kn.statSync(e).isDirectory();await L("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],ks)}}function k(){if(Hs)return Gs;Hs=1;var e=(Bs?Fs:(Bs=1,Fs=function(){}))();return Gs=function(t){return t!==e&&null!==t}}function j(){if(qs)return Vs;qs=1;var e=k(),t=[].forEach,n=Object.create;return Vs=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},Vs}function M(){if(ta)return ea;ta=1;var e=function(){if(Zs)return Js;Zs=1;var e=Qs?Ys:(Qs=1,Ys=(Ws?zs:(Ws=1,zs=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:Ks?Xs:(Ks=1,Xs=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return Js=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return ea=function(n){return t(0,e(n))}}function F(){if(ra)return na;ra=1;var e=M();return na=function(t,n,r){var o;return isNaN(t)?0>(o=n)?1:r&&o?o-1:o:!1!==t&&e(t)}}function B(){return ia?oa:(ia=1,oa=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function G(){if(aa)return sa;aa=1;var e=k();return sa=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function H(){return fa||(fa=1,la=function(){if(ua)return ca;ua=1;var e=B(),t=G(),n=function(){}.bind,r=function(){}.call,o=Object.keys,i={}.propertyIsEnumerable;return ca=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}))}},ca}()("forEach")),la}function V(){return pa||(pa=1),$u}function q(){return Ra||(Ra=1,Oa=(ha?da:(ha=1,da=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(ba)return wa;ba=1;var e=ga?Ea:(ga=1,Ea=(va?ma:(va=1,ma=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(_a)return ya;_a=1;var e=k(),t=Object.keys;return ya=function(n){return t(e(n)?Object(n):n)}}()),t=G(),n=Math.max;return wa=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},wa}()),Oa}function z(){if(Ca)return Pa;Ca=1;var e=G(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;return Pa=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 W(){if(xa)return Uu.exports;xa=1;var e,t,n=M();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); };")}}(),Uu.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},Uu.exports}function X(){return La?Aa:(La=1,Aa=function(e){return null!=e})}function K(){if(Fa)return Ma;Fa=1;var e=function(){if(ja)return ka;ja=1;var e=function(){if(Ua)return Da;Ua=1;var e=function(){if($a)return Na;$a=1;var e=X(),t={object:!0,function:!0,undefined:!0};return Na=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return Da=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return ka=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 Ma=function(r){return!!e(r)&&!t.test(n.call(r))}}function Y(){if(Wa)return ku.exports;Wa=1;var e=X(),t=K(),n=q(),r=j(),o=(za||(za=1,qa=function(){if(Ga)return Ba;Ga=1;var e="razdwatrzy";return Ba=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(Va)return Ha;Va=1;var e="".indexOf;return Ha=function(t){return e.call(this,t,arguments[1])>-1},Ha}()),qa),i=ku.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},ku.exports}function Q(){return nc?tc:(nc=1,tc=(Ja?Qa:(Ja=1,Qa=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(ec)return Za;ec=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 Za=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(cc)return ac;cc=1;var e=sc?ic:(sc=1,ic=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return ac=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function Z(){return _c?yc:(_c=1,yc=function(){if(oc)return rc;oc=1;var e=Q(),t={object:!0,symbol:!0};return rc=function(){var n=e.Symbol;return"function"==typeof n&&(n("test symbol"),!!t[typeof n.iterator]&&!!t[typeof n.toPrimitive]&&!!t[typeof n.toStringTag])}}()()?Q().Symbol:function(){if(vc)return mc;vc=1;var e,t,n,r=Y(),o=J(),i=Q().Symbol,s=function(){if(lc)return uc;lc=1;var e=Y(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return uc=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(pc)return fc;pc=1;var e=Y(),t=Q().Symbol;return fc=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(hc)return dc;hc=1;var e=Y(),t=J(),n=Object.create(null);return dc=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)},mc=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])),mc}())}function ee(){return Pc?Tc:(Pc=1,Tc=(Ya?Ka:(Ya=1,Ka=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(Sc)return Ic;Sc=1;var e=Z().iterator,t=function(){if(gc)return Ec;gc=1;var e={}.toString,t=e.call(function(){return arguments}());return Ec=function(n){return e.call(n)===t}}(),n=function(){if(bc)return wc;bc=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return wc=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=M(),o=B(),i=G(),s=k(),a=function(){if(Rc)return Oc;Rc=1;var e={}.toString,t=e.call("");return Oc=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 Ic=function(p){var d,h,m,v,y,_,E,g,w,b,O=arguments[1],R=arguments[2];if(p=Object(i(p)),s(O)&&o(O),this&&this!==Array&&n(this))d=this;else{if(!O){if(t(p))return 1!==(y=p.length)?Array.apply(null,p):((v=[,])[0]=p[0],v);if(c(p)){for(v=Array(y=p.length),h=0;y>h;++h)v[h]=p[h];return v}}v=[]}if(!c(p))if(void 0!==(w=p[e])){for(E=o(w).call(p),d&&(v=new d),g=E.next(),h=0;!g.done;)b=O?u.call(O,R,g.value,h):g.value,d?(l.value=b,f(v,h,l)):v[h]=b,g=E.next(),++h;y=h}else if(a(p)){for(y=p.length,d&&(v=new d),h=0,m=0;y>h;++h)b=p[h],y>h+1&&(55296>(_=b.charCodeAt(0))||_>56319||(b+=p[++h])),b=O?u.call(O,R,b,m):b,d?(l.value=b,f(v,m,l)):v[m]=b,++m;y=m}if(void 0===y)for(y=r(p.length),d&&(v=new d(y)),h=0;y>h;++h)b=O?u.call(O,R,p[h],h):p[h],d?(l.value=b,f(v,h,l)):v[h]=b;return d&&(l.value=null,v.length=y),v},Ic}())}function te(){if(Uc)return Dc;Uc=1;var e,t,n,r,o,i=(Ta||(Ta=1,e=Du,t=q(),n=function(){if(Sa)return Ia;Sa=1;var e=k(),t={function:!0,object:!0};return Ia=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}),Du.exports),s=W(),a=Y(),c=function(){return Xa||(Xa=1,e=ju,ju.exports,u=Y(),l=B(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,v={}.hasOwnProperty,y={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(v.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),v.call(this,"__ee__")?n=this.__ee__:(n=y.value=d(null),h(this,"__ee__",y),y.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),!v.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),ju.exports;var e,t,n,r,o,i,s,a,c,u,l,f,p,d,h,m,v,y}().methods,u=function(){if(Lc)return Ac;Lc=1;var e,t=function(){if(xc)return Cc;xc=1;var e=ee(),t=Array.isArray;return Cc=function(n){return t(n)?n:e(n)}}(),n=k(),r=B(),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))},Ac=function(o){return(o=t(o)).forEach((function(e){n(e)&&r(e)})),e.bind(o)}}(),l=function(){if($c)return Nc;$c=1;var e=B();return Nc=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,v=c.emit;return Dc=function(e,t,n){var r,o,c,y,_,E,g,w,b,O,R,I,S,T,P,C=d(null);return o=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(O=l(n.normalizer),c=O.get,y=O.set,_=O.delete,E=O.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 R&&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=y(s)}else if(hasOwnProperty.call(C,n))throw i("Circular invocation","CIRCULAR_INVOCATION");return C[n]=o,I&&r.emit("set",n,null,o),o}),o):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return R&&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,I&&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 R&&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,I&&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)&&(_&&_(e),t=C[e],delete C[e],S&&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?R=!0:"set"===e?I=!0:"delete"===e&&(S=!0),m.call(this,e,t)},emit:v,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)},w=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(w),_has:a(b)}),r},Dc}function ne(){if(Yc)return Kc;Yc=1;var e=Xc?Wc:(Xc=1,Wc=(Vc?Hc:(Vc=1,Hc=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:zc?qc:(zc=1,qc=function(e){return e!=e})),t=M(),n=G(),r=[].indexOf,o={}.hasOwnProperty,i=Math.abs,s=Math.floor;return Kc=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},Kc}function re(){if(ou)return ru;ou=1;var e=B(),t=H(),n=function(){}.call;return ru=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},ru}function oe(){if(su)return iu;su=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 iu=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 ie(){return fu?lu:(fu=1,lu=function(e){return"function"==typeof e})}function se(){function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return gu||(gu=1,Bu.exports=e,Bu.exports.default=e),Bu.exports}function ae(){if(wu)return Fu;wu=1;var e=re(),t=function(){if(uu)return cu;uu=1;var e=[].forEach,t=Object.create;return cu=function(n){var r=t(null);return e.call(arguments,(function(e){r[e]=!0})),r},cu}(),n=function(){if(mu)return hu;mu=1;var e=G(),t=function(){if(du)return pu;du=1;var e=ie();return pu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return hu=function(n){return t(e(n))}}(),r=function(){if(Eu)return _u;Eu=1;var e=function(){if(yu)return vu;yu=1;var e=ie();return vu=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return""}}}();return _u=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=se(),i=oe(),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]})))}))},Fu}async function ce(e){try{return await Kn.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?Qn.join("/Users/",process.env.SUDO_USER):Qn.join("/home/",process.env.SUDO_USER);{const e=Xn.homedir();if(""===e)return;return e}}();return void 0===t?e:e.replace(Wu,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 Ku(e.rcPath,"utf8")).includes(t)||(await Xu(e.rcPath,`\n${t}\n`),v(`Added ${t} to ${e.rcPath}`)))}async function fe(e,t){await ce(t)&&((await Ku(t,"utf-8")).includes(e)||(await Xu(t,e),v(`${e} was added to ${t}`)))}async function pe(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:Qu,...n},o=function(e,t=!1){const n=t?tl(e):e;return cl(n,'"',"\\")}(null!=t?t:"",r.escapeSpace);try{if(ul)try{if(!r.overwrite&&void 0!==process.env[e])return void v(`Environment variable ${e} is already defined. Skipping.`);mo.exportVariable(e,o)}catch(i){d(i),await de(e,o,r)}else await de(e,o,r)}catch(i){d(`${i}\nFailed to export environment variable ${e}=${o}. 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 I(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void v(`${e}='${r}' was set in the environment.`)):void v(`Environment variable ${e} is already defined. Skipping.`);case"linux":case"darwin":return await Ju(n),void(n.overwrite?(await ll(n.rcPath,`\nexport ${e}="${r}"\n`),v(`${e}="${r}" was added to "${n.rcPath}`)):(await ll(n.rcPath,`\nif [ -z "\${${e}}" ]; then export ${e}="${r}"; fi\n`),v(`if not defined ${e} then ${e}="${r}" was added to "${n.rcPath}`)))}process.env[e]=r}async function he(e,t={}){const n={rcPath:Qu,...t};if(!function(e){var t,n;return!!dl.some((t=>t.test(e)))&&(null!=(n=null==(t=process.env.PATH)?void 0:t.split(Qn.delimiter))?n:[]).includes(e)}(e)){process.env.PATH=`${e}${Qn.delimiter}${process.env.PATH}`;try{if(fl)try{mo.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 I(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void v(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await Ju(t),await pl(t.rcPath,`\nexport PATH="${e}:$PATH"\n`),void v(`"${e}" was added to "${t.rcPath}"`);default:return}}function ve(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 hl||(hl=1,e=yl,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{ve(__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}}()),yl.exports;var e}function _e(){return vl?ml:(vl=1,ml=ye())}function Ee(){return Ll?Al:(Ll=1,Al={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($l)return Nl;$l=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 Nl=e}function we(){return Dl||(Dl=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Ee(),i=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",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*$")}(mp,mp.exports)),mp.exports}function be(){if(kl)return Ul;kl=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Ul=n=>n?"object"!=typeof n?e:n:t}function Oe(){if(Ml)return jl;Ml=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 jl={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function Re(){if(Bl)return Fl;Bl=1;const e=ge(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Ee(),{safeRe:r,t:o}=we(),i=be(),{compareIdentifiers:s}=Oe();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 Fl=a}function Ie(){if(Hl)return Gl;Hl=1;const e=Re();return Gl=(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 Se(){if(ql)return Vl;ql=1;const e=Ie();return Vl=(t,n)=>{const r=e(t,n);return r?r.version:null}}function Te(){if(Zl)return Jl;Zl=1;const e=Re();return Jl=(t,n)=>new e(t,n).major}function Pe(){if(cf)return af;cf=1;const e=Re();return af=(t,n,r)=>new e(t,r).compare(new e(n,r))}function Ce(){if(hf)return df;hf=1;const e=Re();return df=(t,n,r)=>{const o=new e(t,r),i=new e(n,r);return o.compare(i)||o.compareBuild(i)}}function xe(){if(gf)return Ef;gf=1;const e=Pe();return Ef=(t,n,r)=>e(t,n,r)>0}function Ae(){if(bf)return wf;bf=1;const e=Pe();return wf=(t,n,r)=>0>e(t,n,r)}function Le(){if(Rf)return Of;Rf=1;const e=Pe();return Of=(t,n,r)=>0===e(t,n,r)}function Ne(){if(Sf)return If;Sf=1;const e=Pe();return If=(t,n,r)=>0!==e(t,n,r)}function $e(){if(Pf)return Tf;Pf=1;const e=Pe();return Tf=(t,n,r)=>e(t,n,r)>=0}function De(){if(xf)return Cf;xf=1;const e=Pe();return Cf=(t,n,r)=>0>=e(t,n,r)}function Ue(){if(Lf)return Af;Lf=1;const e=Le(),t=Ne(),n=xe(),r=$e(),o=Ae(),i=De();return Af=(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($f)return Nf;$f=1;const e=Re(),t=Ie(),{safeRe:n,t:r}=we();return Nf=(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 je(){if(jf)return kf;jf=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=>y(e,this.options))).join(" ").split(/\s+/).map((e=>S(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 v=new Map,_=m.map((e=>new o(e,this.options)));for(const n of _){if(h(n))return[n];v.set(n.value,n)}v.size>1&&v.has("")&&v.delete("");const E=[...v.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=>v(t,n)&&e.set.some((e=>v(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}}kf=t;const n=new(Uf?Df:(Uf=1,Df=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(),o=Me(),i=ge(),s=Re(),{safeRe:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:f}=we(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:d}=Ee(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(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},y=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=E(e,t),i("tildes",e),e=O(e,t),i("xrange",e),e=I(e,t),i("stars",e),e),_=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),_(n)?a="":_(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:_(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})),w=(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),_(r)?c="":_(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(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}))},O=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>R(e,t))).join(" ")),R=(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=_(o),l=u||_(s),f=l||_(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})),I=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),S=(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=_(r)?"":_(o)?`>=${r}.0.0${e?"-0":""}`:_(i)?`>=${r}.${o}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=_(u)?"":_(l)?`<${+u+1}.0.0-0`:_(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 kf}function Me(){if(Ff)return Mf;Ff=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(">")))}}Mf=t;const n=be(),{safeRe:r,t:o}=we(),i=Ue(),s=ge(),a=Re(),c=je();return Mf}function Fe(){if(Gf)return Bf;Gf=1;const e=je();return Bf=(t,n,r)=>{try{n=new e(n,r)}catch(o){return!1}return n.test(t)}}function Be(){if(ep)return Zf;ep=1;const e=Re(),t=Me(),{ANY:n}=t,r=je(),o=Fe(),i=xe(),s=Ae(),a=De(),c=$e();return Zf=(u,l,f,p)=>{let d,h,m,v,y;switch(u=new e(u,p),l=new r(l,p),f){case">":d=i,h=a,m=s,v=">",y=">=";break;case"<":d=s,h=c,m=i,v="<",y="<=";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===v||r.operator===y)return!1;if((!o.operator||o.operator===v)&&h(u,o.semver))return!1;if(o.operator===y&&m(u,o.semver))return!1}return!0}}function Ge(){if(pp)return fp;pp=1;const e=we(),t=Ee(),n=Re(),r=Oe(),o=Ie(),i=Se(),s=function(){if(Wl)return zl;Wl=1;const e=Ie();return zl=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),a=function(){if(Kl)return Xl;Kl=1;const e=Re();return Xl=(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(Ql)return Yl;Ql=1;const e=Ie();return Yl=(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=Te(),l=function(){if(tf)return ef;tf=1;const e=Re();return ef=(t,n)=>new e(t,n).minor}(),f=function(){if(rf)return nf;rf=1;const e=Re();return nf=(t,n)=>new e(t,n).patch}(),p=function(){if(sf)return of;sf=1;const e=Ie();return of=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),d=Pe(),h=function(){if(lf)return uf;lf=1;const e=Pe();return uf=(t,n,r)=>e(n,t,r)}(),m=function(){if(pf)return ff;pf=1;const e=Pe();return ff=(t,n)=>e(t,n,!0)}(),v=Ce(),y=function(){if(vf)return mf;vf=1;const e=Ce();return mf=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),_=function(){if(_f)return yf;_f=1;const e=Ce();return yf=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),E=xe(),g=Ae(),w=Le(),b=Ne(),O=$e(),R=De(),I=Ue(),S=ke(),T=Me(),P=je(),C=Fe(),x=function(){if(Vf)return Hf;Vf=1;const e=je();return Hf=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),A=function(){if(zf)return qf;zf=1;const e=Re(),t=je();return qf=(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(Xf)return Wf;Xf=1;const e=Re(),t=je();return Wf=(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}}(),N=function(){if(Yf)return Kf;Yf=1;const e=Re(),t=je(),n=xe();return Kf=(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(Jf)return Qf;Jf=1;const e=je();return Qf=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),D=Be(),U=function(){if(np)return tp;np=1;const e=Be();return tp=(t,n,r)=>e(t,n,">",r)}(),k=function(){if(op)return rp;op=1;const e=Be();return rp=(t,n,r)=>e(t,n,"<",r)}(),j=function(){if(sp)return ip;sp=1;const e=je();return ip=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),M=function(){if(cp)return ap;cp=1;const e=Fe(),t=Pe();return ap=(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}}(),F=function(){if(lp)return up;lp=1;const e=je(),t=Me(),{ANY:n}=t,r=Fe(),o=Pe(),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,v,y;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 _=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,E=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;_&&1===_.prerelease.length&&"<"===p.operator&&0===_.prerelease[0]&&(_=!1);for(const n of t){if(y=y||">"===n.operator||">="===n.operator,v=v||"<"===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(_&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===_.major&&n.semver.minor===_.minor&&n.semver.patch===_.patch&&(_=!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&&v&&!p&&0!==d||p&&y&&!f&&0!==d||E||_)},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 up=(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 fp={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:v,sort:y,rsort:_,gt:E,lt:g,eq:w,neq:b,gte:O,lte:R,cmp:I,coerce:S,Comparator:T,Range:P,satisfies:C,toComparators:x,maxSatisfying:A,minSatisfying:L,minVersion:N,validRange:$,outside:D,gtr:U,ltr:k,intersects:j,simplifyRange:M,subset:F,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 He(){return _p||(_p=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.toCommandProperties=Np.toCommandValue=void 0,Np.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Np.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}:{}}),Np}function Ve(){return bp||(bp=1,function(e){var t=Up.__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=Xn,r=Kn,{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}(Up)),Up}function qe(){return Rp||(Rp=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=Gp.__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=Gp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Gp.__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=Gp.__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(Kn),c=i(Qn);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"}}(Gp)),Gp}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 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(Ip)return Bp;Ip=1;var i=Bp.__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=Bp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Bp.__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=Bp.__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(Bp,"__esModule",{value:!0}),Bp.findInPath=Bp.which=Bp.mkdirP=Bp.rmRF=Bp.mv=Bp.cp=void 0;const u=sr,l=a(Qn),f=a(qe());return Bp.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)}}))},Bp.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)}))},Bp.rmRF=e,Bp.mkdirP=t,Bp.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]:""}))},Bp.findInPath=n,Bp}function We(){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(Tp)return Mp;Tp=1;var t=Mp.__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=Mp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Mp.__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=Mp.__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(Mp,"__esModule",{value:!0}),Mp.getExecOutput=Mp.exec=void 0;const i=ur,s=r(function(){if(Sp)return Fp;Sp=1;var e=Fp.__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=Fp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Fp.__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=Fp.__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(Fp,"__esModule",{value:!0}),Fp.argStringToArray=Fp.ToolRunner=void 0;const o=n(Xn),i=n(tr),s=n(ir),a=n(Qn),c=n(ze()),u=n(qe()),l=lr,f="win32"===process.platform;Fp.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)}}))))}))}},Fp.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 Fp}());return Mp.exec=e,Mp.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}}))},Mp}function Xe(){return Cp||(Cp=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 o(){(0,u.issue)("endgroup")}var i=Ap.__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=Ap.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Ap.__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=Ap.__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 u=function(){function e(e,t,n){const r=new s(e,t,n);process.stdout.write(""+r+o.EOL)}if(Ep)return Lp;Ep=1;var t=Lp.__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=Lp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Lp.__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(Lp,"__esModule",{value:!0}),Lp.issue=Lp.issueCommand=void 0;const o=r(Xn),i=He();Lp.issueCommand=e,Lp.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 Lp}(),f=function(){if(gp)return $p;gp=1;var e=$p.__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=$p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=$p.__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($p,"__esModule",{value:!0}),$p.prepareKeyValueMessage=$p.issueFileCommand=void 0;const r=n(Yn),o=n(Kn),i=n(Xn),s=He();return $p.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"})},$p.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}`},$p}(),p=He(),d=a(Xn),h=a(Qn),m=function(){if(wp)return Dp;wp=1;var e=Dp.__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(Dp,"__esModule",{value:!0}),Dp.OidcClient=void 0;const t=io,r=l(),o=Xe();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 Dp.OidcClient=i,Dp}();var v,y;(y=v||(e.ExitCode=v={}))[y.Success=0]="Success",y[y.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=v.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=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,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 _=Ve();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return _.summary}});var E=Ve();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return E.markdownSummary}});var g=function(){if(Op)return kp;Op=1;var e=kp.__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=kp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=kp.__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(kp,"__esModule",{value:!0}),kp.toPlatformPath=kp.toWin32Path=kp.toPosixPath=void 0;const r=n(Qn);return kp.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},kp.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},kp.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},kp}();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((Pp||(Pp=1,function(e){var t=jp.__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=jp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=jp.__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=jp.__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=jp.__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(Xn),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 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})}))}}(jp)),jp))}(Ap)),Ap}function Ke(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ye(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 Qe(e,t,n,r=40){zp?await async function(e,t,n=40){await L("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await Ju(n),await Wp(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 Ze(){return null!==Ns.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: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 rt(e,t=et()){return(await Promise.all(e.map((e=>ot(e,t))))).filter((e=>void 0!==e))}async function ot(e,t=et()){const n=await async function(e,t,n){switch(await it(e,t,n)){case Qp.NameDashVersion:return`${t}-${n}`;case Qp.NameEqualsVersion:return`${t}=${n}`;case Qp.Name:return void 0!==n&&""!==n&&h(`Could not find package ${t} with version ${n}. Installing the latest version.`),t;default:throw Error(`Could not find package ${t} ${null!=n?n:""}`)}}(t,e.name,e.version);return await nt(n)?void 0:n}async function it(e,t,n){if(void 0!==n&&""!==n){const{stdout:r}=await b("apt-cache",["search","--names-only",`^${tt(t)}-${tt(n)}$`],{env:Je(e),stdio:"pipe"});if(""!==r.trim())return Qp.NameDashVersion;try{const{stdout:r}=await b("apt-cache",["show",`${t}=${n}`],{env:Je(e)});if(""===r.trim())return Qp.NameEqualsVersion}catch{}}try{const{stdout:n}=await b("apt-cache",["show",t],{env:Je(e),stdio:"pipe"});if(""!==n.trim())return Qp.Name}catch{}return Kp?Qp.None:(Yp(e),it(e,t,n))}async function st(e,t=!1){try{const r=et();for(const{name:t,version:n}of e)v(`Installing ${t} ${null!=n?n:""} via ${r}`);t&&Yp(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 Zp(t),await async function(e){await nt("software-properties-common")||A(e,["install","-y","--fix-broken","-o",Xp,"software-properties-common"],{...ks,env:Je(e)})}(t),A("add-apt-repository",["-y","--no-update",e],{...ks,env:Je(t)}),Yp.clear(),Yp(t)}(t,e))))}(r,e);const o=await rt(e,r);if(0===o.length)return v("All packages are already installed"),{binDir:"/usr/bin/"};await Zp(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=nd,fileName:n,keyStorePath:r=nd}){try{ut(n);const o=Qn.join(r,n);return await ce(o)||(ct(),await L("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+o,"--keyserver",t,"--recv-keys",e]),await L("chmod",["644",o])),o}catch(o){return void h(`Failed to add apt key via server ${t}: ${o}`)}}(t))})))}(e),A(r,["install","--fix-broken","-y",...o],{...ks,env:Je(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;ed.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(h(`Failed to install packages ${o}. Retrying...`),A(r,["install","--fix-broken","-y","-o",Xp,...o],{...ks,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 at({keyUrl:e,fileName:t,keyStorePath:n=td}){try{ut(t);const r=Qn.join(n,t);if(!(await ce(r))){ct(),await st([{name:"ca-certificates"}]);const n=Qn.join(Xn.tmpdir(),t),o=new qp.DownloaderHelper(e,Xn.tmpdir(),{fileName:t});o.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await o.start(),A("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),A("chmod",["644",r])}return r}catch(r){return void h(`Failed to add apt key via download ${e}: ${r}`)}}function ct(){A("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 rd)return{binDir:rd};const t=await Ns("brew",{nothrow:!0});if(null!==t)return rd=Qn.dirname(t),{binDir:rd};await st([{name:"ca-certificates"}]);const n=new qp.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Xn.tmpdir(),{fileName:"install-brew.sh"});return n.on("error",(e=>{throw Error("Failed to download the brew installer script: "+e)})),await n.start(),O("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),rd=ft(),await he(rd,e.rcOptions),{binDir:rd}}function ft(){return Qn.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),v(`Installing ${e} ${null!=t?t:""} via brew`),cd&&null!==Ns.sync("brew",{nothrow:!0})||(await lt(),cd=!0);const r=ft(),o=Qn.join(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 O(o,i,{stdio:"inherit"}),{binDir:r}}function ht(){return"linux"===process.platform&&(void 0===od&&(od=null!==Ns.sync("dnf",{nothrow:!0})),od)}function mt(){return"linux"===process.platform&&(void 0===id&&(id=null!==Ns.sync("pacman",{nothrow:!0})),id)}function vt(){return"linux"===process.platform&&(void 0===sd&&(sd=null!==Ns.sync("apt-get",{nothrow:!0})),sd)}async function yt(e,t,n){var r;if("win32"!==process.platform)return;if("string"==typeof ad)return{binDir:ad};const o=Ns.sync("choco",{nothrow:!0});if(null!==o)return ad=Qn.dirname(o),{binDir:ad};let i="powershell.exe";const s=Ns.sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(i=s),O(i,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await he(a,_m);const c=Ns.sync("choco",{nothrow:!0});return ad=null!==c?Qn.dirname(c):(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin",await ce(ad)?{binDir:ad}:void 0}async function _t(e,t,n=[]){var r;v(`Installing ${e} ${null!=t?t:""} via chocolatey`),ud&&null!==Ns.sync("choco",{nothrow:!0})||(await yt(0,0,process),ud=!0);const o=process.env.PATH,i={...process.env};if(i.TMP=void 0,i.TEMP=void 0,i.Path=void 0,i.PATH=o,void 0!==t&&""!==t)O("choco",["install","-y",e,"--version="+t,...n],{env:i,extendEnv:!1,stdio:"inherit"});else try{O("choco",["install","-y",e,...n],{env:i,extendEnv:!1,stdio:"inherit"})}catch(a){if(!a.message.includes("exit code 3010"))throw a;v(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,_m),{binDir:s}}async function Et(e){for(const{name:t,version:n}of e)v(`Installing ${t} ${null!=n?n:""} via dnf`);return A("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){v(`Installing ${e} ${null!=t?t:""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===Ns.sync("yay",{nothrow:!0}))try{A("pacman",["-S","--noconfirm","base-devel","git"]);const e=Qn.join(Xn.tmpdir(),"yay");A("mkdir",["-p",e]),P()?(h("Creating a non-root user to build yay"),A("useradd",["-m","-G","wheel","builder"]),A("passwd",["-d","builder"]),A("chown",["-R","builder:builder",e]),A("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),dd=!0,O("su",["-","builder","-c","git clone https://aur.archlinux.org/yay.git "+e],{stdio:"inherit"}),O("su",["-","builder","-c",`cd ${e} && makepkg -si --noconfirm`],{stdio:"inherit"})):(O("git",["clone","https://aur.archlinux.org/yay.git",e],{stdio:"inherit",cwd:Xn.tmpdir()}),O("makepkg",["-si","--noconfirm"],{stdio:"inherit",cwd:e})),O("rm",["-rf",e],{stdio:"inherit"})}catch(e){throw Error(`Failed to install yay: ${e}. Install yay manually and re-run the script.`)}}(),ld||"yay"===n||(A(r,["-Sy","--noconfirm"]),ld=!0),fd||"yay"===n||(A(r,["-S","--noconfirm","base-devel"]),fd=!0);const o=e=>"yay"===n?P()&&dd?A("su",["-","builder","-c","yay -S --noconfirm "+e]):O(n,["-S","--noconfirm",e]):A(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(pd))n.push(e[1])}catch(r){h(`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 v(`Failed to install ${e} ${t} via pacman, trying without version`),o(e)}else o(e);return{binDir:"/usr/bin/"}}function wt(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 Ot(e,t=!0){return t?Qn.basename(e):Qn.basename(e,Qn.extname(e))}function Rt(e){return Qn.normalize(e).replace(RegExp(tt(Qn.sep)+"$"),"")}function It(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function St(e,t){const n=Qn.extname(e),r=`${t}${Qn.basename(e,n)}${n}`;return Qn.join(Qn.dirname(e),r)}function Tt(e,t){const n=Qn.extname(e),r=`${Qn.basename(e,n)}${t}${n}`;return Qn.join(Qn.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=Qn.extname(e).length;return e.slice(0,-t)}function At(e,t){return vd(e,t)}function Lt(e,t){const n=Qn.relative(t,e);return!(!n||".."===n||n.startsWith(".."+Qn.sep)||n===Qn.resolve(e))}function Nt(){return kd||(kd=1,function(e,t){function n(e){x[e]=A++}function r(e){for(var t=0;N.length>t;t++){var n=N[t][0],r=N[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>R)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>R)throw new TypeError("version is longer than "+R+" characters");if(!(this instanceof i))return new i(e,t);O("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>I||0>this.major)throw new TypeError("Invalid major version");if(this.minor>I||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>I||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&&I>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(" "),O("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===U?"":this.operator+this.semver.version,O("comp",this)}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(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 y(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 _(e){return!e||"x"===e.toLowerCase()||"*"===e}function E(e,t,n,r,o,i,s,a,c,u,l,f,p){return((t=_(n)?"":_(r)?">="+n+".0.0":_(o)?">="+n+"."+r+".0":">="+t)+" "+(a=_(c)?"":_(u)?"<"+(+c+1)+".0.0":_(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(O(e[r].semver),e[r].semver!==U&&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 w(e,t,n){try{t=new v(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 v(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(w(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var y=null,_=null;if(t.set[h].forEach((function(e){e.semver===U&&(e=new m(">=0.0.0")),_=_||e,o(e.semver,(y=y||e).semver,r)?y=e:a(e.semver,_.semver,r)&&(_=e)})),y.operator===l||y.operator===f)return!1;if((!_.operator||_.operator===l)&&s(e,_.semver))return!1;if(_.operator===f&&a(e,_.semver))return!1}return!0}var O;t=Yd.exports=i,O="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 R=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,S=R-6,T=t.re=[],P=t.safeRe=[],C=t.src=[],x=t.tokens={},A=0,L="[a-zA-Z0-9-]",N=[["\\s",1],["\\d",R],[L,S]];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;A>$;$++)O($,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 O("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(O("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(O("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 U={};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):U},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(O("Comparator.test",e,this.options.loose),this.semver===U||e===U)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 v(e.value,t),w(this.value,n,t));if(""===e.operator)return""===e.value||(n=new v(this.value,t),w(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=v,v.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},v.prototype.toString=function(){return this.range},v.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[x.HYPHENRANGELOOSE]:P[x.HYPHENRANGE],E),O("hyphen replace",e),e=e.replace(P[x.COMPARATORTRIM],"$1$2$3"),O("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 O("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return O("caret",e,t),e.replace(t.loose?P[x.CARETLOOSE]:P[x.CARET],(function(t,n,r,o,i){var s;return O("caret",e,t,n,r,o,i),_(n)?s="":_(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":_(o)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":i?(O("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"):(O("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"),O("caret return",s),s}))}(e,t)})).join(" ")}(e,t),O("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 O("tilde",e,t,n,r,o,i),_(n)?s="":_(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":_(o)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":i?(O("replaceTilde pr",i),s=">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+o+" <"+n+"."+(+r+1)+".0",O("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),O("tildes",e),e=function(e,t){return O("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){O("xRange",e,n,r,o,i,s,a);var c=_(o),u=c||_(i),l=u||_(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),O("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),O("xrange",e),e=function(e,t){return O("replaceStars",e,t),e.trim().replace(P[x.STAR],"")}(e,t),O("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)},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw new TypeError("a Range is required");return this.set.some((function(n){return y(n,t)&&e.set.some((function(e){return y(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new v(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},v.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=w,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var s=new v(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 v(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 v(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 v(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 v(e,n),t=new v(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,Yd.exports)),Yd.exports}function $t(e,t,n){switch(process.platform){case"win32":return _t("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(vt())return st([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function Dt(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)}async function Ut(e,t){return await b(await async function(){return void 0===rh&&(null===Ns.sync("7z",{nothrow:!0})&&await $t("",0,process),rh="7z"),rh}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await U(t),t}function kt(e,t){return Ut(e,t)}async function jt(e,t){return null!==Ns.sync("7z",{nothrow:!0})?Ut(e,t):null!==Ns.sync("unzip",{nothrow:!0})?(await b("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await U(t),t):Ut(e,t)}async function Mt(e,t,n=0,r=[]){await async function(e){switch(v("Installing tar extraction dependencies"),e){case 1:"linux"===process.platform&&(mt()?(await gt("gzip"),await gt("tar")):ht()?await Et([{name:"gzip"},{name:"tar"}]):vt()&&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"}]):vt()&&await st([{name:"xz-utils"},{name:"tar"}]));break;default:throw Error(`Unsupported archive type: ${e} for tar extraction`)}}(Dt(e));try{await nh.mkdirP(t)}catch{}try{await b("tar",["xf",e,"-C",t,"--strip-components="+n,...r],{stdio:"inherit"})}catch(o){"win32"===process.platform&&o.message.includes("Can't create '\\\\?\\C:")&&h(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`)}return await U(t),t}async function Ft(e,t,n,r,o){var i,s;v(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!=(i=process.env.RUNNER_TEMP)?i:Xn.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!=(s=process.env.RUNNER_TOOL_CACHE)?s:Qn.join(Xn.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:u,extractedFolderName:l,extractFunction:f}=await n(t,process.platform,o);if(oh)try{const n=Zd.find(e,t);if(n){const r=Qn.join(n,l),o=Qn.join(r,c);if(await ce(Qn.join(o,u)))return v(`${e} ${t} was found in the cache at ${o}.`),await he(o,_m),{installDir:r,binDir:o}}}catch{}const p=Qn.join(r,l),d=Qn.join(p,c),m=Qn.join(d,u);return await async function(e,t,n,r,o,i,s,a){if((await Promise.all([ce(e),ce(t)])).includes(!1))try{const e=await async function(e,t,n){v(`Download ${e} ${t}`);const r=await th((()=>{var e;const t=Qn.join(null!=(e=process.env.RUNNER_TEMP)?e:Xn.tmpdir(),`${Date.now()}-${Qn.basename(n)}`);return Zd.downloadTool(n,t)}),{name:n,max:4,backoffBase:2e3,report:e=>v(e)});return r}(n,r,o);v(`Extracting ${e} to ${i}`);const t=null!=s?s:function(e){switch(e){case 0:case 1:case 2:return Mt;case 3:return jt;default:return Ut}}(Dt(o));await t(e,i)}catch(c){throw Error(`Failed to download ${n} ${r} ${a} from ${o}: ${c}`)}if(v(`Add ${e} to PATH`),await he(e,_m),!(await ce(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await ts(t,"755")}catch(c){h(`Failed to make ${t} executable: ${c}`)}}(d,m,e,t,a,r,f,o),await async function(e,t,n){oh&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==zn("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await Zd.cacheDir(e,t,n))}(r,e,t),{installDir:p,binDir:d}}function Bt(e,t,n){var r;const o=null!=(r=Pd(e))?r:e;switch(t){case"win32":{const t=Cd(o,"v3.19.6");let r;xd.includes(n)?r=t?"win64-x64":"windows-x86_64":Ad.includes(n)?r=t?"win32-x86":"windows-i386":Ld.includes(n)?r="windows-arm64":(v(`Trying unsupported arch '${n}' for cmake on Windows`),r="windows-"+n);const i=`cmake-${e}-${r}`;return{binRelativeDir:"bin/",binFileName:It("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const t=`cmake-${e}-${Cd(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:It("cmake"),extractedFolderName:t,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`}}case"linux":{const t=Cd(o,"v3.19.8");let r;Ld.includes(n)?r=t?"Linux-aarch64":"linux-aarch64":xd.includes(n)?r=t?"Linux-x86_64":"linux-x86_64":(v(`Trying unsupported arch '${n}' for cmake on Linux`),r="linux-"+n);const i=`cmake-${e}-${r}`;return{binRelativeDir:"bin/",binFileName:It("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function Gt(e,t,n){return Ft("cmake",e,Bt,t,n)}async function Ht(e,t,n=Rh){const r=await async function(e,t=Rh){var n,r;try{const o=await gh.getExecOutput(e,["--version"]),i=null==(n=(o.stdout||o.stderr||"").trim().match(t))?void 0:n[1];return null!=(r=Pd(i))?r:void 0}catch(o){return void console.error(o)}}(e,n);if(void 0===r||""===t)return!1;try{return-1!==wh(r,t)}catch{return bh(r,t)}}function Vt(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}function qt(e,t,n=null){var r;return Wt(t)?null!=(r=zt(e,n))?r:"":t}function zt(e,t=null){var n,r,o;const i=Ih()[e];if(void 0===i)return;if("string"==typeof i)return i;const s=null!=(n=i[process.platform])?n:i.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=vt()?"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],o=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!==o&&null!=(n=t[o])?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!=(o=f[process.arch])?o:f.else}function Wt(e){return"true"===e||void 0===e}async function Xt(e,t,n){const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let o,i=await Kt(t);if(void 0!==i){const e=Qn.dirname(i);o={bin:i,installDir:e,binDir:e}}else{if(Sh)try{v("Installing python in GitHub Actions");const{setupActionsPython:e}=await Promise.resolve().then((()=>require("./assets/actions_python-Czj4ScEf.js")));if(await e(r,t,n),i=await Kt(t),void 0===i)throw Error("Python binary could not be found");const s=Qn.dirname(i);o={bin:i,installDir:s,binDir:s}}catch(s){h(""+s)}void 0===o&&(o=await async function(e,t){let n;switch(process.platform){case"win32":{e?await _t("python3",t,["--params=/InstallDir:"+e]):await _t("python3",t);const r=await Kt(e);if(void 0===r)throw Error("Python binary could not be found");const o=Qn.dirname(r);await he(o,_m),n={installDir:o,binDir:o,bin:r};break}case"darwin":{n=await dt("python3",t);const e=await b("brew",["--prefix","python"],{stdio:"pipe"}),r=Qn.join(e.stdout,"libexec","bin");await he(r,_m);break}case"linux":if(mt())n=await gt("python",t);else if(ht())n=await Et([{name:"python3",version:t}]);else{if(!vt())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===i||void 0===o.bin){if(i=await Kt(t),void 0===i)throw Error("Python binary could not be found");o={bin:i,installDir:Qn.dirname(i),binDir:Qn.dirname(i)}}return o}(e,t,n);sr(void 0!==r.bin);const o=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))v("venv module already installed.");else try{await an("venv")}catch(t){v(`Failed to install venv: ${""+t}. Ignoring...`)}}(o);const i=await async function(e){const t=await Qt();return void 0===t?(v("pip was not found. Installing pip"),await async function(e){await Zt(e)||(await an("pip"),await Zt(e))}(e),Qt()):t}(o);if(void 0===i)throw Error("pip was not installed correctly");return await async function(e){try{if(!(await sn(e)))try{await an("pipx",mt()),await nn(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){throw Error("pipx was not installed completely: "+t)}if(await sn(e))return void(await b(e,["-m","pipx","ensurepath"],{stdio:"inherit"}));if(await async function(){return null!==await Ns("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...`)}}(o),await async function(e){try{await nn(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await nn(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){v(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(o),r}async function Kt(e){for(const t of["python","python3"]){const n=await Yt(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=Qn.parse(Xn.homedir()).root,t=(await fs(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await Yt(t,Qn.join(e,n));if(void 0!==r)return r}}}async function Yt(e,t){var n;try{const r=zt("python");if(void 0!==t){const n=Qn.join(t,It(e));if(await ce(n)&&await Ht(n,r))return n}const o=null!=(n=await Ns(e,{nothrow:!0,all:!0}))?n:[];for(const e of o)if(await Ht(e,r))return e}catch{}}async function Qt(){for(const e of["pip3","pip"]){const t=await Jt(e);if(void 0!==t)return t}}async function Jt(e){var t;try{const n=zt("pip"),r=null!=(t=await Ns(e,{nothrow:!0,all:!0}))?t:[];for(const e of r)if(await Ht(e,n))return e}catch{}}async function Zt(e){try{return await b(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){v(""+t);try{return await b(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){v(""+n)}}return!1}function en(){if(!("version"in Xn)||"function"!=typeof Xn.version)return null;const e=Xn.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 tn(e,t,n={}){return nn(await async function(e){if(void 0!==$h)return $h;const t=null!=e?e:qt("python",void 0,await Ah());return $h=(await Xt(t,"",process.arch)).bin,$h}(n.pythonVersion),e,t,n)}async function nn(e,t,n,r={}){const{usePipx:o=!0,user:i=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=o&&!a&&await sn(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 rn():await on(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{Hp.info(`Installing ${t} ${null!=n?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 Lh(),l.PIPX_BIN_DIR=await Nh()),O(e,["-m",u,...o,...a,r],{stdio:"inherit",env:l})}catch(p){if(Hp.info(`Failed to install ${t} via ${u}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await an(t))throw Error(`Failed to install ${t} via ${u}: ${p}.`)}else if(null===await an(t))throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);return{binDir:c?await rn():await on(e,l)}}function rn(){return Nh()}async function on(e,t){const n=await Th(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>ce(Qn.join(e,It(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=Ns.sync(It(t),{nothrow:!0});return null!==r?Qn.dirname(r):e[e.length-1]}(n,t);return await he(r,_m),r}async function sn(e){return 0===(await b(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}function an(e,t=!0){if("linux"===process.platform){if(Hp.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(vt())return st([{name:t?"python3-"+e:e}])}else if("darwin"===process.platform)return["venv"].includes(e)?null:dt(e);return null}function cn(e,t,n){return tn("cmakelang[YAML]",e)}async function un(e,t,n){switch(process.platform){case"win32":return await _t("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await he(e,_m),{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(vt())return st([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function ln(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(Qn.join(t,e.path))}))}function fn(e,t,n){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:It("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:It("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:It("doxygen"),extractedFolderName:t,extractFunction:ln,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function pn(){if("darwin"===process.platform)try{const e=await gh.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await pe("SDKROOT",t.trim(),_m):d("SDKROOT not set")}catch(e){d(e)}}async function dn(){const e=Qn.join(Bh,"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");v("::add-matcher::"+e)}async function hn(e){const t=await ps(e,"utf-8");return JSON.parse(t)}function mn(e,t){var n;const r=Object.keys(e),o=new Map;if(void 0===t.filterMapTag)for(const c of r)o.set(c,c);else for(const c of r){const e=t.filterMapTag(c);void 0!==e&&o.set(e,c)}if(0===o.size)return;const i=null!=(n=t.versionSatisfies)?n:bh,s=function(e){if(null===Oh(e))try{const t=Pd(e);if(null!==t){const n=/^[<=>^~]/.test(t.version)?t.version:"^"+t.version;return v(`Coerced version '${e}' to '${n}'`),n}}catch(t){}return e}(t.version),a=[];for(const[c,u]of o.entries())i(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=vn(c,n,t);if(void 0!==r)return r}}function vn(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=>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)e.includes(r)&&t++;return t})),o=Math.max(...t);return{tag:e,name:r[t.indexOf(o)]}}return{tag:e,name:r[0]}}}async function yn(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await _t("gcc-arm-embedded",e));try{r=await Ft("g++",e,_n,t,n)}catch(o){v(`Failed to download g++ binary. ${o}. Falling back to chocolatey.`),r=await async function(e,t){var n,r;let o;if(await _t("mingw",e),"x64"===t&&await ce("C:/tools/mingw64/bin")?(o="C:/tools/mingw64/bin",await he(o,_m)):"ia32"===t&&await ce("C:/tools/mingw32/bin")?(o="C:/tools/mingw32/bin",await he(o,_m)):await ce((null!=(n=process.env.ChocolateyInstall)?n:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(o=(null!=(r=process.env.ChocolateyInstall)?r:"C:/ProgramData/chocolatey")+"/bin"),void 0!==o)return{binDir:o}}(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(!vt())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",It(e+"/gcc"),_m),pe("CXX",It(e+"/g++"),_m)),jh&&await dn(),await Promise.all(t)}(r.binDir),r}async function _n(e,t,n){var r;if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const o=await hn(Qn.join(Mh,"github_brechtsanders_winlibs_mingw.json")),i=En(e),s=gn(e),a=wn(e),c=mn(o,{version:e,keywords:[null!=(r={x64:"x86_64",ia32:"i386"}[n])?r:n],filterName:e=>!(void 0!==i&&i!==En(e)||void 0!==s&&s!==gn(e)||void 0!==a&&a!==wn(e)),versionSatisfies:(e,t)=>{const n=Pd(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return bh(n,t)&&(void 0===i||i===En(e))&&(void 0===s||s===gn(e))}});if(void 0===c)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:It("g++"),extractedFolderName:"mingw64",extractFunction:Ut,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${c.tag}/${c.name}`}}function En(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function gn(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function wn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function bn(e,t,n,r=40){let o;switch(process.platform){case"win32":o=await yn(e,t,n);break;case"darwin":o=await dt("gcc",e);break;case"linux":if(mt())o=await gt("gcc",e);else if(ht())o=await Et([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]);else if(vt())if(""===e)o=await st([{name:"gcc"},{name:"g++"}]);else try{o=await st([{name:"gcc",version:e},{name:"g++",version:e}])}catch(i){o=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!==o)return await async function(e,t,n=40){var r;if("win32"===process.platform)return;const o=[];{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 fs(e)).sort(((e,t)=>{var n,r,o,i;return function(e,t){const n=Pd(e),r=Pd(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!=(i=null==(o=t.match(/^gcc-?(.*)(\.exe)?$/))?void 0:o[1])?i:"")}));for(const r of t)if(r.startsWith("gcc")){n=`${e}/${r}`;break}}const{stdout:r}=await b(n,["--version"],{stdio:"pipe"}),o=r.match(/gcc.* \(.*\) ([\d.]+)/);return null!==o?o[1]:(h("Failed to parse gcc version from: "+r),t)}catch(i){return d("Failed to get gcc version: "+i),t}}(t,s),v("Using gcc version "+s));const a=kh(null!=(r=Pd(s))?r:s);5>a?(o.push(pe("CC",`${t}/gcc-${s}`,_m),pe("CXX",`${t}/g++-${s}`,_m)),vt()&&o.push(Qe("cc",`${t}/gcc-${s}`,_m,n),Qe("cxx",`${t}/g++-${s}`,_m,n),Qe("gcc",`${t}/gcc-${s}`,_m,n),Qe("g++",`${t}/g++-${s}`,_m,n))):(o.push(pe("CC",`${t}/gcc-${a}`,_m),pe("CXX",`${t}/g++-${a}`,_m)),vt()&&o.push(Qe("cc",`${t}/gcc-${a}`,_m,n),Qe("cxx",`${t}/g++-${a}`,_m,n),Qe("gcc",`${t}/gcc-${a}`,_m,n),Qe("g++",`${t}/g++-${a}`,_m,n)))}o.push(pn()),Fh&&await dn(),await Promise.all(o)}(e,o.binDir,r),o}function On(e){const t=Oh(e),n=null!==t?kh(t):e;return pe("GCOV",""!==n?"gcov-"+n:"gcov",_m)}async function Rn(e,t,n){const{keywords:r,optionalKeywords:o}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),xd.includes(t)?(r.push("64"),r.push("x86_64")):(v(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),xd.includes(t)?r.push("x86_64"):Ld.includes(t)?r.push("arm64"):(v(`Using arch ${t} for infer`),n.push(t));break;default:v(`Using ${e} ${t} for infer`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(t,n),i=mn(await hn(Qn.join(Gh,"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:""+Qn.basename(i.name,".tar.xz"),binRelativeDir:"bin",binFileName:It("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${o}`)}function In(e,t,n){const r=function(e,t){switch(e){case"win32":return xd.includes(t)||Ad.includes(t)?"win":Ld.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return xd.includes(t)||Ad.includes(t)?"linux":Ld.includes(t)?"linux-aarch64":"linux";default:throw Error(`Unsupported platform '${e}'`)}}(t,n);return{binRelativeDir:"",binFileName:It("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function Sn(e,t,n){return Ft("ninja",e,In,t,n)}function Tn(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:It("kcov")}}function Pn(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:It("kcov"),extractFunction:Cn}}async function Cn(e,t){const n=await Mt(e,t,1),r=await async function(){let e=Ns.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Gt(qt("cmake",void 0,await Ah()),Qn.join(ue("~"),"cmake"),"");e=Qn.join(t,"cmake")}return null===Ns.sync("ninja",{nothrow:!0})&&await Sn(qt("ninja",void 0,await Ah()),Qn.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"}]):vt()&&await st([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==Ns.sync("patch",{nothrow:!0})){const e=Qn.join(Hh,"gcc13.patch");await b("patch",["-N","-p1","-i",e],{cwd:n,stdio:"inherit"})}else v("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13")}catch{}const o=Qn.join(n,"build");return await b(r,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await b(r,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function xn(){"darwin"===process.platform&&(null!==await Ns("clang",{nothrow:!0})&&null!==await Ns("clang++",{nothrow:!0})&&(m("Assuming clang is an Apple Clang compiler"),await Promise.all([pe("CC","clang",_m),pe("CXX","clang++",_m)])),fr.error("Apple Clang automatic installation is not supported yet"))}async function An(e,t,n,r,o,i,s){void 0!==t&&await ce(t)&&(v(`Adding ${t} to PATH`),await pe("VCTargetsPath",t,_m)),await Yh.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 Ln(e,t,n,r,o,i,s,a=12e5){Hp.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(Wh(e)),a=()=>{u(Wh(e))},e.addEventListener("abort",a,{once:!0})}if(n===1/0)return void e.then(c,u);const l=new Vh;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=null!=o?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=hm.includes(e);let a;if("vcvarsall"===e)await An(qt(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await lt({rcOptions:_m});else{const i=Qn.join(o,s?"llvm":e),c=qt(e,t,n),u=mm[e];a=await u(c,i,r)}i.push(Wn(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){d(c),c instanceof Error&&void 0!==c.stack&&d(c.stack),s.push(e+" failed to install")}Hp.endGroup()}async function Nn(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("windows","Windows"),xd.includes(t)?r.push("win64","win64","win64","x86_64","X64"):Ad.includes(t)?n.push("win32"):Ld.includes(t)?n.push("woa64"):(v(`Using arch ${t} for LLVM`),n.push(t));break;case"linux":if(r.push("linux","Linux"),vt()){r.push("ubuntu");const e=await Ah();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");xd.includes(t)?r.push("x86_64","X64"):Ad.includes(t)?n.push("x86"):Ld.includes(t)?n.push("aarch64"):Nd.includes(t)?n.push("armv7a"):$d.includes(t)?n.push("powerpc64le"):Dd.includes(t)?n.push("sparc64"):(v(`Using arch ${t} for LLVM`),n.push(t));break;case"darwin":r.push("apple","macos","macOS"),xd.includes(t)?r.push("x86_64","X64"):Ld.includes(t)?r.push("arm64","ARM64"):(v(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),xd.includes(t)?n.push("amd64"):Ad.includes(t)?n.push("i386"):(v(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),xd.includes(t)?n.push("amd64"):Ud.includes(t)?n.push("sparcv9"):(v(`Using arch ${t} for LLVM`),n.push(t));break;default:v(`Using ${e} ${t} for LLVM`),n.push(e,t)}return{keywords:n,optionalKeywords:r}}(e,t),i=mn(await hn(Qn.join(Jh,"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=mn(await hn(Qn.join(Jh,"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 v("Downloading LLVM from "+r),{url:r,extractedFolderName:"",binRelativeDir:"bin",binFileName:It("clang"),extractFunction:"win32"===t?kt:(e,t)=>Mt(e,t,1)}}async function $n(e,t,n){var r;const o=await tm(e,t,n);return await async function(e,t){var n,r;const o=null!=(n=process.env.LD_LIBRARY_PATH)?n:"",i=null!=(r=process.env.DYLD_LIBRARY_PATH)?r:"",s=jn(t),a=[pe("CC",It(e+"/bin/clang"),_m),pe("CXX",It(e+"/bin/clang++"),_m),pe("LLVM_PATH",e,_m),pe("LD_LIBRARY_PATH",`${o}${Qn.delimiter}${e}/lib`,_m),pe("DYLD_LIBRARY_PATH",`${i}${Qn.delimiter}${e}/lib`,_m),pe("LLVM_LDFLAGS","-L"+Vt(e+"/lib"),_m),pe("LLVM_CPPFLAGS","-I"+Vt(e+"/include"),_m),await ce(`${e}/lib/clang/${t}/include`)?pe("LLVM_CPATH",`${e}/lib/clang/${t}/include`,_m):await ce(`${e}/lib/clang/${s}/include`)?pe("LLVM_CPATH",`${e}/lib/clang/${s}/include`,_m):Promise.resolve(),pe("LIBRARY_PATH",e+"/lib",_m),pn()];if(vt()){const t=60;a.push(Qe("cc",e+"/bin/clang",_m,t),Qe("cxx",e+"/bin/clang++",_m,t),Qe("clang",e+"/bin/clang",_m),Qe("clang++",e+"/bin/clang++",_m),Qe("lld",e+"/bin/lld",_m),Qe("ld.lld",e+"/bin/ld.lld",_m),Qe("llvm-ar",e+"/bin/llvm-ar",_m))}await Promise.all(a)}(null!=(r=o.installDir)?r:t,e),o}function Dn(e,t,n){return kn(e,t,n,Qh.ClangFormat)}function Un(e,t,n){return kn(e,t,n)}async function kn(e,t,n,r=Qh.All){const o=jn(e);if(vt())try{return await async function(e,t=0){const n="/usr/lib/llvm-"+e;await st([{name:"ca-certificates"}]);const r=new qp.DownloaderHelper("https://apt.llvm.org/llvm.sh",Xn.tmpdir(),{fileName:"llvm.sh"});r.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await r.start();const o=await ps(r.getDownloadPath(),"utf-8"),i=Qn.join(Xn.tmpdir(),"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 ${Xp} -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 ${Xp} -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:Je("apt-get"),stdio:"pipe"});return"string"==typeof t&&t.split("\n").some((e=>e.startsWith("ii")))}catch{return!1}}(n)&&(fr.info("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(o),o=function(e){return Ze()?e.replace(/apt-get/g,"nala"):e}(o),await bs(t,o),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}]}(o,i,e,t);return await st(s),await ts(i,"755"),await L("bash",[i,""+e,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:12e5}),await he(n+"/bin",_m),{installDir:""+n,binDir:n+"/bin",bin:n+"/bin/clang++"}}(o,r)}catch(s){v(`Failed to install llvm via system package manager ${s}. Trying to remove the repository`);try{A(Qn.join(em,"llvm_repo_remove.bash"),[""+o])}catch(a){v("Failed to remove llvm repository "+a)}}const i=await Ft("llvm",e,Nn,t,n);return await nm(o),i}function jn(e){const t=function(e){if(null===Oh(e))try{const t=Pd(e);if(null!==t)return v(`Coerced version '${e}' to '${t}'`),t.version}catch(t){}return e}(e);return Number.parseInt(t.split(".")[0],10)}async function Mn(){if(Zh){const e=Qn.join(em,"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");v("::add-matcher::"+e)}}async function Fn(e,t,n,r,o,i){if("win32"!==process.platform)return;const s=Yh.vsversion_to_versionnumber(e);v(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=Yh.findVcvarsall(s);u=!0,v("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===s?(a="14.0",await _t("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 _t("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 _t("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 _t("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):d(`The given MSVC versions ${e} is not supported yet.`)}catch(l){d(l)}await An(s,c,n,a,r,o,i),om&&await async function(){const e=Qn.join(im,"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");v("::add-matcher::"+e)}()}async function Bn(e,t,n){if("win32"===process.platform)return await _t("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await he(e,_m),e}()}}function Gn(e,t,n){return{url:Hn(t,n,e),binRelativeDir:"",binFileName:It("pwsh"),extractedFolderName:""}}function Hn(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 Vn(e,t,n){try{return await Ft("pwsh",e,Gn,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 _t("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await he(t,_m),{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"}]),A("/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(vt()){await st([{name:"curl"}]);const t=await Ah();return A("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),A("dpkg",["-i","packages-microsoft-prod.deb"]),st([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}(e)}}function qn(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:It("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${o}.${i}`}}function zn(e){const t=Hp.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function Wn(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 Xn=require("os"),Kn=require("fs"),Yn=require("crypto"),Qn=require("path"),Jn=require("http"),Zn=require("https");require("net");const er=require("tls"),tr=require("events"),nr=require("util"),rr=require("buffer"),or=require("process"),ir=require("child_process"),sr=require("assert"),ar=require("stream"),cr=require("url"),ur=require("string_decoder"),lr=require("timers"),fr=require("console");var pr="undefined"!=typeof document?document.currentScript:null;const dr=e(Kn),hr=e(Jn),mr=e(Zn);var vr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},yr={};const _r=[{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 Er,gr=(Er||(Er=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=_r,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))}(yr)),yr);const wr=t(gr);var br,Or,Rr={},Ir={},Sr={},Tr={};const Pr=new Uint8Array(256);let Cr=Pr.length;const xr=/^(?:[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,Ar=[];for(let Em=0;256>Em;++Em)Ar.push((Em+256).toString(16).substr(1));let Lr,Nr,$r=0,Dr=0;const Ur=c("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Yn.createHash("md5").update(e).digest()})),kr=c("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),Yn.createHash("sha1").update(e).digest()})),jr=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 i=t||Array(16);let a=(e=e||{}).node||Lr,c=void 0!==e.clockseq?e.clockseq:Nr;if(null==a||null==c){const t=e.random||(e.rng||o)();null==a&&(a=Lr=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==c&&(c=Nr=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:Dr+1;const f=u-$r+(l-Dr)/1e4;if(0>f&&void 0===e.clockseq&&(c=c+1&16383),(0>f||u>$r)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");$r=u,Dr=l,Nr=c,u+=122192928e5;const p=(1e4*(268435455&u)+l)%4294967296;i[r++]=p>>>24&255,i[r++]=p>>>16&255,i[r++]=p>>>8&255,i[r++]=255&p;const d=u/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=c>>>8|128,i[r++]=255&c;for(let o=0;6>o;++o)i[r+o]=a[o];return t||s(i)},v3:Ur,v4:function(e,t,n){const r=(e=e||{}).random||(e.rng||o)();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:kr,validate:i,version:function(e){if(!i(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var Mr,Fr={};class Br 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 Gr,Hr,Vr,qr,zr,Wr,Xr,Kr,Yr={},Qr=(Vr||(Vr=1,Hr=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(Gr)return Yr;Gr=1;var o,i=er,s=Jn,a=Zn,c=tr,u=nr;return Yr.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},Yr.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},Yr.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},Yr.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(){},Yr.debug=o,Yr}()),Hr);(zr=qr||(qr={}))[zr.OK=200]="OK",zr[zr.MultipleChoices=300]="MultipleChoices",zr[zr.MovedPermanently=301]="MovedPermanently",zr[zr.ResourceMoved=302]="ResourceMoved",zr[zr.SeeOther=303]="SeeOther",zr[zr.NotModified=304]="NotModified",zr[zr.UseProxy=305]="UseProxy",zr[zr.SwitchProxy=306]="SwitchProxy",zr[zr.TemporaryRedirect=307]="TemporaryRedirect",zr[zr.PermanentRedirect=308]="PermanentRedirect",zr[zr.BadRequest=400]="BadRequest",zr[zr.Unauthorized=401]="Unauthorized",zr[zr.PaymentRequired=402]="PaymentRequired",zr[zr.Forbidden=403]="Forbidden",zr[zr.NotFound=404]="NotFound",zr[zr.MethodNotAllowed=405]="MethodNotAllowed",zr[zr.NotAcceptable=406]="NotAcceptable",zr[zr.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",zr[zr.RequestTimeout=408]="RequestTimeout",zr[zr.Conflict=409]="Conflict",zr[zr.Gone=410]="Gone",zr[zr.TooManyRequests=429]="TooManyRequests",zr[zr.InternalServerError=500]="InternalServerError",zr[zr.NotImplemented=501]="NotImplemented",zr[zr.BadGateway=502]="BadGateway",zr[zr.ServiceUnavailable=503]="ServiceUnavailable",zr[zr.GatewayTimeout=504]="GatewayTimeout",(Xr=Wr||(Wr={})).Accept="accept",Xr.ContentType="content-type",(Kr||(Kr={})).ApplicationJson="application/json";const Jr=[qr.MovedPermanently,qr.ResourceMoved,qr.SeeOther,qr.TemporaryRedirect,qr.PermanentRedirect],Zr=[qr.BadGateway,qr.ServiceUnavailable,qr.GatewayTimeout],eo=["OPTIONS","GET","DELETE","HEAD"];class to extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,to.prototype)}statusCode;result}class no{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 ro{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[Wr.Accept]=this._getExistingOrDefaultHeader(t,Wr.Accept,Kr.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[Wr.Accept]=this._getExistingOrDefaultHeader(n,Wr.Accept,Kr.ApplicationJson),n[Wr.ContentType]=this._getExistingOrDefaultHeader(n,Wr.ContentType,Kr.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[Wr.Accept]=this._getExistingOrDefaultHeader(n,Wr.Accept,Kr.ApplicationJson),n[Wr.ContentType]=this._getExistingOrDefaultHeader(n,Wr.ContentType,Kr.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[Wr.Accept]=this._getExistingOrDefaultHeader(n,Wr.Accept,Kr.ApplicationJson),n[Wr.ContentType]=this._getExistingOrDefaultHeader(n,Wr.ContentType,Kr.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&&eo.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(i,n),a&&a.message&&a.message.statusCode===qr.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&&Jr.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||!Zr.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 no(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=u(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?mr:hr;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({},oo(this.requestOptions.headers),oo(e||{})):oo(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=oo(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 o="https:"===e.protocol;let i=100;if(this.requestOptions&&(i=this.requestOptions.maxSockets||hr.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?Qr.httpsOverHttps:Qr.httpsOverHttp:s?Qr.httpOverHttps:Qr.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=o?new mr.Agent(e):new hr.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 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 o=e.message.statusCode||0,i={statusCode:o,result:null,headers:{}};let s,a;o===qr.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 to(e,o);t.result=i.result,r(t)}else n(i)}))}}const oo=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),io=n(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return Wr},HttpClient:ro,HttpClientError:to,HttpClientResponse:no,get HttpCodes(){return qr},get MediaTypes(){return Kr},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 so,ao,co,uo,lo,fo={},po={},ho={},mo=p(),vo={};const yo=[{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 _o;const Eo=t((_o||(_o=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=yo,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))}(vo)),vo)),{GITHUB_ACTIONS:go}=Eo;var wo,bo,Oo,Ro,Io,So,To,Po,Co,xo,Ao,Lo,No,$o,Do,Uo,ko,jo,Mo,Fo,Bo,Go,Ho,Vo={exports:{}},qo={exports:{}},zo={};const Wo=t(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(Ho)return Vo.exports;Ho=1;const t=ir,n=_(),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 Bo;Go=1;const n="win32"===process.platform;return Bo={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},Bo}();return Vo.exports=e,Vo.exports.spawn=e,Vo.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},Vo.exports._parse=n,Vo.exports._enoent=r,Vo.exports}()),Xo=({env:e=or.env,...t}={})=>{const n=E({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=or.cwd(),path:t=or.env[E()],preferLocal:n=!0,execPath:r=or.execPath,addExecPath:o=!0}={})=>{const i=e instanceof URL?cr.fileURLToPath(e):e,s=Qn.resolve(i),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(Qn.join(t,"node_modules/.bin")),n=t,t=Qn.resolve(t,"..")})(a,s),o&&((e,t,n)=>{const r=t instanceof URL?cr.fileURLToPath(t):t;e.push(Qn.resolve(n,r,".."))})(a,r,s),[...a,t].join(Qn.delimiter)})(t),e},Ko=(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);!Yo(o,i)&&r||Object.defineProperty(e,n,i)},Yo=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)},Qo=(e,t)=>`/* Wrapped ${e}*/\n${t}`,Jo=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Zo=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),ei=new WeakMap,ti=(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(ei.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))Ko(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=Qo.bind(null,r,""+t);Object.defineProperty(o,"name",Zo),Object.defineProperty(e,"toString",{...Jo,value:o})})(e,t,r)}(i,e),ei.set(i,r),i};ti.callCount=e=>{if(!ei.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ei.get(e)};const ni=(e,t)=>({name:"SIGRT"+(t+1),number:ri+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ri=34,oi=[{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"}],ii=()=>{const e=Array.from({length:64-ri+1},ni);return[...oi,...e].map(si)},si=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=Xn.constants,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}},ai=({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}],ci=(()=>{const e=ii();return Object.fromEntries(e.map(ai))})(),ui=(e,t)=>{const n=t.find((({name:t})=>Xn.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=ii(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=ui(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 li=({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=or.cwd()}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:ci[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}`,v="[object Error]"==={}.toString.call(r),y=v?`${m}\n${r.message}`:m,_=[y,t,e].filter(Boolean).join("\n");return v?(r.originalMessage=r.message,r.message=_):r=Error(_),r.shortMessage=y,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},fi=["stdin","stdout","stderr"];var pi,di,hi={exports:{}},mi={exports:{}};const vi=t(function(){if(di)return hi.exports;di=1;var e=vr.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=sr,o=(pi||(pi=1,(v=mi).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&v.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&v.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),mi.exports),i=/^win/i.test(e.platform),s=tr;"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),hi.exports=function(e,o){if(!t(vr.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(vr.process)&&(l=!1,o.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};hi.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(vr.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))}})),hi.exports.signals=function(){return o};var l=!1,f=function(){!l&&t(vr.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)};hi.exports.load=f;var p=e.reallyExit,d=function(n){t(vr.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(vr.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 hi.exports=function(){return function(){}};var v;return hi.exports}()),yi=(e,t="SIGTERM",n={})=>{const r=e(t);return _i(e,t,n,r),r},_i=(e,t,n,r)=>{if(!Ei(t,n,r))return;const o=wi(n),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()},Ei=(e,{forceKillAfterTimeout:t},n)=>gi(e)&&!1!==t&&n,gi=e=>e===Xn.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),wi=({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},bi=(e,t)=>{e.kill()&&(t.isCanceled=!0)},Oi=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(Kn.createWriteStream(n)),e;if(w(n))return e[t].pipe(n),e;if(!(e=>e instanceof ir.ChildProcess&&"function"==typeof e.then)(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!w(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(n.stdin),n};var Ri,Ii,Si,Ti={exports:{}};const Pi=t(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(Si)return Ti.exports;Si=1;const{constants:t}=rr,n=ar,{promisify:r}=nr,o=function(){if(Ii)return Ri;Ii=1;const{PassThrough:e}=ar;return Ri=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 Ti.exports=e,Ti.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),Ti.exports.array=(t,n)=>e(t,{...n,array:!0}),Ti.exports.MaxBufferError=s,Ti.exports}());var Ci,xi;const Ai=t(function(){if(xi)return Ci;xi=1;const{PassThrough:e}=ar;return Ci=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}}()),Li=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Ni=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},$i=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?Pi(e,{encoding:t,maxBuffer:r}):Pi.buffer(e,{maxBuffer:r})},Di=(async()=>{})().constructor.prototype,Ui=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Di,e)])),ki=(e,t)=>{for(const[n,r]of Ui){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},ji=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Mi=/^[\w.-]+$/,Fi=/"/g,Bi=(e,t)=>ji(e,t).join(" "),Gi=(e,t)=>ji(e,t).map((e=>(e=>"string"!=typeof e||Mi.test(e)?e:`"${e.replace(Fi,'\\"')}"`)(e))).join(" "),Hi=/ +/g,Vi=e=>{const t=[];for(const n of e.trim().split(Hi)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},qi=nr.debuglog("execa").enabled,zi=(e,t)=>(e+"").padStart(t,"0"),Wi=(e,{verbose:t})=>{t&&or.stderr.write(`[${(()=>{const e=new Date;return`${zi(e.getHours(),2)}:${zi(e.getMinutes(),2)}:${zi(e.getSeconds(),2)}.${zi(e.getMilliseconds(),3)}`})()}] ${e}\n`)},Xi=(e,t,n={})=>{const r=Wo._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||or.cwd(),execPath:or.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:qi,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const i=t?{...or.env,...e}:e;return n?Xo({env:i,cwd:r,execPath:o}):i})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return fi.map((t=>e[t]));if((e=>fi.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+fi.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,fi.length)},((e,n)=>t[n]))})(n),"win32"===or.platform&&"cmd"===Qn.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Ki=(e,t,n)=>"string"==typeof t||rr.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 Yi={},Qi={};const Ji=dr.promises,{access:Zi,appendFile:es,chmod:ts,chown:ns,copyFile:rs,lchmod:os,lchown:is,link:ss,lstat:as,mkdir:cs,mkdtemp:us,open:ls,readdir:fs,readFile:ps,readlink:ds,realpath:hs,rename:ms,rmdir:vs,stat:ys,symlink:_s,truncate:Es,unlink:gs,utimes:ws,writeFile:bs}=dr.promises,Os="rm"in dr.promises?dr.promises.rm:nr.promisify(dr.unlink),Rs=n(Object.freeze(Object.defineProperty({__proto__:null,access:Zi,appendFile:es,chmod:ts,chown:ns,copyFile:rs,default:Ji,lchmod:os,lchown:is,link:ss,lstat:as,mkdir:cs,mkdtemp:us,open:ls,readFile:ps,readdir:fs,readlink:ds,realpath:hs,rename:ms,rm:Os,rmdir:vs,stat:ys,symlink:_s,truncate:Es,unlink:gs,utimes:ws,writeFile:bs},Symbol.toStringTag,{value:"Module"})));var Is,Ss,Ts,Ps,Cs,xs,As={},Ls={};const Ns=t(function(){if(xs)return Cs;xs=1;const{isexe:e,sync:t}=R(),{join:n,delimiter:r,sep:o,posix:i}=Qn,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 Cs=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)},Cs}());let $s;var Ds,Us={};S(Us,"hasSudo",(()=>T)),S(Us,"isRoot",(()=>P)),S(Us,"isSudo",(()=>C)),S(Us,"prependSudo",(()=>x)),S(Us,"defaultExecOptions",(()=>ks)),S(Us,"execRootSync",(()=>A)),S(Us,"execRoot",(()=>L));let ks={stdio:"inherit",shell:!0};S(Ds={},"isAdminWindows",(()=>js)),S(Ds,"isAdminPosix",(()=>Ms)),S(Ds,"isAdmin",(()=>D));let js=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}}()}},Ms=P;var Fs,Bs,Gs,Hs,Vs,qs,zs,Ws,Xs,Ks,Ys,Qs,Js,Zs,ea,ta,na,ra,oa,ia,sa,aa,ca,ua,la,fa;S({},"grantUserWriteAccess",(()=>U));var pa,da,ha,ma,va,ya,_a,Ea,ga,wa,ba,Oa,Ra,Ia,Sa,Ta,Pa,Ca,xa,Aa,La,Na,$a,Da,Ua,ka,ja,Ma,Fa,Ba,Ga,Ha,Va,qa,za,Wa,Xa,Ka,Ya,Qa,Ja,Za,ec,tc,nc,rc,oc,ic,sc,ac,cc,uc,lc,fc,pc,dc,hc,mc,vc,yc,_c,Ec,gc,wc,bc,Oc,Rc,Ic,Sc,Tc,Pc,Cc,xc,Ac,Lc,Nc,$c,Dc,Uc,kc,jc,Mc,Fc,Bc,Gc,Hc,Vc,qc,zc,Wc,Xc,Kc,Yc,Qc,Jc,Zc,eu,tu,nu,ru,ou,iu,su,au,cu,uu,lu,fu,pu,du,hu,mu,vu,yu,_u,Eu,gu,wu,bu,Ou,Ru,Iu,Su,Tu,Pu,Cu,xu,Au,Lu,Nu,$u={},Du={exports:{}},Uu={exports:{}},ku={exports:{}},ju={exports:{}},Mu={},Fu={},Bu={exports:{}},Gu={},Hu={},Vu={},qu={};const zu=t(function(){if(Nu)return Lu;Nu=1;var e=j(),t=F(),n=function(){if(jc)return kc;jc=1;var e=B(),t=H(),n=V(),r=te(),o=F();return kc=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)},kc}();return Lu=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=Fc?Mc:(Fc=1,Mc=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=(Gc?Bc:(Gc=1,Bc=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(Jc)return Qc;Jc=1;var e=ne(),t=Object.create;return Qc=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(eu)return Zc;eu=1;var e=ne();return Zc=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(nu)return tu;nu=1;var e=ne(),t=Object.create;return tu=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(au)return Mu;au=1;var e=ee(),t=re(),n=z(),r=W(),o=oe(),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,v=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(y){}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(v,this,t),n.cb=r,l=n,i):s.call(v,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&&ae(),i.dispose&&function(){if(bu)return Gu;bu=1;var e=B(),t=H(),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(Tu)return Hu;Tu=1;var e=ee(),t=H(),n=oe(),r=se(),o=function(){if(Su)return Iu;Su=1;var e=M(),t=Ru?Ou:(Ru=1,Ou=2147483647);return Iu=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,v;(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(),v&&(v[e]&&"nextTick"!==v[e]&&clearTimeout(v[e]),v[e]=setTimeout((function(){delete v[e]}),m),"function"==typeof v[e].unref&&v[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],v&&("nextTick"!==v[e]&&clearTimeout(v[e]),delete v[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(v={},m=(1-m)*l,f.on("get"+h,(function(t,o,i){v[t]||(v[t]="nextTick",n((function(){var n;"nextTick"===v[t]&&(delete v[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={},v&&(t(v,(function(e){"nextTick"!==e&&clearTimeout(e)})),v={})})))}}(),i.max&&function(){if(xu)return Vu;xu=1;var e=M(),t=function(){if(Cu)return Pu;Cu=1;var e=M(),t=Object.create,n={}.hasOwnProperty;return Pu=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(Au)return qu;Au=1;var e=Y(),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)}}()),Wu=/^~(?=$|\/|\\)/,{appendFile:Xu,readFile:Ku,writeFile:Yu}=Kn.promises,Qu=ue("~/.bashrc"),Ju=zu((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 Zu,el;const tl=t(function(){if(el)return Zu;el=1;const e=Xn,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return Zu=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 nl,rl,ol,il,sl,al={exports:{}};const cl=t((ol||(ol=1,il=function(){if(rl)return nl;rl=1;var e=/[|\\{}()[\]^$+*?.]/g;return nl=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),sl=function(e){return e.split("").reverse().join("")},al.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+il(t)+"])(?!"+il(n)+")","g"),sl(sl(e).replace(r,"$1"+n)))}),al.exports)),{GITHUB_ACTIONS:ul}=Eo,{appendFile:ll}=Kn.promises,{GITHUB_ACTIONS:fl}=Eo,{appendFile:pl}=Kn.promises,dl=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var hl,ml,vl,yl={exports:{}};const _l=t(_e());var El;const gl=t((El||(El=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 wl,bl,Ol,Rl,Il,Sl={exports:{}};const Tl=t(Il?Rl:(Il=1,Rl=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(Ol)return bl;Ol=1;const n=_e(),r=wl?Sl.exports:(wl=1,Sl.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 bl={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(ve(`../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 Pl,Cl;const xl=t(Cl?Pl:(Cl=1,Pl={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 Al,Ll,Nl,$l,Dl,Ul,kl,jl,Ml,Fl,Bl,Gl,Hl,Vl,ql,zl,Wl,Xl,Kl,Yl,Ql,Jl,Zl,ef,tf,nf,rf,of,sf,af,cf,uf,lf,ff,pf,df,hf,mf,vf,yf,_f,Ef,gf,wf,bf,Of,Rf,If,Sf,Tf,Pf,Cf,xf,Af,Lf,Nf,$f,Df,Uf,kf,jf,Mf,Ff,Bf,Gf,Hf,Vf,qf,zf,Wf,Xf,Kf,Yf,Qf,Jf,Zf,ep,tp,np,rp,op,ip,sp,ap,cp,up,lp,fp,pp,dp,hp,mp={exports:{}};const vp=t(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(hp)return dp;hp=1;var n=or,r=Ge(),o=Xn,i=Qn,s=Kn,a=Zn,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(),v=process.env.XDG_CONFIG_HOME||i.join(m,".config","simple-update-notifier"),y=function(e){return i.join(v,"".concat(e.replace("@","").replace("/","__"),".json"))},_=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(v)||s.mkdirSync(v,{recursive:!0}),e=function(e){var t=y(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,_(o.name,u)]:[3,2];case 1:return i=t.sent(),c=y(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 dp=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]}}))}))}}()),yp={name:"setup-cpp",version:"0.46.0"};var _p,Ep,gp,wp,bp,Op,Rp,Ip,Sp,Tp,Pp,Cp,xp,Ap={},Lp={},Np={},$p={},Dp={},Up={},kp={},jp={},Mp={},Fp={},Bp={},Gp={},Hp=Xe(),Vp={},qp=(xp||(xp=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(Kn),s=cr,a=t(Qn),c=t(Jn),u=t(Zn),l=tr,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)}(Vp)),Vp);const{GITHUB_ACTIONS:zp}=Eo,{appendFile:Wp}=Kn.promises,Xp="Dpkg::Lock::Timeout=300";let Kp=!1;const Yp=zu((function(e=et()){A(e,"nala"!==e?["update","-y","-o",Xp]:["update","-o",Xp],{...ks,env:Je(e)}),Kp=!0}));var Qp,Jp;(Jp=Qp||(Qp={}))[Jp.NameDashVersion=0]="NameDashVersion",Jp[Jp.NameEqualsVersion=1]="NameEqualsVersion",Jp[Jp.Name=2]="Name",Jp[Jp.None=3]="None";const Zp=zu((async function(e){Yp(e);const t=await rt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&A(e,["install","-y","--fix-broken","-o",Xp,...t],{...ks,env:Je(e)})}),{promise:!0}),ed=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"],td="/etc/apt/trusted.gpg.d",nd="keyserver.ubuntu.com";let rd,od,id,sd,ad,cd=!1,ud=!1,ld=!1,fd=!1;const pd=/Version\s*:\s*(.*)/g;let dd=!1;var hd,md;const vd=t(function(){if(md)return hd;md=1;var e=Qn;return hd=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 yd={},_d={};bt(_d,"name",(()=>Ot));var Ed={};bt(Ed,"normalizeTrim",(()=>Rt));var gd={};bt(gd,"addExeExt",(()=>It));var wd={};bt(wd,"addNamePrefix",(()=>St));var bd={};bt(bd,"addNameSuffix",(()=>Tt));var Od={};bt(Od,"addShExt",(()=>Pt));var Rd={};bt(Rd,"addShRelativePrefix",(()=>Ct));var Id={};bt(Id,"removeExt",(()=>xt));var Sd={};bt(Sd,"replaceExt",(()=>At));var Td={};bt(Td,"isPathInside",(()=>Lt)),wt(yd,_d),wt(yd,Ed),wt(yd,gd),wt(yd,wd),wt(yd,bd),wt(yd,Od),wt(yd,Rd),wt(yd,Id),wt(yd,Sd),wt(yd,Td);const Pd=t(ke()),Cd=t(De()),xd=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],Ad=["x86","i386","ia32","win32","32","x32"],Ld=["aarch64","arm64","woa64","arm"],Nd=["armv7","armv7a"],$d=["powerpc64le","ppc64le"],Dd=["sparc64"],Ud=["sparcv9"];var kd,jd,Md,Fd,Bd,Gd,Hd,Vd,qd,zd,Wd,Xd={},Kd={exports:{}},Yd={exports:{}},Qd=Kd.exports,Jd={},Zd=function(){function e(e,t){const n=[];t=t||_.arch();const r=E.join(s(),e);if(v.existsSync(r)){const e=v.readdirSync(r);for(const i of e)if(o(i)){const e=E.join(r,i,t||"");v.existsSync(e)&&v.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(),I.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,w.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,w.clean(t)||t,n||"");v.writeFileSync(r+".complete",""),h.debug("finished caching tool")}function o(e){const t=w.clean(e)||"";h.debug("isExplicit: "+t);const n=null!=w.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)=>w.gt(e,t)?1:-1))).length-1;r>=0;r--){const o=e[r];if(w.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 R.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return R.ok(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=vr[e];return void 0!==n?n:t}if(zd)return Xd;zd=1;var u=Xd.__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=Xd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=Xd.__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=Xd.__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=Xd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.evaluateVersions=Xd.isExplicitVersion=Xd.findFromManifest=Xd.getManifestFromRepo=Xd.findAllVersions=Xd.find=Xd.cacheFile=Xd.cacheDir=Xd.extractZip=Xd.extractXar=Xd.extractTar=Xd.extract7z=Xd.downloadTool=Xd.HTTPError=void 0;const h=f(Xe()),m=f(ze()),v=f(Kn),y=f((jd||(jd=1,function(e,t){var n=Qd&&Qd.__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=Qd&&Qd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Qd&&Qd.__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=Qd&&Qd.__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(Nt()),a=Xe(),c=Xn,u=ir,l=Kn;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}}(Kd,Kd.exports)),Kd.exports)),_=f(Xn),E=f(Qn),g=f(io),w=f(Nt()),b=f(ar),O=f(nr),R=sr,I=d(function(){if(Vd)return Hd;Vd=1;var e=function(){if(Fd)return Md;Fd=1;var e=Yn;return Md=function(){return e.randomBytes(16)}}(),t=function(){if(Gd)return Bd;Gd=1;for(var e=[],t=0;256>t;++t)e[t]=(t+256).toString(16).substr(1);return Bd=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 Hd=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)}}()),S=We(),T=function(){if(qd)return Jd;qd=1;var e=Jd.__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=Jd.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Jd.__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=Jd.__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(Jd,"__esModule",{value:!0}),Jd.RetryHelper=void 0;const o=n(Xe());return Jd.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)))}))}},Jd}();class P extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}Xd.HTTPError=P;const C="win32"===process.platform,x="darwin"===process.platform;return Xd.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||E.join(a(),I.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(v.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=O.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message))();let u=!1;try{return yield s(a,v.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)))}))},Xd.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){R.ok(C,"extract7z() not supported on current OS"),R.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 S.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 S.exec(`"${e}"`,t,r)}finally{process.chdir(o)}}return n}))},Xd.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 S.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 S.exec("tar",s),n}))},Xd.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let o;R.ok(x,"extractXar() not supported on current OS"),R.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 S.exec(`"${i}"`,(s=o,Array.from(new Set(s)))),n}))},Xd.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 S.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 S.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 S.exec(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},Xd.cacheDir=function(e,t,o,i){return p(this,void 0,void 0,(function*(){if(o=w.clean(o)||o,i=i||_.arch(),h.debug(`Caching tool ${t} ${o} ${i}`),h.debug("source dir: "+e),!v.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,o,i);for(const t of v.readdirSync(e)){const n=E.join(e,t);yield m.cp(n,s,{recursive:!0})}return r(t,o,i),s}))},Xd.cacheFile=function(e,t,o,i,s){return p(this,void 0,void 0,(function*(){if(i=w.clean(i)||i,s=s||_.arch(),h.debug(`Caching tool ${o} ${i} ${s}`),h.debug("source file: "+e),!v.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}))},Xd.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||_.arch(),o(n)||(n=i(e(t,r),n));let a="";if(n){n=w.clean(n)||"";const e=E.join(s(),t,n,r);h.debug("checking cache: "+e),v.existsSync(e)&&v.existsSync(e+".complete")?(h.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):h.debug("not found")}return a},Xd.findAllVersions=e,Xd.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}))},Xd.findFromManifest=function(e,t,n,r=_.arch()){return p(this,void 0,void 0,(function*(){return yield y._findMatch(e,t,n,r)}))},Xd.isExplicitVersion=o,Xd.evaluateVersions=i,Xd}(),eh={};const th=t(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(Wd)return eh;Wd=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.retryAsPromised=eh.TimeoutError=void 0;class t extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return eh.TimeoutError=t,eh.retryAsPromised=e,eh.default=e,eh}());var nh=ze();let rh;const{GITHUB_ACTIONS:oh}=wr,ih=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||Kn.mkdir,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||Kn.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||Kn.statSync,e.mkdirSync=e.mkdirSync||n.mkdirSync||Kn.mkdirSync,t},sh=(e,t,n)=>{const r=Qn.dirname(e),o={...ih(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 sh(e,o,sh(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}}},ah=Object.assign((async(e,t,n)=>{const r=ih(t);r.recursive=!1;const o=Qn.dirname(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 ah(o,r).then((t=>ah(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:sh}),ch=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?ch(e,Qn.dirname(t),t):void 0))},uh=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?uh(e,Qn.dirname(t),t):void 0}},lh=(e,t)=>{const n=ih(t);if(n.recursive=!0,Qn.dirname(e)===e)return n.mkdirSync(e,n);const r=uh(n,e);try{return n.mkdirSync(e,n),r}catch(o){if(o&&"ENOENT"===o.code)return sh(e,n);throw o}},fh=Object.assign((async(e,t)=>{const n={...ih(t),recursive:!0};return Qn.dirname(e)===e?await n.mkdirAsync(e,n):ch(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return ah(e,n);throw t}))))}),{sync:lh}),ph=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,dh=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=Qn.resolve(e),"win32"===ph){const t=/[*|"<>?:]/,{root:n}=Qn.parse(e);if(t.test(e.substring(n.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},hh=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),mh=+hh[0]>10||10==+hh[0]&&+hh[1]>=12,vh=mh?e=>ih(e).mkdirSync===Kn.mkdirSync:()=>!1,yh=Object.assign(mh?e=>ih(e).mkdir===Kn.mkdir:()=>!1,{sync:vh}),_h=(e,t)=>{e=dh(e);const n=ih(t);return vh(n)?lh(e,n):sh(e,n)},Eh=Object.assign((async(e,t)=>{e=dh(e);const n=ih(t);return yh(n)?fh(e,n):ah(e,n)}),{mkdirpSync:_h,mkdirpNative:fh,mkdirpNativeSync:lh,mkdirpManual:ah,mkdirpManualSync:sh,sync:_h,native:fh,nativeSync:lh,manual:ah,manualSync:sh,useNative:yh,useNativeSync:vh});var gh=We();const wh=t(Pe()),bh=t(Fe()),Oh=t(Se()),Rh=/v?(\d\S*)/,Ih=zu((function(){const e="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),t=Qn.join(e,"versions.json");return JSON.parse(Kn.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:Sh}=wr,Th=zu((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 gh.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push(Qn.join(n,"Scripts"),Qn.join(n,"Scripts","bin"),Qn.join(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0});var Ph,Ch={},xh=function(){if(Ph)return Ch;Ph=1,Object.defineProperty(Ch,"__esModule",{value:!0}),Ch.getUbuntuVersion=void 0;const e=ir;return Ch.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[]},Ch}();const Ah=zu((async function(){try{if(vt()){try{null===Ns.sync("lsb_release",{nothrow:!0})&&await st([{name:"lsb-release"}])}catch{return en()}const e=await xh.getUbuntuVersion();return 0===e.length?en():e}return null}catch(e){return h(""+e),null}}),{promise:!0}),Lh=zu((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 Eh(e),await Eh(Qn.join(e,"trash")),await Eh(Qn.join(e,"shared")),await Eh(Qn.join(e,"venv")),e}),{promise:!0}),Nh=zu((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,_m),await Eh(e),e}),{promise:!0});let $h;const Dh=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"]]]),Uh=zu((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||Xn.release()).split(".")[0]);const[t,n]=Dh.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),kh=t(Te()),{GITHUB_ACTIONS:jh}=wr,Mh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:Fh}=wr,Bh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),Gh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),Hh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href));class Vh extends Error{constructor(e){super(e),this.name="TimeoutError"}}class qh extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const zh=e=>void 0===globalThis.DOMException?new qh(e):new DOMException(e),Wh=e=>{const t=void 0===e.reason?zh("This operation was aborted."):e.reason;return t instanceof Error?t:zh(t)};var Xh,Kh={},Yh=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(Xh)return Kh;Xh=1;const i=Xe(),s=ir,a=Kn,c=Qn,u=or,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"};Kh.vsversion_to_versionnumber=e,Kh.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return Kh.findWithVswhere=n,Kh.findVcvarsall=r,Kh.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 v=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),y=v[0].split("\r\n"),_=v[1].split("\r\n"),E=v[2].split("\r\n"),g=_.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 w={};for(let r of y){const[e,t]=r.split("=");w[e]=t}i.startGroup("Environment variables");for(let r of E){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==w[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")},Kh}(),Qh=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(Qh||{});const Jh="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),{GITHUB_ACTIONS:Zh}=wr,em="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href)),tm=zu((async function(e,t,n){const[r,o]=await Promise.all([kn(e,t,n),Mn()]);return await rm(n),r}),{promise:!0}),nm=zu((async function(e){if(vt())if(e>10)try{await st([{name:"libtinfo6"}])}catch(t){v(`Failed to install libtinfo6 ${t}\nSkipping the dependency`)}else try{await st([{name:"libtinfo5"}])}catch(t){v(`Failed to install libtinfo5 ${t}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${xd.includes(process.arch)?"amd64":Ld.includes(process.arch)?"arm64":process.arch}.deb`,n="http://launchpadlibrarian.net/666971015/"+e,r=new qp.DownloaderHelper(n,Xn.tmpdir(),{fileName:e});r.on("error",(e=>{throw Error(`Failed to download ${n}: ${e}`)})),await r.start(),A("dpkg",["-i",Qn.join(Xn.tmpdir(),e)])}else mt()?await gt("ncurses5-compat-libs",void 0,"yay"):ht()&&await Et([{name:"ncurses-compat-libs"}])}),{promise:!0}),rm=zu((async function(e){"linux"===process.platform&&await bn(qt("gcc",void 0,await Ah()),"",e,40)}),{promise:!0}),{GITHUB_ACTIONS:om}=wr,im="string"==typeof __dirname?__dirname:Qn.dirname(cr.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:pr&&"SCRIPT"===pr.tagName.toUpperCase()&&pr.src||new URL("setup-cpp.js",document.baseURI).href));let sm,am=!1;const cm={llvm:$n,clang:$n,"clang++":$n},um={gcc:bn,"g++":bn},lm={mingw:yn},fm={msvc:Fn,cl:Fn,msbuild:Fn,visualstudio:Fn},pm={appleclang:xn,applellvm:xn,"apple-clang":xn,"apple-llvm":xn},dm={cmakelang:cn,"cmake-lint":cn,"cmake-format":cn,cmakelint:cn,cmakeformat:cn},hm=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],mm={nala:async function(e,t,n){if(!vt())return;if("string"==typeof sm)return{binDir:sm};const r=Ns.sync("nala",{nothrow:!0});if(null!==r)return sm=Qn.dirname(r),{binDir:sm};await st([{name:"python3-apt"}]),sm="/usr/bin";try{const t=await ot({name:"nala",version:e});if(void 0!==t)return await st([{name:t}]),{binDir:sm}}catch(o){v("Failed to install nala: "+o)}try{const e=await ot({name:"nala-legacy"});if(void 0!==e)return await st([{name:e}],!0),{binDir:sm}}catch(o){v("Failed to install nala-legacy: "+o)}return await async function(){const e=new qp.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh",Xn.tmpdir(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=Qn.join(Xn.tmpdir(),"install-nala.sh"),n=await ps(t,"utf8");await bs(t,n.replace(/sudo/g,"")),await st([{name:"wget"}]);try{A("bash",[t])}catch(o){d("Failed to install nala via installer: "+o),A("apt",["install","-y","-t","nala","nala"])}}(),{binDir:sm}},brew:lt,choco:yt,python:Xt,powershell:Vn,pwsh:Vn,...cm,...um,...lm,...fm,...pm,...dm,cmake:Gt,ninja:Sn,vcpkg:async function(e,t,n){return am&&null!==Ns.sync("vcpkg",{nothrow:!0})?{binDir:Qn.dirname(Ns.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"}]):vt()&&await st([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}])),await ce(Qn.join(t,Pt("bootstrap-vcpkg",".bat")))?m(`Vcpkg folder already exists at ${t}. Skipping the clone`):O("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Qn.dirname(t),stdio:"inherit"}),""!==e&&"true"!==e&&(v("Checking out vcpkg version "+e),O("git",["checkout",e],{cwd:t,stdio:"inherit"})),O(Pt(Ct("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await U(t),await he(t,_m),am=!0,{binDir:t})},bazel:async function(e,t,n){switch(process.platform){case"win32":return _t("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"}]),A("dnf",["copr","enable","vbatts/bazel"]),Et([{name:"bazel4"}]);if(vt())return A("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 tn("conan",e)},meson:function(e,t,n){return tn("meson",e)},gcovr:function(e,t,n){return tn("gcovr",e)},opencppcoverage:Bn,OpenCppCoverage:Bn,ccache:function(e,t,n){switch(process.platform){case"win32":return _t("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(vt())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 _t("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 th((()=>_t("doxygen.install",e)),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>v(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(Qn.join(e,"doxygen.exe")))return await he(e,_m),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await un(qt("graphviz",void 0)),t}case"darwin":{const e=await dt("doxygen",void 0,{formula:!0});return Uh()[0]>11&&await un(qt("graphviz",void 0)),e}case"linux":{let o;if(""===e||mt()||ht())if(mt())o=await gt("doxygen",e);else{if(ht())return Et([{name:"doxygen",version:e}]);if(!vt())throw Error("Unsupported linux distributions");o=await st([{name:"doxygen",version:e}])}else{if(!vt())throw Error("Unsupported linux distributions");try{o=await Ft("doxygen",e,fn,t,n);try{await st([{name:"libclang-cpp9"}])}catch(r){v("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.`),o=await st([{name:"doxygen"}])}}return await un(qt("graphviz",void 0,await Ah())),o}default:throw Error("Unsupported platform")}},graphviz:un,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await _t("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await he(e,_m),e}()};case"darwin":return dt("cppcheck",e);case"linux":if(mt())return gt("cppcheck",e);if(ht())return Et([{name:"ccache",version:e}]);if(vt())return st([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},cpplint:function(e,t,n){return tn("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return tn("flawfinder",e)},lizard:function(e,t,n){return tn("lizard",e)},infer:function(e,t,n){return Ft("infer",e,Rn,t,n)},"clang-tidy":Un,clangtidy:Un,"clang-format":Dn,clangformat:Dn,vcvarsall:An,kcov:async function(e,t,n){if("linux"!==process.platform)return void v("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 Ft("kcov",o,Pn,t,n),a):(a=await Ft("kcov",o,Tn,t,n),mt()?await gt("binutils"):ht()?await Et([{name:"binutils"}]):vt()&&await st([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return _t("make",e);case"darwin":{await dt("make",e);const t=Qn.join(pt(),"opt/make/libexec/gnubin");return await he(t,_m),{binDir:t}}case"linux":if(mt())return gt("make",e);if(ht())return Et([{name:"make",version:e}]);if(vt())return st([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task:function(e,t,n){return Ft("task",e,qn,t,n)},sevenzip:$t,"7zip":$t,"7z":$t},vm=Object.keys(mm),ym=["compiler","architecture","timeout",...vm],_m={rcPath:ue("~/.cpprc"),guard:"cpp"};(async function(e){var t,n,r;let o=Promise.resolve();gr.GITHUB_ACTIONS||(o=async function(){try{await vp({pkg:yp})}catch(e){h("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const i=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=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(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);Ye(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:[...ym,"timeout"],default:Object.fromEntries(ym.map((e=>[e,zn(e)]))),alias:{h:"help"},boolean:"help"})}(e);i.help&&(v('\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=i.architecture)?t:process.arch,a=null!=(n=process.env.SETUP_CPP_DIR)?n:ue("~"),c=[],u=[],l=Tl.create({autoloadLocales:!0});let f,p;Tl.addLocale(xl),_l.addLocale(gl);const m=await Ah(),y=void 0!==i.compiler?function(e){try{const t=e.split("-"),n=t[0];if(1 in t){const e=t[1];return null===Oh(e)&&v(`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}}}(i.compiler):void 0;if(!function(e,t,n){var r,o;const i=void 0!==n&&t.includes(n.compiler),s=(i?t:t.filter((e=>"compiler"!==e))).filter((t=>void 0!==e[t])),a=s.filter((t=>!Wt(i&&"compiler"===t&&void 0!==n?n.version:e[t]))),c=0!==a.length?i&&"compiler"===a[0]&&void 0!==n?null!=(r=n.version)?r:"true":null!=(o=e[a[0]])?o:"true":"true";if(a.some((t=>i&&"compiler"===t&&void 0!==n?e.compiler!==`${n.compiler}-${c}`:e[t]!==c)))return!1;for(const u of s)e[u]=i&&"compiler"===u&&void 0!==n?`${n.compiler}-${c}`:c;return!0}(i,[...hm,"compiler"],y))return d("The same version must be used for llvm, clang-format and clang-tidy"),1;mt()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&(v("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await gt("python-pygments"));let _=!1;for(const d of vm){if(gr.isCI&&0!==u.length){_=!0;break}const e=i[d];void 0!==e&&(f=Date.now(),await Ln(d,e,m,s,a,c,u,60*Number.parseFloat(null!=(r=i.timeout)?r:"20")*1e3),p=Date.now(),v("took "+(l.format(f,p)||"0 seconds")))}if(!_&&void 0!==y){const e=Date.now();await async function(e,t,n,r,o,i,s){let a;try{if(Hp.startGroup(`Installing ${e} ${null!=t?t:""}`),e in cm)a=await $n(qt("llvm",t,n),Qn.join(r,"llvm"),o),await pe("GCOV","llvm-cov gcov",_m);else if(e in um){const e=qt("gcc",t,n);a=await bn(e,Qn.join(r,"gcc"),o),await On(e)}else if(e in lm){const e=qt("mingw",t,n);a=await yn(e,Qn.join(r,"gcc"),o),await On(e)}else e in fm?a=await Fn(qt("msvc",t,n),Qn.join(r,"msvc"),o):e in pm?await xn():(a=null,s.push("Unsupported compiler "+e))}catch(c){d(c),s.push(`Failed to install the ${e} ${t}`)}null!==a&&i.push(Wn(e,a)),Hp.endGroup()}(y.compiler,y.version,m,a,s,c,u);const t=Date.now();v("took "+(l.format(e,t)||"0 seconds"))}if(await async function(e){if(await ce(e.rcPath)){const t=(await Ku(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await Yu(e.rcPath,n.join("\n")),await U(e.rcPath)}}(_m),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(v("setup-cpp finished"),!gr.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 o,0===u.length?0:1})(process.argv).then((e=>{process.exitCode=e})).catch((e=>{d("main() panicked!"),d(e),process.exitCode=1})),exports.HttpClient=ro,exports.ciInfo=wr,exports.commonjsGlobal=vr,exports.coreExports=Hp,exports.execExports=gh,exports.getAugmentedNamespace=n,exports.getDefaultExportFromCjs=t,exports.info=v,exports.pathExists=ce,exports.requireSemver=Ge,exports.toolCacheExports=Zd,exports.warning=h; //# sourceMappingURL=setup-cpp.js.map diff --git a/dist/modern/setup-cpp.mjs b/dist/modern/setup-cpp.mjs index c8fef8d0..a18bd685 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 no||(no=1,Object.defineProperty(so,"__esModule",{value:!0}),so.toCommandProperties=so.toCommandValue=void 0,so.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},so.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}:{}}),so}function r(){return uo>co.length-16&&(nr.randomFillSync(co),uo=0),co.slice(uo,uo+=16)}function o(e){return"string"==typeof e&&lo.test(e)}function i(e,t=0){const n=(fo[e[t+0]]+fo[e[t+1]]+fo[e[t+2]]+fo[e[t+3]]+"-"+fo[e[t+4]]+fo[e[t+5]]+"-"+fo[e[t+6]]+fo[e[t+7]]+"-"+fo[e[t+8]]+fo[e[t+9]]+"-"+fo[e[t+10]]+fo[e[t+11]]+fo[e[t+12]]+fo[e[t+13]]+fo[e[t+14]]+fo[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 bo(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new bo("http://"+n)}}function u(){if(Bo)return zo;Bo=1;var e=zo.__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(zo,"__esModule",{value:!0}),zo.PersonalAccessTokenCredentialHandler=zo.BearerCredentialHandler=zo.BasicCredentialHandler=void 0,zo.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")}))}},zo.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")}))}},zo.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")}))}},zo}function l(){return Ho||(Ho=1,function(e){var t=Wo.__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=Wn,r=Yn,{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}(Wo)),Wo}function f(){return qo||(qo=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=oo.__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=oo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=oo.__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=oo.__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(ro)return io;ro=1;var t=io.__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=io.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=io.__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(io,"__esModule",{value:!0}),io.issue=io.issueCommand=void 0;const i=o(Wn),s=n();io.issueCommand=e,io.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 io}(),h=function(){if(go)return ao;go=1;var e=ao.__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=ao.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ao.__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(ao,"__esModule",{value:!0}),ao.prepareKeyValueMessage=ao.issueFileCommand=void 0;const o=r(Yn),i=r(Wn),s=_o,a=n();return ao.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"})},ao.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}`},ao}(),m=n(),v=c(Wn),y=c(rr),E=function(){if(Go)return wo;Go=1;var e=wo.__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(wo,"__esModule",{value:!0}),wo.OidcClient=void 0;const t=Fo,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 wo.OidcClient=i,wo}();var _,g;(g=_=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}${y.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(v.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=_.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+v.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 E.OidcClient.getIDToken(e)}))};var w=l();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return w.summary}});var b=l();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var O=function(){if(Vo)return Xo;Vo=1;var e=Xo.__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=Xo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Xo.__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(Xo,"__esModule",{value:!0}),Xo.toPlatformPath=Xo.toWin32Path=Xo.toPosixPath=void 0;const r=n(rr);return Xo.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Xo.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Xo.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Xo}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return O.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return O.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return O.toPlatformPath}})}(oo)),oo}function p(e){return ei?Ko.error(e):console.log(`${e}`)}function d(e){return ei?Ko.warning(e):console.log(`${e}`)}function h(e){return ei?Ko.notice(e):console.log(`${e}`)}function m(e){return ei?Ko.info(e):console.log(e)}function v(){if(ci)return ai;ci=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=rr,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 si||(si=1,t="win32"===process.platform||Yr.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(ni)return ti;ni=1,ti=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Yn;return ti}():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(oi)return ri;oi=1,ri=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Yn;return ri}(),ii=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}}),ii;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 ai=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)},ai}function y(){if(gi)return _i;gi=1;const e=rr,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(fi)return li;fi=1;const t=rr,n=v(),r=function(){if(ui)return Ii.exports;ui=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 Ii.exports=e,Ii.exports.default=e,Ii.exports}();return li=function(t){return e(t)||e(t,!0)}}(),n=function(){if(pi)return Si;pi=1;const e=/([()\][%!^"`<>&|;, *?])/g;return Si.command=function(t){return t.replace(e,"^$1")},Si.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},Si}(),r=function(){if(Ei)return yi;Ei=1;const e=Yn,t=function(){if(vi)return mi;vi=1;const e=hi?di:(hi=1,di=/^#!(.*)/);return mi=(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 _i=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 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 _(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function g(e){return _(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function w(e,t,n){const r=Ps(e,t,n),o=ws(e,t),i=bs(e,t);let s;Ts(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=$r.spawn(r.file,r.args,r.options)}catch(f){const e=new $r.ChildProcess,t=Promise.reject(Vi({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=Yi((()=>{e.kill()}));return r.finally((()=>{o()}))})(s,r.options,c);s.kill=Qi.bind(null,s.kill.bind(s)),s.cancel=ns.bind(null,s,{isCanceled:!1});const l=Di((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=hs(t,{encoding:o,buffer:i,maxBuffer:s}),u=hs(n,{encoding:o,buffer:i,maxBuffer:s}),l=hs(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},ds(t,c),ds(n,u),ds(r,l)])}})(s,r.options,u),p=Cs(r.options,c),d=Cs(r.options,l),h=Cs(r.options,f);if(e||0!==t||null!==n){const c=Vi({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:(ps(e),Br(t)))(t);void 0!==n&&(_(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=fs();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=rs.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=rs.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=rs.bind(void 0,e,"all"))})(s),ys(s,l),s}function b(e,t,n){const r=Ps(e,t,n),o=ws(e,t),i=bs(e,t);Ts(i,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ps(e),Fr(t)))(e);if(_(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(r.options);let a;try{a=$r.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Vi({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=Cs(r.options,a.stdout,a.error),u=Cs(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Vi({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 O(){return Ls||(Ls=1,function(e){var t=Us.__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=Us.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Us.__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=Us.__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(As)return ks;As=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.sync=ks.isexe=void 0;const e=Yn,t=Tr;ks.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}},ks.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 ks}());e.posix=i;const s=r(function(){if(xs)return js;xs=1,Object.defineProperty(js,"__esModule",{value:!0}),js.sync=js.isexe=void 0;const e=Yn,t=Tr;js.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}},js.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 js}());e.win32=s,o((Ns||(Ns=1,Object.defineProperty(Ms,"__esModule",{value:!0})),Ms),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:i;e.isexe=a.isexe,e.sync=a.sync}(Us)),Us}function R(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return w(function(){if(void 0===Bs){const e=Fs.sync("pwsh",{nothrow:!0});null!==e&&(Bs=e);const t=Fs.sync("powershell",{nothrow:!0});null!==t&&(Bs=t)}if(void 0===Bs)throw Error("Could not find powershell");return Bs}(),[...t,"-c",e],n)}function I(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function S(){return null!==Fs.sync("sudo",{nothrow:!0})}function T(){return 0===process.getuid?.()||!!process.env.CI}function P(){return T()&&S()}function C(e){return P()?"sudo "+e:e}function A(e,t=[],n=Vs){return P()?function(e,t){const[n,...r]=Rs(e);return b(n,r,t)}(N(e,t),n):b(e,L(t),n)}function x(e,t=[],n=Vs){return P()?function(e,t){const[n,...r]=Rs(e);return w(n,r,t)}(N(e,t),n):w(e,L(t),n)}function N(e,t){return"sudo "+L([e,...t]).join(" ")}function L(e){return e.map((e=>`'${e}'`))}function $(){return"win32"===process.platform?qs():T()}async function D(e){if(("linux"===process.platform||"darwin"===process.platform)&&P()&&void 0!==process.env.SUDO_USER){let t=Yn.statSync(e).isDirectory();await x("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],Vs)}}function U(){if(Ys)return Ks;Ys=1;var e=(Xs?Ws:(Xs=1,Ws=function(){}))();return Ks=function(t){return t!==e&&null!==t}}function k(){if(Js)return Qs;Js=1;var e=U(),t=[].forEach,n=Object.create;return Qs=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},Qs}function j(){if(ca)return aa;ca=1;var e=function(){if(sa)return ia;sa=1;var e=oa?ra:(oa=1,ra=(ea?Zs:(ea=1,Zs=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:na?ta:(na=1,ta=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return ia=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return aa=function(n){return t(0,e(n))}}function M(){if(la)return ua;la=1;var e=j();return ua=function(t,n,r){var o;return isNaN(t)?0>(o=n)?1:r&&o?o-1:o:!1!==t&&e(t)}}function F(){return pa?fa:(pa=1,fa=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function B(){if(ha)return da;ha=1;var e=U();return da=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function G(){return Ea||(Ea=1,ya=function(){if(va)return ma;va=1;var e=F(),t=B(),n=function(){}.bind,r=function(){}.call,o=Object.keys,i={}.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=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}))}},ma}()("forEach")),ya}function H(){return _a||(_a=1),Bu}function V(){return xa||(xa=1,Aa=(wa?ga:(wa=1,ga=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(Ca)return Pa;Ca=1;var e=Ta?Sa:(Ta=1,Sa=(Oa?ba:(Oa=1,ba=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(Ia)return Ra;Ia=1;var e=U(),t=Object.keys;return Ra=function(n){return t(e(n)?Object(n):n)}}()),t=B(),n=Math.max;return Pa=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},Pa}()),Aa}function q(){if(Ua)return Da;Ua=1;var e=B(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;return Da=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(ka)return Hu.exports;ka=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); };")}}(),Hu.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},Hu.exports}function W(){return Ma?ja:(Ma=1,ja=function(e){return null!=e})}function X(){if(Wa)return za;Wa=1;var e=function(){if(qa)return Va;qa=1;var e=function(){if(Ha)return Ga;Ha=1;var e=function(){if(Ba)return Fa;Ba=1;var e=W(),t={object:!0,function:!0,undefined:!0};return Fa=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return Ga=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return Va=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 za=function(r){return!!e(r)&&!t.test(n.call(r))}}function K(){if(ec)return Vu.exports;ec=1;var e=W(),t=X(),n=V(),r=k(),o=(Za||(Za=1,Ja=function(){if(Ka)return Xa;Ka=1;var e="razdwatrzy";return Xa=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(Qa)return Ya;Qa=1;var e="".indexOf;return Ya=function(t){return e.call(this,t,arguments[1])>-1},Ya}()),Ja),i=Vu.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},Vu.exports}function Y(){return uc?cc:(uc=1,cc=(ic?oc:(ic=1,oc=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(ac)return sc;ac=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 sc=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 hc;mc=1;var e=dc?pc:(dc=1,pc=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return hc=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function J(){return Ic?Rc:(Ic=1,Rc=function(){if(fc)return lc;fc=1;var e=Y(),t={object:!0,symbol:!0};return lc=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(Oc)return bc;Oc=1;var e,t,n,r=K(),o=Q(),i=Y().Symbol,s=function(){if(yc)return vc;yc=1;var e=K(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return vc=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(_c)return Ec;_c=1;var e=K(),t=Y().Symbol;return Ec=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(wc)return gc;wc=1;var e=K(),t=Q(),n=Object.create(null);return gc=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)},bc=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])),bc}())}function Z(){return Dc?$c:(Dc=1,$c=(rc?nc:(rc=1,nc=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(Lc)return Nc;Lc=1;var e=J().iterator,t=function(){if(Tc)return Sc;Tc=1;var e={}.toString,t=e.call(function(){return arguments}());return Sc=function(n){return e.call(n)===t}}(),n=function(){if(Cc)return Pc;Cc=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Pc=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=j(),o=F(),i=B(),s=U(),a=function(){if(xc)return Ac;xc=1;var e={}.toString,t=e.call("");return Ac=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 Nc=function(p){var d,h,m,v,y,E,_,g,w,b,O=arguments[1],R=arguments[2];if(p=Object(i(p)),s(O)&&o(O),this&&this!==Array&&n(this))d=this;else{if(!O){if(t(p))return 1!==(y=p.length)?Array.apply(null,p):((v=[,])[0]=p[0],v);if(c(p)){for(v=Array(y=p.length),h=0;y>h;++h)v[h]=p[h];return v}}v=[]}if(!c(p))if(void 0!==(w=p[e])){for(_=o(w).call(p),d&&(v=new d),g=_.next(),h=0;!g.done;)b=O?u.call(O,R,g.value,h):g.value,d?(l.value=b,f(v,h,l)):v[h]=b,g=_.next(),++h;y=h}else if(a(p)){for(y=p.length,d&&(v=new d),h=0,m=0;y>h;++h)b=p[h],y>h+1&&(55296>(E=b.charCodeAt(0))||E>56319||(b+=p[++h])),b=O?u.call(O,R,b,m):b,d?(l.value=b,f(v,m,l)):v[m]=b,++m;y=m}if(void 0===y)for(y=r(p.length),d&&(v=new d(y)),h=0;y>h;++h)b=O?u.call(O,R,p[h],h):p[h],d?(l.value=b,f(v,h,l)):v[h]=b;return d&&(l.value=null,v.length=y),v},Nc}())}function ee(){if(Hc)return Gc;Hc=1;var e,t,n,r,o,i=($a||($a=1,e=Gu,t=V(),n=function(){if(La)return Na;La=1;var e=U(),t={function:!0,object:!0};return Na=function(n){return e(n)&&t[typeof n]||!1}}(),r=U(),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}),Gu.exports),s=z(),a=K(),c=function(){return tc||(tc=1,e=qu,qu.exports,u=K(),l=F(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,v={}.hasOwnProperty,y={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(v.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),v.call(this,"__ee__")?n=this.__ee__:(n=y.value=d(null),h(this,"__ee__",y),y.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),!v.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),qu.exports;var e,t,n,r,o,i,s,a,c,u,l,f,p,d,h,m,v,y}().methods,u=function(){if(Mc)return jc;Mc=1;var e,t=function(){if(kc)return Uc;kc=1;var e=Z(),t=Array.isArray;return Uc=function(n){return t(n)?n:e(n)}}(),n=U(),r=F(),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))},jc=function(o){return(o=t(o)).forEach((function(e){n(e)&&r(e)})),e.bind(o)}}(),l=function(){if(Bc)return Fc;Bc=1;var e=F();return Fc=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,v=c.emit;return Gc=function(e,t,n){var r,o,c,y,E,_,g,w,b,O,R,I,S,T,P,C=d(null);return o=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(O=l(n.normalizer),c=O.get,y=O.set,E=O.delete,_=O.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 R&&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=y(s)}else if(hasOwnProperty.call(C,n))throw i("Circular invocation","CIRCULAR_INVOCATION");return C[n]=o,I&&r.emit("set",n,null,o),o}),o):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return R&&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,I&&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 R&&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,I&&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)&&(E&&E(e),t=C[e],delete C[e],S&&r.emit("delete",e,t))},clear:function(){var e=C;_&&_(),C=d(null),r.emit("clear",e)},on:function(e,t){return"get"===e?R=!0:"set"===e?I=!0:"delete"===e&&(S=!0),m.call(this,e,t)},emit:v,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)},w=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(w),_has:a(b)}),r},Gc}function te(){if(ru)return nu;ru=1;var e=tu?eu:(tu=1,eu=(Qc?Yc:(Qc=1,Yc=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:Zc?Jc:(Zc=1,Jc=function(e){return e!=e})),t=j(),n=B(),r=[].indexOf,o={}.hasOwnProperty,i=Math.abs,s=Math.floor;return nu=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},nu}function ne(){if(fu)return lu;fu=1;var e=F(),t=G(),n=function(){}.call;return lu=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},lu}function re(){if(du)return pu;du=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 pu=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 Eu?yu:(Eu=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 Tu||(Tu=1,Xu.exports=e,Xu.exports.default=e),Xu.exports}function se(){if(Pu)return Wu;Pu=1;var e=ne(),t=function(){if(vu)return mu;vu=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(bu)return wu;bu=1;var e=B(),t=function(){if(gu)return _u;gu=1;var e=oe();return _u=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return wu=function(n){return t(e(n))}}(),r=function(){if(Su)return Iu;Su=1;var e=function(){if(Ru)return Ou;Ru=1;var e=oe();return Ou=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return""}}}();return Iu=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 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(!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]})))}))},Wu}async function ae(e){try{return await Gr.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?or("/Users/",process.env.SUDO_USER):or("/home/",process.env.SUDO_USER);{const e=Xn();if(""===e)return;return e}}();return void 0===t?e:e.replace(el,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 nl(e.rcPath,"utf8")).includes(t)||(await tl(e.rcPath,`\n${t}\n`),m(`Added ${t} to ${e.rcPath}`)))}async function le(e,t){await ae(t)&&((await nl(t,"utf-8")).includes(e)||(await tl(t,e),m(`${e} was added to ${t}`)))}async function fe(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:ol,...n},o=function(e,t=!1){const n=t?cl(e):e;return ml(n,'"',"\\")}(t??"",r.escapeSpace);try{if(vl)try{if(!r.overwrite&&void 0!==process.env[e])return void m(`Environment variable ${e} is already defined. Skipping.`);Ko.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 R(`[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 il(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:ol,...t};if(!function(e){return!!gl.some((t=>t.test(e)))&&(process.env.PATH?.split(ir)??[]).includes(e)}(e)){process.env.PATH=`${e}${ir}${process.env.PATH}`;try{if(El)try{Ko.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 R(`$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 il(t),await _l(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 ve(){return wl||(wl=1,e=Rl,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}}()),Rl.exports;var e}function ye(){return Ol?bl:(Ol=1,bl=ve())}function Ee(){return Ml?jl:(Ml=1,jl={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 _e(){if(Bl)return Fl;Bl=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 Fl=e}function ge(){return Gl||(Gl=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Ee(),i=_e(),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*$")}(bp,bp.exports)),bp.exports}function we(){if(Vl)return Hl;Vl=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Hl=n=>n?"object"!=typeof n?e:n:t}function be(){if(zl)return ql;zl=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 ql={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function Oe(){if(Xl)return Wl;Xl=1;const e=_e(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Ee(),{safeRe:r,t:o}=ge(),i=we(),{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 Wl=a}function Re(){if(Yl)return Kl;Yl=1;const e=Oe();return Kl=(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 Ie(){if(Jl)return Ql;Jl=1;const e=Re();return Ql=(t,n)=>{const r=e(t,n);return r?r.version:null}}function Se(){if(af)return sf;af=1;const e=Oe();return sf=(t,n)=>new e(t,n).major}function Te(){if(mf)return hf;mf=1;const e=Oe();return hf=(t,n,r)=>new e(t,r).compare(new e(n,r))}function Pe(){if(wf)return gf;wf=1;const e=Oe();return gf=(t,n,r)=>{const o=new e(t,r),i=new e(n,r);return o.compare(i)||o.compareBuild(i)}}function Ce(){if(Tf)return Sf;Tf=1;const e=Te();return Sf=(t,n,r)=>e(t,n,r)>0}function Ae(){if(Cf)return Pf;Cf=1;const e=Te();return Pf=(t,n,r)=>0>e(t,n,r)}function xe(){if(xf)return Af;xf=1;const e=Te();return Af=(t,n,r)=>0===e(t,n,r)}function Ne(){if(Lf)return Nf;Lf=1;const e=Te();return Nf=(t,n,r)=>0!==e(t,n,r)}function Le(){if(Df)return $f;Df=1;const e=Te();return $f=(t,n,r)=>e(t,n,r)>=0}function $e(){if(kf)return Uf;kf=1;const e=Te();return Uf=(t,n,r)=>0>=e(t,n,r)}function De(){if(Mf)return jf;Mf=1;const e=xe(),t=Ne(),n=Ce(),r=Le(),o=Ae(),i=$e();return jf=(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 Ue(){if(Bf)return Ff;Bf=1;const e=Oe(),t=Re(),{safeRe:n,t:r}=ge();return Ff=(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 ke(){if(qf)return Vf;qf=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=>y(e,this.options))).join(" ").split(/\s+/).map((e=>S(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 v=new Map,E=m.map((e=>new o(e,this.options)));for(const n of E){if(h(n))return[n];v.set(n.value,n)}v.size>1&&v.has("")&&v.delete("");const _=[...v.values()];return n.set(t,_),_}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>v(t,n)&&e.set.some((e=>v(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}}Vf=t;const n=new(Hf?Gf:(Hf=1,Gf=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=we(),o=je(),i=_e(),s=Oe(),{safeRe:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:f}=ge(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:d}=Ee(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(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},y=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=_(e,t),i("tildes",e),e=O(e,t),i("xrange",e),e=I(e,t),i("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===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),E(n)?a="":E(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:E(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})),w=(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),E(r)?c="":E(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(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}))},O=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>R(e,t))).join(" ")),R=(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=E(o),l=u||E(s),f=l||E(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})),I=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),S=(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=E(r)?"":E(o)?`>=${r}.0.0${e?"-0":""}`:E(i)?`>=${r}.${o}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=E(u)?"":E(l)?`<${+u+1}.0.0-0`:E(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 Vf}function je(){if(Wf)return zf;Wf=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(">")))}}zf=t;const n=we(),{safeRe:r,t:o}=ge(),i=De(),s=_e(),a=Oe(),c=ke();return zf}function Me(){if(Kf)return Xf;Kf=1;const e=ke();return Xf=(t,n,r)=>{try{n=new e(n,r)}catch(o){return!1}return n.test(t)}}function Fe(){if(ap)return sp;ap=1;const e=Oe(),t=je(),{ANY:n}=t,r=ke(),o=Me(),i=Ce(),s=Ae(),a=$e(),c=Le();return sp=(u,l,f,p)=>{let d,h,m,v,y;switch(u=new e(u,p),l=new r(l,p),f){case">":d=i,h=a,m=s,v=">",y=">=";break;case"<":d=s,h=c,m=i,v="<",y="<=";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===v||r.operator===y)return!1;if((!o.operator||o.operator===v)&&h(u,o.semver))return!1;if(o.operator===y&&m(u,o.semver))return!1}return!0}}function Be(){if(_p)return Ep;_p=1;const e=ge(),t=Ee(),n=Oe(),r=be(),o=Re(),i=Ie(),s=function(){if(ef)return Zl;ef=1;const e=Re();return Zl=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),a=function(){if(nf)return tf;nf=1;const e=Oe();return tf=(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(of)return rf;of=1;const e=Re();return rf=(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=Se(),l=function(){if(uf)return cf;uf=1;const e=Oe();return cf=(t,n)=>new e(t,n).minor}(),f=function(){if(ff)return lf;ff=1;const e=Oe();return lf=(t,n)=>new e(t,n).patch}(),p=function(){if(df)return pf;df=1;const e=Re();return pf=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),d=Te(),h=function(){if(yf)return vf;yf=1;const e=Te();return vf=(t,n,r)=>e(n,t,r)}(),m=function(){if(_f)return Ef;_f=1;const e=Te();return Ef=(t,n)=>e(t,n,!0)}(),v=Pe(),y=function(){if(Of)return bf;Of=1;const e=Pe();return bf=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),E=function(){if(If)return Rf;If=1;const e=Pe();return Rf=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),_=Ce(),g=Ae(),w=xe(),b=Ne(),O=Le(),R=$e(),I=De(),S=Ue(),T=je(),P=ke(),C=Me(),A=function(){if(Qf)return Yf;Qf=1;const e=ke();return Yf=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),x=function(){if(Zf)return Jf;Zf=1;const e=Oe(),t=ke();return Jf=(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}}(),N=function(){if(tp)return ep;tp=1;const e=Oe(),t=ke();return ep=(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(rp)return np;rp=1;const e=Oe(),t=ke(),n=Ce();return np=(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(ip)return op;ip=1;const e=ke();return op=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),D=Fe(),U=function(){if(up)return cp;up=1;const e=Fe();return cp=(t,n,r)=>e(t,n,">",r)}(),k=function(){if(fp)return lp;fp=1;const e=Fe();return lp=(t,n,r)=>e(t,n,"<",r)}(),j=function(){if(dp)return pp;dp=1;const e=ke();return pp=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),M=function(){if(mp)return hp;mp=1;const e=Me(),t=Te();return hp=(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}}(),F=function(){if(yp)return vp;yp=1;const e=ke(),t=je(),{ANY:n}=t,r=Me(),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,v,y;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 E=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,_=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;E&&1===E.prerelease.length&&"<"===p.operator&&0===E.prerelease[0]&&(E=!1);for(const n of t){if(y=y||">"===n.operator||">="===n.operator,v=v||"<"===n.operator||"<="===n.operator,f)if(_&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===_.major&&n.semver.minor===_.minor&&n.semver.patch===_.patch&&(_=!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(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(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&&v&&!p&&0!==d||p&&y&&!f&&0!==d||_||E)},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 vp=(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 Ep={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:v,sort:y,rsort:E,gt:_,lt:g,eq:w,neq:b,gte:O,lte:R,cmp:I,coerce:S,Comparator:T,Range:P,satisfies:C,toComparators:A,maxSatisfying:x,minSatisfying:N,minVersion:L,validRange:$,outside:D,gtr:U,ltr:k,intersects:j,simplifyRange:M,subset:F,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 Ip||(Ip=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.toCommandProperties=Fp.toCommandValue=void 0,Fp.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Fp.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}:{}}),Fp}function He(){return Cp||(Cp=1,function(e){var t=Hp.__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=Wn,r=Yn,{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}(Hp)),Hp}function Ve(){return xp||(xp=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=Kp.__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=Kp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Kp.__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=Kp.__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(Yn),c=i(rr);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"}}(Kp)),Kp}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(Np)return Xp;Np=1;var i=Xp.__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=Xp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Xp.__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=Xp.__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(Xp,"__esModule",{value:!0}),Xp.findInPath=Xp.which=Xp.mkdirP=Xp.rmRF=Xp.mv=Xp.cp=void 0;const u=br,l=a(rr),f=a(Ve());return Xp.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)}}))},Xp.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)}))},Xp.rmRF=e,Xp.mkdirP=t,Xp.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]:""}))},Xp.findInPath=n,Xp}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($p)return zp;$p=1;var t=zp.__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=zp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=zp.__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=zp.__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(zp,"__esModule",{value:!0}),zp.getExecOutput=zp.exec=void 0;const i=Vr,s=r(function(){if(Lp)return Wp;Lp=1;var e=Wp.__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=Wp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Wp.__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=Wp.__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(Wp,"__esModule",{value:!0}),Wp.argStringToArray=Wp.ToolRunner=void 0;const o=n(Wn),i=n(_r),s=n(wr),a=n(rr),c=n(qe()),u=n(Ve()),l=qr,f="win32"===process.platform;Wp.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)}}))))}))}},Wp.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 Wp}());return zp.exec=e,zp.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}}))},zp}function We(){return Up||(Up=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=jp.__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=jp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=jp.__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=jp.__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(Sp)return Mp;Sp=1;var t=Mp.__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=Mp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Mp.__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(Mp,"__esModule",{value:!0}),Mp.issue=Mp.issueCommand=void 0;const o=r(Wn),i=Ge();Mp.issueCommand=e,Mp.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 Mp}(),f=function(){if(Tp)return Bp;Tp=1;var e=Bp.__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=Bp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Bp.__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(Bp,"__esModule",{value:!0}),Bp.prepareKeyValueMessage=Bp.issueFileCommand=void 0;const r=n(nr),o=n(Yn),i=n(Wn),s=Ge();return Bp.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"})},Bp.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}`},Bp}(),p=Ge(),d=a(Wn),h=a(rr),m=function(){if(Pp)return Gp;Pp=1;var e=Gp.__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(Gp,"__esModule",{value:!0}),Gp.OidcClient=void 0;const t=Fo,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 Gp.OidcClient=i,Gp}();var v,y;(y=v||(e.ExitCode=v={}))[y.Success=0]="Success",y[y.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=v.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 E=He();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return E.summary}});var _=He();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return _.markdownSummary}});var g=function(){if(Ap)return Vp;Ap=1;var e=Vp.__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=Vp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Vp.__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(Vp,"__esModule",{value:!0}),Vp.toPlatformPath=Vp.toWin32Path=Vp.toPosixPath=void 0;const r=n(rr);return Vp.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Vp.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Vp.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Vp}();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((Dp||(Dp=1,function(e){var t=qp.__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=qp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=qp.__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=qp.__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=qp.__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(Wn),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})}))}}(qp)),qp))}(jp)),jp}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){Zp?await async function(e,t,n=40){await x("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await il(n),await ed(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 Je(){return null!==Fs.sync("nala",{nothrow:!0})}function Ze(){let e;return e=Je()?"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 w("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 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,n){switch(await ot(e,t,n)){case od.NameDashVersion:return`${t}-${n}`;case od.NameEqualsVersion:return`${t}=${n}`;case od.Name:return void 0!==n&&""!==n&&d(`Could not find package ${t} with version ${n}. Installing the latest version.`),t;default:throw Error(`Could not find package ${t} ${n??""}`)}}(t,e.name,e.version);return await tt(n)?void 0:n}async function ot(e,t,n){if(void 0!==n&&""!==n){const{stdout:r}=await w("apt-cache",["search","--names-only",`^${et(t)}-${et(n)}$`],{env:Qe(e),stdio:"pipe"});if(""!==r.trim())return od.NameDashVersion;try{const{stdout:r}=await w("apt-cache",["show",`${t}=${n}`],{env:Qe(e)});if(""===r.trim())return od.NameEqualsVersion}catch{}}try{const{stdout:n}=await w("apt-cache",["show",t],{env:Qe(e),stdio:"pipe"});if(""!==n.trim())return od.Name}catch{}return nd?od.None:(rd(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&&rd(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 sd(t),await async function(e){await tt("software-properties-common")||A(e,["install","-y","--fix-broken","-o",td,"software-properties-common"],{...Vs,env:Qe(e)})}(t),A("add-apt-repository",["-y","--no-update",e],{...Vs,env:Qe(t)}),rd.clear(),rd(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 sd(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=ud,fileName:n,keyStorePath:r=ud}){try{ct(n);const o=or(r,n);return await ae(o)||(at(),await x("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+o,"--keyserver",t,"--recv-keys",e]),await x("chmod",["644",o])),o}catch(o){return void d(`Failed to add apt key via server ${t}: ${o}`)}}(t))})))}(e),A(r,["install","--fix-broken","-y",...o],{...Vs,env:Qe(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;ad.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(d(`Failed to install packages ${o}. Retrying...`),A(r,["install","--fix-broken","-y","-o",td,...o],{...Vs,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 st({keyUrl:e,fileName:t,keyStorePath:n=cd}){try{ct(t);const r=or(n,t);if(!(await ae(r))){at(),await it([{name:"ca-certificates"}]);const n=or(Kn(),t),o=new Jp.DownloaderHelper(e,Kn(),{fileName:t});o.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await o.start(),A("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),A("chmod",["644",r])}return r}catch(r){return void d(`Failed to add apt key via download ${e}: ${r}`)}}function at(){A("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 ld)return{binDir:ld};const t=await Fs("brew",{nothrow:!0});if(null!==t)return ld=sr(t),{binDir:ld};await it([{name:"ca-certificates"}]);const n=new Jp.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Kn(),{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"}}),ld=lt(),await de(ld,e.rcOptions),{binDir:ld}}function lt(){return or(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`),md&&null!==Fs.sync("brew",{nothrow:!0})||(await ut(),md=!0);const r=lt(),o=or(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===fd&&(fd=null!==Fs.sync("dnf",{nothrow:!0})),fd)}function ht(){return"linux"===process.platform&&(void 0===pd&&(pd=null!==Fs.sync("pacman",{nothrow:!0})),pd)}function mt(){return"linux"===process.platform&&(void 0===dd&&(dd=null!==Fs.sync("apt-get",{nothrow:!0})),dd)}async function vt(e,t,n){if("win32"!==process.platform)return;if("string"==typeof hd)return{binDir:hd};const r=Fs.sync("choco",{nothrow:!0});if(null!==r)return hd=sr(r),{binDir:hd};let o="powershell.exe";const i=Fs.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,Im);const a=Fs.sync("choco",{nothrow:!0});return hd=null!==a?sr(a):(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin",await ae(hd)?{binDir:hd}:void 0}async function yt(e,t,n=[]){m(`Installing ${e} ${t??""} via chocolatey`),vd&&null!==Fs.sync("choco",{nothrow:!0})||(await vt(0,0,process),vd=!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,Im),{binDir:i}}async function Et(e){for(const{name:t,version:n}of e)m(`Installing ${t} ${n??""} via dnf`);return A("dnf",["-y","install",...await Promise.all(e.map((e=>async function(e,t){if(void 0!==t&&""!==t){const{stdout:n}=await w("dnf",["search","-q",`${e}-${t}`]);if(""!==n.trim())return`${e}-${t}`;{const{stdout:n}=await w("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 _t(e,t,n){m(`Installing ${e} ${t??""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===Fs.sync("yay",{nothrow:!0}))try{A("pacman",["-S","--noconfirm","base-devel","git"]);const e=or(Kn(),"yay");A("mkdir",["-p",e]),T()?(d("Creating a non-root user to build yay"),A("useradd",["-m","-G","wheel","builder"]),A("passwd",["-d","builder"]),A("chown",["-R","builder:builder",e]),A("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),gd=!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:Kn()}),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||(A(r,["-Sy","--noconfirm"]),yd=!0),Ed||"yay"===n||(A(r,["-S","--noconfirm","base-devel"]),Ed=!0);const o=e=>"yay"===n?T()&&gd?A("su",["-","builder","-c","yay -S --noconfirm "+e]):b(n,["-S","--noconfirm",e]):A(n??r,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){const n=await async function(e,t){const n=[];try{const{stdout:r}=await w(e,["-Si",t]);for(const e of r.matchAll(_d))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 wt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function bt(e,t=!0){return t?ar(e):ar(e,cr(e))}function Ot(e){return ur(e).replace(RegExp(et(lr)+"$"),"")}function Rt(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function It(e,t){const n=cr(e),r=`${t}${ar(e,n)}${n}`;return or(sr(e),r)}function St(e,t){const n=cr(e),r=`${ar(e,n)}${t}${n}`;return or(sr(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=cr(e).length;return e.slice(0,-t)}function At(e,t){return Od(e,t)}function xt(e,t){const n=fr(t,e);return!(!n||".."===n||n.startsWith(".."+lr)||n===pr(e))}function Nt(){return Vd||(Vd=1,function(e,t){function n(e){A[e]=x++}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>R)return null;if(!(t.loose?P[A.LOOSE]:P[A.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>R)throw new TypeError("version is longer than "+R+" characters");if(!(this instanceof i))return new i(e,t);O("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?P[A.LOOSE]:P[A.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>I||0>this.major)throw new TypeError("Invalid major version");if(this.minor>I||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>I||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&&I>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(" "),O("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===U?"":this.operator+this.semver.version,O("comp",this)}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(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 y(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 E(e){return!e||"x"===e.toLowerCase()||"*"===e}function _(e,t,n,r,o,i,s,a,c,u,l,f,p){return((t=E(n)?"":E(r)?">="+n+".0.0":E(o)?">="+n+"."+r+".0":">="+t)+" "+(a=E(c)?"":E(u)?"<"+(+c+1)+".0.0":E(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(O(e[r].semver),e[r].semver!==U&&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 w(e,t,n){try{t=new v(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 v(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(w(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var y=null,E=null;if(t.set[h].forEach((function(e){e.semver===U&&(e=new m(">=0.0.0")),E=E||e,o(e.semver,(y=y||e).semver,r)?y=e:a(e.semver,E.semver,r)&&(E=e)})),y.operator===l||y.operator===f)return!1;if((!E.operator||E.operator===l)&&s(e,E.semver))return!1;if(E.operator===f&&a(e,E.semver))return!1}return!0}var O;t=rh.exports=i,O="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 R=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,S=R-6,T=t.re=[],P=t.safeRe=[],C=t.src=[],A=t.tokens={},x=0,N="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",R],[N,S]];n("NUMERICIDENTIFIER"),C[A.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),C[A.NUMERICIDENTIFIERLOOSE]="\\d+",n("NONNUMERICIDENTIFIER"),C[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+N+"*",n("MAINVERSION"),C[A.MAINVERSION]="("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),C[A.MAINVERSIONLOOSE]="("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),C[A.PRERELEASEIDENTIFIER]="(?:"+C[A.NUMERICIDENTIFIER]+"|"+C[A.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),C[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[A.NUMERICIDENTIFIERLOOSE]+"|"+C[A.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),C[A.PRERELEASE]="(?:-("+C[A.PRERELEASEIDENTIFIER]+"(?:\\."+C[A.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),C[A.PRERELEASELOOSE]="(?:-?("+C[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[A.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),C[A.BUILDIDENTIFIER]=N+"+",n("BUILD"),C[A.BUILD]="(?:\\+("+C[A.BUILDIDENTIFIER]+"(?:\\."+C[A.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),C[A.FULLPLAIN]="v?"+C[A.MAINVERSION]+C[A.PRERELEASE]+"?"+C[A.BUILD]+"?",C[A.FULL]="^"+C[A.FULLPLAIN]+"$",n("LOOSEPLAIN"),C[A.LOOSEPLAIN]="[v=\\s]*"+C[A.MAINVERSIONLOOSE]+C[A.PRERELEASELOOSE]+"?"+C[A.BUILD]+"?",n("LOOSE"),C[A.LOOSE]="^"+C[A.LOOSEPLAIN]+"$",n("GTLT"),C[A.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),C[A.XRANGEIDENTIFIERLOOSE]=C[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),C[A.XRANGEIDENTIFIER]=C[A.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),C[A.XRANGEPLAIN]="[v=\\s]*("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:"+C[A.PRERELEASE]+")?"+C[A.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),C[A.XRANGEPLAINLOOSE]="[v=\\s]*("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:"+C[A.PRERELEASELOOSE]+")?"+C[A.BUILD]+"?)?)?",n("XRANGE"),C[A.XRANGE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAIN]+"$",n("XRANGELOOSE"),C[A.XRANGELOOSE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAINLOOSE]+"$",n("COERCE"),C[A.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),T[A.COERCERTL]=RegExp(C[A.COERCE],"g"),P[A.COERCERTL]=RegExp(r(C[A.COERCE]),"g"),n("LONETILDE"),C[A.LONETILDE]="(?:~>?)",n("TILDETRIM"),C[A.TILDETRIM]="(\\s*)"+C[A.LONETILDE]+"\\s+",T[A.TILDETRIM]=RegExp(C[A.TILDETRIM],"g"),P[A.TILDETRIM]=RegExp(r(C[A.TILDETRIM]),"g"),n("TILDE"),C[A.TILDE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAIN]+"$",n("TILDELOOSE"),C[A.TILDELOOSE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAINLOOSE]+"$",n("LONECARET"),C[A.LONECARET]="(?:\\^)",n("CARETTRIM"),C[A.CARETTRIM]="(\\s*)"+C[A.LONECARET]+"\\s+",T[A.CARETTRIM]=RegExp(C[A.CARETTRIM],"g"),P[A.CARETTRIM]=RegExp(r(C[A.CARETTRIM]),"g"),n("CARET"),C[A.CARET]="^"+C[A.LONECARET]+C[A.XRANGEPLAIN]+"$",n("CARETLOOSE"),C[A.CARETLOOSE]="^"+C[A.LONECARET]+C[A.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),C[A.COMPARATORLOOSE]="^"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),C[A.COMPARATOR]="^"+C[A.GTLT]+"\\s*("+C[A.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),C[A.COMPARATORTRIM]="(\\s*)"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+"|"+C[A.XRANGEPLAIN]+")",T[A.COMPARATORTRIM]=RegExp(C[A.COMPARATORTRIM],"g"),P[A.COMPARATORTRIM]=RegExp(r(C[A.COMPARATORTRIM]),"g"),n("HYPHENRANGE"),C[A.HYPHENRANGE]="^\\s*("+C[A.XRANGEPLAIN]+")\\s+-\\s+("+C[A.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),C[A.HYPHENRANGELOOSE]="^\\s*("+C[A.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[A.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),C[A.STAR]="(<|>)?=?\\s*\\*";for(var $=0;x>$;$++)O($,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 O("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(O("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(O("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 U={};m.prototype.parse=function(e){var t=e.match(this.options.loose?P[A.COMPARATORLOOSE]:P[A.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new i(t[2],this.options.loose):U},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(O("Comparator.test",e,this.options.loose),this.semver===U||e===U)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 v(e.value,t),w(this.value,n,t));if(""===e.operator)return""===e.value||(n=new v(this.value,t),w(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=v,v.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},v.prototype.toString=function(){return this.range},v.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[A.HYPHENRANGELOOSE]:P[A.HYPHENRANGE],_),O("hyphen replace",e),e=e.replace(P[A.COMPARATORTRIM],"$1$2$3"),O("comparator trim",e,P[A.COMPARATORTRIM]),e=(e=(e=e.replace(P[A.TILDETRIM],"$1~")).replace(P[A.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?P[A.COMPARATORLOOSE]:P[A.COMPARATOR],r=e.split(" ").map((function(e){return function(e,t){return O("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return O("caret",e,t),e.replace(t.loose?P[A.CARETLOOSE]:P[A.CARET],(function(t,n,r,o,i){var s;return O("caret",e,t,n,r,o,i),E(n)?s="":E(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":E(o)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":i?(O("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"):(O("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"),O("caret return",s),s}))}(e,t)})).join(" ")}(e,t),O("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return e.replace(t.loose?P[A.TILDELOOSE]:P[A.TILDE],(function(t,n,r,o,i){var s;return O("tilde",e,t,n,r,o,i),E(n)?s="":E(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":E(o)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":i?(O("replaceTilde pr",i),s=">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+o+" <"+n+"."+(+r+1)+".0",O("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),O("tildes",e),e=function(e,t){return O("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){return(e=e.trim()).replace(t.loose?P[A.XRANGELOOSE]:P[A.XRANGE],(function(n,r,o,i,s,a){O("xRange",e,n,r,o,i,s,a);var c=E(o),u=c||E(i),l=u||E(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),O("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),O("xrange",e),e=function(e,t){return O("replaceStars",e,t),e.trim().replace(P[A.STAR],"")}(e,t),O("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)},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw new TypeError("a Range is required");return this.set.some((function(n){return y(n,t)&&e.set.some((function(e){return y(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new v(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},v.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=w,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var s=new v(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 v(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 v(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 v(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 v(e,n),t=new v(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[A.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[A.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;P[A.COERCERTL].lastIndex=-1}else n=e.match(P[A.COERCE]);return null===n?null:o(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,rh.exports)),rh.exports}function Lt(e,t,n){switch(process.platform){case"win32":return yt("7zip",e);case"darwin":return pt("p7zip",e);case"linux":if(ht())return _t("p7zip",e);if(dt())return Et([{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 $t(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)}async function Dt(e,t){return await w(await async function(){return void 0===lh&&(null===Fs.sync("7z",{nothrow:!0})&&await Lt("",0,process),lh="7z"),lh}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await D(t),t}function Ut(e,t){return Dt(e,t)}async function kt(e,t){return null!==Fs.sync("7z",{nothrow:!0})?Dt(e,t):null!==Fs.sync("unzip",{nothrow:!0})?(await w("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await D(t),t):Dt(e,t)}async function jt(e,t,n=0,r=[]){await async function(e){switch(m("Installing tar extraction dependencies"),e){case 1:"linux"===process.platform&&(ht()?(await _t("gzip"),await _t("tar")):dt()?await Et([{name:"gzip"},{name:"tar"}]):mt()&&await it([{name:"gzip"},{name:"tar"}]));break;case 2:"linux"===process.platform&&(ht()?(await _t("xz"),await _t("tar")):dt()?await Et([{name:"xz"},{name:"tar"}]):mt()&&await it([{name:"xz-utils"},{name:"tar"}]));break;default:throw Error(`Unsupported archive type: ${e} for tar extraction`)}}($t(e));try{await uh.mkdirP(t)}catch{}try{await w("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 Mt(e,t,n,r,o){m(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=process.env.RUNNER_TEMP??Kn(),process.env.RUNNER_TOOL_CACHE=process.env.RUNNER_TOOL_CACHE??or(Kn(),"setup-cpp","hostedtoolcache");const{url:i,binRelativeDir:s,binFileName:a,extractedFolderName:c,extractFunction:u}=await n(t,process.platform,o);if(fh)try{const n=sh.find(e,t);if(n){const r=or(n,c),o=or(r,s);if(await ae(or(o,a)))return m(`${e} ${t} was found in the cache at ${o}.`),await de(o,Im),{installDir:r,binDir:o}}}catch{}const l=or(r,c),f=or(l,s),p=or(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 ch((()=>{const e=or(process.env.RUNNER_TEMP??Kn(),`${Date.now()}-${ar(n)}`);return sh.downloadTool(n,e)}),{name:n,max:4,backoffBase:2e3,report:e=>m(e)})}(n,r,o);m(`Extracting ${e} to ${i}`);const t=s??function(e){switch(e){case 0:case 1:case 2:return jt;case 3:return kt;default:return Dt}}($t(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,Im),!(await ae(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await Pr(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){fh&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==qn("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await sh.cacheDir(e,t,n))}(r,e,t),{installDir:l,binDir:f}}function Ft(e,t,n){const r=Dd(e)??e;switch(t){case"win32":{const t=Ud(r,"v3.19.6");let o;kd.includes(n)?o=t?"win64-x64":"windows-x86_64":jd.includes(n)?o=t?"win32-x86":"windows-i386":Md.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:Rt("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const t=`cmake-${e}-${Ud(r,"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=Ud(r,"v3.19.8");let o;Md.includes(n)?o=t?"Linux-aarch64":"linux-aarch64":kd.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:Rt("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function Bt(e,t,n){return Mt("cmake",e,Ft,t,n)}async function Gt(e,t,n=xh){const r=await async function(e,t=xh){try{const n=await Th.getExecOutput(e,["--version"]),r=n.stdout||n.stderr||"",o=r.trim().match(t)?.[1];return Dd(o)??void 0}catch(n){return void console.error(n)}}(e,n);if(void 0===r||""===t)return!1;try{return-1!==Ph(r,t)}catch{return Ch(r,t)}}function Ht(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}function Vt(e,t,n=null){return zt(t)?qt(e,n)??"":t}function qt(e,t=null){const n=Nh()[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 zt(e){return"true"===e||void 0===e}async function Wt(e,t,n){const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let o,i=await Xt(t);if(void 0!==i){const e=sr(i);o={bin:i,installDir:e,binDir:e}}else{if(Lh)try{m("Installing python in GitHub Actions");const{setupActionsPython:e}=await import("./assets/actions_python-C5ar-1oi.mjs");if(await e(r,t,n),i=await Xt(t),void 0===i)throw Error("Python binary could not be found");const s=sr(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 yt("python3",t,["--params=/InstallDir:"+e]):await yt("python3",t);const r=await Xt(e);if(void 0===r)throw Error("Python binary could not be found");const o=sr(r);await de(o,Im),n={installDir:o,binDir:o,bin:r};break}case"darwin":{n=await pt("python3",t);const e=await w("brew",["--prefix","python"],{stdio:"pipe"}),r=or(e.stdout,"libexec","bin");await de(r,Im);break}case"linux":if(ht())n=await _t("python",t);else if(dt())n=await Et([{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 Xt(t),void 0===i)throw Error("Python binary could not be found");o={bin:i,installDir:sr(i),binDir:sr(i)}}return o}(e,t,n);br(void 0!==r.bin);const o=r.bin;await async function(e){if(await async function(e){try{return await w(e,["-m","venv","-h"],{stdio:"ignore"}),!0}catch{}return!1}(e))m("venv module already installed.");else try{await sn("venv")}catch(t){m(`Failed to install venv: ${""+t}. Ignoring...`)}}(o);const i=await async function(e){const t=await Yt();return void 0===t?(m("pip was not found. Installing pip"),await async function(e){await Jt(e)||(await sn("pip"),await Jt(e))}(e),Yt()):t}(o);if(void 0===i)throw Error("pip was not installed correctly");return await async function(e){try{if(!(await on(e)))try{await sn("pipx",ht()),await tn(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){throw Error("pipx was not installed completely: "+t)}if(await on(e))return void(await w(e,["-m","pipx","ensurepath"],{stdio:"inherit"}));if(await async function(){return null!==await Fs("pipx",{nothrow:!0})}())return h("pipx module not found. Trying to install with pipx binary..."),void(await w("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 tn(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await tn(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){m(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(o),r}async function Xt(e){for(const t of["python","python3"]){const n=await Kt(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=dr(Xn()).root,t=(await Cr(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await Kt(t,or(e,n));if(void 0!==r)return r}}}async function Kt(e,t){try{const n=qt("python");if(void 0!==t){const r=or(t,Rt(e));if(await ae(r)&&await Gt(r,n))return r}const r=await Fs(e,{nothrow:!0,all:!0})??[];for(const e of r)if(await Gt(e,n))return e}catch{}}async function Yt(){for(const e of["pip3","pip"]){const t=await Qt(e);if(void 0!==t)return t}}async function Qt(e){try{const t=qt("pip"),n=await Fs(e,{nothrow:!0,all:!0})??[];for(const e of n)if(await Gt(e,t))return e}catch{}}async function Jt(e){try{return await w(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){m(""+t);try{return await w(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){m(""+n)}}return!1}function Zt(){if(!("version"in Wn)||"function"!=typeof Wn.version)return null;const e=Wn.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 en(e,t,n={}){return tn(await async function(e){if(void 0!==Bh)return Bh;const t=e??Vt("python",void 0,await jh());return Bh=(await Wt(t,"",process.arch)).bin,Bh}(n.pythonVersion),e,t,n)}async function tn(e,t,n,r={}){const{usePipx:o=!0,user:i=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=o&&!a&&await on(e),u=c?"pipx":"pip",l=t.replace(/\[.*]/g,"").trim();if(!s){const t=c?await async function(e,t){try{const n=await w(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 w(e,["-m","pip","-qq","show",t],{stdio:"ignore",reject:!1})).exitCode}catch{return!1}}(e,l);if(t)return{binDir:c?await nn():await rn(e,l)}}const f=await async function(e,t){return 0===(await w(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode}(e,l);if(f)try{Yp.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 Mh(),l.PIPX_BIN_DIR=await Fh()),b(e,["-m",u,...o,...a,r],{stdio:"inherit",env:l})}catch(p){if(Yp.info(`Failed to install ${t} via ${u}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await sn(t))throw Error(`Failed to install ${t} via ${u}: ${p}.`)}else if(null===await sn(t))throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);return{binDir:c?await nn():await rn(e,l)}}function nn(){return Fh()}async function rn(e,t){const n=await $h(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>ae(or(e,Rt(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=Fs.sync(Rt(t),{nothrow:!0});return null!==r?sr(r):e[e.length-1]}(n,t);return await de(r,Im),r}async function on(e){return 0===(await w(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}function sn(e,t=!0){if("linux"===process.platform){if(Yp.info(`Installing ${e} via the system package manager`),ht())return _t(t?"python-"+e:e);if(dt())return Et([{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 an(e,t,n){return en("cmakelang[YAML]",e)}async function cn(e,t,n){switch(process.platform){case"win32":return await yt("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await de(e,Im),{binDir:e}}throw Error("Unsupported platform")}();case"darwin":return pt("graphviz",e);case"linux":if(ht())return _t("graphviz",e);if(dt())return Et([{name:"graphviz",version:e}]);if(mt())return it([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function un(e,t){const{ArchiveHdi:n}=await import("./assets/hdi-BTtpGNI1.mjs"),r=new n(e);await r.read((async e=>{await e.extract(or(t,e.path))}))}function ln(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:un,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function fn(){if("darwin"===process.platform)try{const e=await Th.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await fe("SDKROOT",t.trim(),Im):p("SDKROOT not set")}catch(e){p(e)}}async function pn(){const e=or(Xh,"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 dn(e){const t=await Ar(e,"utf-8");return JSON.parse(t)}function hn(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??Ch,i=function(e){if(null===Ah(e))try{const t=Dd(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=mn(a,n,t);if(void 0!==r)return r}}function mn(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=>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)e.includes(r)&&t++;return t})),o=Math.max(...t);return{tag:e,name:r[t.indexOf(o)]}}return{tag:e,name:r[0]}}}async function vn(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await yt("gcc-arm-embedded",e));try{r=await Mt("g++",e,yn,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 yt("mingw",e),"x64"===t&&await ae("C:/tools/mingw64/bin")?(n="C:/tools/mingw64/bin",await de(n,Im)):"ia32"===t&&await ae("C:/tools/mingw32/bin")?(n="C:/tools/mingw32/bin",await de(n,Im)):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 _t("mingw-w64-gcc",e);else if(dt())r=await Et([{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",Rt(e+"/gcc"),Im),fe("CXX",Rt(e+"/g++"),Im)),qh&&await pn(),await Promise.all(t)}(r.binDir),r}async function yn(e,t,n){if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const r=await dn(or(zh,"github_brechtsanders_winlibs_mingw.json")),o=En(e),i=_n(e),s=gn(e),a=hn(r,{version:e,keywords:[{x64:"x86_64",ia32:"i386"}[n]??n],filterName:e=>!(void 0!==o&&o!==En(e)||void 0!==i&&i!==_n(e)||void 0!==s&&s!==gn(e)),versionSatisfies:(e,t)=>{const n=Dd(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return Ch(n,t)&&(void 0===o||o===En(e))&&(void 0===i||i===_n(e))}});if(void 0===a)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:Rt("g++"),extractedFolderName:"mingw64",extractFunction:Dt,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${a.tag}/${a.name}`}}function En(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function _n(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function gn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function wn(e,t,n,r=40){let o;switch(process.platform){case"win32":o=await vn(e,t,n);break;case"darwin":o=await pt("gcc",e);break;case"linux":if(ht())o=await _t("gcc",e);else if(dt())o=await Et([{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 Cr(e)).sort(((e,t)=>function(e,t){const n=Dd(e),r=Dd(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 w(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=Vh(Dd(o)??o);5>s?(r.push(fe("CC",`${t}/gcc-${o}`,Im),fe("CXX",`${t}/g++-${o}`,Im)),mt()&&r.push(Ye("cc",`${t}/gcc-${o}`,Im,n),Ye("cxx",`${t}/g++-${o}`,Im,n),Ye("gcc",`${t}/gcc-${o}`,Im,n),Ye("g++",`${t}/g++-${o}`,Im,n))):(r.push(fe("CC",`${t}/gcc-${s}`,Im),fe("CXX",`${t}/g++-${s}`,Im)),mt()&&r.push(Ye("cc",`${t}/gcc-${s}`,Im,n),Ye("cxx",`${t}/g++-${s}`,Im,n),Ye("gcc",`${t}/gcc-${s}`,Im,n),Ye("g++",`${t}/g++-${s}`,Im,n)))}r.push(fn()),Wh&&await pn(),await Promise.all(r)}(e,o.binDir,r),o}function bn(e){const t=Ah(e),n=null!==t?Vh(t):e;return fe("GCOV",""!==n?"gcov-"+n:"gcov",Im)}async function On(e,t,n){const{keywords:r,optionalKeywords:o}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),kd.includes(t)?(r.push("64"),r.push("x86_64")):(m(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),kd.includes(t)?r.push("x86_64"):Md.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=hn(await dn(or(Kh,"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:""+ar(i.name,".tar.xz"),binRelativeDir:"bin",binFileName:Rt("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${o}`)}function Rn(e,t,n){const r=function(e,t){switch(e){case"win32":return kd.includes(t)||jd.includes(t)?"win":Md.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return kd.includes(t)||jd.includes(t)?"linux":Md.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 In(e,t,n){return Mt("ninja",e,Rn,t,n)}function Sn(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:Rt("kcov")}}function Tn(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:Rt("kcov"),extractFunction:Pn}}async function Pn(e,t){const n=await jt(e,t,1),r=await async function(){let e=Fs.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Bt(Vt("cmake",void 0,await jh()),or(ce("~"),"cmake"),"");e=or(t,"cmake")}return null===Fs.sync("ninja",{nothrow:!0})&&await In(Vt("ninja",void 0,await jh()),or(ce("~"),"ninja"),""),e}();"linux"===process.platform&&(ht()?await Promise.all([_t("libdwarf"),_t("libcurl-openssl")]):dt()?await Et([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):mt()&&await it([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==Fs.sync("patch",{nothrow:!0})){const e=or(Yh,"gcc13.patch");await w("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=or(n,"build");return await w(r,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await w(r,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function Cn(){"darwin"===process.platform&&(null!==await Fs("clang",{nothrow:!0})&&null!==await Fs("clang++",{nothrow:!0})&&(h("Assuming clang is an Apple Clang compiler"),await Promise.all([fe("CC","clang",Im),fe("CXX","clang++",Im)])),Xr("Apple Clang automatic installation is not supported yet"))}async function An(e,t,n,r,o,i,s){void 0!==t&&await ae(t)&&(m(`Adding ${t} to PATH`),await fe("VCTargetsPath",t,Im)),await rm.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 xn(e,t,n,r,o,i,s,a=12e5){Yp.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(em(e)),a=()=>{u(em(e))},e.addEventListener("abort",a,{once:!0})}if(n===1/0)return void e.then(c,u);const l=new Qh;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=wm.includes(e);let a;if("vcvarsall"===e)await An(Vt(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await ut({rcOptions:Im});else{const i=or(o,s?"llvm":e),c=Vt(e,t,n),u=bm[e];a=await u(c,i,r)}i.push(zn(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")}Yp.endGroup()}async function Nn(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("windows","Windows"),kd.includes(t)?r.push("win64","win64","win64","x86_64","X64"):jd.includes(t)?n.push("win32"):Md.includes(t)?n.push("woa64"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"linux":if(r.push("linux","Linux"),mt()){r.push("ubuntu");const e=await jh();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");kd.includes(t)?r.push("x86_64","X64"):jd.includes(t)?n.push("x86"):Md.includes(t)?n.push("aarch64"):Fd.includes(t)?n.push("armv7a"):Bd.includes(t)?n.push("powerpc64le"):Gd.includes(t)?n.push("sparc64"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"darwin":r.push("apple","macos","macOS"),kd.includes(t)?r.push("x86_64","X64"):Md.includes(t)?r.push("arm64","ARM64"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),kd.includes(t)?n.push("amd64"):jd.includes(t)?n.push("i386"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),kd.includes(t)?n.push("amd64"):Hd.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=hn(await dn(or(im,"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=hn(await dn(or(im,"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:Rt("clang"),extractFunction:"win32"===t?Ut:(e,t)=>jt(e,t,1)}}async function Ln(e,t,n){const r=await cm(e,t,n);return await async function(e,t){const n=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",o=kn(t),i=[fe("CC",Rt(e+"/bin/clang"),Im),fe("CXX",Rt(e+"/bin/clang++"),Im),fe("LLVM_PATH",e,Im),fe("LD_LIBRARY_PATH",`${n}${ir}${e}/lib`,Im),fe("DYLD_LIBRARY_PATH",`${r}${ir}${e}/lib`,Im),fe("LLVM_LDFLAGS","-L"+Ht(e+"/lib"),Im),fe("LLVM_CPPFLAGS","-I"+Ht(e+"/include"),Im),await ae(`${e}/lib/clang/${t}/include`)?fe("LLVM_CPATH",`${e}/lib/clang/${t}/include`,Im):await ae(`${e}/lib/clang/${o}/include`)?fe("LLVM_CPATH",`${e}/lib/clang/${o}/include`,Im):Promise.resolve(),fe("LIBRARY_PATH",e+"/lib",Im),fn()];if(mt()){const t=60;i.push(Ye("cc",e+"/bin/clang",Im,t),Ye("cxx",e+"/bin/clang++",Im,t),Ye("clang",e+"/bin/clang",Im),Ye("clang++",e+"/bin/clang++",Im),Ye("lld",e+"/bin/lld",Im),Ye("ld.lld",e+"/bin/ld.lld",Im),Ye("llvm-ar",e+"/bin/llvm-ar",Im))}await Promise.all(i)}(r.installDir??t,e),r}function $n(e,t,n){return Un(e,t,n,om.ClangFormat)}function Dn(e,t,n){return Un(e,t,n)}async function Un(e,t,n,r=om.All){const o=kn(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 Jp.DownloaderHelper("https://apt.llvm.org/llvm.sh",Kn(),{fileName:"llvm.sh"});r.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await r.start();const o=await Ar(r.getDownloadPath(),"utf-8"),i=or(Kn(),"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 ${td} -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 ${td} -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 w("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)&&(Kr("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(o),o=function(e){return Je()?e.replace(/apt-get/g,"nala"):e}(o),await xr(t,o),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}]}(o,i,e,t);return await it(s),await Pr(i,"755"),await x("bash",[i,""+e,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:12e5}),await de(n+"/bin",Im),{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{A(or(am,"llvm_repo_remove.bash"),[""+o])}catch(a){m("Failed to remove llvm repository "+a)}}const i=await Mt("llvm",e,Nn,t,n);return await um(o),i}function kn(e){const t=function(e){if(null===Ah(e))try{const t=Dd(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 jn(){if(sm){const e=or(am,"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 Mn(e,t,n,r,o,i){if("win32"!==process.platform)return;const s=rm.vsversion_to_versionnumber(e);m(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=rm.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 yt("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 yt("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 yt("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 yt("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):p(`The given MSVC versions ${e} is not supported yet.`)}catch(l){p(l)}await An(s,c,n,a,r,o,i),fm&&await async function(){const e=or(pm,"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 Fn(e,t,n){if("win32"===process.platform)return await yt("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await de(e,Im),e}()}}function Bn(e,t,n){return{url:Gn(t,n,e),binRelativeDir:"",binFileName:Rt("pwsh"),extractedFolderName:""}}function Gn(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 Hn(e,t,n){try{return await Mt("pwsh",e,Bn,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 yt("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await de(t,Im),{binDir:t}}case"darwin":return pt("powershell",e,{cask:!0,overwrite:!1});case"linux":if(ht())return _t("powershell-bin",e,"yay");if(dt())return await Et([{name:"curl"}]),A("/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(mt()){await it([{name:"curl"}]);const t=await jh();return A("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),A("dpkg",["-i","packages-microsoft-prod.deb"]),it([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}(e)}}function Vn(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:Rt("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${o}.${i}`}}function qn(e){const t=Yp.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function zn(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 Wn,{homedir as Xn,tmpdir as Kn}from"os";import Yn,{promises as Qn,mkdir as Jn,stat as Zn,statSync as er,mkdirSync as tr}from"fs";import nr from"crypto";import rr,{join as or,delimiter as ir,dirname as sr,basename as ar,extname as cr,normalize as ur,sep as lr,relative as fr,resolve as pr,parse as dr}from"path";import*as hr from"http";import mr from"http";import*as vr from"https";import yr from"https";import"net";import Er from"tls";import _r from"events";import gr from"util";import wr from"child_process";import br from"assert";import Or from"buffer";import Rr from"stream";import{debuglog as Ir}from"node:util";import Sr from"node:process";import Tr,{chmod as Pr,readdir as Cr,readFile as Ar,writeFile as xr}from"fs/promises";import{Buffer as Nr}from"node:buffer";import Lr from"node:path";import $r,{ChildProcess as Dr}from"node:child_process";import{fileURLToPath as Ur}from"node:url";import kr,{constants as jr}from"node:os";import{createWriteStream as Mr,readFileSync as Fr,createReadStream as Br,promises as Gr}from"node:fs";import Hr from"process";import Vr from"string_decoder";import qr from"timers";import zr,{fileURLToPath as Wr}from"url";import{error as Xr,info as Kr}from"console";var Yr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Qr={};const Jr=[{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 Zr,eo=(Zr||(Zr=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=Jr,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))}(Qr)),Qr);const to=e(eo);var no,ro,oo={},io={},so={},ao={};const co=new Uint8Array(256);let uo=co.length;const lo=/^(?:[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,fo=[];for(let Sm=0;256>Sm;++Sm)fo.push((Sm+256).toString(16).substr(1));let po,ho,mo=0,vo=0;const yo=a("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),nr.createHash("md5").update(e).digest()})),Eo=a("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),nr.createHash("sha1").update(e).digest()})),_o=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||po,c=void 0!==e.clockseq?e.clockseq:ho;if(null==a||null==c){const t=e.random||(e.rng||r)();null==a&&(a=po=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==c&&(c=ho=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:vo+1;const f=u-mo+(l-vo)/1e4;if(0>f&&void 0===e.clockseq&&(c=c+1&16383),(0>f||u>mo)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");mo=u,vo=l,ho=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:Eo,validate:o,version:function(e){if(!o(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var go,wo={};class bo 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 Oo,Ro,Io,So,To,Po,Co,Ao,xo={},No=(Io||(Io=1,Ro=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(Oo)return xo;Oo=1;var o,i=Er,s=mr,a=yr,c=_r,u=gr;return xo.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},xo.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},xo.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},xo.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(){},xo.debug=o,xo}()),Ro);(To=So||(So={}))[To.OK=200]="OK",To[To.MultipleChoices=300]="MultipleChoices",To[To.MovedPermanently=301]="MovedPermanently",To[To.ResourceMoved=302]="ResourceMoved",To[To.SeeOther=303]="SeeOther",To[To.NotModified=304]="NotModified",To[To.UseProxy=305]="UseProxy",To[To.SwitchProxy=306]="SwitchProxy",To[To.TemporaryRedirect=307]="TemporaryRedirect",To[To.PermanentRedirect=308]="PermanentRedirect",To[To.BadRequest=400]="BadRequest",To[To.Unauthorized=401]="Unauthorized",To[To.PaymentRequired=402]="PaymentRequired",To[To.Forbidden=403]="Forbidden",To[To.NotFound=404]="NotFound",To[To.MethodNotAllowed=405]="MethodNotAllowed",To[To.NotAcceptable=406]="NotAcceptable",To[To.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",To[To.RequestTimeout=408]="RequestTimeout",To[To.Conflict=409]="Conflict",To[To.Gone=410]="Gone",To[To.TooManyRequests=429]="TooManyRequests",To[To.InternalServerError=500]="InternalServerError",To[To.NotImplemented=501]="NotImplemented",To[To.BadGateway=502]="BadGateway",To[To.ServiceUnavailable=503]="ServiceUnavailable",To[To.GatewayTimeout=504]="GatewayTimeout",(Co=Po||(Po={})).Accept="accept",Co.ContentType="content-type",(Ao||(Ao={})).ApplicationJson="application/json";const Lo=[So.MovedPermanently,So.ResourceMoved,So.SeeOther,So.TemporaryRedirect,So.PermanentRedirect],$o=[So.BadGateway,So.ServiceUnavailable,So.GatewayTimeout],Do=["OPTIONS","GET","DELETE","HEAD"];class Uo extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,Uo.prototype)}statusCode;result}class ko{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 jo{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[Po.Accept]=this._getExistingOrDefaultHeader(t,Po.Accept,Ao.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[Po.Accept]=this._getExistingOrDefaultHeader(n,Po.Accept,Ao.ApplicationJson),n[Po.ContentType]=this._getExistingOrDefaultHeader(n,Po.ContentType,Ao.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[Po.Accept]=this._getExistingOrDefaultHeader(n,Po.Accept,Ao.ApplicationJson),n[Po.ContentType]=this._getExistingOrDefaultHeader(n,Po.ContentType,Ao.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[Po.Accept]=this._getExistingOrDefaultHeader(n,Po.Accept,Ao.ApplicationJson),n[Po.ContentType]=this._getExistingOrDefaultHeader(n,Po.ContentType,Ao.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&&Do.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(i,n),a&&a.message&&a.message.statusCode===So.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&&Lo.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||!$o.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 ko(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?vr:hr;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({},Mo(this.requestOptions.headers),Mo(e||{})):Mo(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=Mo(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||hr.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?No.httpsOverHttps:No.httpsOverHttp:s?No.httpOverHttps:No.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=o?new vr.Agent(e):new hr.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===So.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 Uo(e,o);t.result=i.result,r(t)}else n(i)}))}}const Mo=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),Fo=t(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return Po},HttpClient:jo,HttpClientError:Uo,HttpClientResponse:ko,get HttpCodes(){return So},get MediaTypes(){return Ao},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 Bo,Go,Ho,Vo,qo,zo={},Wo={},Xo={},Ko=f(),Yo={};const Qo=[{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 Jo;const Zo=e((Jo||(Jo=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=Qo,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))}(Yo)),Yo)),{GITHUB_ACTIONS:ei}=Zo;var ti,ni,ri,oi,ii,si,ai,ci,ui,li,fi,pi,di,hi,mi,vi,yi,Ei,_i,gi,wi,bi,Oi,Ri={exports:{}},Ii={exports:{}},Si={};const Ti=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(Oi)return Ri.exports;Oi=1;const t=wr,n=y(),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(bi)return wi;bi=1;const n="win32"===process.platform;return wi={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},wi}();return Ri.exports=e,Ri.exports.spawn=e,Ri.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},Ri.exports._parse=n,Ri.exports._enoent=r,Ri.exports}()),Pi=({env:e=Sr.env,...t}={})=>{const n=E({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=Sr.cwd(),path:t=Sr.env[E()],preferLocal:n=!0,execPath:r=Sr.execPath,addExecPath:o=!0}={})=>{const i=e instanceof URL?Ur(e):e,s=Lr.resolve(i),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(Lr.join(t,"node_modules/.bin")),n=t,t=Lr.resolve(t,"..")})(a,s),o&&((e,t,n)=>{const r=t instanceof URL?Ur(t):t;e.push(Lr.resolve(n,r,".."))})(a,r,s),[...a,t].join(Lr.delimiter)})(t),e},Ci=(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);!Ai(o,i)&&r||Object.defineProperty(e,n,i)},Ai=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)},xi=(e,t)=>`/* Wrapped ${e}*/\n${t}`,Ni=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Li=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),$i=new WeakMap,Di=(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($i.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))Ci(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=xi.bind(null,r,""+t);Object.defineProperty(o,"name",Li),Object.defineProperty(e,"toString",{...Ni,value:o})})(e,t,r)}(i,e),$i.set(i,r),i};Di.callCount=e=>{if(!$i.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return $i.get(e)};const Ui=(e,t)=>({name:"SIGRT"+(t+1),number:ki+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ki=34,ji=[{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"}],Mi=()=>{const e=Array.from({length:64-ki+1},Ui);return[...ji,...e].map(Fi)},Fi=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=jr,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}},Bi=({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}],Gi=(()=>{const e=Mi();return Object.fromEntries(e.map(Bi))})(),Hi=(e,t)=>{const n=t.find((({name:t})=>jr.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=Mi(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=Hi(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 Vi=({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=Sr.cwd()}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:Gi[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}`,v="[object Error]"==={}.toString.call(r),y=v?`${m}\n${r.message}`:m,E=[y,t,e].filter(Boolean).join("\n");return v?(r.originalMessage=r.message,r.message=E):r=Error(E),r.shortMessage=y,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},qi=["stdin","stdout","stderr"];var zi,Wi,Xi={exports:{}},Ki={exports:{}};const Yi=e(function(){if(Wi)return Xi.exports;Wi=1;var e=Yr.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=br,o=(zi||(zi=1,(v=Ki).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&v.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&v.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Ki.exports),i=/^win/i.test(e.platform),s=_r;"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),Xi.exports=function(e,o){if(!t(Yr.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(Yr.process)&&(l=!1,o.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};Xi.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(Yr.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))}})),Xi.exports.signals=function(){return o};var l=!1,f=function(){!l&&t(Yr.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)};Xi.exports.load=f;var p=e.reallyExit,d=function(n){t(Yr.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(Yr.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 Xi.exports=function(){return function(){}};var v;return Xi.exports}()),Qi=(e,t="SIGTERM",n={})=>{const r=e(t);return Ji(e,t,n,r),r},Ji=(e,t,n,r)=>{if(!Zi(t,n,r))return;const o=ts(n),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()},Zi=(e,{forceKillAfterTimeout:t},n)=>es(e)&&!1!==t&&n,es=e=>e===kr.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),ts=({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},ns=(e,t)=>{e.kill()&&(t.isCanceled=!0)},rs=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(Mr(n)),e;if(g(n))return e[t].pipe(n),e;if(!(e=>e instanceof Dr&&"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 os,is,ss,as={exports:{}};const cs=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(ss)return as.exports;ss=1;const{constants:t}=Or,n=Rr,{promisify:r}=gr,o=function(){if(is)return os;is=1;const{PassThrough:e}=Rr;return os=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 as.exports=e,as.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),as.exports.array=(t,n)=>e(t,{...n,array:!0}),as.exports.MaxBufferError=s,as.exports}());var us,ls;const fs=e(function(){if(ls)return us;ls=1;const{PassThrough:e}=Rr;return us=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}}()),ps=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},ds=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},hs=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?cs(e,{encoding:t,maxBuffer:r}):cs.buffer(e,{maxBuffer:r})},ms=(async()=>{})().constructor.prototype,vs=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(ms,e)])),ys=(e,t)=>{for(const[n,r]of vs){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},Es=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],_s=/^[\w.-]+$/,gs=/"/g,ws=(e,t)=>Es(e,t).join(" "),bs=(e,t)=>Es(e,t).map((e=>(e=>"string"!=typeof e||_s.test(e)?e:`"${e.replace(gs,'\\"')}"`)(e))).join(" "),Os=/ +/g,Rs=e=>{const t=[];for(const n of e.trim().split(Os)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},Is=Ir("execa").enabled,Ss=(e,t)=>(e+"").padStart(t,"0"),Ts=(e,{verbose:t})=>{t&&Sr.stderr.write(`[${(()=>{const e=new Date;return`${Ss(e.getHours(),2)}:${Ss(e.getMinutes(),2)}:${Ss(e.getSeconds(),2)}.${Ss(e.getMilliseconds(),3)}`})()}] ${e}\n`)},Ps=(e,t,n={})=>{const r=Ti._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||Sr.cwd(),execPath:Sr.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Is,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const i=t?{...Sr.env,...e}:e;return n?Pi({env:i,cwd:r,execPath:o}):i})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return qi.map((t=>e[t]));if((e=>qi.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+qi.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,qi.length)},((e,n)=>t[n]))})(n),"win32"===Sr.platform&&"cmd"===Lr.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Cs=(e,t,n)=>"string"==typeof t||Nr.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 As,xs,Ns,Ls,$s,Ds,Us={},ks={},js={},Ms={};const Fs=e(function(){if(Ds)return $s;Ds=1;const{isexe:e,sync:t}=O(),{join:n,delimiter:r,sep:o,posix:i}=rr,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 $s=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)},$s}());let Bs;var Gs,Hs={};I(Hs,"hasSudo",(()=>S)),I(Hs,"isRoot",(()=>T)),I(Hs,"isSudo",(()=>P)),I(Hs,"prependSudo",(()=>C)),I(Hs,"defaultExecOptions",(()=>Vs)),I(Hs,"execRootSync",(()=>A)),I(Hs,"execRoot",(()=>x));let Vs={stdio:"inherit",shell:!0};I(Gs={},"isAdminWindows",(()=>qs)),I(Gs,"isAdminPosix",(()=>zs)),I(Gs,"isAdmin",(()=>$));let qs=async function(){if("win32"!==process.platform)return!1;try{return await w("fsutil",["dirty","query",process.env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&async function(){try{return await w("fltmc"),!0}catch{return!1}}()}},zs=T;var Ws,Xs,Ks,Ys,Qs,Js,Zs,ea,ta,na,ra,oa,ia,sa,aa,ca,ua,la,fa,pa,da,ha,ma,va,ya,Ea;I({},"grantUserWriteAccess",(()=>D));var _a,ga,wa,ba,Oa,Ra,Ia,Sa,Ta,Pa,Ca,Aa,xa,Na,La,$a,Da,Ua,ka,ja,Ma,Fa,Ba,Ga,Ha,Va,qa,za,Wa,Xa,Ka,Ya,Qa,Ja,Za,ec,tc,nc,rc,oc,ic,sc,ac,cc,uc,lc,fc,pc,dc,hc,mc,vc,yc,Ec,_c,gc,wc,bc,Oc,Rc,Ic,Sc,Tc,Pc,Cc,Ac,xc,Nc,Lc,$c,Dc,Uc,kc,jc,Mc,Fc,Bc,Gc,Hc,Vc,qc,zc,Wc,Xc,Kc,Yc,Qc,Jc,Zc,eu,tu,nu,ru,ou,iu,su,au,cu,uu,lu,fu,pu,du,hu,mu,vu,yu,Eu,_u,gu,wu,bu,Ou,Ru,Iu,Su,Tu,Pu,Cu,Au,xu,Nu,Lu,$u,Du,Uu,ku,ju,Mu,Fu,Bu={},Gu={exports:{}},Hu={exports:{}},Vu={exports:{}},qu={exports:{}},zu={},Wu={},Xu={exports:{}},Ku={},Yu={},Qu={},Ju={};const Zu=e(function(){if(Fu)return Mu;Fu=1;var e=k(),t=M(),n=function(){if(qc)return Vc;qc=1;var e=F(),t=G(),n=H(),r=ee(),o=M();return Vc=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)},Vc}();return Mu=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=Wc?zc:(Wc=1,zc=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=(Kc?Xc:(Kc=1,Xc=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(iu)return ou;iu=1;var e=te(),t=Object.create;return ou=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(au)return su;au=1;var e=te();return su=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(uu)return cu;uu=1;var e=te(),t=Object.create;return cu=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(hu)return zu;hu=1;var e=Z(),t=ne(),n=q(),r=z(),o=re(),i=[].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,v=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(y){}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(v,this,t),n.cb=r,l=n,i):s.call(v,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(Cu)return Ku;Cu=1;var e=F(),t=G(),n=H(),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($u)return Yu;$u=1;var e=Z(),t=G(),n=re(),r=ie(),o=function(){if(Lu)return Nu;Lu=1;var e=j(),t=xu?Au:(xu=1,Au=2147483647);return Nu=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}(),i=H(),s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;i.maxAge=function(l,f,p){var d,h,m,v;(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(),v&&(v[e]&&"nextTick"!==v[e]&&clearTimeout(v[e]),v[e]=setTimeout((function(){delete v[e]}),m),"function"==typeof v[e].unref&&v[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],v&&("nextTick"!==v[e]&&clearTimeout(v[e]),delete v[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(v={},m=(1-m)*l,f.on("get"+h,(function(t,o,i){v[t]||(v[t]="nextTick",n((function(){var n;"nextTick"===v[t]&&(delete v[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={},v&&(t(v,(function(e){"nextTick"!==e&&clearTimeout(e)})),v={})})))}}(),i.max&&function(){if(ku)return Qu;ku=1;var e=j(),t=function(){if(Uu)return Du;Uu=1;var e=j(),t=Object.create,n={}.hasOwnProperty;return Du=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=H();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(ju)return Ju;ju=1;var e=K(),t=H(),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)}}()),el=/^~(?=$|\/|\\)/,{appendFile:tl,readFile:nl,writeFile:rl}=Qn,ol=ce("~/.bashrc"),il=Zu((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 sl,al;const cl=e(function(){if(al)return sl;al=1;const e=Wn,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return sl=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 ul,ll,fl,pl,dl,hl={exports:{}};const ml=e((fl||(fl=1,pl=function(){if(ll)return ul;ll=1;var e=/[|\\{}()[\]^$+*?.]/g;return ul=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),dl=function(e){return e.split("").reverse().join("")},hl.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+pl(t)+"])(?!"+pl(n)+")","g"),dl(dl(e).replace(r,"$1"+n)))}),hl.exports)),{GITHUB_ACTIONS:vl}=Zo,{appendFile:yl}=Qn,{GITHUB_ACTIONS:El}=Zo,{appendFile:_l}=Qn,gl=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var wl,bl,Ol,Rl={exports:{}};const Il=e(ye());var Sl;const Tl=e((Sl||(Sl=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 Pl,Cl,Al,xl,Nl,Ll={exports:{}};const $l=e(Nl?xl:(Nl=1,xl=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(Al)return Cl;Al=1;const n=ye(),r=Pl?Ll.exports:(Pl=1,Ll.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 Cl={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 Dl,Ul;const kl=e(Ul?Dl:(Ul=1,Dl={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 jl,Ml,Fl,Bl,Gl,Hl,Vl,ql,zl,Wl,Xl,Kl,Yl,Ql,Jl,Zl,ef,tf,nf,rf,of,sf,af,cf,uf,lf,ff,pf,df,hf,mf,vf,yf,Ef,_f,gf,wf,bf,Of,Rf,If,Sf,Tf,Pf,Cf,Af,xf,Nf,Lf,$f,Df,Uf,kf,jf,Mf,Ff,Bf,Gf,Hf,Vf,qf,zf,Wf,Xf,Kf,Yf,Qf,Jf,Zf,ep,tp,np,rp,op,ip,sp,ap,cp,up,lp,fp,pp,dp,hp,mp,vp,yp,Ep,_p,gp,wp,bp={exports:{}};const Op=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(wp)return gp;wp=1;var n=Hr,r=Be(),o=Wn,i=rr,s=Yn,a=yr,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(),v=process.env.XDG_CONFIG_HOME||i.join(m,".config","simple-update-notifier"),y=function(e){return i.join(v,"".concat(e.replace("@","").replace("/","__"),".json"))},E=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)}))}))]}))}))},_=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(v)||s.mkdirSync(v,{recursive:!0}),e=function(e){var t=y(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,E(o.name,u)]:[3,2];case 1:return i=t.sent(),c=y(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 gp=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,_(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]}}))}))}}()),Rp={name:"setup-cpp",version:"0.45.0"};var Ip,Sp,Tp,Pp,Cp,Ap,xp,Np,Lp,$p,Dp,Up,kp,jp={},Mp={},Fp={},Bp={},Gp={},Hp={},Vp={},qp={},zp={},Wp={},Xp={},Kp={},Yp=We(),Qp={},Jp=(kp||(kp=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(Yn),s=zr,a=t(rr),c=t(mr),u=t(yr),l=_r,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)}(Qp)),Qp);const{GITHUB_ACTIONS:Zp}=Zo,{appendFile:ed}=Qn,td="Dpkg::Lock::Timeout=300";let nd=!1;const rd=Zu((function(e=Ze()){A(e,"nala"!==e?["update","-y","-o",td]:["update","-o",td],{...Vs,env:Qe(e)}),nd=!0}));var od,id;(id=od||(od={}))[id.NameDashVersion=0]="NameDashVersion",id[id.NameEqualsVersion=1]="NameEqualsVersion",id[id.Name=2]="Name",id[id.None=3]="None";const sd=Zu((async function(e){rd(e);const t=await nt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&A(e,["install","-y","--fix-broken","-o",td,...t],{...Vs,env:Qe(e)})}),{promise:!0}),ad=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"],cd="/etc/apt/trusted.gpg.d",ud="keyserver.ubuntu.com";let ld,fd,pd,dd,hd,md=!1,vd=!1,yd=!1,Ed=!1;const _d=/Version\s*:\s*(.*)/g;let gd=!1;var wd,bd;const Od=e(function(){if(bd)return wd;bd=1;var e=rr;return wd=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 Rd={},Id={};wt(Id,"name",(()=>bt));var Sd={};wt(Sd,"normalizeTrim",(()=>Ot));var Td={};wt(Td,"addExeExt",(()=>Rt));var Pd={};wt(Pd,"addNamePrefix",(()=>It));var Cd={};wt(Cd,"addNameSuffix",(()=>St));var Ad={};wt(Ad,"addShExt",(()=>Tt));var xd={};wt(xd,"addShRelativePrefix",(()=>Pt));var Nd={};wt(Nd,"removeExt",(()=>Ct));var Ld={};wt(Ld,"replaceExt",(()=>At));var $d={};wt($d,"isPathInside",(()=>xt)),gt(Rd,Id),gt(Rd,Sd),gt(Rd,Td),gt(Rd,Pd),gt(Rd,Cd),gt(Rd,Ad),gt(Rd,xd),gt(Rd,Nd),gt(Rd,Ld),gt(Rd,$d);const Dd=e(Ue()),Ud=e($e()),kd=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],jd=["x86","i386","ia32","win32","32","x32"],Md=["aarch64","arm64","woa64","arm"],Fd=["armv7","armv7a"],Bd=["powerpc64le","ppc64le"],Gd=["sparc64"],Hd=["sparcv9"];var Vd,qd,zd,Wd,Xd,Kd,Yd,Qd,Jd,Zd,eh,th={},nh={exports:{}},rh={exports:{}},oh=nh.exports,ih={},sh=function(){function e(e,t){const n=[];t=t||E.arch();const r=_.join(s(),e);if(v.existsSync(r)){const e=v.readdirSync(r);for(const i of e)if(o(i)){const e=_.join(r,i,t||"");v.existsSync(e)&&v.existsSync(e+".complete")&&n.push(i)}}return n}function t(e){return p(this,void 0,void 0,(function*(){return e||(e=_.join(a(),I.default())),yield m.mkdirP(e),e}))}function n(e,t,n){return p(this,void 0,void 0,(function*(){const r=_.join(s(),e,w.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=_.join(s(),e,w.clean(t)||t,n||"");v.writeFileSync(r+".complete",""),h.debug("finished caching tool")}function o(e){const t=w.clean(e)||"";h.debug("isExplicit: "+t);const n=null!=w.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)=>w.gt(e,t)?1:-1))).length-1;r>=0;r--){const o=e[r];if(w.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 R.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return R.ok(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=Yr[e];return void 0!==n?n:t}if(Zd)return th;Zd=1;var u=th.__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=th.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=th.__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=th.__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=th.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(th,"__esModule",{value:!0}),th.evaluateVersions=th.isExplicitVersion=th.findFromManifest=th.getManifestFromRepo=th.findAllVersions=th.find=th.cacheFile=th.cacheDir=th.extractZip=th.extractXar=th.extractTar=th.extract7z=th.downloadTool=th.HTTPError=void 0;const h=f(We()),m=f(qe()),v=f(Yn),y=f((qd||(qd=1,function(e,t){var n=oh&&oh.__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=oh&&oh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=oh&&oh.__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=oh&&oh.__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(Nt()),a=We(),c=Wn,u=wr,l=Yn;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}}(nh,nh.exports)),nh.exports)),E=f(Wn),_=f(rr),g=f(Fo),w=f(Nt()),b=f(Rr),O=f(gr),R=br,I=d(function(){if(Qd)return Yd;Qd=1;var e=function(){if(Wd)return zd;Wd=1;var e=nr;return zd=function(){return e.randomBytes(16)}}(),t=function(){if(Kd)return Xd;Kd=1;for(var e=[],t=0;256>t;++t)e[t]=(t+256).toString(16).substr(1);return Xd=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 Yd=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)}}()),S=ze(),T=function(){if(Jd)return ih;Jd=1;var e=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]}),t=ih.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=ih.__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=ih.__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(ih,"__esModule",{value:!0}),ih.RetryHelper=void 0;const o=n(We());return ih.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)))}))}},ih}();class P extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}th.HTTPError=P;const C="win32"===process.platform,A="darwin"===process.platform;return th.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||_.join(a(),I.default()),yield m.mkdirP(_.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(v.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=O.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message))();let u=!1;try{return yield s(a,v.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)))}))},th.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){R.ok(C,"extract7z() not supported on current OS"),R.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 S.exec(`"${r}"`,t,n)}finally{process.chdir(o)}else{const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${_.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 S.exec(`"${e}"`,t,r)}finally{process.chdir(o)}}return n}))},th.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 S.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 S.exec("tar",s),n}))},th.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let o;R.ok(A,"extractXar() not supported on current OS"),R.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 S.exec(`"${i}"`,(s=o,Array.from(new Set(s)))),n}))},th.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 S.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 S.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 S.exec(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},th.cacheDir=function(e,t,o,i){return p(this,void 0,void 0,(function*(){if(o=w.clean(o)||o,i=i||E.arch(),h.debug(`Caching tool ${t} ${o} ${i}`),h.debug("source dir: "+e),!v.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,o,i);for(const t of v.readdirSync(e)){const n=_.join(e,t);yield m.cp(n,s,{recursive:!0})}return r(t,o,i),s}))},th.cacheFile=function(e,t,o,i,s){return p(this,void 0,void 0,(function*(){if(i=w.clean(i)||i,s=s||E.arch(),h.debug(`Caching tool ${o} ${i} ${s}`),h.debug("source file: "+e),!v.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield n(o,i,s),c=_.join(a,t);return h.debug("destination file "+c),yield m.cp(e,c),r(o,i,s),a}))},th.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||E.arch(),o(n)||(n=i(e(t,r),n));let a="";if(n){n=w.clean(n)||"";const e=_.join(s(),t,n,r);h.debug("checking cache: "+e),v.existsSync(e)&&v.existsSync(e+".complete")?(h.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):h.debug("not found")}return a},th.findAllVersions=e,th.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}))},th.findFromManifest=function(e,t,n,r=E.arch()){return p(this,void 0,void 0,(function*(){return yield y._findMatch(e,t,n,r)}))},th.isExplicitVersion=o,th.evaluateVersions=i,th}(),ah={};const ch=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(eh)return ah;eh=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.retryAsPromised=ah.TimeoutError=void 0;class t extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return ah.TimeoutError=t,ah.retryAsPromised=e,ah.default=e,ah}());var uh=qe();let lh;const{GITHUB_ACTIONS:fh}=to,ph=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||Jn,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||Zn,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||er,e.mkdirSync=e.mkdirSync||n.mkdirSync||tr,t},dh=(e,t,n)=>{const r=sr(e),o={...ph(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 dh(e,o,dh(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}}},hh=Object.assign((async(e,t,n)=>{const r=ph(t);r.recursive=!1;const o=sr(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 hh(o,r).then((t=>hh(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:dh}),mh=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?mh(e,sr(t),t):void 0))},vh=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?vh(e,sr(t),t):void 0}},yh=(e,t)=>{const n=ph(t);if(n.recursive=!0,sr(e)===e)return n.mkdirSync(e,n);const r=vh(n,e);try{return n.mkdirSync(e,n),r}catch(o){if(o&&"ENOENT"===o.code)return dh(e,n);throw o}},Eh=Object.assign((async(e,t)=>{const n={...ph(t),recursive:!0};return sr(e)===e?await n.mkdirAsync(e,n):mh(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return hh(e,n);throw t}))))}),{sync:yh}),_h=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,gh=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(e),"win32"===_h){const t=/[*|"<>?:]/,{root:n}=dr(e);if(t.test(e.substring(n.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},wh=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),bh=+wh[0]>10||10==+wh[0]&&+wh[1]>=12,Oh=bh?e=>ph(e).mkdirSync===tr:()=>!1,Rh=Object.assign(bh?e=>ph(e).mkdir===Jn:()=>!1,{sync:Oh}),Ih=(e,t)=>{e=gh(e);const n=ph(t);return Oh(n)?yh(e,n):dh(e,n)},Sh=Object.assign((async(e,t)=>{e=gh(e);const n=ph(t);return Rh(n)?Eh(e,n):hh(e,n)}),{mkdirpSync:Ih,mkdirpNative:Eh,mkdirpNativeSync:yh,mkdirpManual:hh,mkdirpManualSync:dh,sync:Ih,native:Eh,nativeSync:yh,manual:hh,manualSync:dh,useNative:Rh,useNativeSync:Oh});var Th=ze();const Ph=e(Te()),Ch=e(Me()),Ah=e(Ie()),xh=/v?(\d\S*)/,Nh=Zu((function(){const e="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),t=rr.join(e,"versions.json");return JSON.parse(Yn.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:Lh}=to,$h=Zu((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 Th.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push(or(n,"Scripts"),or(n,"Scripts","bin"),or(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0});var Dh,Uh={},kh=function(){if(Dh)return Uh;Dh=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.getUbuntuVersion=void 0;const e=wr;return Uh.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[]},Uh}();const jh=Zu((async function(){try{if(mt()){try{null===Fs.sync("lsb_release",{nothrow:!0})&&await it([{name:"lsb-release"}])}catch{return Zt()}const e=await kh.getUbuntuVersion();return 0===e.length?Zt():e}return null}catch(e){return d(""+e),null}}),{promise:!0}),Mh=Zu((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 Sh(e),await Sh(or(e,"trash")),await Sh(or(e,"shared")),await Sh(or(e,"venv")),e}),{promise:!0}),Fh=Zu((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,Im),await Sh(e),e}),{promise:!0});let Bh;const Gh=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"]]]),Hh=Zu((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||kr.release()).split(".")[0]);const[t,n]=Gh.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),Vh=e(Se()),{GITHUB_ACTIONS:qh}=to,zh="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),{GITHUB_ACTIONS:Wh}=to,Xh="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),Kh="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),Yh="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url));class Qh extends Error{constructor(e){super(e),this.name="TimeoutError"}}class Jh extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const Zh=e=>void 0===globalThis.DOMException?new Jh(e):new DOMException(e),em=e=>{const t=void 0===e.reason?Zh("This operation was aborted."):e.reason;return t instanceof Error?t:Zh(t)};var tm,nm={},rm=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(tm)return nm;tm=1;const i=We(),s=wr,a=Yn,c=rr,u=Hr,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"};nm.vsversion_to_versionnumber=e,nm.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return nm.findWithVswhere=n,nm.findVcvarsall=r,nm.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 v=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),y=v[0].split("\r\n"),E=v[1].split("\r\n"),_=v[2].split("\r\n"),g=E.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 w={};for(let r of y){const[e,t]=r.split("=");w[e]=t}i.startGroup("Environment variables");for(let r of _){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==w[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")},nm}(),om=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(om||{});const im="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),{GITHUB_ACTIONS:sm}=to,am="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),cm=Zu((async function(e,t,n){const[r,o]=await Promise.all([Un(e,t,n),jn()]);return await lm(n),r}),{promise:!0}),um=Zu((async function(e){if(mt())if(e>10)try{await it([{name:"libtinfo6"}])}catch(t){m(`Failed to install libtinfo6 ${t}\nSkipping the dependency`)}else try{await it([{name:"libtinfo5"}])}catch(t){m(`Failed to install libtinfo5 ${t}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${kd.includes(process.arch)?"amd64":Md.includes(process.arch)?"arm64":process.arch}.deb`,n="http://launchpadlibrarian.net/666971015/"+e,r=new Jp.DownloaderHelper(n,Kn(),{fileName:e});r.on("error",(e=>{throw Error(`Failed to download ${n}: ${e}`)})),await r.start(),A("dpkg",["-i",or(Kn(),e)])}else ht()?await _t("ncurses5-compat-libs",void 0,"yay"):dt()&&await Et([{name:"ncurses-compat-libs"}])}),{promise:!0}),lm=Zu((async function(e){"linux"===process.platform&&await wn(Vt("gcc",void 0,await jh()),"",e,40)}),{promise:!0}),{GITHUB_ACTIONS:fm}=to,pm="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url));let dm,hm=!1;const mm={llvm:Ln,clang:Ln,"clang++":Ln},vm={gcc:wn,"g++":wn},ym={mingw:vn},Em={msvc:Mn,cl:Mn,msbuild:Mn,visualstudio:Mn},_m={appleclang:Cn,applellvm:Cn,"apple-clang":Cn,"apple-llvm":Cn},gm={cmakelang:an,"cmake-lint":an,"cmake-format":an,cmakelint:an,cmakeformat:an},wm=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],bm={nala:async function(e,t,n){if(!mt())return;if("string"==typeof dm)return{binDir:dm};const r=Fs.sync("nala",{nothrow:!0});if(null!==r)return dm=sr(r),{binDir:dm};await it([{name:"python3-apt"}]),dm="/usr/bin";try{const t=await rt({name:"nala",version:e});if(void 0!==t)return await it([{name:t}]),{binDir:dm}}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:dm}}catch(o){m("Failed to install nala-legacy: "+o)}return await async function(){const e=new Jp.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh",Kn(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=or(Kn(),"install-nala.sh"),n=await Ar(t,"utf8");await xr(t,n.replace(/sudo/g,"")),await it([{name:"wget"}]);try{A("bash",[t])}catch(o){p("Failed to install nala via installer: "+o),A("apt",["install","-y","-t","nala","nala"])}}(),{binDir:dm}},brew:ut,choco:vt,python:Wt,powershell:Hn,pwsh:Hn,...mm,...vm,...ym,...Em,..._m,...gm,cmake:Bt,ninja:In,vcpkg:async function(e,t,n){return hm&&null!==Fs.sync("vcpkg",{nothrow:!0})?{binDir:sr(Fs.sync("vcpkg"))}:("linux"===process.platform&&(ht()?await Promise.all([_t("curl"),_t("zip"),_t("unzip"),_t("tar"),_t("git"),_t("pkg-config")]):dt()?await Et([{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(or(t,Tt("bootstrap-vcpkg",".bat")))?h(`Vcpkg folder already exists at ${t}. Skipping the clone`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:sr(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,Im),hm=!0,{binDir:t})},bazel:async function(e,t,n){switch(process.platform){case"win32":return yt("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 Et([{name:"dnf-plugins-core"}]),A("dnf",["copr","enable","vbatts/bazel"]),Et([{name:"bazel4"}]);if(mt())return A("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 en("conan",e)},meson:function(e,t,n){return en("meson",e)},gcovr:function(e,t,n){return en("gcovr",e)},opencppcoverage:Fn,OpenCppCoverage:Fn,ccache:function(e,t,n){switch(process.platform){case"win32":return yt("ccache",e);case"darwin":return pt("ccache",e);case"linux":if(ht())return _t("ccache",e);if(dt())return Et([{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 yt("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 ch((()=>yt("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(or(e,"doxygen.exe")))return await de(e,Im),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await cn(Vt("graphviz",void 0)),t}case"darwin":{const e=await pt("doxygen",void 0,{formula:!0});return Hh()[0]>11&&await cn(Vt("graphviz",void 0)),e}case"linux":{let o;if(""===e||ht()||dt())if(ht())o=await _t("doxygen",e);else{if(dt())return Et([{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 Mt("doxygen",e,ln,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 cn(Vt("graphviz",void 0,await jh())),o}default:throw Error("Unsupported platform")}},graphviz:cn,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await yt("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await de(e,Im),e}()};case"darwin":return pt("cppcheck",e);case"linux":if(ht())return _t("cppcheck",e);if(dt())return Et([{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 en("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return en("flawfinder",e)},lizard:function(e,t,n){return en("lizard",e)},infer:function(e,t,n){return Mt("infer",e,On,t,n)},"clang-tidy":Dn,clangtidy:Dn,"clang-format":$n,clangformat:$n,vcvarsall:An,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 Mt("kcov",o,Tn,t,n),a):(a=await Mt("kcov",o,Sn,t,n),ht()?await _t("binutils"):dt()?await Et([{name:"binutils"}]):mt()&&await it([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return yt("make",e);case"darwin":{await pt("make",e);const t=or(ft(),"opt/make/libexec/gnubin");return await de(t,Im),{binDir:t}}case"linux":if(ht())return _t("make",e);if(dt())return Et([{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 Mt("task",e,Vn,t,n)},sevenzip:Lt,"7zip":Lt,"7z":Lt},Om=Object.keys(bm),Rm=["compiler","architecture","timeout",...Om],Im={rcPath:ce("~/.cpprc"),guard:"cpp"};(async function(e){let t=Promise.resolve();eo.GITHUB_ACTIONS||(t=async function(){try{await Op({pkg:Rp})}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:[...Rm,"timeout"],default:Object.fromEntries(Rm.map((e=>[e,qn(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=$l.create({autoloadLocales:!0});let c,u;$l.addLocale(kl),Il.addLocale(Tl);const l=await jh(),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===Ah(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=>!zt(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,[...wm,"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 _t("python-pygments"));let h=!1;for(const p of Om){if(eo.isCI&&0!==s.length){h=!0;break}const e=n[p];void 0!==e&&(c=Date.now(),await xn(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(Yp.startGroup(`Installing ${e} ${t??""}`),e in mm)a=await Ln(Vt("llvm",t,n),or(r,"llvm"),o),await fe("GCOV","llvm-cov gcov",Im);else if(e in vm){const e=Vt("gcc",t,n);a=await wn(e,or(r,"gcc"),o),await bn(e)}else if(e in ym){const e=Vt("mingw",t,n);a=await vn(e,or(r,"gcc"),o),await bn(e)}else e in Em?a=await Mn(Vt("msvc",t,n),or(r,"msvc"),o):e in _m?await Cn():(a=null,s.push("Unsupported compiler "+e))}catch(c){p(c),s.push(`Failed to install the ${e} ${t}`)}null!==a&&i.push(zn(e,a)),Yp.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 nl(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await rl(e.rcPath,n.join("\n")),await D(e.rcPath)}}(Im),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"),!eo.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{jo as H,Yp as a,to as b,Yr as c,Th as e,e as g,m as i,ae as p,Be as r,sh 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 no||(no=1,Object.defineProperty(so,"__esModule",{value:!0}),so.toCommandProperties=so.toCommandValue=void 0,so.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},so.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}:{}}),so}function r(){return uo>co.length-16&&(nr.randomFillSync(co),uo=0),co.slice(uo,uo+=16)}function o(e){return"string"==typeof e&&lo.test(e)}function i(e,t=0){const n=(fo[e[t+0]]+fo[e[t+1]]+fo[e[t+2]]+fo[e[t+3]]+"-"+fo[e[t+4]]+fo[e[t+5]]+"-"+fo[e[t+6]]+fo[e[t+7]]+"-"+fo[e[t+8]]+fo[e[t+9]]+"-"+fo[e[t+10]]+fo[e[t+11]]+fo[e[t+12]]+fo[e[t+13]]+fo[e[t+14]]+fo[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 bo(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new bo("http://"+n)}}function u(){if(Bo)return zo;Bo=1;var e=zo.__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(zo,"__esModule",{value:!0}),zo.PersonalAccessTokenCredentialHandler=zo.BearerCredentialHandler=zo.BasicCredentialHandler=void 0,zo.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")}))}},zo.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")}))}},zo.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")}))}},zo}function l(){return Ho||(Ho=1,function(e){var t=Wo.__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=Wn,r=Yn,{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}(Wo)),Wo}function f(){return qo||(qo=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=oo.__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=oo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=oo.__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=oo.__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(ro)return io;ro=1;var t=io.__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=io.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=io.__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(io,"__esModule",{value:!0}),io.issue=io.issueCommand=void 0;const i=o(Wn),s=n();io.issueCommand=e,io.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 io}(),h=function(){if(go)return ao;go=1;var e=ao.__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=ao.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=ao.__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(ao,"__esModule",{value:!0}),ao.prepareKeyValueMessage=ao.issueFileCommand=void 0;const o=r(Yn),i=r(Wn),s=_o,a=n();return ao.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"})},ao.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}`},ao}(),m=n(),v=c(Wn),y=c(rr),E=function(){if(Go)return wo;Go=1;var e=wo.__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(wo,"__esModule",{value:!0}),wo.OidcClient=void 0;const t=Fo,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 wo.OidcClient=i,wo}();var _,g;(g=_=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}${y.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(v.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=_.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+v.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 E.OidcClient.getIDToken(e)}))};var w=l();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return w.summary}});var b=l();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var O=function(){if(Vo)return Xo;Vo=1;var e=Xo.__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=Xo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Xo.__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(Xo,"__esModule",{value:!0}),Xo.toPlatformPath=Xo.toWin32Path=Xo.toPosixPath=void 0;const r=n(rr);return Xo.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Xo.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Xo.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Xo}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return O.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return O.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return O.toPlatformPath}})}(oo)),oo}function p(e){return ei?Ko.error(e):console.log(`${e}`)}function d(e){return ei?Ko.warning(e):console.log(`${e}`)}function h(e){return ei?Ko.notice(e):console.log(`${e}`)}function m(e){return ei?Ko.info(e):console.log(e)}function v(){if(ci)return ai;ci=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=rr,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 si||(si=1,t="win32"===process.platform||Yr.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(ni)return ti;ni=1,ti=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Yn;return ti}():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(oi)return ri;oi=1,ri=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Yn;return ri}(),ii=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}}),ii;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 ai=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)},ai}function y(){if(gi)return _i;gi=1;const e=rr,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(fi)return li;fi=1;const t=rr,n=v(),r=function(){if(ui)return Ii.exports;ui=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 Ii.exports=e,Ii.exports.default=e,Ii.exports}();return li=function(t){return e(t)||e(t,!0)}}(),n=function(){if(pi)return Si;pi=1;const e=/([()\][%!^"`<>&|;, *?])/g;return Si.command=function(t){return t.replace(e,"^$1")},Si.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},Si}(),r=function(){if(Ei)return yi;Ei=1;const e=Yn,t=function(){if(vi)return mi;vi=1;const e=hi?di:(hi=1,di=/^#!(.*)/);return mi=(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 _i=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 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 _(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function g(e){return _(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function w(e,t,n){const r=Ps(e,t,n),o=ws(e,t),i=bs(e,t);let s;Ts(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=$r.spawn(r.file,r.args,r.options)}catch(f){const e=new $r.ChildProcess,t=Promise.reject(Vi({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=Yi((()=>{e.kill()}));return r.finally((()=>{o()}))})(s,r.options,c);s.kill=Qi.bind(null,s.kill.bind(s)),s.cancel=ns.bind(null,s,{isCanceled:!1});const l=Di((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=hs(t,{encoding:o,buffer:i,maxBuffer:s}),u=hs(n,{encoding:o,buffer:i,maxBuffer:s}),l=hs(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},ds(t,c),ds(n,u),ds(r,l)])}})(s,r.options,u),p=Cs(r.options,c),d=Cs(r.options,l),h=Cs(r.options,f);if(e||0!==t||null!==n){const c=Vi({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:(ps(e),Br(t)))(t);void 0!==n&&(_(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=fs();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=rs.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=rs.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=rs.bind(void 0,e,"all"))})(s),ys(s,l),s}function b(e,t,n){const r=Ps(e,t,n),o=ws(e,t),i=bs(e,t);Ts(i,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ps(e),Fr(t)))(e);if(_(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(r.options);let a;try{a=$r.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Vi({error:l,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=Cs(r.options,a.stdout,a.error),u=Cs(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Vi({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 O(){return Ls||(Ls=1,function(e){var t=Us.__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=Us.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Us.__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=Us.__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(As)return ks;As=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.sync=ks.isexe=void 0;const e=Yn,t=Tr;ks.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}},ks.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 ks}());e.posix=i;const s=r(function(){if(xs)return js;xs=1,Object.defineProperty(js,"__esModule",{value:!0}),js.sync=js.isexe=void 0;const e=Yn,t=Tr;js.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}},js.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 js}());e.win32=s,o((Ns||(Ns=1,Object.defineProperty(Ms,"__esModule",{value:!0})),Ms),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:i;e.isexe=a.isexe,e.sync=a.sync}(Us)),Us}function R(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return w(function(){if(void 0===Bs){const e=Fs.sync("pwsh",{nothrow:!0});null!==e&&(Bs=e);const t=Fs.sync("powershell",{nothrow:!0});null!==t&&(Bs=t)}if(void 0===Bs)throw Error("Could not find powershell");return Bs}(),[...t,"-c",e],n)}function I(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function S(){return null!==Fs.sync("sudo",{nothrow:!0})}function T(){return 0===process.getuid?.()||!!process.env.CI}function P(){return T()&&S()}function C(e){return P()?"sudo "+e:e}function A(e,t=[],n=Vs){return P()?function(e,t){const[n,...r]=Rs(e);return b(n,r,t)}(N(e,t),n):b(e,L(t),n)}function x(e,t=[],n=Vs){return P()?function(e,t){const[n,...r]=Rs(e);return w(n,r,t)}(N(e,t),n):w(e,L(t),n)}function N(e,t){return"sudo "+L([e,...t]).join(" ")}function L(e){return e.map((e=>`'${e}'`))}function $(){return"win32"===process.platform?qs():T()}async function D(e){if(("linux"===process.platform||"darwin"===process.platform)&&P()&&void 0!==process.env.SUDO_USER){let t=Yn.statSync(e).isDirectory();await x("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],Vs)}}function U(){if(Ys)return Ks;Ys=1;var e=(Xs?Ws:(Xs=1,Ws=function(){}))();return Ks=function(t){return t!==e&&null!==t}}function k(){if(Js)return Qs;Js=1;var e=U(),t=[].forEach,n=Object.create;return Qs=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},Qs}function j(){if(ca)return aa;ca=1;var e=function(){if(sa)return ia;sa=1;var e=oa?ra:(oa=1,ra=(ea?Zs:(ea=1,Zs=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:na?ta:(na=1,ta=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return ia=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return aa=function(n){return t(0,e(n))}}function M(){if(la)return ua;la=1;var e=j();return ua=function(t,n,r){var o;return isNaN(t)?0>(o=n)?1:r&&o?o-1:o:!1!==t&&e(t)}}function F(){return pa?fa:(pa=1,fa=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e})}function B(){if(ha)return da;ha=1;var e=U();return da=function(t){if(!e(t))throw new TypeError("Cannot use null or undefined");return t}}function G(){return Ea||(Ea=1,ya=function(){if(va)return ma;va=1;var e=F(),t=B(),n=function(){}.bind,r=function(){}.call,o=Object.keys,i={}.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=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}))}},ma}()("forEach")),ya}function H(){return _a||(_a=1),Bu}function V(){return xa||(xa=1,Aa=(wa?ga:(wa=1,ga=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(Ca)return Pa;Ca=1;var e=Ta?Sa:(Ta=1,Sa=(Oa?ba:(Oa=1,ba=function(){try{return!0}catch(e){return!1}}))()?Object.keys:function(){if(Ia)return Ra;Ia=1;var e=U(),t=Object.keys;return Ra=function(n){return t(e(n)?Object(n):n)}}()),t=B(),n=Math.max;return Pa=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},Pa}()),Aa}function q(){if(Ua)return Da;Ua=1;var e=B(),t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;return Da=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(ka)return Hu.exports;ka=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); };")}}(),Hu.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},Hu.exports}function W(){return Ma?ja:(Ma=1,ja=function(e){return null!=e})}function X(){if(Wa)return za;Wa=1;var e=function(){if(qa)return Va;qa=1;var e=function(){if(Ha)return Ga;Ha=1;var e=function(){if(Ba)return Fa;Ba=1;var e=W(),t={object:!0,function:!0,undefined:!0};return Fa=function(n){return!!e(n)&&hasOwnProperty.call(t,typeof n)}}();return Ga=function(t){if(!e(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(n){return!1}}}();return Va=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 za=function(r){return!!e(r)&&!t.test(n.call(r))}}function K(){if(ec)return Vu.exports;ec=1;var e=W(),t=X(),n=V(),r=k(),o=(Za||(Za=1,Ja=function(){if(Ka)return Xa;Ka=1;var e="razdwatrzy";return Xa=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}}()()?"".contains:function(){if(Qa)return Ya;Qa=1;var e="".indexOf;return Ya=function(t){return e.call(this,t,arguments[1])>-1},Ya}()),Ja),i=Vu.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},Vu.exports}function Y(){return uc?cc:(uc=1,cc=(ic?oc:(ic=1,oc=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}))()?globalThis:function(){if(ac)return sc;ac=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 sc=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 hc;mc=1;var e=dc?pc:(dc=1,pc=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])});return hc=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t}}function J(){return Ic?Rc:(Ic=1,Rc=function(){if(fc)return lc;fc=1;var e=Y(),t={object:!0,symbol:!0};return lc=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(Oc)return bc;Oc=1;var e,t,n,r=K(),o=Q(),i=Y().Symbol,s=function(){if(yc)return vc;yc=1;var e=K(),t=Object.defineProperty,n=Object.prototype,r=(0,Object.create)(null);return vc=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(_c)return Ec;_c=1;var e=K(),t=Y().Symbol;return Ec=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(wc)return gc;wc=1;var e=K(),t=Q(),n=Object.create(null);return gc=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)},bc=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])),bc}())}function Z(){return Dc?$c:(Dc=1,$c=(rc?nc:(rc=1,nc=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(Lc)return Nc;Lc=1;var e=J().iterator,t=function(){if(Tc)return Sc;Tc=1;var e={}.toString,t=e.call(function(){return arguments}());return Sc=function(n){return e.call(n)===t}}(),n=function(){if(Cc)return Pc;Cc=1;var e={}.toString,t=/t/.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Pc=function(n){return"function"==typeof n&&t(e.call(n))}}(),r=j(),o=F(),i=B(),s=U(),a=function(){if(xc)return Ac;xc=1;var e={}.toString,t=e.call("");return Ac=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 Nc=function(p){var d,h,m,v,y,E,_,g,w,b,O=arguments[1],R=arguments[2];if(p=Object(i(p)),s(O)&&o(O),this&&this!==Array&&n(this))d=this;else{if(!O){if(t(p))return 1!==(y=p.length)?Array.apply(null,p):((v=[,])[0]=p[0],v);if(c(p)){for(v=Array(y=p.length),h=0;y>h;++h)v[h]=p[h];return v}}v=[]}if(!c(p))if(void 0!==(w=p[e])){for(_=o(w).call(p),d&&(v=new d),g=_.next(),h=0;!g.done;)b=O?u.call(O,R,g.value,h):g.value,d?(l.value=b,f(v,h,l)):v[h]=b,g=_.next(),++h;y=h}else if(a(p)){for(y=p.length,d&&(v=new d),h=0,m=0;y>h;++h)b=p[h],y>h+1&&(55296>(E=b.charCodeAt(0))||E>56319||(b+=p[++h])),b=O?u.call(O,R,b,m):b,d?(l.value=b,f(v,m,l)):v[m]=b,++m;y=m}if(void 0===y)for(y=r(p.length),d&&(v=new d(y)),h=0;y>h;++h)b=O?u.call(O,R,p[h],h):p[h],d?(l.value=b,f(v,h,l)):v[h]=b;return d&&(l.value=null,v.length=y),v},Nc}())}function ee(){if(Hc)return Gc;Hc=1;var e,t,n,r,o,i=($a||($a=1,e=Gu,t=V(),n=function(){if(La)return Na;La=1;var e=U(),t={function:!0,object:!0};return Na=function(n){return e(n)&&t[typeof n]||!1}}(),r=U(),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}),Gu.exports),s=z(),a=K(),c=function(){return tc||(tc=1,e=qu,qu.exports,u=K(),l=F(),f=function(){}.apply,p=function(){}.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,v={}.hasOwnProperty,y={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(v.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),v.call(this,"__ee__")?n=this.__ee__:(n=y.value=d(null),h(this,"__ee__",y),y.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),!v.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),qu.exports;var e,t,n,r,o,i,s,a,c,u,l,f,p,d,h,m,v,y}().methods,u=function(){if(Mc)return jc;Mc=1;var e,t=function(){if(kc)return Uc;kc=1;var e=Z(),t=Array.isArray;return Uc=function(n){return t(n)?n:e(n)}}(),n=U(),r=F(),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))},jc=function(o){return(o=t(o)).forEach((function(e){n(e)&&r(e)})),e.bind(o)}}(),l=function(){if(Bc)return Fc;Bc=1;var e=F();return Fc=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,v=c.emit;return Gc=function(e,t,n){var r,o,c,y,E,_,g,w,b,O,R,I,S,T,P,C=d(null);return o=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(O=l(n.normalizer),c=O.get,y=O.set,E=O.delete,_=O.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 R&&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=y(s)}else if(hasOwnProperty.call(C,n))throw i("Circular invocation","CIRCULAR_INVOCATION");return C[n]=o,I&&r.emit("set",n,null,o),o}),o):0===t?function(){var t;if(hasOwnProperty.call(C,"data"))return R&&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,I&&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 R&&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,I&&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)&&(E&&E(e),t=C[e],delete C[e],S&&r.emit("delete",e,t))},clear:function(){var e=C;_&&_(),C=d(null),r.emit("clear",e)},on:function(e,t){return"get"===e?R=!0:"set"===e?I=!0:"delete"===e&&(S=!0),m.call(this,e,t)},emit:v,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)},w=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(w),_has:a(b)}),r},Gc}function te(){if(ru)return nu;ru=1;var e=tu?eu:(tu=1,eu=(Qc?Yc:(Qc=1,Yc=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}))()?Number.isNaN:Zc?Jc:(Zc=1,Jc=function(e){return e!=e})),t=j(),n=B(),r=[].indexOf,o={}.hasOwnProperty,i=Math.abs,s=Math.floor;return nu=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},nu}function ne(){if(fu)return lu;fu=1;var e=F(),t=G(),n=function(){}.call;return lu=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},lu}function re(){if(du)return pu;du=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 pu=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 Eu?yu:(Eu=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 Tu||(Tu=1,Xu.exports=e,Xu.exports.default=e),Xu.exports}function se(){if(Pu)return Wu;Pu=1;var e=ne(),t=function(){if(vu)return mu;vu=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(bu)return wu;bu=1;var e=B(),t=function(){if(gu)return _u;gu=1;var e=oe();return _u=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){throw new TypeError("Passed argument cannot be stringifed")}}}();return wu=function(n){return t(e(n))}}(),r=function(){if(Su)return Iu;Su=1;var e=function(){if(Ru)return Ou;Ru=1;var e=oe();return Ou=function(t){try{return t&&e(t.toString)?""+t:t+""}catch(n){return""}}}();return Iu=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 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(!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]})))}))},Wu}async function ae(e){try{return await Gr.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?or("/Users/",process.env.SUDO_USER):or("/home/",process.env.SUDO_USER);{const e=Xn();if(""===e)return;return e}}();return void 0===t?e:e.replace(el,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 nl(e.rcPath,"utf8")).includes(t)||(await tl(e.rcPath,`\n${t}\n`),m(`Added ${t} to ${e.rcPath}`)))}async function le(e,t){await ae(t)&&((await nl(t,"utf-8")).includes(e)||(await tl(t,e),m(`${e} was added to ${t}`)))}async function fe(e,t,n={}){const r={escapeSpace:!1,overwrite:!0,rcPath:ol,...n},o=function(e,t=!1){const n=t?cl(e):e;return ml(n,'"',"\\")}(t??"",r.escapeSpace);try{if(vl)try{if(!r.overwrite&&void 0!==process.env[e])return void m(`Environment variable ${e} is already defined. Skipping.`);Ko.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 R(`[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 il(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:ol,...t};if(!function(e){return!!gl.some((t=>t.test(e)))&&(process.env.PATH?.split(ir)??[]).includes(e)}(e)){process.env.PATH=`${e}${ir}${process.env.PATH}`;try{if(El)try{Ko.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 R(`$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 il(t),await _l(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 ve(){return wl||(wl=1,e=Rl,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}}()),Rl.exports;var e}function ye(){return Ol?bl:(Ol=1,bl=ve())}function Ee(){return Ml?jl:(Ml=1,jl={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 _e(){if(Bl)return Fl;Bl=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 Fl=e}function ge(){return Gl||(Gl=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Ee(),i=_e(),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*$")}(bp,bp.exports)),bp.exports}function we(){if(Vl)return Hl;Vl=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Hl=n=>n?"object"!=typeof n?e:n:t}function be(){if(zl)return ql;zl=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 ql={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function Oe(){if(Xl)return Wl;Xl=1;const e=_e(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Ee(),{safeRe:r,t:o}=ge(),i=we(),{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 Wl=a}function Re(){if(Yl)return Kl;Yl=1;const e=Oe();return Kl=(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 Ie(){if(Jl)return Ql;Jl=1;const e=Re();return Ql=(t,n)=>{const r=e(t,n);return r?r.version:null}}function Se(){if(af)return sf;af=1;const e=Oe();return sf=(t,n)=>new e(t,n).major}function Te(){if(mf)return hf;mf=1;const e=Oe();return hf=(t,n,r)=>new e(t,r).compare(new e(n,r))}function Pe(){if(wf)return gf;wf=1;const e=Oe();return gf=(t,n,r)=>{const o=new e(t,r),i=new e(n,r);return o.compare(i)||o.compareBuild(i)}}function Ce(){if(Tf)return Sf;Tf=1;const e=Te();return Sf=(t,n,r)=>e(t,n,r)>0}function Ae(){if(Cf)return Pf;Cf=1;const e=Te();return Pf=(t,n,r)=>0>e(t,n,r)}function xe(){if(xf)return Af;xf=1;const e=Te();return Af=(t,n,r)=>0===e(t,n,r)}function Ne(){if(Lf)return Nf;Lf=1;const e=Te();return Nf=(t,n,r)=>0!==e(t,n,r)}function Le(){if(Df)return $f;Df=1;const e=Te();return $f=(t,n,r)=>e(t,n,r)>=0}function $e(){if(kf)return Uf;kf=1;const e=Te();return Uf=(t,n,r)=>0>=e(t,n,r)}function De(){if(Mf)return jf;Mf=1;const e=xe(),t=Ne(),n=Ce(),r=Le(),o=Ae(),i=$e();return jf=(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 Ue(){if(Bf)return Ff;Bf=1;const e=Oe(),t=Re(),{safeRe:n,t:r}=ge();return Ff=(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 ke(){if(qf)return Vf;qf=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=>y(e,this.options))).join(" ").split(/\s+/).map((e=>S(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 v=new Map,E=m.map((e=>new o(e,this.options)));for(const n of E){if(h(n))return[n];v.set(n.value,n)}v.size>1&&v.has("")&&v.delete("");const _=[...v.values()];return n.set(t,_),_}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>v(t,n)&&e.set.some((e=>v(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}}Vf=t;const n=new(Hf?Gf:(Hf=1,Gf=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=we(),o=je(),i=_e(),s=Oe(),{safeRe:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:f}=ge(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:d}=Ee(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(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},y=(e,t)=>(i("comp",e,t),e=w(e,t),i("caret",e),e=_(e,t),i("tildes",e),e=O(e,t),i("xrange",e),e=I(e,t),i("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===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),E(n)?a="":E(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:E(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})),w=(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),E(r)?c="":E(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(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}))},O=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>R(e,t))).join(" ")),R=(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=E(o),l=u||E(s),f=l||E(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})),I=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),S=(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=E(r)?"":E(o)?`>=${r}.0.0${e?"-0":""}`:E(i)?`>=${r}.${o}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=E(u)?"":E(l)?`<${+u+1}.0.0-0`:E(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 Vf}function je(){if(Wf)return zf;Wf=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(">")))}}zf=t;const n=we(),{safeRe:r,t:o}=ge(),i=De(),s=_e(),a=Oe(),c=ke();return zf}function Me(){if(Kf)return Xf;Kf=1;const e=ke();return Xf=(t,n,r)=>{try{n=new e(n,r)}catch(o){return!1}return n.test(t)}}function Fe(){if(ap)return sp;ap=1;const e=Oe(),t=je(),{ANY:n}=t,r=ke(),o=Me(),i=Ce(),s=Ae(),a=$e(),c=Le();return sp=(u,l,f,p)=>{let d,h,m,v,y;switch(u=new e(u,p),l=new r(l,p),f){case">":d=i,h=a,m=s,v=">",y=">=";break;case"<":d=s,h=c,m=i,v="<",y="<=";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===v||r.operator===y)return!1;if((!o.operator||o.operator===v)&&h(u,o.semver))return!1;if(o.operator===y&&m(u,o.semver))return!1}return!0}}function Be(){if(_p)return Ep;_p=1;const e=ge(),t=Ee(),n=Oe(),r=be(),o=Re(),i=Ie(),s=function(){if(ef)return Zl;ef=1;const e=Re();return Zl=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),a=function(){if(nf)return tf;nf=1;const e=Oe();return tf=(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(of)return rf;of=1;const e=Re();return rf=(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=Se(),l=function(){if(uf)return cf;uf=1;const e=Oe();return cf=(t,n)=>new e(t,n).minor}(),f=function(){if(ff)return lf;ff=1;const e=Oe();return lf=(t,n)=>new e(t,n).patch}(),p=function(){if(df)return pf;df=1;const e=Re();return pf=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),d=Te(),h=function(){if(yf)return vf;yf=1;const e=Te();return vf=(t,n,r)=>e(n,t,r)}(),m=function(){if(_f)return Ef;_f=1;const e=Te();return Ef=(t,n)=>e(t,n,!0)}(),v=Pe(),y=function(){if(Of)return bf;Of=1;const e=Pe();return bf=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),E=function(){if(If)return Rf;If=1;const e=Pe();return Rf=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),_=Ce(),g=Ae(),w=xe(),b=Ne(),O=Le(),R=$e(),I=De(),S=Ue(),T=je(),P=ke(),C=Me(),A=function(){if(Qf)return Yf;Qf=1;const e=ke();return Yf=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),x=function(){if(Zf)return Jf;Zf=1;const e=Oe(),t=ke();return Jf=(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}}(),N=function(){if(tp)return ep;tp=1;const e=Oe(),t=ke();return ep=(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(rp)return np;rp=1;const e=Oe(),t=ke(),n=Ce();return np=(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(ip)return op;ip=1;const e=ke();return op=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),D=Fe(),U=function(){if(up)return cp;up=1;const e=Fe();return cp=(t,n,r)=>e(t,n,">",r)}(),k=function(){if(fp)return lp;fp=1;const e=Fe();return lp=(t,n,r)=>e(t,n,"<",r)}(),j=function(){if(dp)return pp;dp=1;const e=ke();return pp=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),M=function(){if(mp)return hp;mp=1;const e=Me(),t=Te();return hp=(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}}(),F=function(){if(yp)return vp;yp=1;const e=ke(),t=je(),{ANY:n}=t,r=Me(),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,v,y;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 E=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,_=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;E&&1===E.prerelease.length&&"<"===p.operator&&0===E.prerelease[0]&&(E=!1);for(const n of t){if(y=y||">"===n.operator||">="===n.operator,v=v||"<"===n.operator||"<="===n.operator,f)if(_&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===_.major&&n.semver.minor===_.minor&&n.semver.patch===_.patch&&(_=!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(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(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&&v&&!p&&0!==d||p&&y&&!f&&0!==d||_||E)},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 vp=(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 Ep={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:v,sort:y,rsort:E,gt:_,lt:g,eq:w,neq:b,gte:O,lte:R,cmp:I,coerce:S,Comparator:T,Range:P,satisfies:C,toComparators:A,maxSatisfying:x,minSatisfying:N,minVersion:L,validRange:$,outside:D,gtr:U,ltr:k,intersects:j,simplifyRange:M,subset:F,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 Ip||(Ip=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.toCommandProperties=Fp.toCommandValue=void 0,Fp.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Fp.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}:{}}),Fp}function He(){return Cp||(Cp=1,function(e){var t=Hp.__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=Wn,r=Yn,{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}(Hp)),Hp}function Ve(){return xp||(xp=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=Kp.__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=Kp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=Kp.__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=Kp.__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(Yn),c=i(rr);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"}}(Kp)),Kp}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(Np)return Xp;Np=1;var i=Xp.__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=Xp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Xp.__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=Xp.__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(Xp,"__esModule",{value:!0}),Xp.findInPath=Xp.which=Xp.mkdirP=Xp.rmRF=Xp.mv=Xp.cp=void 0;const u=br,l=a(rr),f=a(Ve());return Xp.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)}}))},Xp.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)}))},Xp.rmRF=e,Xp.mkdirP=t,Xp.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]:""}))},Xp.findInPath=n,Xp}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($p)return zp;$p=1;var t=zp.__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=zp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=zp.__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=zp.__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(zp,"__esModule",{value:!0}),zp.getExecOutput=zp.exec=void 0;const i=Vr,s=r(function(){if(Lp)return Wp;Lp=1;var e=Wp.__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=Wp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Wp.__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=Wp.__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(Wp,"__esModule",{value:!0}),Wp.argStringToArray=Wp.ToolRunner=void 0;const o=n(Wn),i=n(_r),s=n(wr),a=n(rr),c=n(qe()),u=n(Ve()),l=qr,f="win32"===process.platform;Wp.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)}}))))}))}},Wp.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 Wp}());return zp.exec=e,zp.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}}))},zp}function We(){return Up||(Up=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=jp.__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=jp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=jp.__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=jp.__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(Sp)return Mp;Sp=1;var t=Mp.__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=Mp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Mp.__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(Mp,"__esModule",{value:!0}),Mp.issue=Mp.issueCommand=void 0;const o=r(Wn),i=Ge();Mp.issueCommand=e,Mp.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 Mp}(),f=function(){if(Tp)return Bp;Tp=1;var e=Bp.__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=Bp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Bp.__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(Bp,"__esModule",{value:!0}),Bp.prepareKeyValueMessage=Bp.issueFileCommand=void 0;const r=n(nr),o=n(Yn),i=n(Wn),s=Ge();return Bp.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"})},Bp.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}`},Bp}(),p=Ge(),d=a(Wn),h=a(rr),m=function(){if(Pp)return Gp;Pp=1;var e=Gp.__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(Gp,"__esModule",{value:!0}),Gp.OidcClient=void 0;const t=Fo,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 Gp.OidcClient=i,Gp}();var v,y;(y=v||(e.ExitCode=v={}))[y.Success=0]="Success",y[y.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=v.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 E=He();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return E.summary}});var _=He();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return _.markdownSummary}});var g=function(){if(Ap)return Vp;Ap=1;var e=Vp.__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=Vp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Vp.__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(Vp,"__esModule",{value:!0}),Vp.toPlatformPath=Vp.toWin32Path=Vp.toPosixPath=void 0;const r=n(rr);return Vp.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Vp.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Vp.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Vp}();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((Dp||(Dp=1,function(e){var t=qp.__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=qp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=qp.__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=qp.__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=qp.__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(Wn),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})}))}}(qp)),qp))}(jp)),jp}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){Zp?await async function(e,t,n=40){await x("update-alternatives",["--install","/usr/bin/"+e,e,t,""+n])}(e,t,r):(await il(n),await ed(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 Je(){return null!==Fs.sync("nala",{nothrow:!0})}function Ze(){let e;return e=Je()?"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 w("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 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,n){switch(await ot(e,t,n)){case od.NameDashVersion:return`${t}-${n}`;case od.NameEqualsVersion:return`${t}=${n}`;case od.Name:return void 0!==n&&""!==n&&d(`Could not find package ${t} with version ${n}. Installing the latest version.`),t;default:throw Error(`Could not find package ${t} ${n??""}`)}}(t,e.name,e.version);return await tt(n)?void 0:n}async function ot(e,t,n){if(void 0!==n&&""!==n){const{stdout:r}=await w("apt-cache",["search","--names-only",`^${et(t)}-${et(n)}$`],{env:Qe(e),stdio:"pipe"});if(""!==r.trim())return od.NameDashVersion;try{const{stdout:r}=await w("apt-cache",["show",`${t}=${n}`],{env:Qe(e)});if(""===r.trim())return od.NameEqualsVersion}catch{}}try{const{stdout:n}=await w("apt-cache",["show",t],{env:Qe(e),stdio:"pipe"});if(""!==n.trim())return od.Name}catch{}return nd?od.None:(rd(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&&rd(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 sd(t),await async function(e){await tt("software-properties-common")||A(e,["install","-y","--fix-broken","-o",td,"software-properties-common"],{...Vs,env:Qe(e)})}(t),A("add-apt-repository",["-y","--no-update",e],{...Vs,env:Qe(t)}),rd.clear(),rd(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 sd(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=ud,fileName:n,keyStorePath:r=ud}){try{ct(n);const o=or(r,n);return await ae(o)||(at(),await x("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+o,"--keyserver",t,"--recv-keys",e]),await x("chmod",["644",o])),o}catch(o){return void d(`Failed to add apt key via server ${t}: ${o}`)}}(t))})))}(e),A(r,["install","--fix-broken","-y",...o],{...Vs,env:Qe(r)})}catch(n){if(!function(e){return"string"==typeof e.stderr}(n))throw n;ad.some((e=>"string"==typeof n.stderr&&n.stderr.includes(e)))&&(d(`Failed to install packages ${o}. Retrying...`),A(r,["install","--fix-broken","-y","-o",td,...o],{...Vs,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 st({keyUrl:e,fileName:t,keyStorePath:n=cd}){try{ct(t);const r=or(n,t);if(!(await ae(r))){at(),await it([{name:"ca-certificates"}]);const n=or(Kn(),t),o=new Jp.DownloaderHelper(e,Kn(),{fileName:t});o.on("error",(t=>{throw Error(`Failed to download ${e}: ${t}`)})),await o.start(),A("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",n]),A("chmod",["644",r])}return r}catch(r){return void d(`Failed to add apt key via download ${e}: ${r}`)}}function at(){A("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 ld)return{binDir:ld};const t=await Fs("brew",{nothrow:!0});if(null!==t)return ld=sr(t),{binDir:ld};await it([{name:"ca-certificates"}]);const n=new Jp.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",Kn(),{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"}}),ld=lt(),await de(ld,e.rcOptions),{binDir:ld}}function lt(){return or(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`),md&&null!==Fs.sync("brew",{nothrow:!0})||(await ut(),md=!0);const r=lt(),o=or(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===fd&&(fd=null!==Fs.sync("dnf",{nothrow:!0})),fd)}function ht(){return"linux"===process.platform&&(void 0===pd&&(pd=null!==Fs.sync("pacman",{nothrow:!0})),pd)}function mt(){return"linux"===process.platform&&(void 0===dd&&(dd=null!==Fs.sync("apt-get",{nothrow:!0})),dd)}async function vt(e,t,n){if("win32"!==process.platform)return;if("string"==typeof hd)return{binDir:hd};const r=Fs.sync("choco",{nothrow:!0});if(null!==r)return hd=sr(r),{binDir:hd};let o="powershell.exe";const i=Fs.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,Im);const a=Fs.sync("choco",{nothrow:!0});return hd=null!==a?sr(a):(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin",await ae(hd)?{binDir:hd}:void 0}async function yt(e,t,n=[]){m(`Installing ${e} ${t??""} via chocolatey`),vd&&null!==Fs.sync("choco",{nothrow:!0})||(await vt(0,0,process),vd=!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,Im),{binDir:i}}async function Et(e){for(const{name:t,version:n}of e)m(`Installing ${t} ${n??""} via dnf`);return A("dnf",["-y","install",...await Promise.all(e.map((e=>async function(e,t){if(void 0!==t&&""!==t){const{stdout:n}=await w("dnf",["search","-q",`${e}-${t}`]);if(""!==n.trim())return`${e}-${t}`;{const{stdout:n}=await w("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 _t(e,t,n){m(`Installing ${e} ${t??""} via pacman`);const r="pacman";"yay"===n&&function(){if(null===Fs.sync("yay",{nothrow:!0}))try{A("pacman",["-S","--noconfirm","base-devel","git"]);const e=or(Kn(),"yay");A("mkdir",["-p",e]),T()?(d("Creating a non-root user to build yay"),A("useradd",["-m","-G","wheel","builder"]),A("passwd",["-d","builder"]),A("chown",["-R","builder:builder",e]),A("bash",["-c",'echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers']),gd=!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:Kn()}),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||(A(r,["-Sy","--noconfirm"]),yd=!0),Ed||"yay"===n||(A(r,["-S","--noconfirm","base-devel"]),Ed=!0);const o=e=>"yay"===n?T()&&gd?A("su",["-","builder","-c","yay -S --noconfirm "+e]):b(n,["-S","--noconfirm",e]):A(n??r,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){const n=await async function(e,t){const n=[];try{const{stdout:r}=await w(e,["-Si",t]);for(const e of r.matchAll(_d))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 wt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function bt(e,t=!0){return t?ar(e):ar(e,cr(e))}function Ot(e){return ur(e).replace(RegExp(et(lr)+"$"),"")}function Rt(e,t=".exe",n=""){return"win32"===process.platform?`${e}${t}`:`${e}${n}`}function It(e,t){const n=cr(e),r=`${t}${ar(e,n)}${n}`;return or(sr(e),r)}function St(e,t){const n=cr(e),r=`${ar(e,n)}${t}${n}`;return or(sr(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=cr(e).length;return e.slice(0,-t)}function At(e,t){return Od(e,t)}function xt(e,t){const n=fr(t,e);return!(!n||".."===n||n.startsWith(".."+lr)||n===pr(e))}function Nt(){return Vd||(Vd=1,function(e,t){function n(e){A[e]=x++}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>R)return null;if(!(t.loose?P[A.LOOSE]:P[A.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>R)throw new TypeError("version is longer than "+R+" characters");if(!(this instanceof i))return new i(e,t);O("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?P[A.LOOSE]:P[A.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>I||0>this.major)throw new TypeError("Invalid major version");if(this.minor>I||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>I||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&&I>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(" "),O("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===U?"":this.operator+this.semver.version,O("comp",this)}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(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 y(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 E(e){return!e||"x"===e.toLowerCase()||"*"===e}function _(e,t,n,r,o,i,s,a,c,u,l,f,p){return((t=E(n)?"":E(r)?">="+n+".0.0":E(o)?">="+n+"."+r+".0":">="+t)+" "+(a=E(c)?"":E(u)?"<"+(+c+1)+".0.0":E(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(O(e[r].semver),e[r].semver!==U&&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 w(e,t,n){try{t=new v(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 v(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(w(e,t,r))return!1;for(var h=0;t.set.length>h;++h){var y=null,E=null;if(t.set[h].forEach((function(e){e.semver===U&&(e=new m(">=0.0.0")),E=E||e,o(e.semver,(y=y||e).semver,r)?y=e:a(e.semver,E.semver,r)&&(E=e)})),y.operator===l||y.operator===f)return!1;if((!E.operator||E.operator===l)&&s(e,E.semver))return!1;if(E.operator===f&&a(e,E.semver))return!1}return!0}var O;t=rh.exports=i,O="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 R=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,S=R-6,T=t.re=[],P=t.safeRe=[],C=t.src=[],A=t.tokens={},x=0,N="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",R],[N,S]];n("NUMERICIDENTIFIER"),C[A.NUMERICIDENTIFIER]="0|[1-9]\\d*",n("NUMERICIDENTIFIERLOOSE"),C[A.NUMERICIDENTIFIERLOOSE]="\\d+",n("NONNUMERICIDENTIFIER"),C[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+N+"*",n("MAINVERSION"),C[A.MAINVERSION]="("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")",n("MAINVERSIONLOOSE"),C[A.MAINVERSIONLOOSE]="("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")",n("PRERELEASEIDENTIFIER"),C[A.PRERELEASEIDENTIFIER]="(?:"+C[A.NUMERICIDENTIFIER]+"|"+C[A.NONNUMERICIDENTIFIER]+")",n("PRERELEASEIDENTIFIERLOOSE"),C[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[A.NUMERICIDENTIFIERLOOSE]+"|"+C[A.NONNUMERICIDENTIFIER]+")",n("PRERELEASE"),C[A.PRERELEASE]="(?:-("+C[A.PRERELEASEIDENTIFIER]+"(?:\\."+C[A.PRERELEASEIDENTIFIER]+")*))",n("PRERELEASELOOSE"),C[A.PRERELEASELOOSE]="(?:-?("+C[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[A.PRERELEASEIDENTIFIERLOOSE]+")*))",n("BUILDIDENTIFIER"),C[A.BUILDIDENTIFIER]=N+"+",n("BUILD"),C[A.BUILD]="(?:\\+("+C[A.BUILDIDENTIFIER]+"(?:\\."+C[A.BUILDIDENTIFIER]+")*))",n("FULL"),n("FULLPLAIN"),C[A.FULLPLAIN]="v?"+C[A.MAINVERSION]+C[A.PRERELEASE]+"?"+C[A.BUILD]+"?",C[A.FULL]="^"+C[A.FULLPLAIN]+"$",n("LOOSEPLAIN"),C[A.LOOSEPLAIN]="[v=\\s]*"+C[A.MAINVERSIONLOOSE]+C[A.PRERELEASELOOSE]+"?"+C[A.BUILD]+"?",n("LOOSE"),C[A.LOOSE]="^"+C[A.LOOSEPLAIN]+"$",n("GTLT"),C[A.GTLT]="((?:<|>)?=?)",n("XRANGEIDENTIFIERLOOSE"),C[A.XRANGEIDENTIFIERLOOSE]=C[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",n("XRANGEIDENTIFIER"),C[A.XRANGEIDENTIFIER]=C[A.NUMERICIDENTIFIER]+"|x|X|\\*",n("XRANGEPLAIN"),C[A.XRANGEPLAIN]="[v=\\s]*("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:"+C[A.PRERELEASE]+")?"+C[A.BUILD]+"?)?)?",n("XRANGEPLAINLOOSE"),C[A.XRANGEPLAINLOOSE]="[v=\\s]*("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:"+C[A.PRERELEASELOOSE]+")?"+C[A.BUILD]+"?)?)?",n("XRANGE"),C[A.XRANGE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAIN]+"$",n("XRANGELOOSE"),C[A.XRANGELOOSE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAINLOOSE]+"$",n("COERCE"),C[A.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",n("COERCERTL"),T[A.COERCERTL]=RegExp(C[A.COERCE],"g"),P[A.COERCERTL]=RegExp(r(C[A.COERCE]),"g"),n("LONETILDE"),C[A.LONETILDE]="(?:~>?)",n("TILDETRIM"),C[A.TILDETRIM]="(\\s*)"+C[A.LONETILDE]+"\\s+",T[A.TILDETRIM]=RegExp(C[A.TILDETRIM],"g"),P[A.TILDETRIM]=RegExp(r(C[A.TILDETRIM]),"g"),n("TILDE"),C[A.TILDE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAIN]+"$",n("TILDELOOSE"),C[A.TILDELOOSE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAINLOOSE]+"$",n("LONECARET"),C[A.LONECARET]="(?:\\^)",n("CARETTRIM"),C[A.CARETTRIM]="(\\s*)"+C[A.LONECARET]+"\\s+",T[A.CARETTRIM]=RegExp(C[A.CARETTRIM],"g"),P[A.CARETTRIM]=RegExp(r(C[A.CARETTRIM]),"g"),n("CARET"),C[A.CARET]="^"+C[A.LONECARET]+C[A.XRANGEPLAIN]+"$",n("CARETLOOSE"),C[A.CARETLOOSE]="^"+C[A.LONECARET]+C[A.XRANGEPLAINLOOSE]+"$",n("COMPARATORLOOSE"),C[A.COMPARATORLOOSE]="^"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+")$|^$",n("COMPARATOR"),C[A.COMPARATOR]="^"+C[A.GTLT]+"\\s*("+C[A.FULLPLAIN]+")$|^$",n("COMPARATORTRIM"),C[A.COMPARATORTRIM]="(\\s*)"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+"|"+C[A.XRANGEPLAIN]+")",T[A.COMPARATORTRIM]=RegExp(C[A.COMPARATORTRIM],"g"),P[A.COMPARATORTRIM]=RegExp(r(C[A.COMPARATORTRIM]),"g"),n("HYPHENRANGE"),C[A.HYPHENRANGE]="^\\s*("+C[A.XRANGEPLAIN]+")\\s+-\\s+("+C[A.XRANGEPLAIN]+")\\s*$",n("HYPHENRANGELOOSE"),C[A.HYPHENRANGELOOSE]="^\\s*("+C[A.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[A.XRANGEPLAINLOOSE]+")\\s*$",n("STAR"),C[A.STAR]="(<|>)?=?\\s*\\*";for(var $=0;x>$;$++)O($,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 O("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(O("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(O("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 U={};m.prototype.parse=function(e){var t=e.match(this.options.loose?P[A.COMPARATORLOOSE]:P[A.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new i(t[2],this.options.loose):U},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(O("Comparator.test",e,this.options.loose),this.semver===U||e===U)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 v(e.value,t),w(this.value,n,t));if(""===e.operator)return""===e.value||(n=new v(this.value,t),w(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=v,v.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},v.prototype.toString=function(){return this.range},v.prototype.parseRange=function(e){var t=this.options.loose;e=e.replace(t?P[A.HYPHENRANGELOOSE]:P[A.HYPHENRANGE],_),O("hyphen replace",e),e=e.replace(P[A.COMPARATORTRIM],"$1$2$3"),O("comparator trim",e,P[A.COMPARATORTRIM]),e=(e=(e=e.replace(P[A.TILDETRIM],"$1~")).replace(P[A.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?P[A.COMPARATORLOOSE]:P[A.COMPARATOR],r=e.split(" ").map((function(e){return function(e,t){return O("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return O("caret",e,t),e.replace(t.loose?P[A.CARETLOOSE]:P[A.CARET],(function(t,n,r,o,i){var s;return O("caret",e,t,n,r,o,i),E(n)?s="":E(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":E(o)?s="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":i?(O("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"):(O("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"),O("caret return",s),s}))}(e,t)})).join(" ")}(e,t),O("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){return e.replace(t.loose?P[A.TILDELOOSE]:P[A.TILDE],(function(t,n,r,o,i){var s;return O("tilde",e,t,n,r,o,i),E(n)?s="":E(r)?s=">="+n+".0.0 <"+(+n+1)+".0.0":E(o)?s=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":i?(O("replaceTilde pr",i),s=">="+n+"."+r+"."+o+"-"+i+" <"+n+"."+(+r+1)+".0"):s=">="+n+"."+r+"."+o+" <"+n+"."+(+r+1)+".0",O("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),O("tildes",e),e=function(e,t){return O("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){return(e=e.trim()).replace(t.loose?P[A.XRANGELOOSE]:P[A.XRANGE],(function(n,r,o,i,s,a){O("xRange",e,n,r,o,i,s,a);var c=E(o),u=c||E(i),l=u||E(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),O("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),O("xrange",e),e=function(e,t){return O("replaceStars",e,t),e.trim().replace(P[A.STAR],"")}(e,t),O("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)},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw new TypeError("a Range is required");return this.set.some((function(n){return y(n,t)&&e.set.some((function(e){return y(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new v(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},v.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=w,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var s=new v(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 v(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 v(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 v(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 v(e,n),t=new v(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[A.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[A.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;P[A.COERCERTL].lastIndex=-1}else n=e.match(P[A.COERCE]);return null===n?null:o(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,rh.exports)),rh.exports}function Lt(e,t,n){switch(process.platform){case"win32":return yt("7zip",e);case"darwin":return pt("p7zip",e);case"linux":if(ht())return _t("p7zip",e);if(dt())return Et([{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 $t(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)}async function Dt(e,t){return await w(await async function(){return void 0===lh&&(null===Fs.sync("7z",{nothrow:!0})&&await Lt("",0,process),lh="7z"),lh}(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await D(t),t}function Ut(e,t){return Dt(e,t)}async function kt(e,t){return null!==Fs.sync("7z",{nothrow:!0})?Dt(e,t):null!==Fs.sync("unzip",{nothrow:!0})?(await w("unzip",["-q",e,"-d",t],{stdio:"inherit"}),await D(t),t):Dt(e,t)}async function jt(e,t,n=0,r=[]){await async function(e){switch(m("Installing tar extraction dependencies"),e){case 1:"linux"===process.platform&&(ht()?(await _t("gzip"),await _t("tar")):dt()?await Et([{name:"gzip"},{name:"tar"}]):mt()&&await it([{name:"gzip"},{name:"tar"}]));break;case 2:"linux"===process.platform&&(ht()?(await _t("xz"),await _t("tar")):dt()?await Et([{name:"xz"},{name:"tar"}]):mt()&&await it([{name:"xz-utils"},{name:"tar"}]));break;default:throw Error(`Unsupported archive type: ${e} for tar extraction`)}}($t(e));try{await uh.mkdirP(t)}catch{}try{await w("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 Mt(e,t,n,r,o){m(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=process.env.RUNNER_TEMP??Kn(),process.env.RUNNER_TOOL_CACHE=process.env.RUNNER_TOOL_CACHE??or(Kn(),"setup-cpp","hostedtoolcache");const{url:i,binRelativeDir:s,binFileName:a,extractedFolderName:c,extractFunction:u}=await n(t,process.platform,o);if(fh)try{const n=sh.find(e,t);if(n){const r=or(n,c),o=or(r,s);if(await ae(or(o,a)))return m(`${e} ${t} was found in the cache at ${o}.`),await de(o,Im),{installDir:r,binDir:o}}}catch{}const l=or(r,c),f=or(l,s),p=or(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 ch((()=>{const e=or(process.env.RUNNER_TEMP??Kn(),`${Date.now()}-${ar(n)}`);return sh.downloadTool(n,e)}),{name:n,max:4,backoffBase:2e3,report:e=>m(e)})}(n,r,o);m(`Extracting ${e} to ${i}`);const t=s??function(e){switch(e){case 0:case 1:case 2:return jt;case 3:return kt;default:return Dt}}($t(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,Im),!(await ae(t)))throw Error(`Failed to find the binary ${t} after extracting ${n} ${r} ${a}`);if("win32"!==process.platform)try{await Pr(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){fh&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"!==qn("cache-tools")&&"true"!==process.env.CACHE_TOOLS||await sh.cacheDir(e,t,n))}(r,e,t),{installDir:l,binDir:f}}function Ft(e,t,n){const r=Dd(e)??e;switch(t){case"win32":{const t=Ud(r,"v3.19.6");let o;kd.includes(n)?o=t?"win64-x64":"windows-x86_64":jd.includes(n)?o=t?"win32-x86":"windows-i386":Md.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:Rt("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const t=`cmake-${e}-${Ud(r,"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=Ud(r,"v3.19.8");let o;Md.includes(n)?o=t?"Linux-aarch64":"linux-aarch64":kd.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:Rt("cmake"),extractedFolderName:i,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function Bt(e,t,n){return Mt("cmake",e,Ft,t,n)}async function Gt(e,t,n=xh){const r=await async function(e,t=xh){try{const n=await Th.getExecOutput(e,["--version"]),r=n.stdout||n.stderr||"",o=r.trim().match(t)?.[1];return Dd(o)??void 0}catch(n){return void console.error(n)}}(e,n);if(void 0===r||""===t)return!1;try{return-1!==Ph(r,t)}catch{return Ch(r,t)}}function Ht(e,t='"'){return e.includes(" ")?`${t}${e}${t}`:e}function Vt(e,t,n=null){return zt(t)?qt(e,n)??"":t}function qt(e,t=null){const n=Nh()[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 zt(e){return"true"===e||void 0===e}async function Wt(e,t,n){const r=await async function(e,t,n){const r=function(e){return e.startsWith(">")}(e)?"":e;let o,i=await Xt(t);if(void 0!==i){const e=sr(i);o={bin:i,installDir:e,binDir:e}}else{if(Lh)try{m("Installing python in GitHub Actions");const{setupActionsPython:e}=await import("./assets/actions_python-C5ar-1oi.mjs");if(await e(r,t,n),i=await Xt(t),void 0===i)throw Error("Python binary could not be found");const s=sr(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 yt("python3",t,["--params=/InstallDir:"+e]):await yt("python3",t);const r=await Xt(e);if(void 0===r)throw Error("Python binary could not be found");const o=sr(r);await de(o,Im),n={installDir:o,binDir:o,bin:r};break}case"darwin":{n=await pt("python3",t);const e=await w("brew",["--prefix","python"],{stdio:"pipe"}),r=or(e.stdout,"libexec","bin");await de(r,Im);break}case"linux":if(ht())n=await _t("python",t);else if(dt())n=await Et([{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 Xt(t),void 0===i)throw Error("Python binary could not be found");o={bin:i,installDir:sr(i),binDir:sr(i)}}return o}(e,t,n);br(void 0!==r.bin);const o=r.bin;await async function(e){if(await async function(e){try{return await w(e,["-m","venv","-h"],{stdio:"ignore"}),!0}catch{}return!1}(e))m("venv module already installed.");else try{await sn("venv")}catch(t){m(`Failed to install venv: ${""+t}. Ignoring...`)}}(o);const i=await async function(e){const t=await Yt();return void 0===t?(m("pip was not found. Installing pip"),await async function(e){await Jt(e)||(await sn("pip"),await Jt(e))}(e),Yt()):t}(o);if(void 0===i)throw Error("pip was not installed correctly");return await async function(e){try{if(!(await on(e)))try{await sn("pipx",ht()),await tn(e,"pipx",void 0,{upgrade:!0,usePipx:!1})}catch(t){throw Error("pipx was not installed completely: "+t)}if(await on(e))return void(await w(e,["-m","pipx","ensurepath"],{stdio:"inherit"}));if(await async function(){return null!==await Fs("pipx",{nothrow:!0})}())return h("pipx module not found. Trying to install with pipx binary..."),void(await w("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 tn(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await tn(e,"wheel",void 0,{upgrade:!1,isLibrary:!0,usePipx:!1})}catch(t){m(`Failed to install setuptools/wheel: ${""+t}. Ignoring...`)}}(o),r}async function Xt(e){for(const t of["python","python3"]){const n=await Kt(t,e);if(void 0!==n)return n}if("win32"===process.platform){const e=dr(Xn()).root,t=(await Cr(e)).filter((e=>e.startsWith("Python")));for(const n of t)for(const t of["python3","python"]){const r=await Kt(t,or(e,n));if(void 0!==r)return r}}}async function Kt(e,t){try{const n=qt("python");if(void 0!==t){const r=or(t,Rt(e));if(await ae(r)&&await Gt(r,n))return r}const r=await Fs(e,{nothrow:!0,all:!0})??[];for(const e of r)if(await Gt(e,n))return e}catch{}}async function Yt(){for(const e of["pip3","pip"]){const t=await Qt(e);if(void 0!==t)return t}}async function Qt(e){try{const t=qt("pip"),n=await Fs(e,{nothrow:!0,all:!0})??[];for(const e of n)if(await Gt(e,t))return e}catch{}}async function Jt(e){try{return await w(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0}catch(t){m(""+t);try{return await w(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0}catch(n){m(""+n)}}return!1}function Zt(){if(!("version"in Wn)||"function"!=typeof Wn.version)return null;const e=Wn.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 en(e,t,n={}){return tn(await async function(e){if(void 0!==Bh)return Bh;const t=e??Vt("python",void 0,await jh());return Bh=(await Wt(t,"",process.arch)).bin,Bh}(n.pythonVersion),e,t,n)}async function tn(e,t,n,r={}){const{usePipx:o=!0,user:i=!0,upgrade:s=!1,isLibrary:a=!1}=r,c=o&&!a&&await on(e),u=c?"pipx":"pip",l=t.replace(/\[.*]/g,"").trim();if(!s){const t=c?await async function(e,t){try{const n=await w(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 w(e,["-m","pip","-qq","show",t],{stdio:"ignore",reject:!1})).exitCode}catch{return!1}}(e,l);if(t)return{binDir:c?await nn():await rn(e,l)}}const f=await async function(e,t){return 0===(await w(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode}(e,l);if(f)try{Yp.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 Mh(),l.PIPX_BIN_DIR=await Fh()),b(e,["-m",u,...o,...a,r],{stdio:"inherit",env:l})}catch(p){if(Yp.info(`Failed to install ${t} via ${u}: ${p instanceof Error?`${p.message}\n${p.stack}`:p+""}`),null===await sn(t))throw Error(`Failed to install ${t} via ${u}: ${p}.`)}else if(null===await sn(t))throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);return{binDir:c?await nn():await rn(e,l)}}function nn(){return Fh()}async function rn(e,t){const n=await $h(e),r=await async function(e,t){const n=(await Promise.all(e.map((e=>ae(or(e,Rt(t))))))).findIndex((e=>e));if(-1!==n)return e[n];const r=Fs.sync(Rt(t),{nothrow:!0});return null!==r?sr(r):e[e.length-1]}(n,t);return await de(r,Im),r}async function on(e){return 0===(await w(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode}function sn(e,t=!0){if("linux"===process.platform){if(Yp.info(`Installing ${e} via the system package manager`),ht())return _t(t?"python-"+e:e);if(dt())return Et([{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 an(e,t,n){return en("cmakelang[YAML]",e)}async function cn(e,t,n){switch(process.platform){case"win32":return await yt("graphviz",e),async function(){if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await de(e,Im),{binDir:e}}throw Error("Unsupported platform")}();case"darwin":return pt("graphviz",e);case"linux":if(ht())return _t("graphviz",e);if(dt())return Et([{name:"graphviz",version:e}]);if(mt())return it([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function un(e,t){const{ArchiveHdi:n}=await import("./assets/hdi-BTtpGNI1.mjs"),r=new n(e);await r.read((async e=>{await e.extract(or(t,e.path))}))}function ln(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:un,url:`https://doxygen.nl/files/${t}.dmg`}}default:throw Error(`Unsupported platform '${t}'`)}}async function fn(){if("darwin"===process.platform)try{const e=await Th.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await fe("SDKROOT",t.trim(),Im):p("SDKROOT not set")}catch(e){p(e)}}async function pn(){const e=or(Xh,"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 dn(e){const t=await Ar(e,"utf-8");return JSON.parse(t)}function hn(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??Ch,i=function(e){if(null===Ah(e))try{const t=Dd(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=mn(a,n,t);if(void 0!==r)return r}}function mn(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=>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)e.includes(r)&&t++;return t})),o=Math.max(...t);return{tag:e,name:r[t.indexOf(o)]}}return{tag:e,name:r[0]}}}async function vn(e,t,n){let r;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||(r=await yt("gcc-arm-embedded",e));try{r=await Mt("g++",e,yn,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 yt("mingw",e),"x64"===t&&await ae("C:/tools/mingw64/bin")?(n="C:/tools/mingw64/bin",await de(n,Im)):"ia32"===t&&await ae("C:/tools/mingw32/bin")?(n="C:/tools/mingw32/bin",await de(n,Im)):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 _t("mingw-w64-gcc",e);else if(dt())r=await Et([{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",Rt(e+"/gcc"),Im),fe("CXX",Rt(e+"/g++"),Im)),qh&&await pn(),await Promise.all(t)}(r.binDir),r}async function yn(e,t,n){if("win32"!==t)throw Error(`Unsupported platform '${t}'`);const r=await dn(or(zh,"github_brechtsanders_winlibs_mingw.json")),o=En(e),i=_n(e),s=gn(e),a=hn(r,{version:e,keywords:[{x64:"x86_64",ia32:"i386"}[n]??n],filterName:e=>!(void 0!==o&&o!==En(e)||void 0!==i&&i!==_n(e)||void 0!==s&&s!==gn(e)),versionSatisfies:(e,t)=>{const n=Dd(e);if(null===n)throw Error(`Invalid MinGW asset version: '${e}'`);return Ch(n,t)&&(void 0===o||o===En(e))&&(void 0===i||i===_n(e))}});if(void 0===a)throw Error(`No asset found for version ${e} and arch ${n}`);return{binRelativeDir:"bin/",binFileName:Rt("g++"),extractedFolderName:"mingw64",extractFunction:Dt,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${a.tag}/${a.name}`}}function En(e){const t=e.match(/(ucrt|msvcrt)/);return null!==t?t[1]:void 0}function _n(e){const t=e.match(/(posix|mcf)/);return null!==t?t[1]:void 0}function gn(e){const t=e.match(/(seh|dwarf)/);return null!==t?t[1]:void 0}async function wn(e,t,n,r=40){let o;switch(process.platform){case"win32":o=await vn(e,t,n);break;case"darwin":o=await pt("gcc",e);break;case"linux":if(ht())o=await _t("gcc",e);else if(dt())o=await Et([{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 Cr(e)).sort(((e,t)=>function(e,t){const n=Dd(e),r=Dd(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 w(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=Vh(Dd(o)??o);5>s?(r.push(fe("CC",`${t}/gcc-${o}`,Im),fe("CXX",`${t}/g++-${o}`,Im)),mt()&&r.push(Ye("cc",`${t}/gcc-${o}`,Im,n),Ye("cxx",`${t}/g++-${o}`,Im,n),Ye("gcc",`${t}/gcc-${o}`,Im,n),Ye("g++",`${t}/g++-${o}`,Im,n))):(r.push(fe("CC",`${t}/gcc-${s}`,Im),fe("CXX",`${t}/g++-${s}`,Im)),mt()&&r.push(Ye("cc",`${t}/gcc-${s}`,Im,n),Ye("cxx",`${t}/g++-${s}`,Im,n),Ye("gcc",`${t}/gcc-${s}`,Im,n),Ye("g++",`${t}/g++-${s}`,Im,n)))}r.push(fn()),Wh&&await pn(),await Promise.all(r)}(e,o.binDir,r),o}function bn(e){const t=Ah(e),n=null!==t?Vh(t):e;return fe("GCOV",""!==n?"gcov-"+n:"gcov",Im)}async function On(e,t,n){const{keywords:r,optionalKeywords:o}=function(e,t){const n=[],r=[];switch(e){case"linux":n.push("linux"),kd.includes(t)?(r.push("64"),r.push("x86_64")):(m(`Using arch ${t} for infer`),n.push(t));break;case"darwin":n.push("osx"),kd.includes(t)?r.push("x86_64"):Md.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=hn(await dn(or(Kh,"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:""+ar(i.name,".tar.xz"),binRelativeDir:"bin",binFileName:Rt("infer")};throw Error(`No asset found for version ${e} matching ${r} and ${o}`)}function Rn(e,t,n){const r=function(e,t){switch(e){case"win32":return kd.includes(t)||jd.includes(t)?"win":Md.includes(t)?"winarm64":"win";case"darwin":return"mac";case"linux":return kd.includes(t)||jd.includes(t)?"linux":Md.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 In(e,t,n){return Mt("ninja",e,Rn,t,n)}function Sn(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:Rt("kcov")}}function Tn(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:Rt("kcov"),extractFunction:Pn}}async function Pn(e,t){const n=await jt(e,t,1),r=await async function(){let e=Fs.sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await Bt(Vt("cmake",void 0,await jh()),or(ce("~"),"cmake"),"");e=or(t,"cmake")}return null===Fs.sync("ninja",{nothrow:!0})&&await In(Vt("ninja",void 0,await jh()),or(ce("~"),"ninja"),""),e}();"linux"===process.platform&&(ht()?await Promise.all([_t("libdwarf"),_t("libcurl-openssl")]):dt()?await Et([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):mt()&&await it([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==Fs.sync("patch",{nothrow:!0})){const e=or(Yh,"gcc13.patch");await w("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=or(n,"build");return await w(r,["-S",n,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await w(r,["--build",o,"--config","Release"],{cwd:n,stdio:"inherit"}),n}async function Cn(){"darwin"===process.platform&&(null!==await Fs("clang",{nothrow:!0})&&null!==await Fs("clang++",{nothrow:!0})&&(h("Assuming clang is an Apple Clang compiler"),await Promise.all([fe("CC","clang",Im),fe("CXX","clang++",Im)])),Xr("Apple Clang automatic installation is not supported yet"))}async function An(e,t,n,r,o,i,s){void 0!==t&&await ae(t)&&(m(`Adding ${t} to PATH`),await fe("VCTargetsPath",t,Im)),await rm.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 xn(e,t,n,r,o,i,s,a=12e5){Yp.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(em(e)),a=()=>{u(em(e))},e.addEventListener("abort",a,{once:!0})}if(n===1/0)return void e.then(c,u);const l=new Qh;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=wm.includes(e);let a;if("vcvarsall"===e)await An(Vt(e,t,n),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)a=await ut({rcOptions:Im});else{const i=or(o,s?"llvm":e),c=Vt(e,t,n),u=bm[e];a=await u(c,i,r)}i.push(zn(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")}Yp.endGroup()}async function Nn(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("windows","Windows"),kd.includes(t)?r.push("win64","win64","win64","x86_64","X64"):jd.includes(t)?n.push("win32"):Md.includes(t)?n.push("woa64"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"linux":if(r.push("linux","Linux"),mt()){r.push("ubuntu");const e=await jh();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");kd.includes(t)?r.push("x86_64","X64"):jd.includes(t)?n.push("x86"):Md.includes(t)?n.push("aarch64"):Fd.includes(t)?n.push("armv7a"):Bd.includes(t)?n.push("powerpc64le"):Gd.includes(t)?n.push("sparc64"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"darwin":r.push("apple","macos","macOS"),kd.includes(t)?r.push("x86_64","X64"):Md.includes(t)?r.push("arm64","ARM64"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"freebsd":n.push("freebsd"),kd.includes(t)?n.push("amd64"):jd.includes(t)?n.push("i386"):(m(`Using arch ${t} for LLVM`),n.push(t));break;case"solaris":n.push("solaris"),kd.includes(t)?n.push("amd64"):Hd.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=hn(await dn(or(im,"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=hn(await dn(or(im,"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:Rt("clang"),extractFunction:"win32"===t?Ut:(e,t)=>jt(e,t,1)}}async function Ln(e,t,n){const r=await cm(e,t,n);return await async function(e,t){const n=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",o=kn(t),i=[fe("CC",Rt(e+"/bin/clang"),Im),fe("CXX",Rt(e+"/bin/clang++"),Im),fe("LLVM_PATH",e,Im),fe("LD_LIBRARY_PATH",`${n}${ir}${e}/lib`,Im),fe("DYLD_LIBRARY_PATH",`${r}${ir}${e}/lib`,Im),fe("LLVM_LDFLAGS","-L"+Ht(e+"/lib"),Im),fe("LLVM_CPPFLAGS","-I"+Ht(e+"/include"),Im),await ae(`${e}/lib/clang/${t}/include`)?fe("LLVM_CPATH",`${e}/lib/clang/${t}/include`,Im):await ae(`${e}/lib/clang/${o}/include`)?fe("LLVM_CPATH",`${e}/lib/clang/${o}/include`,Im):Promise.resolve(),fe("LIBRARY_PATH",e+"/lib",Im),fn()];if(mt()){const t=60;i.push(Ye("cc",e+"/bin/clang",Im,t),Ye("cxx",e+"/bin/clang++",Im,t),Ye("clang",e+"/bin/clang",Im),Ye("clang++",e+"/bin/clang++",Im),Ye("lld",e+"/bin/lld",Im),Ye("ld.lld",e+"/bin/ld.lld",Im),Ye("llvm-ar",e+"/bin/llvm-ar",Im))}await Promise.all(i)}(r.installDir??t,e),r}function $n(e,t,n){return Un(e,t,n,om.ClangFormat)}function Dn(e,t,n){return Un(e,t,n)}async function Un(e,t,n,r=om.All){const o=kn(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 Jp.DownloaderHelper("https://apt.llvm.org/llvm.sh",Kn(),{fileName:"llvm.sh"});r.on("error",(e=>{throw Error("Failed to download the LLVM installer script: "+e)})),await r.start();const o=await Ar(r.getDownloadPath(),"utf-8"),i=or(Kn(),"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 ${td} -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 ${td} -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 w("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)&&(Kr("Removing conflicting package "+n),t=t.replace(e,""))}))),t}(o),o=function(e){return Je()?e.replace(/apt-get/g,"nala"):e}(o),await xr(t,o),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}]}(o,i,e,t);return await it(s),await Pr(i,"755"),await x("bash",[i,""+e,...0===t?["all"]:[]],{stdio:"inherit",shell:!0,timeout:12e5}),await de(n+"/bin",Im),{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{A(or(am,"llvm_repo_remove.bash"),[""+o])}catch(a){m("Failed to remove llvm repository "+a)}}const i=await Mt("llvm",e,Nn,t,n);return await um(o),i}function kn(e){const t=function(e){if(null===Ah(e))try{const t=Dd(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 jn(){if(sm){const e=or(am,"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 Mn(e,t,n,r,o,i){if("win32"!==process.platform)return;const s=rm.vsversion_to_versionnumber(e);m(`Checking if MSVC ${s} is already installed`);let a,c,u=!1;try{const e=rm.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 yt("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 yt("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 yt("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 yt("visualstudio2022buildtools","117.0.5.0",[]),c=void 0):p(`The given MSVC versions ${e} is not supported yet.`)}catch(l){p(l)}await An(s,c,n,a,r,o,i),fm&&await async function(){const e=or(pm,"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 Fn(e,t,n){if("win32"===process.platform)return await yt("opencppcoverage",e),{binDir:await async function(){const e="C:/Program Files/OpenCppCoverage";return await de(e,Im),e}()}}function Bn(e,t,n){return{url:Gn(t,n,e),binRelativeDir:"",binFileName:Rt("pwsh"),extractedFolderName:""}}function Gn(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 Hn(e,t,n){try{return await Mt("pwsh",e,Bn,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 yt("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await de(t,Im),{binDir:t}}case"darwin":return pt("powershell",e,{cask:!0,overwrite:!1});case"linux":if(ht())return _t("powershell-bin",e,"yay");if(dt())return await Et([{name:"curl"}]),A("/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(mt()){await it([{name:"curl"}]);const t=await jh();return A("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),A("dpkg",["-i","packages-microsoft-prod.deb"]),it([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}(e)}}function Vn(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:Rt("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${r}_${o}.${i}`}}function qn(e){const t=Yp.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function zn(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 Wn,{homedir as Xn,tmpdir as Kn}from"os";import Yn,{promises as Qn,mkdir as Jn,stat as Zn,statSync as er,mkdirSync as tr}from"fs";import nr from"crypto";import rr,{join as or,delimiter as ir,dirname as sr,basename as ar,extname as cr,normalize as ur,sep as lr,relative as fr,resolve as pr,parse as dr}from"path";import*as hr from"http";import mr from"http";import*as vr from"https";import yr from"https";import"net";import Er from"tls";import _r from"events";import gr from"util";import wr from"child_process";import br from"assert";import Or from"buffer";import Rr from"stream";import{debuglog as Ir}from"node:util";import Sr from"node:process";import Tr,{chmod as Pr,readdir as Cr,readFile as Ar,writeFile as xr}from"fs/promises";import{Buffer as Nr}from"node:buffer";import Lr from"node:path";import $r,{ChildProcess as Dr}from"node:child_process";import{fileURLToPath as Ur}from"node:url";import kr,{constants as jr}from"node:os";import{createWriteStream as Mr,readFileSync as Fr,createReadStream as Br,promises as Gr}from"node:fs";import Hr from"process";import Vr from"string_decoder";import qr from"timers";import zr,{fileURLToPath as Wr}from"url";import{error as Xr,info as Kr}from"console";var Yr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Qr={};const Jr=[{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 Zr,eo=(Zr||(Zr=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=Jr,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))}(Qr)),Qr);const to=e(eo);var no,ro,oo={},io={},so={},ao={};const co=new Uint8Array(256);let uo=co.length;const lo=/^(?:[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,fo=[];for(let Sm=0;256>Sm;++Sm)fo.push((Sm+256).toString(16).substr(1));let po,ho,mo=0,vo=0;const yo=a("v3",48,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),nr.createHash("md5").update(e).digest()})),Eo=a("v5",80,(function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),nr.createHash("sha1").update(e).digest()})),_o=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||po,c=void 0!==e.clockseq?e.clockseq:ho;if(null==a||null==c){const t=e.random||(e.rng||r)();null==a&&(a=po=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==c&&(c=ho=16383&(t[6]<<8|t[7]))}let u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:vo+1;const f=u-mo+(l-vo)/1e4;if(0>f&&void 0===e.clockseq&&(c=c+1&16383),(0>f||u>mo)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");mo=u,vo=l,ho=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:Eo,validate:o,version:function(e){if(!o(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var go,wo={};class bo 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 Oo,Ro,Io,So,To,Po,Co,Ao,xo={},No=(Io||(Io=1,Ro=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(Oo)return xo;Oo=1;var o,i=Er,s=mr,a=yr,c=_r,u=gr;return xo.httpOverHttp=function(t){var n=new e(t);return n.request=s.request,n},xo.httpsOverHttp=function(n){var r=new e(n);return r.request=s.request,r.createSocket=t,r.defaultPort=443,r},xo.httpOverHttps=function(t){var n=new e(t);return n.request=a.request,n},xo.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(){},xo.debug=o,xo}()),Ro);(To=So||(So={}))[To.OK=200]="OK",To[To.MultipleChoices=300]="MultipleChoices",To[To.MovedPermanently=301]="MovedPermanently",To[To.ResourceMoved=302]="ResourceMoved",To[To.SeeOther=303]="SeeOther",To[To.NotModified=304]="NotModified",To[To.UseProxy=305]="UseProxy",To[To.SwitchProxy=306]="SwitchProxy",To[To.TemporaryRedirect=307]="TemporaryRedirect",To[To.PermanentRedirect=308]="PermanentRedirect",To[To.BadRequest=400]="BadRequest",To[To.Unauthorized=401]="Unauthorized",To[To.PaymentRequired=402]="PaymentRequired",To[To.Forbidden=403]="Forbidden",To[To.NotFound=404]="NotFound",To[To.MethodNotAllowed=405]="MethodNotAllowed",To[To.NotAcceptable=406]="NotAcceptable",To[To.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",To[To.RequestTimeout=408]="RequestTimeout",To[To.Conflict=409]="Conflict",To[To.Gone=410]="Gone",To[To.TooManyRequests=429]="TooManyRequests",To[To.InternalServerError=500]="InternalServerError",To[To.NotImplemented=501]="NotImplemented",To[To.BadGateway=502]="BadGateway",To[To.ServiceUnavailable=503]="ServiceUnavailable",To[To.GatewayTimeout=504]="GatewayTimeout",(Co=Po||(Po={})).Accept="accept",Co.ContentType="content-type",(Ao||(Ao={})).ApplicationJson="application/json";const Lo=[So.MovedPermanently,So.ResourceMoved,So.SeeOther,So.TemporaryRedirect,So.PermanentRedirect],$o=[So.BadGateway,So.ServiceUnavailable,So.GatewayTimeout],Do=["OPTIONS","GET","DELETE","HEAD"];class Uo extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,Uo.prototype)}statusCode;result}class ko{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 jo{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[Po.Accept]=this._getExistingOrDefaultHeader(t,Po.Accept,Ao.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[Po.Accept]=this._getExistingOrDefaultHeader(n,Po.Accept,Ao.ApplicationJson),n[Po.ContentType]=this._getExistingOrDefaultHeader(n,Po.ContentType,Ao.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[Po.Accept]=this._getExistingOrDefaultHeader(n,Po.Accept,Ao.ApplicationJson),n[Po.ContentType]=this._getExistingOrDefaultHeader(n,Po.ContentType,Ao.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[Po.Accept]=this._getExistingOrDefaultHeader(n,Po.Accept,Ao.ApplicationJson),n[Po.ContentType]=this._getExistingOrDefaultHeader(n,Po.ContentType,Ao.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&&Do.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=await this.requestRaw(i,n),a&&a.message&&a.message.statusCode===So.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&&Lo.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||!$o.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 ko(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?vr:hr;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({},Mo(this.requestOptions.headers),Mo(e||{})):Mo(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;return this.requestOptions&&this.requestOptions.headers&&(r=Mo(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||hr.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?No.httpsOverHttps:No.httpsOverHttp:s?No.httpOverHttps:No.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=o?new vr.Agent(e):new hr.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===So.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 Uo(e,o);t.result=i.result,r(t)}else n(i)}))}}const Mo=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{}),Fo=t(Object.freeze(Object.defineProperty({__proto__:null,get Headers(){return Po},HttpClient:jo,HttpClientError:Uo,HttpClientResponse:ko,get HttpCodes(){return So},get MediaTypes(){return Ao},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 Bo,Go,Ho,Vo,qo,zo={},Wo={},Xo={},Ko=f(),Yo={};const Qo=[{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 Jo;const Zo=e((Jo||(Jo=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=Qo,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))}(Yo)),Yo)),{GITHUB_ACTIONS:ei}=Zo;var ti,ni,ri,oi,ii,si,ai,ci,ui,li,fi,pi,di,hi,mi,vi,yi,Ei,_i,gi,wi,bi,Oi,Ri={exports:{}},Ii={exports:{}},Si={};const Ti=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(Oi)return Ri.exports;Oi=1;const t=wr,n=y(),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(bi)return wi;bi=1;const n="win32"===process.platform;return wi={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},wi}();return Ri.exports=e,Ri.exports.spawn=e,Ri.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},Ri.exports._parse=n,Ri.exports._enoent=r,Ri.exports}()),Pi=({env:e=Sr.env,...t}={})=>{const n=E({env:e={...e}});return t.path=e[n],e[n]=(({cwd:e=Sr.cwd(),path:t=Sr.env[E()],preferLocal:n=!0,execPath:r=Sr.execPath,addExecPath:o=!0}={})=>{const i=e instanceof URL?Ur(e):e,s=Lr.resolve(i),a=[];return n&&((e,t)=>{let n;for(;n!==t;)e.push(Lr.join(t,"node_modules/.bin")),n=t,t=Lr.resolve(t,"..")})(a,s),o&&((e,t,n)=>{const r=t instanceof URL?Ur(t):t;e.push(Lr.resolve(n,r,".."))})(a,r,s),[...a,t].join(Lr.delimiter)})(t),e},Ci=(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);!Ai(o,i)&&r||Object.defineProperty(e,n,i)},Ai=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)},xi=(e,t)=>`/* Wrapped ${e}*/\n${t}`,Ni=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Li=Object.getOwnPropertyDescriptor(function(){}.toString,"name"),$i=new WeakMap,Di=(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($i.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))Ci(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=xi.bind(null,r,""+t);Object.defineProperty(o,"name",Li),Object.defineProperty(e,"toString",{...Ni,value:o})})(e,t,r)}(i,e),$i.set(i,r),i};Di.callCount=e=>{if(!$i.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return $i.get(e)};const Ui=(e,t)=>({name:"SIGRT"+(t+1),number:ki+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ki=34,ji=[{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"}],Mi=()=>{const e=Array.from({length:64-ki+1},Ui);return[...ji,...e].map(Fi)},Fi=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=jr,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}},Bi=({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}],Gi=(()=>{const e=Mi();return Object.fromEntries(e.map(Bi))})(),Hi=(e,t)=>{const n=t.find((({name:t})=>jr.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))};(()=>{const e=Mi(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=Hi(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 Vi=({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=Sr.cwd()}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:Gi[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}`,v="[object Error]"==={}.toString.call(r),y=v?`${m}\n${r.message}`:m,E=[y,t,e].filter(Boolean).join("\n");return v?(r.originalMessage=r.message,r.message=E):r=Error(E),r.shortMessage=y,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},qi=["stdin","stdout","stderr"];var zi,Wi,Xi={exports:{}},Ki={exports:{}};const Yi=e(function(){if(Wi)return Xi.exports;Wi=1;var e=Yr.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=br,o=(zi||(zi=1,(v=Ki).exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&v.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&v.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Ki.exports),i=/^win/i.test(e.platform),s=_r;"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),Xi.exports=function(e,o){if(!t(Yr.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(Yr.process)&&(l=!1,o.forEach((function(t){try{e.removeListener(t,u[t])}catch(n){}})),e.emit=h,e.reallyExit=p,n.count-=1)};Xi.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(Yr.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))}})),Xi.exports.signals=function(){return o};var l=!1,f=function(){!l&&t(Yr.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)};Xi.exports.load=f;var p=e.reallyExit,d=function(n){t(Yr.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(Yr.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 Xi.exports=function(){return function(){}};var v;return Xi.exports}()),Qi=(e,t="SIGTERM",n={})=>{const r=e(t);return Ji(e,t,n,r),r},Ji=(e,t,n,r)=>{if(!Zi(t,n,r))return;const o=ts(n),i=setTimeout((()=>{e("SIGKILL")}),o);i.unref&&i.unref()},Zi=(e,{forceKillAfterTimeout:t},n)=>es(e)&&!1!==t&&n,es=e=>e===kr.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),ts=({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},ns=(e,t)=>{e.kill()&&(t.isCanceled=!0)},rs=(e,t,n)=>{if("string"==typeof n)return e[t].pipe(Mr(n)),e;if(g(n))return e[t].pipe(n),e;if(!(e=>e instanceof Dr&&"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 os,is,ss,as={exports:{}};const cs=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(ss)return as.exports;ss=1;const{constants:t}=Or,n=Rr,{promisify:r}=gr,o=function(){if(is)return os;is=1;const{PassThrough:e}=Rr;return os=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 as.exports=e,as.exports.buffer=(t,n)=>e(t,{...n,encoding:"buffer"}),as.exports.array=(t,n)=>e(t,{...n,array:!0}),as.exports.MaxBufferError=s,as.exports}());var us,ls;const fs=e(function(){if(ls)return us;ls=1;const{PassThrough:e}=Rr;return us=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}}()),ps=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},ds=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(n){return n.bufferedData}}},hs=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?cs(e,{encoding:t,maxBuffer:r}):cs.buffer(e,{maxBuffer:r})},ms=(async()=>{})().constructor.prototype,vs=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(ms,e)])),ys=(e,t)=>{for(const[n,r]of vs){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}},Es=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],_s=/^[\w.-]+$/,gs=/"/g,ws=(e,t)=>Es(e,t).join(" "),bs=(e,t)=>Es(e,t).map((e=>(e=>"string"!=typeof e||_s.test(e)?e:`"${e.replace(gs,'\\"')}"`)(e))).join(" "),Os=/ +/g,Rs=e=>{const t=[];for(const n of e.trim().split(Os)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t},Is=Ir("execa").enabled,Ss=(e,t)=>(e+"").padStart(t,"0"),Ts=(e,{verbose:t})=>{t&&Sr.stderr.write(`[${(()=>{const e=new Date;return`${Ss(e.getHours(),2)}:${Ss(e.getMinutes(),2)}:${Ss(e.getSeconds(),2)}.${Ss(e.getMilliseconds(),3)}`})()}] ${e}\n`)},Ps=(e,t,n={})=>{const r=Ti._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||Sr.cwd(),execPath:Sr.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Is,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const i=t?{...Sr.env,...e}:e;return n?Pi({env:i,cwd:r,execPath:o}):i})(n),n.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return qi.map((t=>e[t]));if((e=>qi.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+qi.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,qi.length)},((e,n)=>t[n]))})(n),"win32"===Sr.platform&&"cmd"===Lr.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Cs=(e,t,n)=>"string"==typeof t||Nr.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 As,xs,Ns,Ls,$s,Ds,Us={},ks={},js={},Ms={};const Fs=e(function(){if(Ds)return $s;Ds=1;const{isexe:e,sync:t}=O(),{join:n,delimiter:r,sep:o,posix:i}=rr,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 $s=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)},$s}());let Bs;var Gs,Hs={};I(Hs,"hasSudo",(()=>S)),I(Hs,"isRoot",(()=>T)),I(Hs,"isSudo",(()=>P)),I(Hs,"prependSudo",(()=>C)),I(Hs,"defaultExecOptions",(()=>Vs)),I(Hs,"execRootSync",(()=>A)),I(Hs,"execRoot",(()=>x));let Vs={stdio:"inherit",shell:!0};I(Gs={},"isAdminWindows",(()=>qs)),I(Gs,"isAdminPosix",(()=>zs)),I(Gs,"isAdmin",(()=>$));let qs=async function(){if("win32"!==process.platform)return!1;try{return await w("fsutil",["dirty","query",process.env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&async function(){try{return await w("fltmc"),!0}catch{return!1}}()}},zs=T;var Ws,Xs,Ks,Ys,Qs,Js,Zs,ea,ta,na,ra,oa,ia,sa,aa,ca,ua,la,fa,pa,da,ha,ma,va,ya,Ea;I({},"grantUserWriteAccess",(()=>D));var _a,ga,wa,ba,Oa,Ra,Ia,Sa,Ta,Pa,Ca,Aa,xa,Na,La,$a,Da,Ua,ka,ja,Ma,Fa,Ba,Ga,Ha,Va,qa,za,Wa,Xa,Ka,Ya,Qa,Ja,Za,ec,tc,nc,rc,oc,ic,sc,ac,cc,uc,lc,fc,pc,dc,hc,mc,vc,yc,Ec,_c,gc,wc,bc,Oc,Rc,Ic,Sc,Tc,Pc,Cc,Ac,xc,Nc,Lc,$c,Dc,Uc,kc,jc,Mc,Fc,Bc,Gc,Hc,Vc,qc,zc,Wc,Xc,Kc,Yc,Qc,Jc,Zc,eu,tu,nu,ru,ou,iu,su,au,cu,uu,lu,fu,pu,du,hu,mu,vu,yu,Eu,_u,gu,wu,bu,Ou,Ru,Iu,Su,Tu,Pu,Cu,Au,xu,Nu,Lu,$u,Du,Uu,ku,ju,Mu,Fu,Bu={},Gu={exports:{}},Hu={exports:{}},Vu={exports:{}},qu={exports:{}},zu={},Wu={},Xu={exports:{}},Ku={},Yu={},Qu={},Ju={};const Zu=e(function(){if(Fu)return Mu;Fu=1;var e=k(),t=M(),n=function(){if(qc)return Vc;qc=1;var e=F(),t=G(),n=H(),r=ee(),o=M();return Vc=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)},Vc}();return Mu=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=Wc?zc:(Wc=1,zc=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=(Kc?Xc:(Kc=1,Xc=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(iu)return ou;iu=1;var e=te(),t=Object.create;return ou=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(au)return su;au=1;var e=te();return su=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(uu)return cu;uu=1;var e=te(),t=Object.create;return cu=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(hu)return zu;hu=1;var e=Z(),t=ne(),n=q(),r=z(),o=re(),i=[].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,v=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(y){}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(v,this,t),n.cb=r,l=n,i):s.call(v,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(Cu)return Ku;Cu=1;var e=F(),t=G(),n=H(),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($u)return Yu;$u=1;var e=Z(),t=G(),n=re(),r=ie(),o=function(){if(Lu)return Nu;Lu=1;var e=j(),t=xu?Au:(xu=1,Au=2147483647);return Nu=function(n){if((n=e(n))>t)throw new TypeError(n+" exceeds maximum possible timeout");return n}}(),i=H(),s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;i.maxAge=function(l,f,p){var d,h,m,v;(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(),v&&(v[e]&&"nextTick"!==v[e]&&clearTimeout(v[e]),v[e]=setTimeout((function(){delete v[e]}),m),"function"==typeof v[e].unref&&v[e].unref())})),f.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],v&&("nextTick"!==v[e]&&clearTimeout(v[e]),delete v[e])})),p.preFetch&&(m=!0===p.preFetch||isNaN(p.preFetch)?.333:a(c(Number(p.preFetch),1),0))&&(v={},m=(1-m)*l,f.on("get"+h,(function(t,o,i){v[t]||(v[t]="nextTick",n((function(){var n;"nextTick"===v[t]&&(delete v[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={},v&&(t(v,(function(e){"nextTick"!==e&&clearTimeout(e)})),v={})})))}}(),i.max&&function(){if(ku)return Qu;ku=1;var e=j(),t=function(){if(Uu)return Du;Uu=1;var e=j(),t=Object.create,n={}.hasOwnProperty;return Du=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=H();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(ju)return Ju;ju=1;var e=K(),t=H(),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)}}()),el=/^~(?=$|\/|\\)/,{appendFile:tl,readFile:nl,writeFile:rl}=Qn,ol=ce("~/.bashrc"),il=Zu((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 sl,al;const cl=e(function(){if(al)return sl;al=1;const e=Wn,t="win32"!==e.platform(),n=e.release(),r=/(\d+\.\d+)\.(\d+)/;return sl=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 ul,ll,fl,pl,dl,hl={exports:{}};const ml=e((fl||(fl=1,pl=function(){if(ll)return ul;ll=1;var e=/[|\\{}()[\]^$+*?.]/g;return ul=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}}(),dl=function(e){return e.split("").reverse().join("")},hl.exports=function(e,t,n){var r;return null==t&&(t="'"),null==n&&(n="\\"),"string"!=typeof e?e:(r=RegExp("(["+pl(t)+"])(?!"+pl(n)+")","g"),dl(dl(e).replace(r,"$1"+n)))}),hl.exports)),{GITHUB_ACTIONS:vl}=Zo,{appendFile:yl}=Qn,{GITHUB_ACTIONS:El}=Zo,{appendFile:_l}=Qn,gl=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];var wl,bl,Ol,Rl={exports:{}};const Il=e(ye());var Sl;const Tl=e((Sl||(Sl=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 Pl,Cl,Al,xl,Nl,Ll={exports:{}};const $l=e(Nl?xl:(Nl=1,xl=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(Al)return Cl;Al=1;const n=ye(),r=Pl?Ll.exports:(Pl=1,Ll.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 Cl={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 Dl,Ul;const kl=e(Ul?Dl:(Ul=1,Dl={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 jl,Ml,Fl,Bl,Gl,Hl,Vl,ql,zl,Wl,Xl,Kl,Yl,Ql,Jl,Zl,ef,tf,nf,rf,of,sf,af,cf,uf,lf,ff,pf,df,hf,mf,vf,yf,Ef,_f,gf,wf,bf,Of,Rf,If,Sf,Tf,Pf,Cf,Af,xf,Nf,Lf,$f,Df,Uf,kf,jf,Mf,Ff,Bf,Gf,Hf,Vf,qf,zf,Wf,Xf,Kf,Yf,Qf,Jf,Zf,ep,tp,np,rp,op,ip,sp,ap,cp,up,lp,fp,pp,dp,hp,mp,vp,yp,Ep,_p,gp,wp,bp={exports:{}};const Op=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(wp)return gp;wp=1;var n=Hr,r=Be(),o=Wn,i=rr,s=Yn,a=yr,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(),v=process.env.XDG_CONFIG_HOME||i.join(m,".config","simple-update-notifier"),y=function(e){return i.join(v,"".concat(e.replace("@","").replace("/","__"),".json"))},E=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)}))}))]}))}))},_=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(v)||s.mkdirSync(v,{recursive:!0}),e=function(e){var t=y(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,E(o.name,u)]:[3,2];case 1:return i=t.sent(),c=y(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 gp=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,_(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]}}))}))}}()),Rp={name:"setup-cpp",version:"0.46.0"};var Ip,Sp,Tp,Pp,Cp,Ap,xp,Np,Lp,$p,Dp,Up,kp,jp={},Mp={},Fp={},Bp={},Gp={},Hp={},Vp={},qp={},zp={},Wp={},Xp={},Kp={},Yp=We(),Qp={},Jp=(kp||(kp=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(Yn),s=zr,a=t(rr),c=t(mr),u=t(yr),l=_r,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)}(Qp)),Qp);const{GITHUB_ACTIONS:Zp}=Zo,{appendFile:ed}=Qn,td="Dpkg::Lock::Timeout=300";let nd=!1;const rd=Zu((function(e=Ze()){A(e,"nala"!==e?["update","-y","-o",td]:["update","-o",td],{...Vs,env:Qe(e)}),nd=!0}));var od,id;(id=od||(od={}))[id.NameDashVersion=0]="NameDashVersion",id[id.NameEqualsVersion=1]="NameEqualsVersion",id[id.Name=2]="Name",id[id.None=3]="None";const sd=Zu((async function(e){rd(e);const t=await nt([{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}],e);0!==t.length&&A(e,["install","-y","--fix-broken","-o",td,...t],{...Vs,env:Qe(e)})}),{promise:!0}),ad=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"],cd="/etc/apt/trusted.gpg.d",ud="keyserver.ubuntu.com";let ld,fd,pd,dd,hd,md=!1,vd=!1,yd=!1,Ed=!1;const _d=/Version\s*:\s*(.*)/g;let gd=!1;var wd,bd;const Od=e(function(){if(bd)return wd;bd=1;var e=rr;return wd=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 Rd={},Id={};wt(Id,"name",(()=>bt));var Sd={};wt(Sd,"normalizeTrim",(()=>Ot));var Td={};wt(Td,"addExeExt",(()=>Rt));var Pd={};wt(Pd,"addNamePrefix",(()=>It));var Cd={};wt(Cd,"addNameSuffix",(()=>St));var Ad={};wt(Ad,"addShExt",(()=>Tt));var xd={};wt(xd,"addShRelativePrefix",(()=>Pt));var Nd={};wt(Nd,"removeExt",(()=>Ct));var Ld={};wt(Ld,"replaceExt",(()=>At));var $d={};wt($d,"isPathInside",(()=>xt)),gt(Rd,Id),gt(Rd,Sd),gt(Rd,Td),gt(Rd,Pd),gt(Rd,Cd),gt(Rd,Ad),gt(Rd,xd),gt(Rd,Nd),gt(Rd,Ld),gt(Rd,$d);const Dd=e(Ue()),Ud=e($e()),kd=["x64","amd64","x86_64","win64","64","amd64_x86","amd64_arm64"],jd=["x86","i386","ia32","win32","32","x32"],Md=["aarch64","arm64","woa64","arm"],Fd=["armv7","armv7a"],Bd=["powerpc64le","ppc64le"],Gd=["sparc64"],Hd=["sparcv9"];var Vd,qd,zd,Wd,Xd,Kd,Yd,Qd,Jd,Zd,eh,th={},nh={exports:{}},rh={exports:{}},oh=nh.exports,ih={},sh=function(){function e(e,t){const n=[];t=t||E.arch();const r=_.join(s(),e);if(v.existsSync(r)){const e=v.readdirSync(r);for(const i of e)if(o(i)){const e=_.join(r,i,t||"");v.existsSync(e)&&v.existsSync(e+".complete")&&n.push(i)}}return n}function t(e){return p(this,void 0,void 0,(function*(){return e||(e=_.join(a(),I.default())),yield m.mkdirP(e),e}))}function n(e,t,n){return p(this,void 0,void 0,(function*(){const r=_.join(s(),e,w.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=_.join(s(),e,w.clean(t)||t,n||"");v.writeFileSync(r+".complete",""),h.debug("finished caching tool")}function o(e){const t=w.clean(e)||"";h.debug("isExplicit: "+t);const n=null!=w.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)=>w.gt(e,t)?1:-1))).length-1;r>=0;r--){const o=e[r];if(w.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 R.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function a(){const e=process.env.RUNNER_TEMP||"";return R.ok(e,"Expected RUNNER_TEMP to be defined"),e}function c(e,t){const n=Yr[e];return void 0!==n?n:t}if(Zd)return th;Zd=1;var u=th.__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=th.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=th.__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=th.__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=th.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(th,"__esModule",{value:!0}),th.evaluateVersions=th.isExplicitVersion=th.findFromManifest=th.getManifestFromRepo=th.findAllVersions=th.find=th.cacheFile=th.cacheDir=th.extractZip=th.extractXar=th.extractTar=th.extract7z=th.downloadTool=th.HTTPError=void 0;const h=f(We()),m=f(qe()),v=f(Yn),y=f((qd||(qd=1,function(e,t){var n=oh&&oh.__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=oh&&oh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=oh&&oh.__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=oh&&oh.__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(Nt()),a=We(),c=Wn,u=wr,l=Yn;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}}(nh,nh.exports)),nh.exports)),E=f(Wn),_=f(rr),g=f(Fo),w=f(Nt()),b=f(Rr),O=f(gr),R=br,I=d(function(){if(Qd)return Yd;Qd=1;var e=function(){if(Wd)return zd;Wd=1;var e=nr;return zd=function(){return e.randomBytes(16)}}(),t=function(){if(Kd)return Xd;Kd=1;for(var e=[],t=0;256>t;++t)e[t]=(t+256).toString(16).substr(1);return Xd=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 Yd=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)}}()),S=ze(),T=function(){if(Jd)return ih;Jd=1;var e=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]}),t=ih.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=ih.__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=ih.__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(ih,"__esModule",{value:!0}),ih.RetryHelper=void 0;const o=n(We());return ih.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)))}))}},ih}();class P extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}th.HTTPError=P;const C="win32"===process.platform,A="darwin"===process.platform;return th.downloadTool=function(e,t,n,r){return p(this,void 0,void 0,(function*(){t=t||_.join(a(),I.default()),yield m.mkdirP(_.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(v.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=O.promisify(b.pipeline),a=c("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>i.message))();let u=!1;try{return yield s(a,v.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)))}))},th.extract7z=function(e,n,r){return p(this,void 0,void 0,(function*(){R.ok(C,"extract7z() not supported on current OS"),R.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 S.exec(`"${r}"`,t,n)}finally{process.chdir(o)}else{const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${_.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 S.exec(`"${e}"`,t,r)}finally{process.chdir(o)}}return n}))},th.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 S.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 S.exec("tar",s),n}))},th.extractXar=function(e,n,r=[]){return p(this,void 0,void 0,(function*(){let o;R.ok(A,"extractXar() not supported on current OS"),R.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 S.exec(`"${i}"`,(s=o,Array.from(new Set(s)))),n}))},th.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 S.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 S.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 S.exec(`"${n}"`,r,{cwd:t})}))}(e,n),n}))},th.cacheDir=function(e,t,o,i){return p(this,void 0,void 0,(function*(){if(o=w.clean(o)||o,i=i||E.arch(),h.debug(`Caching tool ${t} ${o} ${i}`),h.debug("source dir: "+e),!v.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const s=yield n(t,o,i);for(const t of v.readdirSync(e)){const n=_.join(e,t);yield m.cp(n,s,{recursive:!0})}return r(t,o,i),s}))},th.cacheFile=function(e,t,o,i,s){return p(this,void 0,void 0,(function*(){if(i=w.clean(i)||i,s=s||E.arch(),h.debug(`Caching tool ${o} ${i} ${s}`),h.debug("source file: "+e),!v.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield n(o,i,s),c=_.join(a,t);return h.debug("destination file "+c),yield m.cp(e,c),r(o,i,s),a}))},th.find=function(t,n,r){if(!t)throw Error("toolName parameter is required");if(!n)throw Error("versionSpec parameter is required");r=r||E.arch(),o(n)||(n=i(e(t,r),n));let a="";if(n){n=w.clean(n)||"";const e=_.join(s(),t,n,r);h.debug("checking cache: "+e),v.existsSync(e)&&v.existsSync(e+".complete")?(h.debug(`Found tool in cache ${t} ${n} ${r}`),a=e):h.debug("not found")}return a},th.findAllVersions=e,th.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}))},th.findFromManifest=function(e,t,n,r=E.arch()){return p(this,void 0,void 0,(function*(){return yield y._findMatch(e,t,n,r)}))},th.isExplicitVersion=o,th.evaluateVersions=i,th}(),ah={};const ch=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(eh)return ah;eh=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.retryAsPromised=ah.TimeoutError=void 0;class t extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}return ah.TimeoutError=t,ah.retryAsPromised=e,ah.default=e,ah}());var uh=qe();let lh;const{GITHUB_ACTIONS:fh}=to,ph=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||Jn,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||Zn,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||er,e.mkdirSync=e.mkdirSync||n.mkdirSync||tr,t},dh=(e,t,n)=>{const r=sr(e),o={...ph(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 dh(e,o,dh(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}}},hh=Object.assign((async(e,t,n)=>{const r=ph(t);r.recursive=!1;const o=sr(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 hh(o,r).then((t=>hh(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:dh}),mh=async(e,t,n)=>{if(n!==t)return e.statAsync(t).then((e=>e.isDirectory()?n:void 0),(n=>n&&"ENOENT"===n.code?mh(e,sr(t),t):void 0))},vh=(e,t,n)=>{if(n!==t)try{return e.statSync(t).isDirectory()?n:void 0}catch(r){return r&&"ENOENT"===r.code?vh(e,sr(t),t):void 0}},yh=(e,t)=>{const n=ph(t);if(n.recursive=!0,sr(e)===e)return n.mkdirSync(e,n);const r=vh(n,e);try{return n.mkdirSync(e,n),r}catch(o){if(o&&"ENOENT"===o.code)return dh(e,n);throw o}},Eh=Object.assign((async(e,t)=>{const n={...ph(t),recursive:!0};return sr(e)===e?await n.mkdirAsync(e,n):mh(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return hh(e,n);throw t}))))}),{sync:yh}),_h=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,gh=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(e),"win32"===_h){const t=/[*|"<>?:]/,{root:n}=dr(e);if(t.test(e.substring(n.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e},wh=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),bh=+wh[0]>10||10==+wh[0]&&+wh[1]>=12,Oh=bh?e=>ph(e).mkdirSync===tr:()=>!1,Rh=Object.assign(bh?e=>ph(e).mkdir===Jn:()=>!1,{sync:Oh}),Ih=(e,t)=>{e=gh(e);const n=ph(t);return Oh(n)?yh(e,n):dh(e,n)},Sh=Object.assign((async(e,t)=>{e=gh(e);const n=ph(t);return Rh(n)?Eh(e,n):hh(e,n)}),{mkdirpSync:Ih,mkdirpNative:Eh,mkdirpNativeSync:yh,mkdirpManual:hh,mkdirpManualSync:dh,sync:Ih,native:Eh,nativeSync:yh,manual:hh,manualSync:dh,useNative:Rh,useNativeSync:Oh});var Th=ze();const Ph=e(Te()),Ch=e(Me()),Ah=e(Ie()),xh=/v?(\d\S*)/,Nh=Zu((function(){const e="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),t=rr.join(e,"versions.json");return JSON.parse(Yn.readFileSync(t,"utf-8"))})),{GITHUB_ACTIONS:Lh}=to,$h=Zu((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 Th.getExecOutput(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push(or(n,"Scripts"),or(n,"Scripts","bin"),or(n,"bin")),function(e){return[...new Set(e)]}(t)}),{promise:!0});var Dh,Uh={},kh=function(){if(Dh)return Uh;Dh=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.getUbuntuVersion=void 0;const e=wr;return Uh.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[]},Uh}();const jh=Zu((async function(){try{if(mt()){try{null===Fs.sync("lsb_release",{nothrow:!0})&&await it([{name:"lsb-release"}])}catch{return Zt()}const e=await kh.getUbuntuVersion();return 0===e.length?Zt():e}return null}catch(e){return d(""+e),null}}),{promise:!0}),Mh=Zu((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 Sh(e),await Sh(or(e,"trash")),await Sh(or(e,"shared")),await Sh(or(e,"venv")),e}),{promise:!0}),Fh=Zu((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,Im),await Sh(e),e}),{promise:!0});let Bh;const Gh=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"]]]),Hh=Zu((function(){if("darwin"!==process.platform)return[];const{version:e}=function(e){e=Number((e||kr.release()).split(".")[0]);const[t,n]=Gh.get(e)||["Unknown",""];return{name:t,version:n}}();return e.split(".").map((e=>Number.parseInt(e,10)))})),Vh=e(Se()),{GITHUB_ACTIONS:qh}=to,zh="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),{GITHUB_ACTIONS:Wh}=to,Xh="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),Kh="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),Yh="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url));class Qh extends Error{constructor(e){super(e),this.name="TimeoutError"}}class Jh extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const Zh=e=>void 0===globalThis.DOMException?new Jh(e):new DOMException(e),em=e=>{const t=void 0===e.reason?Zh("This operation was aborted."):e.reason;return t instanceof Error?t:Zh(t)};var tm,nm={},rm=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(tm)return nm;tm=1;const i=We(),s=wr,a=Yn,c=rr,u=Hr,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"};nm.vsversion_to_versionnumber=e,nm.vsversion_to_year=t;const m=l+"\\Microsoft Visual Studio\\Installer";return nm.findWithVswhere=n,nm.findVcvarsall=r,nm.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 v=(""+s.execSync(`set && cls && ${h} && cls && set`,{shell:"cmd"})).split("\f"),y=v[0].split("\r\n"),E=v[1].split("\r\n"),_=v[2].split("\r\n"),g=E.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 w={};for(let r of y){const[e,t]=r.split("=");w[e]=t}i.startGroup("Environment variables");for(let r of _){if(!r.includes("="))continue;let[e,t]=r.split("=");t!==w[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")},nm}(),om=(e=>(e[e.All=0]="All",e[e.ClangFormat=1]="ClangFormat",e[e.Core=2]="Core",e))(om||{});const im="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),{GITHUB_ACTIONS:sm}=to,am="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url)),cm=Zu((async function(e,t,n){const[r,o]=await Promise.all([Un(e,t,n),jn()]);return await lm(n),r}),{promise:!0}),um=Zu((async function(e){if(mt())if(e>10)try{await it([{name:"libtinfo6"}])}catch(t){m(`Failed to install libtinfo6 ${t}\nSkipping the dependency`)}else try{await it([{name:"libtinfo5"}])}catch(t){m(`Failed to install libtinfo5 ${t}\nManually installing the package`);const e=`libtinfo5_6.3-2ubuntu0.1_${kd.includes(process.arch)?"amd64":Md.includes(process.arch)?"arm64":process.arch}.deb`,n="http://launchpadlibrarian.net/666971015/"+e,r=new Jp.DownloaderHelper(n,Kn(),{fileName:e});r.on("error",(e=>{throw Error(`Failed to download ${n}: ${e}`)})),await r.start(),A("dpkg",["-i",or(Kn(),e)])}else ht()?await _t("ncurses5-compat-libs",void 0,"yay"):dt()&&await Et([{name:"ncurses-compat-libs"}])}),{promise:!0}),lm=Zu((async function(e){"linux"===process.platform&&await wn(Vt("gcc",void 0,await jh()),"",e,40)}),{promise:!0}),{GITHUB_ACTIONS:fm}=to,pm="string"==typeof __dirname?__dirname:rr.dirname(Wr(import.meta.url));let dm,hm=!1;const mm={llvm:Ln,clang:Ln,"clang++":Ln},vm={gcc:wn,"g++":wn},ym={mingw:vn},Em={msvc:Mn,cl:Mn,msbuild:Mn,visualstudio:Mn},_m={appleclang:Cn,applellvm:Cn,"apple-clang":Cn,"apple-llvm":Cn},gm={cmakelang:an,"cmake-lint":an,"cmake-format":an,cmakelint:an,cmakeformat:an},wm=["llvm","clang","clang++","clang-tidy","clang-format","clangtidy","clangformat"],bm={nala:async function(e,t,n){if(!mt())return;if("string"==typeof dm)return{binDir:dm};const r=Fs.sync("nala",{nothrow:!0});if(null!==r)return dm=sr(r),{binDir:dm};await it([{name:"python3-apt"}]),dm="/usr/bin";try{const t=await rt({name:"nala",version:e});if(void 0!==t)return await it([{name:t}]),{binDir:dm}}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:dm}}catch(o){m("Failed to install nala-legacy: "+o)}return await async function(){const e=new Jp.DownloaderHelper("https://gitlab.com/volian/volian-archive/-/raw/main/install-nala.sh",Kn(),{fileName:"install-nala.sh"});e.on("error",(e=>{throw Error("Failed to download install-nala.sh: "+e)})),await e.start();const t=or(Kn(),"install-nala.sh"),n=await Ar(t,"utf8");await xr(t,n.replace(/sudo/g,"")),await it([{name:"wget"}]);try{A("bash",[t])}catch(o){p("Failed to install nala via installer: "+o),A("apt",["install","-y","-t","nala","nala"])}}(),{binDir:dm}},brew:ut,choco:vt,python:Wt,powershell:Hn,pwsh:Hn,...mm,...vm,...ym,...Em,..._m,...gm,cmake:Bt,ninja:In,vcpkg:async function(e,t,n){return hm&&null!==Fs.sync("vcpkg",{nothrow:!0})?{binDir:sr(Fs.sync("vcpkg"))}:("linux"===process.platform&&(ht()?await Promise.all([_t("curl"),_t("zip"),_t("unzip"),_t("tar"),_t("git"),_t("pkg-config")]):dt()?await Et([{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(or(t,Tt("bootstrap-vcpkg",".bat")))?h(`Vcpkg folder already exists at ${t}. Skipping the clone`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:sr(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,Im),hm=!0,{binDir:t})},bazel:async function(e,t,n){switch(process.platform){case"win32":return yt("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 Et([{name:"dnf-plugins-core"}]),A("dnf",["copr","enable","vbatts/bazel"]),Et([{name:"bazel4"}]);if(mt())return A("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 en("conan",e)},meson:function(e,t,n){return en("meson",e)},gcovr:function(e,t,n){return en("gcovr",e)},opencppcoverage:Fn,OpenCppCoverage:Fn,ccache:function(e,t,n){switch(process.platform){case"win32":return yt("ccache",e);case"darwin":return pt("ccache",e);case"linux":if(ht())return _t("ccache",e);if(dt())return Et([{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 yt("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 ch((()=>yt("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(or(e,"doxygen.exe")))return await de(e,Im),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}()};return await cn(Vt("graphviz",void 0)),t}case"darwin":{const e=await pt("doxygen",void 0,{formula:!0});return Hh()[0]>11&&await cn(Vt("graphviz",void 0)),e}case"linux":{let o;if(""===e||ht()||dt())if(ht())o=await _t("doxygen",e);else{if(dt())return Et([{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 Mt("doxygen",e,ln,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 cn(Vt("graphviz",void 0,await jh())),o}default:throw Error("Unsupported platform")}},graphviz:cn,cppcheck:async function(e,t,n){switch(process.platform){case"win32":return await yt("cppcheck",e),{binDir:await async function(){const e="C:/Program Files/Cppcheck";return await de(e,Im),e}()};case"darwin":return pt("cppcheck",e);case"linux":if(ht())return _t("cppcheck",e);if(dt())return Et([{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 en("cpplint",e,{pythonVersion:">=3.8.0"})},flawfinder:function(e,t,n){return en("flawfinder",e)},lizard:function(e,t,n){return en("lizard",e)},infer:function(e,t,n){return Mt("infer",e,On,t,n)},"clang-tidy":Dn,clangtidy:Dn,"clang-format":$n,clangformat:$n,vcvarsall:An,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 Mt("kcov",o,Tn,t,n),a):(a=await Mt("kcov",o,Sn,t,n),ht()?await _t("binutils"):dt()?await Et([{name:"binutils"}]):mt()&&await it([{name:"libbinutils"}]),a)},make:async function(e,t,n){switch(process.platform){case"win32":return yt("make",e);case"darwin":{await pt("make",e);const t=or(ft(),"opt/make/libexec/gnubin");return await de(t,Im),{binDir:t}}case"linux":if(ht())return _t("make",e);if(dt())return Et([{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 Mt("task",e,Vn,t,n)},sevenzip:Lt,"7zip":Lt,"7z":Lt},Om=Object.keys(bm),Rm=["compiler","architecture","timeout",...Om],Im={rcPath:ce("~/.cpprc"),guard:"cpp"};(async function(e){let t=Promise.resolve();eo.GITHUB_ACTIONS||(t=async function(){try{await Op({pkg:Rp})}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:[...Rm,"timeout"],default:Object.fromEntries(Rm.map((e=>[e,qn(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=$l.create({autoloadLocales:!0});let c,u;$l.addLocale(kl),Il.addLocale(Tl);const l=await jh(),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===Ah(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=>!zt(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,[...wm,"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 _t("python-pygments"));let h=!1;for(const p of Om){if(eo.isCI&&0!==s.length){h=!0;break}const e=n[p];void 0!==e&&(c=Date.now(),await xn(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(Yp.startGroup(`Installing ${e} ${t??""}`),e in mm)a=await Ln(Vt("llvm",t,n),or(r,"llvm"),o),await fe("GCOV","llvm-cov gcov",Im);else if(e in vm){const e=Vt("gcc",t,n);a=await wn(e,or(r,"gcc"),o),await bn(e)}else if(e in ym){const e=Vt("mingw",t,n);a=await vn(e,or(r,"gcc"),o),await bn(e)}else e in Em?a=await Mn(Vt("msvc",t,n),or(r,"msvc"),o):e in _m?await Cn():(a=null,s.push("Unsupported compiler "+e))}catch(c){p(c),s.push(`Failed to install the ${e} ${t}`)}null!==a&&i.push(zn(e,a)),Yp.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 nl(e.rcPath,"utf-8")).split("\n"),n=[...new Set(t.reverse())].reverse();await rl(e.rcPath,n.join("\n")),await D(e.rcPath)}}(Im),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"),!eo.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{jo as H,Yp as a,to as b,Yr as c,Th as e,e as g,m as i,ae as p,Be as r,sh as t,d as w}; //# sourceMappingURL=setup-cpp.mjs.map diff --git a/package-version.json b/package-version.json index 8100ce49..36609375 100644 --- a/package-version.json +++ b/package-version.json @@ -1,4 +1,4 @@ { "name": "setup-cpp", - "version": "0.45.0" + "version": "0.46.0" } diff --git a/package.json b/package.json index 474d15e6..dc303226 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-cpp", - "version": "0.45.0", + "version": "0.46.0", "description": "Install all the tools required for building and testing C++/C projects.", "repository": "https://github.com/aminya/setup-cpp", "license": "Apache-2.0",