diff --git a/dist/main/index.js b/dist/main/index.js index aa21425..45049b9 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={6180:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;var n=Object.getOwnPropertyDescriptor(r,a);if(!n||("get"in n?!r.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return r[a]}}}Object.defineProperty(e,i,n)}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const o=s(a(2186));function getInputs(){const e={bucket:o.getInput("bucket",{required:true}),path:o.getInput("path",{required:true}),key:o.getInput("key",{required:true}),keyFileName:o.getInput("key-file-name"),compressionMethod:o.getInput("compression-method"),restoreKeys:o.getInput("restore-keys").split(",").filter((e=>e))};o.debug(`Loaded inputs: ${JSON.stringify(e)}.`);return e}r.getInputs=getInputs},3109:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;var n=Object.getOwnPropertyDescriptor(r,a);if(!n||("get"in n?!r.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return r[a]}}}Object.defineProperty(e,i,n)}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});const p=s(a(2186));const l=s(a(5438));const c=a(8174);const d=a(8065);const h=a(6180);const v=a(9249);const g=a(8429);function getBestMatch(e,r,a){return o(this,void 0,void 0,(function*(){const i=`${l.context.repo.owner}/${l.context.repo.repo}`;p.debug(`Will lookup for the file ${i}/${r}.tar`);const n=e.file(`${i}/${r}.tar`);const[s]=yield n.exists().catch((e=>{p.error("Failed to check if an exact match exists");throw e}));p.debug(`Exact file name: ${n.name}.`);if(s){console.log(`🙌 Found exact match from cache for key '${r}'.`);return[n,"exact"]}else{console.log(`🔸 No exact match found for key '${r}'.`)}const o=yield e.getFiles({prefix:`${i}/${a[a.length-1]}`}).then((([e])=>e.sort(((e,r)=>new Date(r.metadata.updated).getTime()-new Date(e.metadata.updated).getTime())))).catch((e=>{p.error("Failed to list cache candidates");throw e}));if(p.isDebug()){p.debug(`Candidates: ${JSON.stringify(o.map((e=>({name:e.name,metadata:{updated:e.metadata.updated}}))))}.`)}for(const e of a){const r=o.find((r=>r.name.startsWith(`${i}/${e}`)));if(r){console.log(`🤝 Found match from cache for restore key '${e}'.`);return[r,"partial"]}else{console.log(`🔸 No cache candidate found for restore key '${e}'.`)}}return[null,"none"]}))}function main(){var e,r;return o(this,void 0,void 0,(function*(){const a=(0,h.getInputs)();const i=(new c.Storage).bucket(a.bucket);const n=`${l.context.repo.owner}/${l.context.repo.repo}`;const s=`${n}/${a.key}.tar`;const[y,b]=yield p.group("🔍 Searching the best cache archive available",(()=>getBestMatch(i,a.key,a.restoreKeys)));p.debug(`Best match kind: ${b}.`);if(!y){(0,v.saveState)({bucket:a.bucket,path:a.path,cacheHitKind:"none",targetFileName:s,keyFileName:a.keyFileName});p.setOutput("cache-hit","false");console.log("😢 No cache candidate found.");return}p.debug(`Best match name: ${y.name}.`);const w=yield y.getMetadata().then((([e])=>e)).catch((e=>{p.error("Failed to read object metadatas");throw e}));p.debug(`Best match metadata: ${JSON.stringify(w)}.`);const E=(e=w===null||w===void 0?void 0:w.metadata)===null||e===void 0?void 0:e["Cache-Action-Compression-Method"];p.debug(`Best match compression method: ${E}.`);if(!w||!E){(0,v.saveState)({bucket:a.bucket,path:a.path,cacheHitKind:"none",targetFileName:s});p.setOutput("cache-hit","false");console.log("😢 No cache candidate found (missing metadata).");return}const x=(r=process.env.GITHUB_WORKSPACE)!==null&&r!==void 0?r:process.cwd();return(0,d.withFile)((e=>o(this,void 0,void 0,(function*(){yield p.group("🌐 Downloading cache archive from bucket",(()=>o(this,void 0,void 0,(function*(){console.log(`🔹 Downloading file '${y.name}'...`);return y.download({destination:e.path})})))).catch((e=>{p.error("Failed to download the file");throw e}));yield p.group("🗜️ Extracting cache archive",(()=>(0,g.extractTar)(e.path,E,x))).catch((e=>{p.error("Failed to extract the archive");throw e}));(0,v.saveState)({path:a.path,bucket:a.bucket,cacheHitKind:b,targetFileName:s});p.setOutput("cache-hit",b==="exact");console.log("✅ Successfully restored cache.")}))))}))}void main().catch((e=>{p.error(e);p.setFailed(e)}))},9249:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;var n=Object.getOwnPropertyDescriptor(r,a);if(!n||("get"in n?!r.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return r[a]}}}Object.defineProperty(e,i,n)}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getState=r.saveState=void 0;const o=s(a(2186));function saveState(e){o.debug(`Saving state: ${JSON.stringify(e)}.`);o.saveState("bucket",e.bucket);o.saveState("path",e.path);o.saveState("cache-hit-kind",e.cacheHitKind);o.saveState("target-file-name",e.targetFileName);o.saveState("key-file-name",e.keyFileName);o.saveState("compression-method",e.compressionMethod)}r.saveState=saveState;function getState(){const e={path:o.getState("path"),bucket:o.getState("bucket"),cacheHitKind:o.getState("cache-hit-kind"),targetFileName:o.getState("target-file-name"),keyFileName:o.getState("key-file-name"),compressionMethod:o.getState("compression-method")};o.debug(`Loaded state: ${JSON.stringify(e)}.`);return e}r.getState=getState},8429:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;var n=Object.getOwnPropertyDescriptor(r,a);if(!n||("get"in n?!r.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return r[a]}}}Object.defineProperty(e,i,n)}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.extractTar=r.createTar=r.CompressionMethod=void 0;const p=s(a(1514));const l=s(a(1383));const c=a(9249);const d="1.3.2";var h;(function(e){e["GZIP"]="gzip";e["ZSTD_WITHOUT_LONG"]="zstd (without long)";e["ZSTD"]="zstd"})(h=r.CompressionMethod||(r.CompressionMethod={}));function getTarCompressionMethod(){return o(this,void 0,void 0,(function*(){if(process.platform==="win32"){return h.GZIP}const e=(0,c.getState)();if(e.compressionMethod){return h.GZIP}const[r,a]=yield p.getExecOutput("zstd",["--version"],{ignoreReturnCode:true,silent:true}).then((e=>e.stdout.trim())).then((e=>{const r=/v(\d+(?:\.\d+){0,})/.exec(e);return[e,r?r[1]:null]})).catch((()=>["",null]));if(!(r===null||r===void 0?void 0:r.toLowerCase().includes("zstd command line interface"))){return h.GZIP}else if(!a||l.lt(a,d)){return h.ZSTD_WITHOUT_LONG}else{return h.ZSTD}}))}function createTar(e,r,a){return o(this,void 0,void 0,(function*(){const i=yield getTarCompressionMethod();console.log(`🔹 Using '${i}' compression method.`);const n=i===h.GZIP?["-z"]:i===h.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -T0"]:["--use-compress-program","zstd -T0 --long=30"];yield p.exec("tar",["-c",...n,"--posix","-P","-f",e,"-C",a,...r]);return i}))}r.createTar=createTar;function extractTar(e,r,a){return o(this,void 0,void 0,(function*(){console.log(`🔹 Detected '${r}' compression method from object metadata.`);const i=r===h.GZIP?["-z"]:r===h.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -d"]:["--use-compress-program","zstd -d --long=30"];yield p.exec("tar",["-x",...i,"-P","-f",e,"-C",a])}))}r.extractTar=extractTar},7351:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const o=s(a(2037));const p=a(5278);function issueCommand(e,r,a){const i=new Command(e,r,a);process.stdout.write(i.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,a){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=a}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(r){r=false}else{e+=","}e+=`${a}=${escapeProperty(i)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return p.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return p.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const p=a(7351);const l=a(717);const c=a(5278);const d=s(a(2037));const h=s(a(1017));const v=a(8041);var g;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(g=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const a=c.toCommandValue(r);process.env[e]=a;const i=process.env["GITHUB_ENV"]||"";if(i){return l.issueFileCommand("ENV",l.prepareKeyValueMessage(e,r))}p.issueCommand("set-env",{name:e},a)}r.exportVariable=exportVariable;function setSecret(e){p.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueFileCommand("PATH",e)}else{p.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return a}return a.trim()}r.getInput=getInput;function getMultilineInput(e,r){const a=getInput(e,r).split("\n").filter((e=>e!==""));if(r&&r.trimWhitespace===false){return a}return a.map((e=>e.trim()))}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const a=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,r);if(a.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return l.issueFileCommand("OUTPUT",l.prepareKeyValueMessage(e,r))}process.stdout.write(d.EOL);p.issueCommand("set-output",{name:e},c.toCommandValue(r))}r.setOutput=setOutput;function setCommandEcho(e){p.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=g.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){p.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){p.issueCommand("error",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){p.issueCommand("warning",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){p.issueCommand("notice",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+d.EOL)}r.info=info;function startGroup(e){p.issue("group",e)}r.startGroup=startGroup;function endGroup(){p.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return o(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield r()}finally{endGroup()}return a}))}r.group=group;function saveState(e,r){const a=process.env["GITHUB_STATE"]||"";if(a){return l.issueFileCommand("STATE",l.prepareKeyValueMessage(e,r))}p.issueCommand("save-state",{name:e},c.toCommandValue(r))}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken;var y=a(1327);Object.defineProperty(r,"summary",{enumerable:true,get:function(){return y.summary}});var b=a(1327);Object.defineProperty(r,"markdownSummary",{enumerable:true,get:function(){return b.markdownSummary}});var w=a(2981);Object.defineProperty(r,"toPosixPath",{enumerable:true,get:function(){return w.toPosixPath}});Object.defineProperty(r,"toWin32Path",{enumerable:true,get:function(){return w.toWin32Path}});Object.defineProperty(r,"toPlatformPath",{enumerable:true,get:function(){return w.toPlatformPath}})},717:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.prepareKeyValueMessage=r.issueFileCommand=void 0;const o=s(a(7147));const p=s(a(2037));const l=a(5840);const c=a(5278);function issueFileCommand(e,r){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}o.appendFileSync(a,`${c.toCommandValue(r)}${p.EOL}`,{encoding:"utf8"})}r.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,r){const a=`ghadelimiter_${l.v4()}`;const i=c.toCommandValue(r);if(e.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(i.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${e}<<${a}${p.EOL}${i}${p.EOL}${a}`}r.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,r,a){"use strict";var i=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const n=a(6255);const s=a(5526);const o=a(2186);class OidcClient{static createHttpClient(e=true,r=10){const a={allowRetries:e,maxRetries:r};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new 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 new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var r;return i(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const i=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(r=i.result)===null||r===void 0?void 0:r.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);r=`${r}&audience=${a}`}o.debug(`ID token url is ${r}`);const a=yield OidcClient.getCall(r);o.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},2981:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.toPlatformPath=r.toWin32Path=r.toPosixPath=void 0;const o=s(a(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}r.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}r.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,o.sep)}r.toPlatformPath=toPlatformPath},1327:function(e,r,a){"use strict";var i=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.summary=r.markdownSummary=r.SUMMARY_DOCS_URL=r.SUMMARY_ENV_VAR=void 0;const n=a(2037);const s=a(7147);const{access:o,appendFile:p,writeFile:l}=s.promises;r.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";r.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return i(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[r.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${r.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield o(e,s.constants.R_OK|s.constants.W_OK)}catch(r){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,r,a={}){const i=Object.entries(a).map((([e,r])=>` ${e}="${r}"`)).join("");if(!r){return`<${e}${i}>`}return`<${e}${i}>${r}`}write(e){return i(this,void 0,void 0,(function*(){const r=!!(e===null||e===void 0?void 0:e.overwrite);const a=yield this.filePath();const i=r?l:p;yield i(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return i(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,r=false){this._buffer+=e;return r?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,r){const a=Object.assign({},r&&{lang:r});const i=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(i).addEOL()}addList(e,r=false){const a=r?"ol":"ul";const i=e.map((e=>this.wrap("li",e))).join("");const n=this.wrap(a,i);return this.addRaw(n).addEOL()}addTable(e){const r=e.map((e=>{const r=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:r,data:a,colspan:i,rowspan:n}=e;const s=r?"th":"td";const o=Object.assign(Object.assign({},i&&{colspan:i}),n&&{rowspan:n});return this.wrap(s,a,o)})).join("");return this.wrap("tr",r)})).join("");const a=this.wrap("table",r);return this.addRaw(a).addEOL()}addDetails(e,r){const a=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(a).addEOL()}addImage(e,r,a){const{width:i,height:n}=a||{};const s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n});const o=this.wrap("img",null,Object.assign({src:e,alt:r},s));return this.addRaw(o).addEOL()}addHeading(e,r){const a=`h${r}`;const i=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const n=this.wrap(i,e);return this.addRaw(n).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,r){const a=Object.assign({},r&&{cite:r});const i=this.wrap("blockquote",e,a);return this.addRaw(i).addEOL()}addLink(e,r){const a=this.wrap("a",e,{href:r});return this.addRaw(a).addEOL()}}const c=new Summary;r.markdownSummary=c;r.summary=c},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}r.toCommandProperties=toCommandProperties},1514:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getExecOutput=r.exec=void 0;const p=a(1576);const l=s(a(8159));function exec(e,r,a){return o(this,void 0,void 0,(function*(){const i=l.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];r=i.slice(1).concat(r||[]);const s=new l.ToolRunner(n,r,a);return s.exec()}))}r.exec=exec;function getExecOutput(e,r,a){var i,n;return o(this,void 0,void 0,(function*(){let s="";let o="";const l=new p.StringDecoder("utf8");const c=new p.StringDecoder("utf8");const d=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stdout;const h=(n=a===null||a===void 0?void 0:a.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{o+=c.write(e);if(h){h(e)}};const stdOutListener=e=>{s+=l.write(e);if(d){d(e)}};const v=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const g=yield exec(e,r,Object.assign(Object.assign({},a),{listeners:v}));s+=l.end();o+=c.end();return{exitCode:g,stdout:s,stderr:o}}))}r.getExecOutput=getExecOutput},8159:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.argStringToArray=r.ToolRunner=void 0;const p=s(a(2037));const l=s(a(2361));const c=s(a(2081));const d=s(a(1017));const h=s(a(7436));const v=s(a(1962));const g=a(9512);const y=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,r,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const a=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=r?"":"[command]";if(y){if(this._isCmdFile()){n+=a;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${a}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(a);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=a;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,r,a){try{let i=r+e.toString();let n=i.indexOf(p.EOL);while(n>-1){const e=i.substring(0,n);a(e);i=i.substring(n+p.EOL.length);n=i.indexOf(p.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){r+=" ";r+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_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 r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const i of e){if(r.some((e=>e===i))){a=true;break}}if(!a){return e}let i='"';let n=true;for(let r=e.length;r>0;r--){i+=e[r-1];if(n&&e[r-1]==="\\"){i+="\\"}else if(e[r-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.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 r='"';let a=true;for(let i=e.length;i>0;i--){r+=e[i-1];if(a&&e[i-1]==="\\"){r+="\\"}else if(e[i-1]==='"'){a=true;r+="\\"}else{a=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${r}"`}return a}exec(){return o(this,void 0,void 0,(function*(){if(!v.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((e,r)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const a=this._cloneExecOptions(this.options);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+p.EOL)}const i=new ExecState(a,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield v.exists(this.options.cwd))){return r(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const s=c.spawn(n,this._getSpawnArgs(a),this._getSpawnOptions(this.options,n));let o="";if(s.stdout){s.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(s.stderr){s.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const r=a.failOnStdErr?a.errStream:a.outStream;r.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}s.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));s.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));s.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((a,i)=>{if(o.length>0){this.emit("stdline",o)}if(l.length>0){this.emit("errline",l)}s.removeAllListeners();if(a){r(a)}else{e(i)}}));if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}}))))}))}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let a=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let s=0;s0){r.push(n);n=""}continue}append(o)}if(n.length>0){r.push(n.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=g.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},4087:(e,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Context=void 0;const i=a(7147);const n=a(2037);class Context{constructor(){var e,r,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(i.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(i.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${n.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:`https://github.com`;this.graphqlUrl=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}r.Context=Context},5438:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokit=r.context=void 0;const o=s(a(4087));const p=a(3030);r.context=new o.Context;function getOctokit(e,r,...a){const i=p.GitHub.plugin(...a);return new i(p.getOctokitOptions(e,r))}r.getOctokit=getOctokit},7914:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getApiBaseUrl=r.getProxyAgent=r.getAuthString=void 0;const o=s(a(6255));function getAuthString(e,r){if(!e&&!r.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&r.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof r.auth==="string"?r.auth:`token ${e}`}r.getAuthString=getAuthString;function getProxyAgent(e){const r=new o.HttpClient;return r.getAgent(e)}r.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}r.getApiBaseUrl=getApiBaseUrl},3030:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokitOptions=r.GitHub=r.defaults=r.context=void 0;const o=s(a(4087));const p=s(a(7914));const l=a(6762);const c=a(3044);const d=a(4193);r.context=new o.Context;const h=p.getApiBaseUrl();r.defaults={baseUrl:h,request:{agent:p.getProxyAgent(h)}};r.GitHub=l.Octokit.plugin(c.restEndpointMethods,d.paginateRest).defaults(r.defaults);function getOctokitOptions(e,r){const a=Object.assign({},r||{});const i=p.getAuthString(e,a);if(i){a.auth=i}return a}r.getOctokitOptions=getOctokitOptions},5526:function(e,r){"use strict";var a=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.PersonalAccessTokenCredentialHandler=r.BearerCredentialHandler=r.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}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 false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{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 false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.HttpClient=r.isHttps=r.HttpClientResponse=r.HttpClientError=r.getProxyUrl=r.MediaTypes=r.Headers=r.HttpCodes=void 0;const p=s(a(3685));const l=s(a(5687));const c=s(a(9835));const d=s(a(4294));var h;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(h=r.HttpCodes||(r.HttpCodes={}));var v;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(v=r.Headers||(r.Headers={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){const r=c.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const y=[h.MovedPermanently,h.ResourceMoved,h.SeeOther,h.TemporaryRedirect,h.PermanentRedirect];const b=[h.BadGateway,h.ServiceUnavailable,h.GatewayTimeout];const w=["OPTIONS","GET","DELETE","HEAD"];const E=10;const x=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){const r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=r||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(e,r){return o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,r||{})}))}get(e,r){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,r||{})}))}del(e,r){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,r||{})}))}post(e,r,a){return o(this,void 0,void 0,(function*(){return this.request("POST",e,r,a||{})}))}patch(e,r,a){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,r,a||{})}))}put(e,r,a){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,r,a||{})}))}head(e,r){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,r||{})}))}sendStream(e,r,a,i){return o(this,void 0,void 0,(function*(){return this.request(e,r,a,i)}))}getJson(e,r={}){return o(this,void 0,void 0,(function*(){r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,g.ApplicationJson);const a=yield this.get(e,r);return this._processResponse(a,this.requestOptions)}))}postJson(e,r,a={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(r,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,g.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,g.ApplicationJson);const n=yield this.post(e,i,a);return this._processResponse(n,this.requestOptions)}))}putJson(e,r,a={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(r,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,g.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,g.ApplicationJson);const n=yield this.put(e,i,a);return this._processResponse(n,this.requestOptions)}))}patchJson(e,r,a={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(r,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,g.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,g.ApplicationJson);const n=yield this.patch(e,i,a);return this._processResponse(n,this.requestOptions)}))}request(e,r,a,i){return o(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const n=new URL(r);let s=this._prepareRequest(e,n,i);const o=this._allowRetries&&w.includes(e)?this._maxRetries+1:1;let p=0;let l;do{l=yield this.requestRaw(s,a);if(l&&l.message&&l.message.statusCode===h.Unauthorized){let e;for(const r of this.handlers){if(r.canHandleAuthentication(l)){e=r;break}}if(e){return e.handleAuthentication(this,s,a)}else{return l}}let r=this._maxRedirects;while(l.message.statusCode&&y.includes(l.message.statusCode)&&this._allowRedirects&&r>0){const o=l.message.headers["location"];if(!o){break}const p=new URL(o);if(n.protocol==="https:"&&n.protocol!==p.protocol&&!this._allowRedirectDowngrade){throw new 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.")}yield l.readBody();if(p.hostname!==n.hostname){for(const e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}s=this._prepareRequest(e,p,i);l=yield this.requestRaw(s,a);r--}if(!l.message.statusCode||!b.includes(l.message.statusCode)){return l}p+=1;if(p{function callbackForResult(e,r){if(e){i(e)}else if(!r){i(new Error("Unknown error"))}else{a(r)}}this.requestRawWithCallback(e,r,callbackForResult)}))}))}requestRawWithCallback(e,r,a){if(typeof r==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let i=false;function handleResult(e,r){if(!i){i=true;a(e,r)}}const n=e.httpModule.request(e.options,(e=>{const r=new HttpClientResponse(e);handleResult(undefined,r)}));let s;n.on("socket",(e=>{s=e}));n.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));n.on("error",(function(e){handleResult(e)}));if(r&&typeof r==="string"){n.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){n.end()}));r.pipe(n)}else{n.end()}}getAgent(e){const r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,a){const i={};i.parsedUrl=r;const n=i.parsedUrl.protocol==="https:";i.httpModule=n?l:p;const s=n?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(i.options)}}return i}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,a){let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||i||a}_getAgent(e){let r;const a=c.getProxyUrl(e);const i=a&&a.hostname;if(this._keepAlive&&i){r=this._proxyAgent}if(this._keepAlive&&!i){r=this._agent}if(r){return r}const n=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||p.globalAgent.maxSockets}if(a&&a.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let i;const o=a.protocol==="https:";if(n){i=o?d.httpsOverHttps:d.httpsOverHttp}else{i=o?d.httpOverHttps:d.httpOverHttp}r=i(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:s};r=n?new l.Agent(e):new p.Agent(e);this._agent=r}if(!r){r=n?l.globalAgent:p.globalAgent}if(n&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return o(this,void 0,void 0,(function*(){e=Math.min(E,e);const r=x*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}))}_processResponse(e,r){return o(this,void 0,void 0,(function*(){return new Promise(((a,i)=>o(this,void 0,void 0,(function*(){const n=e.message.statusCode||0;const s={statusCode:n,result:null,headers:{}};if(n===h.NotFound){a(s)}function dateTimeDeserializer(e,r){if(typeof r==="string"){const e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}let o;let p;try{p=yield e.readBody();if(p&&p.length>0){if(r&&r.deserializeDates){o=JSON.parse(p,dateTimeDeserializer)}else{o=JSON.parse(p)}s.result=o}s.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(p&&p.length>0){e=p}else{e=`Failed request: (${n})`}const r=new HttpClientError(e,n);r.result=s.result;i(r)}else{a(s)}}))))}))}}r.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((r,a)=>(r[a.toLowerCase()]=e[a],r)),{})},9835:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkBypass=r.getProxyUrl=void 0;function getProxyUrl(e){const r=e.protocol==="https:";if(checkBypass(e)){return undefined}const a=(()=>{if(r){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){return new URL(a)}else{return undefined}}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}const i=[e.hostname.toUpperCase()];if(typeof a==="number"){i.push(`${i[0]}:${a}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((r=>r===e))){return true}}return false}r.checkBypass=checkBypass},1962:function(e,r,a){"use strict";var i=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))r[a]=e[a];r["default"]=e;return r};var s;Object.defineProperty(r,"__esModule",{value:true});const o=a(9491);const p=n(a(7147));const l=n(a(1017));s=p.promises,r.chmod=s.chmod,r.copyFile=s.copyFile,r.lstat=s.lstat,r.mkdir=s.mkdir,r.readdir=s.readdir,r.readlink=s.readlink,r.rename=s.rename,r.rmdir=s.rmdir,r.stat=s.stat,r.symlink=s.symlink,r.unlink=s.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return i(this,void 0,void 0,(function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}r.exists=exists;function isDirectory(e,a=false){return i(this,void 0,void 0,(function*(){const i=a?yield r.stat(e):yield r.lstat(e);return i.isDirectory()}))}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,a=1e3,n=1){return i(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");e=l.resolve(e);if(n>=a)return r.mkdir(e);try{yield r.mkdir(e);return}catch(i){switch(i.code){case"ENOENT":{yield mkdirP(l.dirname(e),a,n+1);yield r.mkdir(e);return}default:{let a;try{a=yield r.stat(e)}catch(e){throw i}if(!a.isDirectory())throw i}}}}))}r.mkdirP=mkdirP;function tryGetExecutablePath(e,a){return i(this,void 0,void 0,(function*(){let i=undefined;try{i=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(i&&i.isFile()){if(r.IS_WINDOWS){const r=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const s of a){e=n+s;i=undefined;try{i=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(i&&i.isFile()){if(r.IS_WINDOWS){try{const a=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield r.readdir(a)){if(i===n.toUpperCase()){e=l.join(a,n);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,r,a){"use strict";var i=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))r[a]=e[a];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const s=n(a(2081));const o=n(a(1017));const p=a(3837);const l=n(a(1962));const c=p.promisify(s.exec);function cp(e,r,a={}){return i(this,void 0,void 0,(function*(){const{force:i,recursive:n}=readCopyOptions(a);const s=(yield l.exists(r))?yield l.stat(r):null;if(s&&s.isFile()&&!i){return}const p=s&&s.isDirectory()?o.join(r,o.basename(e)):r;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield l.stat(e);if(c.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,p,0,i)}}else{if(o.relative(e,p)===""){throw new Error(`'${p}' and '${e}' are the same file`)}yield copyFile(e,p,i)}}))}r.cp=cp;function mv(e,r,a={}){return i(this,void 0,void 0,(function*(){if(yield l.exists(r)){let i=true;if(yield l.isDirectory(r)){r=o.join(r,o.basename(e));i=yield l.exists(r)}if(i){if(a.force==null||a.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(r));yield l.rename(e,r)}))}r.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){try{if(yield l.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield c(`rm -rf "${e}"`)}else{yield l.unlink(e)}}}))}r.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){yield l.mkdirP(e)}))}r.mkdirP=mkdirP;function which(e,r){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return r}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}r.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const r=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){r.push(e)}}}if(l.isRooted(e)){const a=yield l.tryGetExecutablePath(e,r);if(a){return[a]}return[]}if(e.includes(o.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){a.push(e)}}}const i=[];for(const n of a){const a=yield l.tryGetExecutablePath(o.join(n,e),r);if(a){i.push(a)}}return i}))}r.findInPath=findInPath;function readCopyOptions(e){const r=e.force==null?true:e.force;const a=Boolean(e.recursive);return{force:r,recursive:a}}function cpDirRecursive(e,r,a,n){return i(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(r);const i=yield l.readdir(e);for(const s of i){const i=`${e}/${s}`;const o=`${r}/${s}`;const p=yield l.lstat(i);if(p.isDirectory()){yield cpDirRecursive(i,o,a,n)}else{yield copyFile(i,o,n)}}yield l.chmod(r,(yield l.stat(e)).mode)}))}function copyFile(e,r,a){return i(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(r);yield l.unlink(r)}catch(e){if(e.code==="EPERM"){yield l.chmod(r,"0666");yield l.unlink(r)}}const a=yield l.readlink(e);yield l.symlink(a,r,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(r))||a){yield l.copyFile(e,r)}}))}},6412:(e,r,a)=>{"use strict"; +(()=>{var __webpack_modules__={6180:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;var n=Object.getOwnPropertyDescriptor(r,a);if(!n||("get"in n?!r.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return r[a]}}}Object.defineProperty(e,i,n)}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const o=s(a(2186));function getInputs(){const e={bucket:o.getInput("bucket",{required:true}),path:o.getInput("path",{required:true}),key:o.getInput("key",{required:true}),keyFileName:o.getInput("key-file-name"),compressionMethod:o.getInput("compression-method"),restoreKeys:o.getInput("restore-keys").split(",").filter((e=>e))};o.debug(`Loaded inputs: ${JSON.stringify(e)}.`);return e}r.getInputs=getInputs},3109:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;var n=Object.getOwnPropertyDescriptor(r,a);if(!n||("get"in n?!r.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return r[a]}}}Object.defineProperty(e,i,n)}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});const p=s(a(2186));const l=s(a(5438));const c=a(8174);const d=a(8065);const h=a(6180);const v=a(9249);const g=a(8429);function getBestMatch(e,r,a){return o(this,void 0,void 0,(function*(){const i=`${l.context.repo.owner}/${l.context.repo.repo}`;p.debug(`Will lookup for the file ${i}/${r}.tar`);const n=e.file(`${i}/${r}.tar`);const[s]=yield n.exists().catch((e=>{p.error("Failed to check if an exact match exists");throw e}));p.debug(`Exact file name: ${n.name}.`);if(s){console.log(`🙌 Found exact match from cache for key '${r}'.`);return[n,"exact"]}else{console.log(`🔸 No exact match found for key '${r}'.`)}const o=yield e.getFiles({prefix:`${i}/${a[a.length-1]}`}).then((([e])=>e.sort(((e,r)=>new Date(r.metadata.updated).getTime()-new Date(e.metadata.updated).getTime())))).catch((e=>{p.error("Failed to list cache candidates");throw e}));if(p.isDebug()){p.debug(`Candidates: ${JSON.stringify(o.map((e=>({name:e.name,metadata:{updated:e.metadata.updated}}))))}.`)}for(const e of a){const r=o.find((r=>r.name.startsWith(`${i}/${e}`)));if(r){console.log(`🤝 Found match from cache for restore key '${e}'.`);return[r,"partial"]}else{console.log(`🔸 No cache candidate found for restore key '${e}'.`)}}return[null,"none"]}))}function main(){var e,r;return o(this,void 0,void 0,(function*(){const a=(0,h.getInputs)();const i=(new c.Storage).bucket(a.bucket);const n=`${l.context.repo.owner}/${l.context.repo.repo}`;const s=`${n}/${a.key}.tar`;const[y,b]=yield p.group("🔍 Searching the best cache archive available",(()=>getBestMatch(i,a.key,a.restoreKeys)));p.debug(`Best match kind: ${b}.`);if(!y){(0,v.saveState)({bucket:a.bucket,path:a.path,compressionMethod:a.compressionMethod,keyFileName:a.keyFileName,cacheHitKind:"none",targetFileName:s});p.setOutput("cache-hit","false");console.log("😢 No cache candidate found.");return}p.debug(`Best match name: ${y.name}.`);const w=yield y.getMetadata().then((([e])=>e)).catch((e=>{p.error("Failed to read object metadatas");throw e}));p.debug(`Best match metadata: ${JSON.stringify(w)}.`);const E=(e=w===null||w===void 0?void 0:w.metadata)===null||e===void 0?void 0:e["Cache-Action-Compression-Method"];p.debug(`Best match compression method: ${E}.`);if(!w||!E){(0,v.saveState)({bucket:a.bucket,path:a.path,compressionMethod:a.compressionMethod,keyFileName:a.keyFileName,cacheHitKind:"none",targetFileName:s});p.setOutput("cache-hit","false");console.log("😢 No cache candidate found (missing metadata).");return}const x=(r=process.env.GITHUB_WORKSPACE)!==null&&r!==void 0?r:process.cwd();return(0,d.withFile)((e=>o(this,void 0,void 0,(function*(){yield p.group("🌐 Downloading cache archive from bucket",(()=>o(this,void 0,void 0,(function*(){console.log(`🔹 Downloading file '${y.name}'...`);return y.download({destination:e.path})})))).catch((e=>{p.error("Failed to download the file");throw e}));yield p.group("🗜️ Extracting cache archive",(()=>(0,g.extractTar)(e.path,E,x))).catch((e=>{p.error("Failed to extract the archive");throw e}));(0,v.saveState)({path:a.path,bucket:a.bucket,compressionMethod:a.compressionMethod,keyFileName:a.keyFileName,cacheHitKind:b,targetFileName:s});p.setOutput("cache-hit",b==="exact");console.log("✅ Successfully restored cache.")}))))}))}void main().catch((e=>{p.error(e);p.setFailed(e)}))},9249:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;var n=Object.getOwnPropertyDescriptor(r,a);if(!n||("get"in n?!r.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return r[a]}}}Object.defineProperty(e,i,n)}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getState=r.saveState=void 0;const o=s(a(2186));function saveState(e){o.debug(`Saving state: ${JSON.stringify(e)}.`);o.saveState("bucket",e.bucket);o.saveState("path",e.path);o.saveState("cache-hit-kind",e.cacheHitKind);o.saveState("target-file-name",e.targetFileName);o.saveState("key-file-name",e.keyFileName);o.saveState("compression-method",e.compressionMethod)}r.saveState=saveState;function getState(){const e={path:o.getState("path"),bucket:o.getState("bucket"),cacheHitKind:o.getState("cache-hit-kind"),targetFileName:o.getState("target-file-name"),keyFileName:o.getState("key-file-name"),compressionMethod:o.getState("compression-method")};o.debug(`Loaded state: ${JSON.stringify(e)}.`);return e}r.getState=getState},8429:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;var n=Object.getOwnPropertyDescriptor(r,a);if(!n||("get"in n?!r.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return r[a]}}}Object.defineProperty(e,i,n)}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.extractTar=r.createTar=r.CompressionMethod=void 0;const p=s(a(1514));const l=s(a(1383));const c=a(9249);const d="1.3.2";var h;(function(e){e["GZIP"]="gzip";e["ZSTD_WITHOUT_LONG"]="zstd (without long)";e["ZSTD"]="zstd"})(h=r.CompressionMethod||(r.CompressionMethod={}));function getTarCompressionMethod(){return o(this,void 0,void 0,(function*(){if(process.platform==="win32"){return h.GZIP}const e=(0,c.getState)();if(e.compressionMethod===h.GZIP){return h.GZIP}const[r,a]=yield p.getExecOutput("zstd",["--version"],{ignoreReturnCode:true,silent:true}).then((e=>e.stdout.trim())).then((e=>{const r=/v(\d+(?:\.\d+){0,})/.exec(e);return[e,r?r[1]:null]})).catch((()=>["",null]));if(!(r===null||r===void 0?void 0:r.toLowerCase().includes("zstd command line interface"))){return h.GZIP}else if(!a||l.lt(a,d)){return h.ZSTD_WITHOUT_LONG}else{return h.ZSTD}}))}function createTar(e,r,a){return o(this,void 0,void 0,(function*(){const i=yield getTarCompressionMethod();console.log(`🔹 Using '${i}' compression method.`);const n=i===h.GZIP?["-z"]:i===h.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -T0"]:["--use-compress-program","zstd -T0 --long=30"];yield p.exec("tar",["-c",...n,"--posix","-P","-f",e,"-C",a,...r]);return i}))}r.createTar=createTar;function extractTar(e,r,a){return o(this,void 0,void 0,(function*(){console.log(`🔹 Detected '${r}' compression method from object metadata.`);const i=r===h.GZIP?["-z"]:r===h.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -d"]:["--use-compress-program","zstd -d --long=30"];yield p.exec("tar",["-x",...i,"-P","-f",e,"-C",a])}))}r.extractTar=extractTar},7351:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const o=s(a(2037));const p=a(5278);function issueCommand(e,r,a){const i=new Command(e,r,a);process.stdout.write(i.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,a){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=a}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(r){r=false}else{e+=","}e+=`${a}=${escapeProperty(i)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return p.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return p.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const p=a(7351);const l=a(717);const c=a(5278);const d=s(a(2037));const h=s(a(1017));const v=a(8041);var g;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(g=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const a=c.toCommandValue(r);process.env[e]=a;const i=process.env["GITHUB_ENV"]||"";if(i){return l.issueFileCommand("ENV",l.prepareKeyValueMessage(e,r))}p.issueCommand("set-env",{name:e},a)}r.exportVariable=exportVariable;function setSecret(e){p.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueFileCommand("PATH",e)}else{p.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return a}return a.trim()}r.getInput=getInput;function getMultilineInput(e,r){const a=getInput(e,r).split("\n").filter((e=>e!==""));if(r&&r.trimWhitespace===false){return a}return a.map((e=>e.trim()))}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const a=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,r);if(a.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return l.issueFileCommand("OUTPUT",l.prepareKeyValueMessage(e,r))}process.stdout.write(d.EOL);p.issueCommand("set-output",{name:e},c.toCommandValue(r))}r.setOutput=setOutput;function setCommandEcho(e){p.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=g.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){p.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){p.issueCommand("error",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){p.issueCommand("warning",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){p.issueCommand("notice",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+d.EOL)}r.info=info;function startGroup(e){p.issue("group",e)}r.startGroup=startGroup;function endGroup(){p.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return o(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield r()}finally{endGroup()}return a}))}r.group=group;function saveState(e,r){const a=process.env["GITHUB_STATE"]||"";if(a){return l.issueFileCommand("STATE",l.prepareKeyValueMessage(e,r))}p.issueCommand("save-state",{name:e},c.toCommandValue(r))}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken;var y=a(1327);Object.defineProperty(r,"summary",{enumerable:true,get:function(){return y.summary}});var b=a(1327);Object.defineProperty(r,"markdownSummary",{enumerable:true,get:function(){return b.markdownSummary}});var w=a(2981);Object.defineProperty(r,"toPosixPath",{enumerable:true,get:function(){return w.toPosixPath}});Object.defineProperty(r,"toWin32Path",{enumerable:true,get:function(){return w.toWin32Path}});Object.defineProperty(r,"toPlatformPath",{enumerable:true,get:function(){return w.toPlatformPath}})},717:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.prepareKeyValueMessage=r.issueFileCommand=void 0;const o=s(a(7147));const p=s(a(2037));const l=a(5840);const c=a(5278);function issueFileCommand(e,r){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}o.appendFileSync(a,`${c.toCommandValue(r)}${p.EOL}`,{encoding:"utf8"})}r.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,r){const a=`ghadelimiter_${l.v4()}`;const i=c.toCommandValue(r);if(e.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(i.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${e}<<${a}${p.EOL}${i}${p.EOL}${a}`}r.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,r,a){"use strict";var i=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const n=a(6255);const s=a(5526);const o=a(2186);class OidcClient{static createHttpClient(e=true,r=10){const a={allowRetries:e,maxRetries:r};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new 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 new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var r;return i(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const i=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(r=i.result)===null||r===void 0?void 0:r.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);r=`${r}&audience=${a}`}o.debug(`ID token url is ${r}`);const a=yield OidcClient.getCall(r);o.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},2981:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.toPlatformPath=r.toWin32Path=r.toPosixPath=void 0;const o=s(a(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}r.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}r.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,o.sep)}r.toPlatformPath=toPlatformPath},1327:function(e,r,a){"use strict";var i=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.summary=r.markdownSummary=r.SUMMARY_DOCS_URL=r.SUMMARY_ENV_VAR=void 0;const n=a(2037);const s=a(7147);const{access:o,appendFile:p,writeFile:l}=s.promises;r.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";r.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return i(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[r.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${r.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield o(e,s.constants.R_OK|s.constants.W_OK)}catch(r){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,r,a={}){const i=Object.entries(a).map((([e,r])=>` ${e}="${r}"`)).join("");if(!r){return`<${e}${i}>`}return`<${e}${i}>${r}`}write(e){return i(this,void 0,void 0,(function*(){const r=!!(e===null||e===void 0?void 0:e.overwrite);const a=yield this.filePath();const i=r?l:p;yield i(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return i(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,r=false){this._buffer+=e;return r?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,r){const a=Object.assign({},r&&{lang:r});const i=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(i).addEOL()}addList(e,r=false){const a=r?"ol":"ul";const i=e.map((e=>this.wrap("li",e))).join("");const n=this.wrap(a,i);return this.addRaw(n).addEOL()}addTable(e){const r=e.map((e=>{const r=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:r,data:a,colspan:i,rowspan:n}=e;const s=r?"th":"td";const o=Object.assign(Object.assign({},i&&{colspan:i}),n&&{rowspan:n});return this.wrap(s,a,o)})).join("");return this.wrap("tr",r)})).join("");const a=this.wrap("table",r);return this.addRaw(a).addEOL()}addDetails(e,r){const a=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(a).addEOL()}addImage(e,r,a){const{width:i,height:n}=a||{};const s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n});const o=this.wrap("img",null,Object.assign({src:e,alt:r},s));return this.addRaw(o).addEOL()}addHeading(e,r){const a=`h${r}`;const i=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const n=this.wrap(i,e);return this.addRaw(n).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,r){const a=Object.assign({},r&&{cite:r});const i=this.wrap("blockquote",e,a);return this.addRaw(i).addEOL()}addLink(e,r){const a=this.wrap("a",e,{href:r});return this.addRaw(a).addEOL()}}const c=new Summary;r.markdownSummary=c;r.summary=c},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}r.toCommandProperties=toCommandProperties},1514:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getExecOutput=r.exec=void 0;const p=a(1576);const l=s(a(8159));function exec(e,r,a){return o(this,void 0,void 0,(function*(){const i=l.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];r=i.slice(1).concat(r||[]);const s=new l.ToolRunner(n,r,a);return s.exec()}))}r.exec=exec;function getExecOutput(e,r,a){var i,n;return o(this,void 0,void 0,(function*(){let s="";let o="";const l=new p.StringDecoder("utf8");const c=new p.StringDecoder("utf8");const d=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stdout;const h=(n=a===null||a===void 0?void 0:a.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{o+=c.write(e);if(h){h(e)}};const stdOutListener=e=>{s+=l.write(e);if(d){d(e)}};const v=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const g=yield exec(e,r,Object.assign(Object.assign({},a),{listeners:v}));s+=l.end();o+=c.end();return{exitCode:g,stdout:s,stderr:o}}))}r.getExecOutput=getExecOutput},8159:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.argStringToArray=r.ToolRunner=void 0;const p=s(a(2037));const l=s(a(2361));const c=s(a(2081));const d=s(a(1017));const h=s(a(7436));const v=s(a(1962));const g=a(9512);const y=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,r,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const a=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=r?"":"[command]";if(y){if(this._isCmdFile()){n+=a;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${a}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(a);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=a;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,r,a){try{let i=r+e.toString();let n=i.indexOf(p.EOL);while(n>-1){const e=i.substring(0,n);a(e);i=i.substring(n+p.EOL.length);n=i.indexOf(p.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){r+=" ";r+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_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 r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const i of e){if(r.some((e=>e===i))){a=true;break}}if(!a){return e}let i='"';let n=true;for(let r=e.length;r>0;r--){i+=e[r-1];if(n&&e[r-1]==="\\"){i+="\\"}else if(e[r-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.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 r='"';let a=true;for(let i=e.length;i>0;i--){r+=e[i-1];if(a&&e[i-1]==="\\"){r+="\\"}else if(e[i-1]==='"'){a=true;r+="\\"}else{a=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${r}"`}return a}exec(){return o(this,void 0,void 0,(function*(){if(!v.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((e,r)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const a=this._cloneExecOptions(this.options);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+p.EOL)}const i=new ExecState(a,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield v.exists(this.options.cwd))){return r(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const s=c.spawn(n,this._getSpawnArgs(a),this._getSpawnOptions(this.options,n));let o="";if(s.stdout){s.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(s.stderr){s.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const r=a.failOnStdErr?a.errStream:a.outStream;r.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}s.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));s.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));s.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((a,i)=>{if(o.length>0){this.emit("stdline",o)}if(l.length>0){this.emit("errline",l)}s.removeAllListeners();if(a){r(a)}else{e(i)}}));if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}}))))}))}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let a=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let s=0;s0){r.push(n);n=""}continue}append(o)}if(n.length>0){r.push(n.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=g.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},4087:(e,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Context=void 0;const i=a(7147);const n=a(2037);class Context{constructor(){var e,r,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(i.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(i.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${n.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:`https://github.com`;this.graphqlUrl=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}r.Context=Context},5438:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokit=r.context=void 0;const o=s(a(4087));const p=a(3030);r.context=new o.Context;function getOctokit(e,r,...a){const i=p.GitHub.plugin(...a);return new i(p.getOctokitOptions(e,r))}r.getOctokit=getOctokit},7914:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getApiBaseUrl=r.getProxyAgent=r.getAuthString=void 0;const o=s(a(6255));function getAuthString(e,r){if(!e&&!r.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&r.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof r.auth==="string"?r.auth:`token ${e}`}r.getAuthString=getAuthString;function getProxyAgent(e){const r=new o.HttpClient;return r.getAgent(e)}r.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}r.getApiBaseUrl=getApiBaseUrl},3030:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokitOptions=r.GitHub=r.defaults=r.context=void 0;const o=s(a(4087));const p=s(a(7914));const l=a(6762);const c=a(3044);const d=a(4193);r.context=new o.Context;const h=p.getApiBaseUrl();r.defaults={baseUrl:h,request:{agent:p.getProxyAgent(h)}};r.GitHub=l.Octokit.plugin(c.restEndpointMethods,d.paginateRest).defaults(r.defaults);function getOctokitOptions(e,r){const a=Object.assign({},r||{});const i=p.getAuthString(e,a);if(i){a.auth=i}return a}r.getOctokitOptions=getOctokitOptions},5526:function(e,r){"use strict";var a=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.PersonalAccessTokenCredentialHandler=r.BearerCredentialHandler=r.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}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 false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{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 false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,a,i){if(i===undefined)i=a;Object.defineProperty(e,i,{enumerable:true,get:function(){return r[a]}})}:function(e,r,a,i){if(i===undefined)i=a;e[i]=r[a]});var n=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))i(r,e,a);n(r,e);return r};var o=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.HttpClient=r.isHttps=r.HttpClientResponse=r.HttpClientError=r.getProxyUrl=r.MediaTypes=r.Headers=r.HttpCodes=void 0;const p=s(a(3685));const l=s(a(5687));const c=s(a(9835));const d=s(a(4294));var h;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(h=r.HttpCodes||(r.HttpCodes={}));var v;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(v=r.Headers||(r.Headers={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){const r=c.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const y=[h.MovedPermanently,h.ResourceMoved,h.SeeOther,h.TemporaryRedirect,h.PermanentRedirect];const b=[h.BadGateway,h.ServiceUnavailable,h.GatewayTimeout];const w=["OPTIONS","GET","DELETE","HEAD"];const E=10;const x=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){const r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=r||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(e,r){return o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,r||{})}))}get(e,r){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,r||{})}))}del(e,r){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,r||{})}))}post(e,r,a){return o(this,void 0,void 0,(function*(){return this.request("POST",e,r,a||{})}))}patch(e,r,a){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,r,a||{})}))}put(e,r,a){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,r,a||{})}))}head(e,r){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,r||{})}))}sendStream(e,r,a,i){return o(this,void 0,void 0,(function*(){return this.request(e,r,a,i)}))}getJson(e,r={}){return o(this,void 0,void 0,(function*(){r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,g.ApplicationJson);const a=yield this.get(e,r);return this._processResponse(a,this.requestOptions)}))}postJson(e,r,a={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(r,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,g.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,g.ApplicationJson);const n=yield this.post(e,i,a);return this._processResponse(n,this.requestOptions)}))}putJson(e,r,a={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(r,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,g.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,g.ApplicationJson);const n=yield this.put(e,i,a);return this._processResponse(n,this.requestOptions)}))}patchJson(e,r,a={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(r,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,g.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,g.ApplicationJson);const n=yield this.patch(e,i,a);return this._processResponse(n,this.requestOptions)}))}request(e,r,a,i){return o(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const n=new URL(r);let s=this._prepareRequest(e,n,i);const o=this._allowRetries&&w.includes(e)?this._maxRetries+1:1;let p=0;let l;do{l=yield this.requestRaw(s,a);if(l&&l.message&&l.message.statusCode===h.Unauthorized){let e;for(const r of this.handlers){if(r.canHandleAuthentication(l)){e=r;break}}if(e){return e.handleAuthentication(this,s,a)}else{return l}}let r=this._maxRedirects;while(l.message.statusCode&&y.includes(l.message.statusCode)&&this._allowRedirects&&r>0){const o=l.message.headers["location"];if(!o){break}const p=new URL(o);if(n.protocol==="https:"&&n.protocol!==p.protocol&&!this._allowRedirectDowngrade){throw new 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.")}yield l.readBody();if(p.hostname!==n.hostname){for(const e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}s=this._prepareRequest(e,p,i);l=yield this.requestRaw(s,a);r--}if(!l.message.statusCode||!b.includes(l.message.statusCode)){return l}p+=1;if(p{function callbackForResult(e,r){if(e){i(e)}else if(!r){i(new Error("Unknown error"))}else{a(r)}}this.requestRawWithCallback(e,r,callbackForResult)}))}))}requestRawWithCallback(e,r,a){if(typeof r==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let i=false;function handleResult(e,r){if(!i){i=true;a(e,r)}}const n=e.httpModule.request(e.options,(e=>{const r=new HttpClientResponse(e);handleResult(undefined,r)}));let s;n.on("socket",(e=>{s=e}));n.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));n.on("error",(function(e){handleResult(e)}));if(r&&typeof r==="string"){n.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){n.end()}));r.pipe(n)}else{n.end()}}getAgent(e){const r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,a){const i={};i.parsedUrl=r;const n=i.parsedUrl.protocol==="https:";i.httpModule=n?l:p;const s=n?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(i.options)}}return i}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,a){let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||i||a}_getAgent(e){let r;const a=c.getProxyUrl(e);const i=a&&a.hostname;if(this._keepAlive&&i){r=this._proxyAgent}if(this._keepAlive&&!i){r=this._agent}if(r){return r}const n=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||p.globalAgent.maxSockets}if(a&&a.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let i;const o=a.protocol==="https:";if(n){i=o?d.httpsOverHttps:d.httpsOverHttp}else{i=o?d.httpOverHttps:d.httpOverHttp}r=i(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:s};r=n?new l.Agent(e):new p.Agent(e);this._agent=r}if(!r){r=n?l.globalAgent:p.globalAgent}if(n&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return o(this,void 0,void 0,(function*(){e=Math.min(E,e);const r=x*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}))}_processResponse(e,r){return o(this,void 0,void 0,(function*(){return new Promise(((a,i)=>o(this,void 0,void 0,(function*(){const n=e.message.statusCode||0;const s={statusCode:n,result:null,headers:{}};if(n===h.NotFound){a(s)}function dateTimeDeserializer(e,r){if(typeof r==="string"){const e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}let o;let p;try{p=yield e.readBody();if(p&&p.length>0){if(r&&r.deserializeDates){o=JSON.parse(p,dateTimeDeserializer)}else{o=JSON.parse(p)}s.result=o}s.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(p&&p.length>0){e=p}else{e=`Failed request: (${n})`}const r=new HttpClientError(e,n);r.result=s.result;i(r)}else{a(s)}}))))}))}}r.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((r,a)=>(r[a.toLowerCase()]=e[a],r)),{})},9835:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkBypass=r.getProxyUrl=void 0;function getProxyUrl(e){const r=e.protocol==="https:";if(checkBypass(e)){return undefined}const a=(()=>{if(r){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){return new URL(a)}else{return undefined}}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}const i=[e.hostname.toUpperCase()];if(typeof a==="number"){i.push(`${i[0]}:${a}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((r=>r===e))){return true}}return false}r.checkBypass=checkBypass},1962:function(e,r,a){"use strict";var i=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))r[a]=e[a];r["default"]=e;return r};var s;Object.defineProperty(r,"__esModule",{value:true});const o=a(9491);const p=n(a(7147));const l=n(a(1017));s=p.promises,r.chmod=s.chmod,r.copyFile=s.copyFile,r.lstat=s.lstat,r.mkdir=s.mkdir,r.readdir=s.readdir,r.readlink=s.readlink,r.rename=s.rename,r.rmdir=s.rmdir,r.stat=s.stat,r.symlink=s.symlink,r.unlink=s.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return i(this,void 0,void 0,(function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}r.exists=exists;function isDirectory(e,a=false){return i(this,void 0,void 0,(function*(){const i=a?yield r.stat(e):yield r.lstat(e);return i.isDirectory()}))}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,a=1e3,n=1){return i(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");e=l.resolve(e);if(n>=a)return r.mkdir(e);try{yield r.mkdir(e);return}catch(i){switch(i.code){case"ENOENT":{yield mkdirP(l.dirname(e),a,n+1);yield r.mkdir(e);return}default:{let a;try{a=yield r.stat(e)}catch(e){throw i}if(!a.isDirectory())throw i}}}}))}r.mkdirP=mkdirP;function tryGetExecutablePath(e,a){return i(this,void 0,void 0,(function*(){let i=undefined;try{i=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(i&&i.isFile()){if(r.IS_WINDOWS){const r=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const s of a){e=n+s;i=undefined;try{i=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(i&&i.isFile()){if(r.IS_WINDOWS){try{const a=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield r.readdir(a)){if(i===n.toUpperCase()){e=l.join(a,n);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,r,a){"use strict";var i=this&&this.__awaiter||function(e,r,a,i){function adopt(e){return e instanceof a?e:new a((function(r){r(e)}))}return new(a||(a=Promise))((function(a,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,r||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)if(Object.hasOwnProperty.call(e,a))r[a]=e[a];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const s=n(a(2081));const o=n(a(1017));const p=a(3837);const l=n(a(1962));const c=p.promisify(s.exec);function cp(e,r,a={}){return i(this,void 0,void 0,(function*(){const{force:i,recursive:n}=readCopyOptions(a);const s=(yield l.exists(r))?yield l.stat(r):null;if(s&&s.isFile()&&!i){return}const p=s&&s.isDirectory()?o.join(r,o.basename(e)):r;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield l.stat(e);if(c.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,p,0,i)}}else{if(o.relative(e,p)===""){throw new Error(`'${p}' and '${e}' are the same file`)}yield copyFile(e,p,i)}}))}r.cp=cp;function mv(e,r,a={}){return i(this,void 0,void 0,(function*(){if(yield l.exists(r)){let i=true;if(yield l.isDirectory(r)){r=o.join(r,o.basename(e));i=yield l.exists(r)}if(i){if(a.force==null||a.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(r));yield l.rename(e,r)}))}r.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){try{if(yield l.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield c(`rm -rf "${e}"`)}else{yield l.unlink(e)}}}))}r.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){yield l.mkdirP(e)}))}r.mkdirP=mkdirP;function which(e,r){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return r}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}r.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const r=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){r.push(e)}}}if(l.isRooted(e)){const a=yield l.tryGetExecutablePath(e,r);if(a){return[a]}return[]}if(e.includes(o.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){a.push(e)}}}const i=[];for(const n of a){const a=yield l.tryGetExecutablePath(o.join(n,e),r);if(a){i.push(a)}}return i}))}r.findInPath=findInPath;function readCopyOptions(e){const r=e.force==null?true:e.force;const a=Boolean(e.recursive);return{force:r,recursive:a}}function cpDirRecursive(e,r,a,n){return i(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(r);const i=yield l.readdir(e);for(const s of i){const i=`${e}/${s}`;const o=`${r}/${s}`;const p=yield l.lstat(i);if(p.isDirectory()){yield cpDirRecursive(i,o,a,n)}else{yield copyFile(i,o,n)}}yield l.chmod(r,(yield l.stat(e)).mode)}))}function copyFile(e,r,a){return i(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(r);yield l.unlink(r)}catch(e){if(e.code==="EPERM"){yield l.chmod(r,"0666");yield l.unlink(r)}}const a=yield l.readlink(e);yield l.symlink(a,r,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(r))||a){yield l.copyFile(e,r)}}))}},6412:(e,r,a)=>{"use strict"; /*! * Copyright 2015 Google Inc. All Rights Reserved. * diff --git a/dist/post/index.js b/dist/post/index.js index a866eac..58ce110 100644 --- a/dist/post/index.js +++ b/dist/post/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={95:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(a,r);if(!n||("get"in n?!a.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return a[r]}}}Object.defineProperty(e,i,n)}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});const p=s(r(2186));const l=s(r(8090));const c=r(8174);const d=s(r(1017));const h=r(8065);const v=r(9249);const g=r(8429);function main(){var e;return o(this,void 0,void 0,(function*(){const a=(0,v.getState)();if(a.cacheHitKind==="exact"){console.log("🌀 Skipping uploading cache as the cache was hit by exact match.");return}const r=new c.Storage({keyFilename:a.keyFileName}).bucket(a.bucket);const i=a.targetFileName;const[n]=yield r.file(i).exists().catch((e=>{p.error("Failed to check if the file already exists");throw e}));p.debug(`Target file name: ${i}.`);if(n){console.log("🌀 Skipping uploading cache as it already exists (probably due to another job).");return}const s=(e=process.env.GITHUB_WORKSPACE)!==null&&e!==void 0?e:process.cwd();const y=yield l.create(a.path,{implicitDescendants:false});const b=yield y.glob().then((e=>e.map((e=>d.relative(s,e)))));p.debug(`Paths: ${JSON.stringify(b)}.`);return(0,h.withFile)((e=>o(this,void 0,void 0,(function*(){const a=yield p.group("🗜️ Creating cache archive",(()=>(0,g.createTar)(e.path,b,s))).catch((e=>{p.error("Failed to create the archive");throw e}));const n={"Cache-Action-Compression-Method":a};p.debug(`Metadata: ${JSON.stringify(n)}.`);yield p.group("🌐 Uploading cache archive to bucket",(()=>o(this,void 0,void 0,(function*(){console.log(`🔹 Uploading file '${i}'...`);yield r.upload(e.path,{destination:i,metadata:{metadata:n}})})))).catch((e=>{p.error("Failed to upload the file");throw e}));console.log("✅ Successfully saved cache.")}))))}))}void main().catch((e=>{p.error(e);p.setFailed(e)}))},9249:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(a,r);if(!n||("get"in n?!a.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return a[r]}}}Object.defineProperty(e,i,n)}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getState=a.saveState=void 0;const o=s(r(2186));function saveState(e){o.debug(`Saving state: ${JSON.stringify(e)}.`);o.saveState("bucket",e.bucket);o.saveState("path",e.path);o.saveState("cache-hit-kind",e.cacheHitKind);o.saveState("target-file-name",e.targetFileName);o.saveState("key-file-name",e.keyFileName);o.saveState("compression-method",e.compressionMethod)}a.saveState=saveState;function getState(){const e={path:o.getState("path"),bucket:o.getState("bucket"),cacheHitKind:o.getState("cache-hit-kind"),targetFileName:o.getState("target-file-name"),keyFileName:o.getState("key-file-name"),compressionMethod:o.getState("compression-method")};o.debug(`Loaded state: ${JSON.stringify(e)}.`);return e}a.getState=getState},8429:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(a,r);if(!n||("get"in n?!a.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return a[r]}}}Object.defineProperty(e,i,n)}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.extractTar=a.createTar=a.CompressionMethod=void 0;const p=s(r(1514));const l=s(r(1383));const c=r(9249);const d="1.3.2";var h;(function(e){e["GZIP"]="gzip";e["ZSTD_WITHOUT_LONG"]="zstd (without long)";e["ZSTD"]="zstd"})(h=a.CompressionMethod||(a.CompressionMethod={}));function getTarCompressionMethod(){return o(this,void 0,void 0,(function*(){if(process.platform==="win32"){return h.GZIP}const e=(0,c.getState)();if(e.compressionMethod){return h.GZIP}const[a,r]=yield p.getExecOutput("zstd",["--version"],{ignoreReturnCode:true,silent:true}).then((e=>e.stdout.trim())).then((e=>{const a=/v(\d+(?:\.\d+){0,})/.exec(e);return[e,a?a[1]:null]})).catch((()=>["",null]));if(!(a===null||a===void 0?void 0:a.toLowerCase().includes("zstd command line interface"))){return h.GZIP}else if(!r||l.lt(r,d)){return h.ZSTD_WITHOUT_LONG}else{return h.ZSTD}}))}function createTar(e,a,r){return o(this,void 0,void 0,(function*(){const i=yield getTarCompressionMethod();console.log(`🔹 Using '${i}' compression method.`);const n=i===h.GZIP?["-z"]:i===h.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -T0"]:["--use-compress-program","zstd -T0 --long=30"];yield p.exec("tar",["-c",...n,"--posix","-P","-f",e,"-C",r,...a]);return i}))}a.createTar=createTar;function extractTar(e,a,r){return o(this,void 0,void 0,(function*(){console.log(`🔹 Detected '${a}' compression method from object metadata.`);const i=a===h.GZIP?["-z"]:a===h.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -d"]:["--use-compress-program","zstd -d --long=30"];yield p.exec("tar",["-x",...i,"-P","-f",e,"-C",r])}))}a.extractTar=extractTar},7351:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const o=s(r(2037));const p=r(5278);function issueCommand(e,a,r){const i=new Command(e,a,r);process.stdout.write(i.toString()+o.EOL)}a.issueCommand=issueCommand;function issue(e,a=""){issueCommand(e,{},a)}a.issue=issue;const l="::";class Command{constructor(e,a,r){if(!e){e="missing.command"}this.command=e;this.properties=a;this.message=r}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(a){a=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return p.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return p.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const p=r(7351);const l=r(717);const c=r(5278);const d=s(r(2037));const h=s(r(1017));const v=r(8041);var g;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(g=a.ExitCode||(a.ExitCode={}));function exportVariable(e,a){const r=c.toCommandValue(a);process.env[e]=r;const i=process.env["GITHUB_ENV"]||"";if(i){return l.issueFileCommand("ENV",l.prepareKeyValueMessage(e,a))}p.issueCommand("set-env",{name:e},r)}a.exportVariable=exportVariable;function setSecret(e){p.issueCommand("add-mask",{},e)}a.setSecret=setSecret;function addPath(e){const a=process.env["GITHUB_PATH"]||"";if(a){l.issueFileCommand("PATH",e)}else{p.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(e,a){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(e,a){const r=getInput(e,a).split("\n").filter((e=>e!==""));if(a&&a.trimWhitespace===false){return r}return r.map((e=>e.trim()))}a.getMultilineInput=getMultilineInput;function getBooleanInput(e,a){const r=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,a);if(r.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a.getBooleanInput=getBooleanInput;function setOutput(e,a){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return l.issueFileCommand("OUTPUT",l.prepareKeyValueMessage(e,a))}process.stdout.write(d.EOL);p.issueCommand("set-output",{name:e},c.toCommandValue(a))}a.setOutput=setOutput;function setCommandEcho(e){p.issue("echo",e?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=g.Failure;error(e)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDebug=isDebug;function debug(e){p.issueCommand("debug",{},e)}a.debug=debug;function error(e,a={}){p.issueCommand("error",c.toCommandProperties(a),e instanceof Error?e.toString():e)}a.error=error;function warning(e,a={}){p.issueCommand("warning",c.toCommandProperties(a),e instanceof Error?e.toString():e)}a.warning=warning;function notice(e,a={}){p.issueCommand("notice",c.toCommandProperties(a),e instanceof Error?e.toString():e)}a.notice=notice;function info(e){process.stdout.write(e+d.EOL)}a.info=info;function startGroup(e){p.issue("group",e)}a.startGroup=startGroup;function endGroup(){p.issue("endgroup")}a.endGroup=endGroup;function group(e,a){return o(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield a()}finally{endGroup()}return r}))}a.group=group;function saveState(e,a){const r=process.env["GITHUB_STATE"]||"";if(r){return l.issueFileCommand("STATE",l.prepareKeyValueMessage(e,a))}p.issueCommand("save-state",{name:e},c.toCommandValue(a))}a.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}a.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))}a.getIDToken=getIDToken;var y=r(1327);Object.defineProperty(a,"summary",{enumerable:true,get:function(){return y.summary}});var b=r(1327);Object.defineProperty(a,"markdownSummary",{enumerable:true,get:function(){return b.markdownSummary}});var w=r(2981);Object.defineProperty(a,"toPosixPath",{enumerable:true,get:function(){return w.toPosixPath}});Object.defineProperty(a,"toWin32Path",{enumerable:true,get:function(){return w.toWin32Path}});Object.defineProperty(a,"toPlatformPath",{enumerable:true,get:function(){return w.toPlatformPath}})},717:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.prepareKeyValueMessage=a.issueFileCommand=void 0;const o=s(r(7147));const p=s(r(2037));const l=r(5840);const c=r(5278);function issueFileCommand(e,a){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}o.appendFileSync(r,`${c.toCommandValue(a)}${p.EOL}`,{encoding:"utf8"})}a.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,a){const r=`ghadelimiter_${l.v4()}`;const i=c.toCommandValue(a);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(i.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${p.EOL}${i}${p.EOL}${r}`}a.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.OidcClient=void 0;const n=r(6255);const s=r(5526);const o=r(2186);class OidcClient{static createHttpClient(e=true,a=10){const r={allowRetries:e,maxRetries:a};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new 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 new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var a;return i(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const i=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(a=i.result)===null||a===void 0?void 0:a.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let a=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);a=`${a}&audience=${r}`}o.debug(`ID token url is ${a}`);const r=yield OidcClient.getCall(a);o.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}a.OidcClient=OidcClient},2981:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.toPlatformPath=a.toWin32Path=a.toPosixPath=void 0;const o=s(r(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}a.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}a.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,o.sep)}a.toPlatformPath=toPlatformPath},1327:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.summary=a.markdownSummary=a.SUMMARY_DOCS_URL=a.SUMMARY_ENV_VAR=void 0;const n=r(2037);const s=r(7147);const{access:o,appendFile:p,writeFile:l}=s.promises;a.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";a.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return i(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[a.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${a.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield o(e,s.constants.R_OK|s.constants.W_OK)}catch(a){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,a,r={}){const i=Object.entries(r).map((([e,a])=>` ${e}="${a}"`)).join("");if(!a){return`<${e}${i}>`}return`<${e}${i}>${a}`}write(e){return i(this,void 0,void 0,(function*(){const a=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const i=a?l:p;yield i(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return i(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,a=false){this._buffer+=e;return a?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,a){const r=Object.assign({},a&&{lang:a});const i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,a=false){const r=a?"ol":"ul";const i=e.map((e=>this.wrap("li",e))).join("");const n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){const a=e.map((e=>{const a=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:a,data:r,colspan:i,rowspan:n}=e;const s=a?"th":"td";const o=Object.assign(Object.assign({},i&&{colspan:i}),n&&{rowspan:n});return this.wrap(s,r,o)})).join("");return this.wrap("tr",a)})).join("");const r=this.wrap("table",a);return this.addRaw(r).addEOL()}addDetails(e,a){const r=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(r).addEOL()}addImage(e,a,r){const{width:i,height:n}=r||{};const s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n});const o=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(o).addEOL()}addHeading(e,a){const r=`h${a}`;const i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const n=this.wrap(i,e);return this.addRaw(n).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,a){const r=Object.assign({},a&&{cite:a});const i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,a){const r=this.wrap("a",e,{href:a});return this.addRaw(r).addEOL()}}const c=new Summary;a.markdownSummary=c;a.summary=c},5278:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.toCommandProperties=a.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}a.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}a.toCommandProperties=toCommandProperties},1514:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getExecOutput=a.exec=void 0;const p=r(1576);const l=s(r(8159));function exec(e,a,r){return o(this,void 0,void 0,(function*(){const i=l.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];a=i.slice(1).concat(a||[]);const s=new l.ToolRunner(n,a,r);return s.exec()}))}a.exec=exec;function getExecOutput(e,a,r){var i,n;return o(this,void 0,void 0,(function*(){let s="";let o="";const l=new p.StringDecoder("utf8");const c=new p.StringDecoder("utf8");const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stdout;const h=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{o+=c.write(e);if(h){h(e)}};const stdOutListener=e=>{s+=l.write(e);if(d){d(e)}};const v=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const g=yield exec(e,a,Object.assign(Object.assign({},r),{listeners:v}));s+=l.end();o+=c.end();return{exitCode:g,stdout:s,stderr:o}}))}a.getExecOutput=getExecOutput},8159:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.argStringToArray=a.ToolRunner=void 0;const p=s(r(2037));const l=s(r(2361));const c=s(r(2081));const d=s(r(1017));const h=s(r(7436));const v=s(r(1962));const g=r(9512);const y=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,a,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=a||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,a){const r=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=a?"":"[command]";if(y){if(this._isCmdFile()){n+=r;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(r);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=r;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,a,r){try{let i=a+e.toString();let n=i.indexOf(p.EOL);while(n>-1){const e=i.substring(0,n);r(e);i=i.substring(n+p.EOL.length);n=i.indexOf(p.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let a=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){a+=" ";a+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}a+='"';return[a]}}return this.args}_endsWith(e,a){return e.endsWith(a)}_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 a=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const i of e){if(a.some((e=>e===i))){r=true;break}}if(!r){return e}let i='"';let n=true;for(let a=e.length;a>0;a--){i+=e[a-1];if(n&&e[a-1]==="\\"){i+="\\"}else if(e[a-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.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 a='"';let r=true;for(let i=e.length;i>0;i--){a+=e[i-1];if(r&&e[i-1]==="\\"){a+="\\"}else if(e[i-1]==='"'){r=true;a+="\\"}else{r=false}}a+='"';return a.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const a={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};a.outStream=e.outStream||process.stdout;a.errStream=e.errStream||process.stderr;return a}_getSpawnOptions(e,a){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${a}"`}return r}exec(){return o(this,void 0,void 0,(function*(){if(!v.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((e,a)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+p.EOL)}const i=new ExecState(r,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield v.exists(this.options.cwd))){return a(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const s=c.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));let o="";if(s.stdout){s.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(s.stderr){s.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const a=r.failOnStdErr?r.errStream:r.outStream;a.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}s.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));s.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));s.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((r,i)=>{if(o.length>0){this.emit("stdline",o)}if(l.length>0){this.emit("errline",l)}s.removeAllListeners();if(r){a(r)}else{e(i)}}));if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}}))))}))}}a.ToolRunner=ToolRunner;function argStringToArray(e){const a=[];let r=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let s=0;s0){a.push(n);n=""}continue}append(o)}if(n.length>0){a.push(n.trim())}return a}a.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,a){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!a){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=a;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=g.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const a=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(a)}e._setResult()}}},8090:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.hashFiles=a.create=void 0;const n=r(8298);const s=r(2448);function create(e,a){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,a)}))}a.create=create;function hashFiles(e,a="",r,n=false){return i(this,void 0,void 0,(function*(){let i=true;if(r&&typeof r.followSymbolicLinks==="boolean"){i=r.followSymbolicLinks}const o=yield create(e,{followSymbolicLinks:i});return s.hashFiles(o,a,n)}))}a.hashFiles=hashFiles},1026:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getOptions=void 0;const o=s(r(2186));function getOptions(e){const a={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){a.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${a.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){a.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${a.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){a.matchDirectories=e.matchDirectories;o.debug(`matchDirectories '${a.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){a.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${a.omitBrokenSymbolicLinks}'`)}}return a}a.getOptions=getOptions},8298:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var p=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};var l=this&&this.__await||function(e){return this instanceof l?(this.v=e,this):new l(e)};var c=this&&this.__asyncGenerator||function(e,a,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,a||[]),n,s=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(a){return new Promise((function(r,i){s.push([e,a,r,i])>1||resume(e,a)}))}}function resume(e,a){try{step(i[e](a))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof l?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,a){if(e(a),s.shift(),s.length)resume(s[0][0],s[0][1])}};Object.defineProperty(a,"__esModule",{value:true});a.DefaultGlobber=void 0;const d=s(r(2186));const h=s(r(7147));const v=s(r(1026));const g=s(r(1017));const y=s(r(9005));const b=r(1063);const w=r(4536);const x=r(9117);const E=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=v.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,a;return o(this,void 0,void 0,(function*(){const r=[];try{for(var i=p(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;r.push(e)}}catch(a){e={error:a}}finally{try{if(n&&!n.done&&(a=i.return))yield a.call(i)}finally{if(e)throw e.error}}return r}))}globGenerator(){return c(this,arguments,(function*globGenerator_1(){const e=v.getOptions(this.options);const a=[];for(const r of this.patterns){a.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){a.push(new w.Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of y.getSearchPaths(a)){d.debug(`Search path '${e}'`);try{yield l(h.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new x.SearchState(e,1))}const i=[];while(r.length){const n=r.pop();const s=y.match(a,n.path);const o=!!s||y.partialMatch(a,n.path);if(!s&&!o){continue}const p=yield l(DefaultGlobber.stat(n,e,i));if(!p){continue}if(p.isDirectory()){if(s&b.MatchKind.Directory&&e.matchDirectories){yield yield l(n.path)}else if(!o){continue}const a=n.level+1;const i=(yield l(h.promises.readdir(n.path))).map((e=>new x.SearchState(g.join(n.path,e),a)));r.push(...i.reverse())}else if(s&b.MatchKind.File){yield yield l(n.path)}}}))}static create(e,a){return o(this,void 0,void 0,(function*(){const r=new DefaultGlobber(a);if(E){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new w.Pattern(e))}}r.searchPaths.push(...y.getSearchPaths(r.patterns));return r}))}static stat(e,a,r){return o(this,void 0,void 0,(function*(){let i;if(a.followSymbolicLinks){try{i=yield h.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){d.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{i=yield h.promises.lstat(e.path)}if(i.isDirectory()&&a.followSymbolicLinks){const a=yield h.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===a))){d.debug(`Symlink cycle detected for path '${e.path}' and realpath '${a}'`);return undefined}r.push(a)}return i}))}}a.DefaultGlobber=DefaultGlobber},2448:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var p=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};Object.defineProperty(a,"__esModule",{value:true});a.hashFiles=void 0;const l=s(r(6113));const c=s(r(2186));const d=s(r(7147));const h=s(r(2781));const v=s(r(3837));const g=s(r(1017));function hashFiles(e,a,r=false){var i,n;var s;return o(this,void 0,void 0,(function*(){const o=r?c.info:c.debug;let y=false;const b=a?a:(s=process.env["GITHUB_WORKSPACE"])!==null&&s!==void 0?s:process.cwd();const w=l.createHash("sha256");let x=0;try{for(var E=p(e.globGenerator()),_;_=yield E.next(),!_.done;){const e=_.value;o(e);if(!e.startsWith(`${b}${g.sep}`)){o(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(d.statSync(e).isDirectory()){o(`Skip directory '${e}'.`);continue}const a=l.createHash("sha256");const r=v.promisify(h.pipeline);yield r(d.createReadStream(e),a);w.write(a.digest());x++;if(!y){y=true}}}catch(e){i={error:e}}finally{try{if(_&&!_.done&&(n=E.return))yield n.call(E)}finally{if(i)throw i.error}}w.end();if(y){o(`Found ${x} files to hash.`);return w.digest("hex")}else{o(`No matches found for glob`);return""}}))}a.hashFiles=hashFiles},1063:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.MatchKind=void 0;var r;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(r=a.MatchKind||(a.MatchKind={}))},1849:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.safeTrimTrailingSeparator=a.normalizeSeparators=a.hasRoot=a.hasAbsoluteRoot=a.ensureAbsoluteRoot=a.dirname=void 0;const p=s(r(1017));const l=o(r(9491));const c=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(c&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let a=p.dirname(e);if(c&&/^\\\\[^\\]+\\[^\\]+\\$/.test(a)){a=safeTrimTrailingSeparator(a)}return a}a.dirname=dirname;function ensureAbsoluteRoot(e,a){l.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);l.default(a,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(a)){return a}if(c){if(a.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(a[0].toUpperCase()===e[0].toUpperCase()){if(a.length===2){return`${a[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${a[0]}:\\${e.substr(3)}${a.substr(2)}`}}else{return`${a[0]}:\\${a.substr(2)}`}}else if(normalizeSeparators(a).match(/^\\$|^\\[^\\]/)){const e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${a.substr(1)}`}}l.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||c&&e.endsWith("\\")){}else{e+=p.sep}return e+a}a.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){l.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(c){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}a.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){l.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(c){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}a.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(c){e=e.replace(/\//g,"\\");const a=/^\\\\+[^\\]/.test(e);return(a?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}a.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(p.sep)){return e}if(e===p.sep){return e}if(c&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}a.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.Path=void 0;const p=s(r(1017));const l=s(r(1849));const c=o(r(9491));const d=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){c.default(e,`Parameter 'itemPath' must not be empty`);e=l.safeTrimTrailingSeparator(e);if(!l.hasRoot(e)){this.segments=e.split(p.sep)}else{let a=e;let r=l.dirname(a);while(r!==a){const e=p.basename(a);this.segments.unshift(e);a=r;r=l.dirname(a)}this.segments.unshift(a)}}else{c.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let a=0;a!e.negate));const a={};for(const r of e){const e=l?r.searchPath.toUpperCase():r.searchPath;a[e]="candidate"}const r=[];for(const i of e){const e=l?i.searchPath.toUpperCase():i.searchPath;if(a[e]==="included"){continue}let n=false;let s=e;let p=o.dirname(s);while(p!==s){if(a[p]){n=true;break}s=p;p=o.dirname(s)}if(!n){r.push(i.searchPath);a[e]="included"}}return r}a.getSearchPaths=getSearchPaths;function match(e,a){let r=p.MatchKind.None;for(const i of e){if(i.negate){r&=~i.match(a)}else{r|=i.match(a)}}return r}a.match=match;function partialMatch(e,a){return e.some((e=>!e.negate&&e.partialMatch(a)))}a.partialMatch=partialMatch},4536:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.Pattern=void 0;const p=s(r(2037));const l=s(r(1017));const c=s(r(1849));const d=o(r(9491));const h=r(3973);const v=r(1063);const g=r(6836);const y=process.platform==="win32";class Pattern{constructor(e,a=false,r,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{r=r||[];d.default(r.length,`Parameter 'segments' must not empty`);const a=Pattern.getLiteral(r[0]);d.default(a&&c.hasAbsoluteRoot(a),`Parameter 'segments' first element must be a root path`);n=new g.Path(r).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new g.Path(n).segments;this.trailingSeparator=c.normalizeSeparators(n).endsWith(l.sep);n=c.safeTrimTrailingSeparator(n);let s=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!s&&!(s=e==="")));this.searchPath=new g.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),y?"i":"");this.isImplicitPattern=a;const p={dot:true,nobrace:true,nocase:y,nocomment:true,noext:true,nonegate:true};n=y?n.replace(/\\/g,"/"):n;this.minimatch=new h.Minimatch(n,p)}match(e){if(this.segments[this.segments.length-1]==="**"){e=c.normalizeSeparators(e);if(!e.endsWith(l.sep)&&this.isImplicitPattern===false){e=`${e}${l.sep}`}}else{e=c.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?v.MatchKind.Directory:v.MatchKind.All}return v.MatchKind.None}partialMatch(e){e=c.safeTrimTrailingSeparator(e);if(c.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(y?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(y?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){d.default(e,"pattern cannot be empty");const r=new g.Path(e).segments.map((e=>Pattern.getLiteral(e)));d.default(r.every(((e,a)=>(e!=="."||a===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);d.default(!c.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=c.normalizeSeparators(e);if(e==="."||e.startsWith(`.${l.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${l.sep}`)){a=a||p.homedir();d.default(a,"Unable to determine HOME directory");d.default(c.hasAbsoluteRoot(a),`Expected HOME directory to be a rooted path. Actual '${a}'`);e=Pattern.globEscape(a)+e.substr(1)}else if(y&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let a=c.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!a.endsWith("\\")){a+="\\"}e=Pattern.globEscape(a)+e.substr(2)}else if(y&&(e==="\\"||e.match(/^\\[^\\]/))){let a=c.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!a.endsWith("\\")){a+="\\"}e=Pattern.globEscape(a)+e.substr(1)}else{e=c.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return c.normalizeSeparators(e)}static getLiteral(e){let a="";for(let r=0;r=0){if(i.length>1){return""}if(i){a+=i;r=n;continue}}}a+=i}return a}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}a.Pattern=Pattern},9117:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.SearchState=void 0;class SearchState{constructor(e,a){this.path=e;this.level=a}}a.SearchState=SearchState},5526:function(e,a){"use strict";var r=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.PersonalAccessTokenCredentialHandler=a.BearerCredentialHandler=a.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,a){this.username=e;this.password=a}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{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 false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.HttpClient=a.isHttps=a.HttpClientResponse=a.HttpClientError=a.getProxyUrl=a.MediaTypes=a.Headers=a.HttpCodes=void 0;const p=s(r(3685));const l=s(r(5687));const c=s(r(9835));const d=s(r(4294));var h;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(h=a.HttpCodes||(a.HttpCodes={}));var v;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(v=a.Headers||(a.Headers={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g=a.MediaTypes||(a.MediaTypes={}));function getProxyUrl(e){const a=c.getProxyUrl(new URL(e));return a?a.href:""}a.getProxyUrl=getProxyUrl;const y=[h.MovedPermanently,h.ResourceMoved,h.SeeOther,h.TemporaryRedirect,h.PermanentRedirect];const b=[h.BadGateway,h.ServiceUnavailable,h.GatewayTimeout];const w=["OPTIONS","GET","DELETE","HEAD"];const x=10;const E=5;class HttpClientError extends Error{constructor(e,a){super(e);this.name="HttpClientError";this.statusCode=a;Object.setPrototypeOf(this,HttpClientError.prototype)}}a.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])}));this.message.on("end",(()=>{e(a.toString())}))}))))}))}}a.HttpClientResponse=HttpClientResponse;function isHttps(e){const a=new URL(e);return a.protocol==="https:"}a.isHttps=isHttps;class HttpClient{constructor(e,a,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=a||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,a){return o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,a||{})}))}get(e,a){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,a||{})}))}del(e,a){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,a||{})}))}post(e,a,r){return o(this,void 0,void 0,(function*(){return this.request("POST",e,a,r||{})}))}patch(e,a,r){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,a,r||{})}))}put(e,a,r){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,a,r||{})}))}head(e,a){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,a||{})}))}sendStream(e,a,r,i){return o(this,void 0,void 0,(function*(){return this.request(e,a,r,i)}))}getJson(e,a={}){return o(this,void 0,void 0,(function*(){a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,g.ApplicationJson);const r=yield this.get(e,a);return this._processResponse(r,this.requestOptions)}))}postJson(e,a,r={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(a,null,2);r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,g.ApplicationJson);r[v.ContentType]=this._getExistingOrDefaultHeader(r,v.ContentType,g.ApplicationJson);const n=yield this.post(e,i,r);return this._processResponse(n,this.requestOptions)}))}putJson(e,a,r={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(a,null,2);r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,g.ApplicationJson);r[v.ContentType]=this._getExistingOrDefaultHeader(r,v.ContentType,g.ApplicationJson);const n=yield this.put(e,i,r);return this._processResponse(n,this.requestOptions)}))}patchJson(e,a,r={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(a,null,2);r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,g.ApplicationJson);r[v.ContentType]=this._getExistingOrDefaultHeader(r,v.ContentType,g.ApplicationJson);const n=yield this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}))}request(e,a,r,i){return o(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const n=new URL(a);let s=this._prepareRequest(e,n,i);const o=this._allowRetries&&w.includes(e)?this._maxRetries+1:1;let p=0;let l;do{l=yield this.requestRaw(s,r);if(l&&l.message&&l.message.statusCode===h.Unauthorized){let e;for(const a of this.handlers){if(a.canHandleAuthentication(l)){e=a;break}}if(e){return e.handleAuthentication(this,s,r)}else{return l}}let a=this._maxRedirects;while(l.message.statusCode&&y.includes(l.message.statusCode)&&this._allowRedirects&&a>0){const o=l.message.headers["location"];if(!o){break}const p=new URL(o);if(n.protocol==="https:"&&n.protocol!==p.protocol&&!this._allowRedirectDowngrade){throw new 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.")}yield l.readBody();if(p.hostname!==n.hostname){for(const e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}s=this._prepareRequest(e,p,i);l=yield this.requestRaw(s,r);a--}if(!l.message.statusCode||!b.includes(l.message.statusCode)){return l}p+=1;if(p{function callbackForResult(e,a){if(e){i(e)}else if(!a){i(new Error("Unknown error"))}else{r(a)}}this.requestRawWithCallback(e,a,callbackForResult)}))}))}requestRawWithCallback(e,a,r){if(typeof a==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(a,"utf8")}let i=false;function handleResult(e,a){if(!i){i=true;r(e,a)}}const n=e.httpModule.request(e.options,(e=>{const a=new HttpClientResponse(e);handleResult(undefined,a)}));let s;n.on("socket",(e=>{s=e}));n.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));n.on("error",(function(e){handleResult(e)}));if(a&&typeof a==="string"){n.write(a,"utf8")}if(a&&typeof a!=="string"){a.on("close",(function(){n.end()}));a.pipe(n)}else{n.end()}}getAgent(e){const a=new URL(e);return this._getAgent(a)}_prepareRequest(e,a,r){const i={};i.parsedUrl=a;const n=i.parsedUrl.protocol==="https:";i.httpModule=n?l:p;const s=n?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(i.options)}}return i}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,a,r){let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[a]}return e[a]||i||r}_getAgent(e){let a;const r=c.getProxyUrl(e);const i=r&&r.hostname;if(this._keepAlive&&i){a=this._proxyAgent}if(this._keepAlive&&!i){a=this._agent}if(a){return a}const n=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||p.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let i;const o=r.protocol==="https:";if(n){i=o?d.httpsOverHttps:d.httpsOverHttp}else{i=o?d.httpOverHttps:d.httpOverHttp}a=i(e);this._proxyAgent=a}if(this._keepAlive&&!a){const e={keepAlive:this._keepAlive,maxSockets:s};a=n?new l.Agent(e):new p.Agent(e);this._agent=a}if(!a){a=n?l.globalAgent:p.globalAgent}if(n&&this._ignoreSslError){a.options=Object.assign(a.options||{},{rejectUnauthorized:false})}return a}_performExponentialBackoff(e){return o(this,void 0,void 0,(function*(){e=Math.min(x,e);const a=E*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),a)))}))}_processResponse(e,a){return o(this,void 0,void 0,(function*(){return new Promise(((r,i)=>o(this,void 0,void 0,(function*(){const n=e.message.statusCode||0;const s={statusCode:n,result:null,headers:{}};if(n===h.NotFound){r(s)}function dateTimeDeserializer(e,a){if(typeof a==="string"){const e=new Date(a);if(!isNaN(e.valueOf())){return e}}return a}let o;let p;try{p=yield e.readBody();if(p&&p.length>0){if(a&&a.deserializeDates){o=JSON.parse(p,dateTimeDeserializer)}else{o=JSON.parse(p)}s.result=o}s.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(p&&p.length>0){e=p}else{e=`Failed request: (${n})`}const a=new HttpClientError(e,n);a.result=s.result;i(a)}else{r(s)}}))))}))}}a.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((a,r)=>(a[r.toLowerCase()]=e[r],a)),{})},9835:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.checkBypass=a.getProxyUrl=void 0;function getProxyUrl(e){const a=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(a){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){return new URL(r)}else{return undefined}}a.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const a=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!a){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}const i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(const e of a.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((a=>a===e))){return true}}return false}a.checkBypass=checkBypass},1962:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};var s;Object.defineProperty(a,"__esModule",{value:true});const o=r(9491);const p=n(r(7147));const l=n(r(1017));s=p.promises,a.chmod=s.chmod,a.copyFile=s.copyFile,a.lstat=s.lstat,a.mkdir=s.mkdir,a.readdir=s.readdir,a.readlink=s.readlink,a.rename=s.rename,a.rmdir=s.rmdir,a.stat=s.stat,a.symlink=s.symlink,a.unlink=s.unlink;a.IS_WINDOWS=process.platform==="win32";function exists(e){return i(this,void 0,void 0,(function*(){try{yield a.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}a.exists=exists;function isDirectory(e,r=false){return i(this,void 0,void 0,(function*(){const i=r?yield a.stat(e):yield a.lstat(e);return i.isDirectory()}))}a.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(a.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}a.isRooted=isRooted;function mkdirP(e,r=1e3,n=1){return i(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");e=l.resolve(e);if(n>=r)return a.mkdir(e);try{yield a.mkdir(e);return}catch(i){switch(i.code){case"ENOENT":{yield mkdirP(l.dirname(e),r,n+1);yield a.mkdir(e);return}default:{let r;try{r=yield a.stat(e)}catch(e){throw i}if(!r.isDirectory())throw i}}}}))}a.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return i(this,void 0,void 0,(function*(){let i=undefined;try{i=yield a.stat(e)}catch(a){if(a.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}}if(i&&i.isFile()){if(a.IS_WINDOWS){const a=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===a))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const s of r){e=n+s;i=undefined;try{i=yield a.stat(e)}catch(a){if(a.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}}if(i&&i.isFile()){if(a.IS_WINDOWS){try{const r=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield a.readdir(r)){if(i===n.toUpperCase()){e=l.join(r,n);break}}}catch(a){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${a}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}a.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(a.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const s=n(r(2081));const o=n(r(1017));const p=r(3837);const l=n(r(1962));const c=p.promisify(s.exec);function cp(e,a,r={}){return i(this,void 0,void 0,(function*(){const{force:i,recursive:n}=readCopyOptions(r);const s=(yield l.exists(a))?yield l.stat(a):null;if(s&&s.isFile()&&!i){return}const p=s&&s.isDirectory()?o.join(a,o.basename(e)):a;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield l.stat(e);if(c.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,p,0,i)}}else{if(o.relative(e,p)===""){throw new Error(`'${p}' and '${e}' are the same file`)}yield copyFile(e,p,i)}}))}a.cp=cp;function mv(e,a,r={}){return i(this,void 0,void 0,(function*(){if(yield l.exists(a)){let i=true;if(yield l.isDirectory(a)){a=o.join(a,o.basename(e));i=yield l.exists(a)}if(i){if(r.force==null||r.force){yield rmRF(a)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(a));yield l.rename(e,a)}))}a.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){try{if(yield l.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let a=false;try{a=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(a){yield c(`rm -rf "${e}"`)}else{yield l.unlink(e)}}}))}a.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){yield l.mkdirP(e)}))}a.mkdirP=mkdirP;function which(e,a){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(a){const a=yield which(e,false);if(!a){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 a}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}a.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const a=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){a.push(e)}}}if(l.isRooted(e)){const r=yield l.tryGetExecutablePath(e,a);if(r){return[r]}return[]}if(e.includes(o.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){r.push(e)}}}const i=[];for(const n of r){const r=yield l.tryGetExecutablePath(o.join(n,e),a);if(r){i.push(r)}}return i}))}a.findInPath=findInPath;function readCopyOptions(e){const a=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:a,recursive:r}}function cpDirRecursive(e,a,r,n){return i(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(a);const i=yield l.readdir(e);for(const s of i){const i=`${e}/${s}`;const o=`${a}/${s}`;const p=yield l.lstat(i);if(p.isDirectory()){yield cpDirRecursive(i,o,r,n)}else{yield copyFile(i,o,n)}}yield l.chmod(a,(yield l.stat(e)).mode)}))}function copyFile(e,a,r){return i(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(a);yield l.unlink(a)}catch(e){if(e.code==="EPERM"){yield l.chmod(a,"0666");yield l.unlink(a)}}const r=yield l.readlink(e);yield l.symlink(r,a,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(a))||r){yield l.copyFile(e,a)}}))}},6412:(e,a,r)=>{"use strict"; +(()=>{var __webpack_modules__={95:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(a,r);if(!n||("get"in n?!a.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return a[r]}}}Object.defineProperty(e,i,n)}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});const p=s(r(2186));const l=s(r(8090));const c=r(8174);const d=s(r(1017));const h=r(8065);const v=r(9249);const g=r(8429);function main(){var e;return o(this,void 0,void 0,(function*(){const a=(0,v.getState)();if(a.cacheHitKind==="exact"){console.log("🌀 Skipping uploading cache as the cache was hit by exact match.");return}const r=new c.Storage({keyFilename:a.keyFileName}).bucket(a.bucket);const i=a.targetFileName;const[n]=yield r.file(i).exists().catch((e=>{p.error("Failed to check if the file already exists");throw e}));p.debug(`Target file name: ${i}.`);if(n){console.log("🌀 Skipping uploading cache as it already exists (probably due to another job).");return}const s=(e=process.env.GITHUB_WORKSPACE)!==null&&e!==void 0?e:process.cwd();const y=yield l.create(a.path,{implicitDescendants:false});const b=yield y.glob().then((e=>e.map((e=>d.relative(s,e)))));p.debug(`Paths: ${JSON.stringify(b)}.`);return(0,h.withFile)((e=>o(this,void 0,void 0,(function*(){const a=yield p.group("🗜️ Creating cache archive",(()=>(0,g.createTar)(e.path,b,s))).catch((e=>{p.error("Failed to create the archive");throw e}));const n={"Cache-Action-Compression-Method":a};p.debug(`Metadata: ${JSON.stringify(n)}.`);yield p.group("🌐 Uploading cache archive to bucket",(()=>o(this,void 0,void 0,(function*(){console.log(`🔹 Uploading file '${i}'...`);yield r.upload(e.path,{destination:i,metadata:{metadata:n}})})))).catch((e=>{p.error("Failed to upload the file");throw e}));console.log("✅ Successfully saved cache.")}))))}))}void main().catch((e=>{p.error(e);p.setFailed(e)}))},9249:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(a,r);if(!n||("get"in n?!a.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return a[r]}}}Object.defineProperty(e,i,n)}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getState=a.saveState=void 0;const o=s(r(2186));function saveState(e){o.debug(`Saving state: ${JSON.stringify(e)}.`);o.saveState("bucket",e.bucket);o.saveState("path",e.path);o.saveState("cache-hit-kind",e.cacheHitKind);o.saveState("target-file-name",e.targetFileName);o.saveState("key-file-name",e.keyFileName);o.saveState("compression-method",e.compressionMethod)}a.saveState=saveState;function getState(){const e={path:o.getState("path"),bucket:o.getState("bucket"),cacheHitKind:o.getState("cache-hit-kind"),targetFileName:o.getState("target-file-name"),keyFileName:o.getState("key-file-name"),compressionMethod:o.getState("compression-method")};o.debug(`Loaded state: ${JSON.stringify(e)}.`);return e}a.getState=getState},8429:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(a,r);if(!n||("get"in n?!a.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return a[r]}}}Object.defineProperty(e,i,n)}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.extractTar=a.createTar=a.CompressionMethod=void 0;const p=s(r(1514));const l=s(r(1383));const c=r(9249);const d="1.3.2";var h;(function(e){e["GZIP"]="gzip";e["ZSTD_WITHOUT_LONG"]="zstd (without long)";e["ZSTD"]="zstd"})(h=a.CompressionMethod||(a.CompressionMethod={}));function getTarCompressionMethod(){return o(this,void 0,void 0,(function*(){if(process.platform==="win32"){return h.GZIP}const e=(0,c.getState)();if(e.compressionMethod===h.GZIP){return h.GZIP}const[a,r]=yield p.getExecOutput("zstd",["--version"],{ignoreReturnCode:true,silent:true}).then((e=>e.stdout.trim())).then((e=>{const a=/v(\d+(?:\.\d+){0,})/.exec(e);return[e,a?a[1]:null]})).catch((()=>["",null]));if(!(a===null||a===void 0?void 0:a.toLowerCase().includes("zstd command line interface"))){return h.GZIP}else if(!r||l.lt(r,d)){return h.ZSTD_WITHOUT_LONG}else{return h.ZSTD}}))}function createTar(e,a,r){return o(this,void 0,void 0,(function*(){const i=yield getTarCompressionMethod();console.log(`🔹 Using '${i}' compression method.`);const n=i===h.GZIP?["-z"]:i===h.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -T0"]:["--use-compress-program","zstd -T0 --long=30"];yield p.exec("tar",["-c",...n,"--posix","-P","-f",e,"-C",r,...a]);return i}))}a.createTar=createTar;function extractTar(e,a,r){return o(this,void 0,void 0,(function*(){console.log(`🔹 Detected '${a}' compression method from object metadata.`);const i=a===h.GZIP?["-z"]:a===h.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -d"]:["--use-compress-program","zstd -d --long=30"];yield p.exec("tar",["-x",...i,"-P","-f",e,"-C",r])}))}a.extractTar=extractTar},7351:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const o=s(r(2037));const p=r(5278);function issueCommand(e,a,r){const i=new Command(e,a,r);process.stdout.write(i.toString()+o.EOL)}a.issueCommand=issueCommand;function issue(e,a=""){issueCommand(e,{},a)}a.issue=issue;const l="::";class Command{constructor(e,a,r){if(!e){e="missing.command"}this.command=e;this.properties=a;this.message=r}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(a){a=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return p.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return p.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const p=r(7351);const l=r(717);const c=r(5278);const d=s(r(2037));const h=s(r(1017));const v=r(8041);var g;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(g=a.ExitCode||(a.ExitCode={}));function exportVariable(e,a){const r=c.toCommandValue(a);process.env[e]=r;const i=process.env["GITHUB_ENV"]||"";if(i){return l.issueFileCommand("ENV",l.prepareKeyValueMessage(e,a))}p.issueCommand("set-env",{name:e},r)}a.exportVariable=exportVariable;function setSecret(e){p.issueCommand("add-mask",{},e)}a.setSecret=setSecret;function addPath(e){const a=process.env["GITHUB_PATH"]||"";if(a){l.issueFileCommand("PATH",e)}else{p.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(e,a){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(e,a){const r=getInput(e,a).split("\n").filter((e=>e!==""));if(a&&a.trimWhitespace===false){return r}return r.map((e=>e.trim()))}a.getMultilineInput=getMultilineInput;function getBooleanInput(e,a){const r=["true","True","TRUE"];const i=["false","False","FALSE"];const n=getInput(e,a);if(r.includes(n))return true;if(i.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a.getBooleanInput=getBooleanInput;function setOutput(e,a){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return l.issueFileCommand("OUTPUT",l.prepareKeyValueMessage(e,a))}process.stdout.write(d.EOL);p.issueCommand("set-output",{name:e},c.toCommandValue(a))}a.setOutput=setOutput;function setCommandEcho(e){p.issue("echo",e?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=g.Failure;error(e)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDebug=isDebug;function debug(e){p.issueCommand("debug",{},e)}a.debug=debug;function error(e,a={}){p.issueCommand("error",c.toCommandProperties(a),e instanceof Error?e.toString():e)}a.error=error;function warning(e,a={}){p.issueCommand("warning",c.toCommandProperties(a),e instanceof Error?e.toString():e)}a.warning=warning;function notice(e,a={}){p.issueCommand("notice",c.toCommandProperties(a),e instanceof Error?e.toString():e)}a.notice=notice;function info(e){process.stdout.write(e+d.EOL)}a.info=info;function startGroup(e){p.issue("group",e)}a.startGroup=startGroup;function endGroup(){p.issue("endgroup")}a.endGroup=endGroup;function group(e,a){return o(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield a()}finally{endGroup()}return r}))}a.group=group;function saveState(e,a){const r=process.env["GITHUB_STATE"]||"";if(r){return l.issueFileCommand("STATE",l.prepareKeyValueMessage(e,a))}p.issueCommand("save-state",{name:e},c.toCommandValue(a))}a.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}a.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))}a.getIDToken=getIDToken;var y=r(1327);Object.defineProperty(a,"summary",{enumerable:true,get:function(){return y.summary}});var b=r(1327);Object.defineProperty(a,"markdownSummary",{enumerable:true,get:function(){return b.markdownSummary}});var w=r(2981);Object.defineProperty(a,"toPosixPath",{enumerable:true,get:function(){return w.toPosixPath}});Object.defineProperty(a,"toWin32Path",{enumerable:true,get:function(){return w.toWin32Path}});Object.defineProperty(a,"toPlatformPath",{enumerable:true,get:function(){return w.toPlatformPath}})},717:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.prepareKeyValueMessage=a.issueFileCommand=void 0;const o=s(r(7147));const p=s(r(2037));const l=r(5840);const c=r(5278);function issueFileCommand(e,a){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}o.appendFileSync(r,`${c.toCommandValue(a)}${p.EOL}`,{encoding:"utf8"})}a.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,a){const r=`ghadelimiter_${l.v4()}`;const i=c.toCommandValue(a);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(i.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${p.EOL}${i}${p.EOL}${r}`}a.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.OidcClient=void 0;const n=r(6255);const s=r(5526);const o=r(2186);class OidcClient{static createHttpClient(e=true,a=10){const r={allowRetries:e,maxRetries:a};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new 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 new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var a;return i(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const i=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const n=(a=i.result)===null||a===void 0?void 0:a.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let a=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);a=`${a}&audience=${r}`}o.debug(`ID token url is ${a}`);const r=yield OidcClient.getCall(a);o.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}a.OidcClient=OidcClient},2981:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.toPlatformPath=a.toWin32Path=a.toPosixPath=void 0;const o=s(r(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}a.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}a.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,o.sep)}a.toPlatformPath=toPlatformPath},1327:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.summary=a.markdownSummary=a.SUMMARY_DOCS_URL=a.SUMMARY_ENV_VAR=void 0;const n=r(2037);const s=r(7147);const{access:o,appendFile:p,writeFile:l}=s.promises;a.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";a.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return i(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[a.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${a.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield o(e,s.constants.R_OK|s.constants.W_OK)}catch(a){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,a,r={}){const i=Object.entries(r).map((([e,a])=>` ${e}="${a}"`)).join("");if(!a){return`<${e}${i}>`}return`<${e}${i}>${a}`}write(e){return i(this,void 0,void 0,(function*(){const a=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const i=a?l:p;yield i(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return i(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,a=false){this._buffer+=e;return a?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,a){const r=Object.assign({},a&&{lang:a});const i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,a=false){const r=a?"ol":"ul";const i=e.map((e=>this.wrap("li",e))).join("");const n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){const a=e.map((e=>{const a=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:a,data:r,colspan:i,rowspan:n}=e;const s=a?"th":"td";const o=Object.assign(Object.assign({},i&&{colspan:i}),n&&{rowspan:n});return this.wrap(s,r,o)})).join("");return this.wrap("tr",a)})).join("");const r=this.wrap("table",a);return this.addRaw(r).addEOL()}addDetails(e,a){const r=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(r).addEOL()}addImage(e,a,r){const{width:i,height:n}=r||{};const s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n});const o=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(o).addEOL()}addHeading(e,a){const r=`h${a}`;const i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const n=this.wrap(i,e);return this.addRaw(n).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,a){const r=Object.assign({},a&&{cite:a});const i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,a){const r=this.wrap("a",e,{href:a});return this.addRaw(r).addEOL()}}const c=new Summary;a.markdownSummary=c;a.summary=c},5278:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.toCommandProperties=a.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}a.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}a.toCommandProperties=toCommandProperties},1514:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getExecOutput=a.exec=void 0;const p=r(1576);const l=s(r(8159));function exec(e,a,r){return o(this,void 0,void 0,(function*(){const i=l.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const n=i[0];a=i.slice(1).concat(a||[]);const s=new l.ToolRunner(n,a,r);return s.exec()}))}a.exec=exec;function getExecOutput(e,a,r){var i,n;return o(this,void 0,void 0,(function*(){let s="";let o="";const l=new p.StringDecoder("utf8");const c=new p.StringDecoder("utf8");const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stdout;const h=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stderr;const stdErrListener=e=>{o+=c.write(e);if(h){h(e)}};const stdOutListener=e=>{s+=l.write(e);if(d){d(e)}};const v=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const g=yield exec(e,a,Object.assign(Object.assign({},r),{listeners:v}));s+=l.end();o+=c.end();return{exitCode:g,stdout:s,stderr:o}}))}a.getExecOutput=getExecOutput},8159:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.argStringToArray=a.ToolRunner=void 0;const p=s(r(2037));const l=s(r(2361));const c=s(r(2081));const d=s(r(1017));const h=s(r(7436));const v=s(r(1962));const g=r(9512);const y=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,a,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=a||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,a){const r=this._getSpawnFileName();const i=this._getSpawnArgs(e);let n=a?"":"[command]";if(y){if(this._isCmdFile()){n+=r;for(const e of i){n+=` ${e}`}}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i){n+=` ${e}`}}else{n+=this._windowsQuoteCmdArg(r);for(const e of i){n+=` ${this._windowsQuoteCmdArg(e)}`}}}else{n+=r;for(const e of i){n+=` ${e}`}}return n}_processLineBuffer(e,a,r){try{let i=a+e.toString();let n=i.indexOf(p.EOL);while(n>-1){const e=i.substring(0,n);r(e);i=i.substring(n+p.EOL.length);n=i.indexOf(p.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let a=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){a+=" ";a+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}a+='"';return[a]}}return this.args}_endsWith(e,a){return e.endsWith(a)}_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 a=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const i of e){if(a.some((e=>e===i))){r=true;break}}if(!r){return e}let i='"';let n=true;for(let a=e.length;a>0;a--){i+=e[a-1];if(n&&e[a-1]==="\\"){i+="\\"}else if(e[a-1]==='"'){n=true;i+='"'}else{n=false}}i+='"';return i.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 a='"';let r=true;for(let i=e.length;i>0;i--){a+=e[i-1];if(r&&e[i-1]==="\\"){a+="\\"}else if(e[i-1]==='"'){r=true;a+="\\"}else{r=false}}a+='"';return a.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const a={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};a.outStream=e.outStream||process.stdout;a.errStream=e.errStream||process.stderr;return a}_getSpawnOptions(e,a){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${a}"`}return r}exec(){return o(this,void 0,void 0,(function*(){if(!v.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((e,a)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+p.EOL)}const i=new ExecState(r,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield v.exists(this.options.cwd))){return a(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const n=this._getSpawnFileName();const s=c.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));let o="";if(s.stdout){s.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(s.stderr){s.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const a=r.failOnStdErr?r.errStream:r.outStream;a.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}s.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));s.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));s.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((r,i)=>{if(o.length>0){this.emit("stdline",o)}if(l.length>0){this.emit("errline",l)}s.removeAllListeners();if(r){a(r)}else{e(i)}}));if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}}))))}))}}a.ToolRunner=ToolRunner;function argStringToArray(e){const a=[];let r=false;let i=false;let n="";function append(e){if(i&&e!=='"'){n+="\\"}n+=e;i=false}for(let s=0;s0){a.push(n);n=""}continue}append(o)}if(n.length>0){a.push(n.trim())}return a}a.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,a){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!a){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=a;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=g.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const a=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(a)}e._setResult()}}},8090:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.hashFiles=a.create=void 0;const n=r(8298);const s=r(2448);function create(e,a){return i(this,void 0,void 0,(function*(){return yield n.DefaultGlobber.create(e,a)}))}a.create=create;function hashFiles(e,a="",r,n=false){return i(this,void 0,void 0,(function*(){let i=true;if(r&&typeof r.followSymbolicLinks==="boolean"){i=r.followSymbolicLinks}const o=yield create(e,{followSymbolicLinks:i});return s.hashFiles(o,a,n)}))}a.hashFiles=hashFiles},1026:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getOptions=void 0;const o=s(r(2186));function getOptions(e){const a={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){a.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${a.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){a.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${a.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){a.matchDirectories=e.matchDirectories;o.debug(`matchDirectories '${a.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){a.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${a.omitBrokenSymbolicLinks}'`)}}return a}a.getOptions=getOptions},8298:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var p=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};var l=this&&this.__await||function(e){return this instanceof l?(this.v=e,this):new l(e)};var c=this&&this.__asyncGenerator||function(e,a,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,a||[]),n,s=[];return n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){if(i[e])n[e]=function(a){return new Promise((function(r,i){s.push([e,a,r,i])>1||resume(e,a)}))}}function resume(e,a){try{step(i[e](a))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof l?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,a){if(e(a),s.shift(),s.length)resume(s[0][0],s[0][1])}};Object.defineProperty(a,"__esModule",{value:true});a.DefaultGlobber=void 0;const d=s(r(2186));const h=s(r(7147));const v=s(r(1026));const g=s(r(1017));const y=s(r(9005));const b=r(1063);const w=r(4536);const x=r(9117);const E=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=v.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,a;return o(this,void 0,void 0,(function*(){const r=[];try{for(var i=p(this.globGenerator()),n;n=yield i.next(),!n.done;){const e=n.value;r.push(e)}}catch(a){e={error:a}}finally{try{if(n&&!n.done&&(a=i.return))yield a.call(i)}finally{if(e)throw e.error}}return r}))}globGenerator(){return c(this,arguments,(function*globGenerator_1(){const e=v.getOptions(this.options);const a=[];for(const r of this.patterns){a.push(r);if(e.implicitDescendants&&(r.trailingSeparator||r.segments[r.segments.length-1]!=="**")){a.push(new w.Pattern(r.negate,true,r.segments.concat("**")))}}const r=[];for(const e of y.getSearchPaths(a)){d.debug(`Search path '${e}'`);try{yield l(h.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}r.unshift(new x.SearchState(e,1))}const i=[];while(r.length){const n=r.pop();const s=y.match(a,n.path);const o=!!s||y.partialMatch(a,n.path);if(!s&&!o){continue}const p=yield l(DefaultGlobber.stat(n,e,i));if(!p){continue}if(p.isDirectory()){if(s&b.MatchKind.Directory&&e.matchDirectories){yield yield l(n.path)}else if(!o){continue}const a=n.level+1;const i=(yield l(h.promises.readdir(n.path))).map((e=>new x.SearchState(g.join(n.path,e),a)));r.push(...i.reverse())}else if(s&b.MatchKind.File){yield yield l(n.path)}}}))}static create(e,a){return o(this,void 0,void 0,(function*(){const r=new DefaultGlobber(a);if(E){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{r.patterns.push(new w.Pattern(e))}}r.searchPaths.push(...y.getSearchPaths(r.patterns));return r}))}static stat(e,a,r){return o(this,void 0,void 0,(function*(){let i;if(a.followSymbolicLinks){try{i=yield h.promises.stat(e.path)}catch(r){if(r.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){d.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw r}}else{i=yield h.promises.lstat(e.path)}if(i.isDirectory()&&a.followSymbolicLinks){const a=yield h.promises.realpath(e.path);while(r.length>=e.level){r.pop()}if(r.some((e=>e===a))){d.debug(`Symlink cycle detected for path '${e.path}' and realpath '${a}'`);return undefined}r.push(a)}return i}))}}a.DefaultGlobber=DefaultGlobber},2448:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var p=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],r;return a?a.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(a){r[a]=e[a]&&function(r){return new Promise((function(i,n){r=e[a](r),settle(i,n,r.done,r.value)}))}}function settle(e,a,r,i){Promise.resolve(i).then((function(a){e({value:a,done:r})}),a)}};Object.defineProperty(a,"__esModule",{value:true});a.hashFiles=void 0;const l=s(r(6113));const c=s(r(2186));const d=s(r(7147));const h=s(r(2781));const v=s(r(3837));const g=s(r(1017));function hashFiles(e,a,r=false){var i,n;var s;return o(this,void 0,void 0,(function*(){const o=r?c.info:c.debug;let y=false;const b=a?a:(s=process.env["GITHUB_WORKSPACE"])!==null&&s!==void 0?s:process.cwd();const w=l.createHash("sha256");let x=0;try{for(var E=p(e.globGenerator()),_;_=yield E.next(),!_.done;){const e=_.value;o(e);if(!e.startsWith(`${b}${g.sep}`)){o(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(d.statSync(e).isDirectory()){o(`Skip directory '${e}'.`);continue}const a=l.createHash("sha256");const r=v.promisify(h.pipeline);yield r(d.createReadStream(e),a);w.write(a.digest());x++;if(!y){y=true}}}catch(e){i={error:e}}finally{try{if(_&&!_.done&&(n=E.return))yield n.call(E)}finally{if(i)throw i.error}}w.end();if(y){o(`Found ${x} files to hash.`);return w.digest("hex")}else{o(`No matches found for glob`);return""}}))}a.hashFiles=hashFiles},1063:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.MatchKind=void 0;var r;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(r=a.MatchKind||(a.MatchKind={}))},1849:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.safeTrimTrailingSeparator=a.normalizeSeparators=a.hasRoot=a.hasAbsoluteRoot=a.ensureAbsoluteRoot=a.dirname=void 0;const p=s(r(1017));const l=o(r(9491));const c=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(c&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let a=p.dirname(e);if(c&&/^\\\\[^\\]+\\[^\\]+\\$/.test(a)){a=safeTrimTrailingSeparator(a)}return a}a.dirname=dirname;function ensureAbsoluteRoot(e,a){l.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);l.default(a,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(a)){return a}if(c){if(a.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(a[0].toUpperCase()===e[0].toUpperCase()){if(a.length===2){return`${a[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${a[0]}:\\${e.substr(3)}${a.substr(2)}`}}else{return`${a[0]}:\\${a.substr(2)}`}}else if(normalizeSeparators(a).match(/^\\$|^\\[^\\]/)){const e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${a.substr(1)}`}}l.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||c&&e.endsWith("\\")){}else{e+=p.sep}return e+a}a.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){l.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(c){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}a.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){l.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(c){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}a.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(c){e=e.replace(/\//g,"\\");const a=/^\\\\+[^\\]/.test(e);return(a?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}a.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(p.sep)){return e}if(e===p.sep){return e}if(c&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}a.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.Path=void 0;const p=s(r(1017));const l=s(r(1849));const c=o(r(9491));const d=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){c.default(e,`Parameter 'itemPath' must not be empty`);e=l.safeTrimTrailingSeparator(e);if(!l.hasRoot(e)){this.segments=e.split(p.sep)}else{let a=e;let r=l.dirname(a);while(r!==a){const e=p.basename(a);this.segments.unshift(e);a=r;r=l.dirname(a)}this.segments.unshift(a)}}else{c.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let a=0;a!e.negate));const a={};for(const r of e){const e=l?r.searchPath.toUpperCase():r.searchPath;a[e]="candidate"}const r=[];for(const i of e){const e=l?i.searchPath.toUpperCase():i.searchPath;if(a[e]==="included"){continue}let n=false;let s=e;let p=o.dirname(s);while(p!==s){if(a[p]){n=true;break}s=p;p=o.dirname(s)}if(!n){r.push(i.searchPath);a[e]="included"}}return r}a.getSearchPaths=getSearchPaths;function match(e,a){let r=p.MatchKind.None;for(const i of e){if(i.negate){r&=~i.match(a)}else{r|=i.match(a)}}return r}a.match=match;function partialMatch(e,a){return e.some((e=>!e.negate&&e.partialMatch(a)))}a.partialMatch=partialMatch},4536:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:true});a.Pattern=void 0;const p=s(r(2037));const l=s(r(1017));const c=s(r(1849));const d=o(r(9491));const h=r(3973);const v=r(1063);const g=r(6836);const y=process.platform==="win32";class Pattern{constructor(e,a=false,r,i){this.negate=false;let n;if(typeof e==="string"){n=e.trim()}else{r=r||[];d.default(r.length,`Parameter 'segments' must not empty`);const a=Pattern.getLiteral(r[0]);d.default(a&&c.hasAbsoluteRoot(a),`Parameter 'segments' first element must be a root path`);n=new g.Path(r).toString().trim();if(e){n=`!${n}`}}while(n.startsWith("!")){this.negate=!this.negate;n=n.substr(1).trim()}n=Pattern.fixupPattern(n,i);this.segments=new g.Path(n).segments;this.trailingSeparator=c.normalizeSeparators(n).endsWith(l.sep);n=c.safeTrimTrailingSeparator(n);let s=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!s&&!(s=e==="")));this.searchPath=new g.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),y?"i":"");this.isImplicitPattern=a;const p={dot:true,nobrace:true,nocase:y,nocomment:true,noext:true,nonegate:true};n=y?n.replace(/\\/g,"/"):n;this.minimatch=new h.Minimatch(n,p)}match(e){if(this.segments[this.segments.length-1]==="**"){e=c.normalizeSeparators(e);if(!e.endsWith(l.sep)&&this.isImplicitPattern===false){e=`${e}${l.sep}`}}else{e=c.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?v.MatchKind.Directory:v.MatchKind.All}return v.MatchKind.None}partialMatch(e){e=c.safeTrimTrailingSeparator(e);if(c.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(y?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(y?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){d.default(e,"pattern cannot be empty");const r=new g.Path(e).segments.map((e=>Pattern.getLiteral(e)));d.default(r.every(((e,a)=>(e!=="."||a===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);d.default(!c.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=c.normalizeSeparators(e);if(e==="."||e.startsWith(`.${l.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${l.sep}`)){a=a||p.homedir();d.default(a,"Unable to determine HOME directory");d.default(c.hasAbsoluteRoot(a),`Expected HOME directory to be a rooted path. Actual '${a}'`);e=Pattern.globEscape(a)+e.substr(1)}else if(y&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let a=c.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!a.endsWith("\\")){a+="\\"}e=Pattern.globEscape(a)+e.substr(2)}else if(y&&(e==="\\"||e.match(/^\\[^\\]/))){let a=c.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!a.endsWith("\\")){a+="\\"}e=Pattern.globEscape(a)+e.substr(1)}else{e=c.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return c.normalizeSeparators(e)}static getLiteral(e){let a="";for(let r=0;r=0){if(i.length>1){return""}if(i){a+=i;r=n;continue}}}a+=i}return a}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}a.Pattern=Pattern},9117:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.SearchState=void 0;class SearchState{constructor(e,a){this.path=e;this.level=a}}a.SearchState=SearchState},5526:function(e,a){"use strict";var r=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.PersonalAccessTokenCredentialHandler=a.BearerCredentialHandler=a.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,a){this.username=e;this.password=a}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{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 false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,a,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,a,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return a[r]}})}:function(e,a,r,i){if(i===undefined)i=r;e[i]=a[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))i(a,e,r);n(a,e);return a};var o=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.HttpClient=a.isHttps=a.HttpClientResponse=a.HttpClientError=a.getProxyUrl=a.MediaTypes=a.Headers=a.HttpCodes=void 0;const p=s(r(3685));const l=s(r(5687));const c=s(r(9835));const d=s(r(4294));var h;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(h=a.HttpCodes||(a.HttpCodes={}));var v;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(v=a.Headers||(a.Headers={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g=a.MediaTypes||(a.MediaTypes={}));function getProxyUrl(e){const a=c.getProxyUrl(new URL(e));return a?a.href:""}a.getProxyUrl=getProxyUrl;const y=[h.MovedPermanently,h.ResourceMoved,h.SeeOther,h.TemporaryRedirect,h.PermanentRedirect];const b=[h.BadGateway,h.ServiceUnavailable,h.GatewayTimeout];const w=["OPTIONS","GET","DELETE","HEAD"];const x=10;const E=5;class HttpClientError extends Error{constructor(e,a){super(e);this.name="HttpClientError";this.statusCode=a;Object.setPrototypeOf(this,HttpClientError.prototype)}}a.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])}));this.message.on("end",(()=>{e(a.toString())}))}))))}))}}a.HttpClientResponse=HttpClientResponse;function isHttps(e){const a=new URL(e);return a.protocol==="https:"}a.isHttps=isHttps;class HttpClient{constructor(e,a,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=a||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,a){return o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,a||{})}))}get(e,a){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,a||{})}))}del(e,a){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,a||{})}))}post(e,a,r){return o(this,void 0,void 0,(function*(){return this.request("POST",e,a,r||{})}))}patch(e,a,r){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,a,r||{})}))}put(e,a,r){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,a,r||{})}))}head(e,a){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,a||{})}))}sendStream(e,a,r,i){return o(this,void 0,void 0,(function*(){return this.request(e,a,r,i)}))}getJson(e,a={}){return o(this,void 0,void 0,(function*(){a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,g.ApplicationJson);const r=yield this.get(e,a);return this._processResponse(r,this.requestOptions)}))}postJson(e,a,r={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(a,null,2);r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,g.ApplicationJson);r[v.ContentType]=this._getExistingOrDefaultHeader(r,v.ContentType,g.ApplicationJson);const n=yield this.post(e,i,r);return this._processResponse(n,this.requestOptions)}))}putJson(e,a,r={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(a,null,2);r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,g.ApplicationJson);r[v.ContentType]=this._getExistingOrDefaultHeader(r,v.ContentType,g.ApplicationJson);const n=yield this.put(e,i,r);return this._processResponse(n,this.requestOptions)}))}patchJson(e,a,r={}){return o(this,void 0,void 0,(function*(){const i=JSON.stringify(a,null,2);r[v.Accept]=this._getExistingOrDefaultHeader(r,v.Accept,g.ApplicationJson);r[v.ContentType]=this._getExistingOrDefaultHeader(r,v.ContentType,g.ApplicationJson);const n=yield this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}))}request(e,a,r,i){return o(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const n=new URL(a);let s=this._prepareRequest(e,n,i);const o=this._allowRetries&&w.includes(e)?this._maxRetries+1:1;let p=0;let l;do{l=yield this.requestRaw(s,r);if(l&&l.message&&l.message.statusCode===h.Unauthorized){let e;for(const a of this.handlers){if(a.canHandleAuthentication(l)){e=a;break}}if(e){return e.handleAuthentication(this,s,r)}else{return l}}let a=this._maxRedirects;while(l.message.statusCode&&y.includes(l.message.statusCode)&&this._allowRedirects&&a>0){const o=l.message.headers["location"];if(!o){break}const p=new URL(o);if(n.protocol==="https:"&&n.protocol!==p.protocol&&!this._allowRedirectDowngrade){throw new 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.")}yield l.readBody();if(p.hostname!==n.hostname){for(const e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}s=this._prepareRequest(e,p,i);l=yield this.requestRaw(s,r);a--}if(!l.message.statusCode||!b.includes(l.message.statusCode)){return l}p+=1;if(p{function callbackForResult(e,a){if(e){i(e)}else if(!a){i(new Error("Unknown error"))}else{r(a)}}this.requestRawWithCallback(e,a,callbackForResult)}))}))}requestRawWithCallback(e,a,r){if(typeof a==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(a,"utf8")}let i=false;function handleResult(e,a){if(!i){i=true;r(e,a)}}const n=e.httpModule.request(e.options,(e=>{const a=new HttpClientResponse(e);handleResult(undefined,a)}));let s;n.on("socket",(e=>{s=e}));n.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));n.on("error",(function(e){handleResult(e)}));if(a&&typeof a==="string"){n.write(a,"utf8")}if(a&&typeof a!=="string"){a.on("close",(function(){n.end()}));a.pipe(n)}else{n.end()}}getAgent(e){const a=new URL(e);return this._getAgent(a)}_prepareRequest(e,a,r){const i={};i.parsedUrl=a;const n=i.parsedUrl.protocol==="https:";i.httpModule=n?l:p;const s=n?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(i.options)}}return i}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,a,r){let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[a]}return e[a]||i||r}_getAgent(e){let a;const r=c.getProxyUrl(e);const i=r&&r.hostname;if(this._keepAlive&&i){a=this._proxyAgent}if(this._keepAlive&&!i){a=this._agent}if(a){return a}const n=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||p.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let i;const o=r.protocol==="https:";if(n){i=o?d.httpsOverHttps:d.httpsOverHttp}else{i=o?d.httpOverHttps:d.httpOverHttp}a=i(e);this._proxyAgent=a}if(this._keepAlive&&!a){const e={keepAlive:this._keepAlive,maxSockets:s};a=n?new l.Agent(e):new p.Agent(e);this._agent=a}if(!a){a=n?l.globalAgent:p.globalAgent}if(n&&this._ignoreSslError){a.options=Object.assign(a.options||{},{rejectUnauthorized:false})}return a}_performExponentialBackoff(e){return o(this,void 0,void 0,(function*(){e=Math.min(x,e);const a=E*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),a)))}))}_processResponse(e,a){return o(this,void 0,void 0,(function*(){return new Promise(((r,i)=>o(this,void 0,void 0,(function*(){const n=e.message.statusCode||0;const s={statusCode:n,result:null,headers:{}};if(n===h.NotFound){r(s)}function dateTimeDeserializer(e,a){if(typeof a==="string"){const e=new Date(a);if(!isNaN(e.valueOf())){return e}}return a}let o;let p;try{p=yield e.readBody();if(p&&p.length>0){if(a&&a.deserializeDates){o=JSON.parse(p,dateTimeDeserializer)}else{o=JSON.parse(p)}s.result=o}s.headers=e.message.headers}catch(e){}if(n>299){let e;if(o&&o.message){e=o.message}else if(p&&p.length>0){e=p}else{e=`Failed request: (${n})`}const a=new HttpClientError(e,n);a.result=s.result;i(a)}else{r(s)}}))))}))}}a.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((a,r)=>(a[r.toLowerCase()]=e[r],a)),{})},9835:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.checkBypass=a.getProxyUrl=void 0;function getProxyUrl(e){const a=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(a){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){return new URL(r)}else{return undefined}}a.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const a=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!a){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}const i=[e.hostname.toUpperCase()];if(typeof r==="number"){i.push(`${i[0]}:${r}`)}for(const e of a.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((a=>a===e))){return true}}return false}a.checkBypass=checkBypass},1962:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};var s;Object.defineProperty(a,"__esModule",{value:true});const o=r(9491);const p=n(r(7147));const l=n(r(1017));s=p.promises,a.chmod=s.chmod,a.copyFile=s.copyFile,a.lstat=s.lstat,a.mkdir=s.mkdir,a.readdir=s.readdir,a.readlink=s.readlink,a.rename=s.rename,a.rmdir=s.rmdir,a.stat=s.stat,a.symlink=s.symlink,a.unlink=s.unlink;a.IS_WINDOWS=process.platform==="win32";function exists(e){return i(this,void 0,void 0,(function*(){try{yield a.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}a.exists=exists;function isDirectory(e,r=false){return i(this,void 0,void 0,(function*(){const i=r?yield a.stat(e):yield a.lstat(e);return i.isDirectory()}))}a.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(a.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}a.isRooted=isRooted;function mkdirP(e,r=1e3,n=1){return i(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");e=l.resolve(e);if(n>=r)return a.mkdir(e);try{yield a.mkdir(e);return}catch(i){switch(i.code){case"ENOENT":{yield mkdirP(l.dirname(e),r,n+1);yield a.mkdir(e);return}default:{let r;try{r=yield a.stat(e)}catch(e){throw i}if(!r.isDirectory())throw i}}}}))}a.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return i(this,void 0,void 0,(function*(){let i=undefined;try{i=yield a.stat(e)}catch(a){if(a.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}}if(i&&i.isFile()){if(a.IS_WINDOWS){const a=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===a))){return e}}else{if(isUnixExecutable(i)){return e}}}const n=e;for(const s of r){e=n+s;i=undefined;try{i=yield a.stat(e)}catch(a){if(a.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${a}`)}}if(i&&i.isFile()){if(a.IS_WINDOWS){try{const r=l.dirname(e);const i=l.basename(e).toUpperCase();for(const n of yield a.readdir(r)){if(i===n.toUpperCase()){e=l.join(r,n);break}}}catch(a){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${a}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}a.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(a.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,a,r){"use strict";var i=this&&this.__awaiter||function(e,a,r,i){function adopt(e){return e instanceof r?e:new r((function(a){a(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,a||[])).next())}))};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))a[r]=e[r];a["default"]=e;return a};Object.defineProperty(a,"__esModule",{value:true});const s=n(r(2081));const o=n(r(1017));const p=r(3837);const l=n(r(1962));const c=p.promisify(s.exec);function cp(e,a,r={}){return i(this,void 0,void 0,(function*(){const{force:i,recursive:n}=readCopyOptions(r);const s=(yield l.exists(a))?yield l.stat(a):null;if(s&&s.isFile()&&!i){return}const p=s&&s.isDirectory()?o.join(a,o.basename(e)):a;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield l.stat(e);if(c.isDirectory()){if(!n){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,p,0,i)}}else{if(o.relative(e,p)===""){throw new Error(`'${p}' and '${e}' are the same file`)}yield copyFile(e,p,i)}}))}a.cp=cp;function mv(e,a,r={}){return i(this,void 0,void 0,(function*(){if(yield l.exists(a)){let i=true;if(yield l.isDirectory(a)){a=o.join(a,o.basename(e));i=yield l.exists(a)}if(i){if(r.force==null||r.force){yield rmRF(a)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(a));yield l.rename(e,a)}))}a.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){try{if(yield l.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let a=false;try{a=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(a){yield c(`rm -rf "${e}"`)}else{yield l.unlink(e)}}}))}a.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){yield l.mkdirP(e)}))}a.mkdirP=mkdirP;function which(e,a){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(a){const a=yield which(e,false);if(!a){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 a}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}a.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const a=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){a.push(e)}}}if(l.isRooted(e)){const r=yield l.tryGetExecutablePath(e,a);if(r){return[r]}return[]}if(e.includes(o.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){r.push(e)}}}const i=[];for(const n of r){const r=yield l.tryGetExecutablePath(o.join(n,e),a);if(r){i.push(r)}}return i}))}a.findInPath=findInPath;function readCopyOptions(e){const a=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:a,recursive:r}}function cpDirRecursive(e,a,r,n){return i(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(a);const i=yield l.readdir(e);for(const s of i){const i=`${e}/${s}`;const o=`${a}/${s}`;const p=yield l.lstat(i);if(p.isDirectory()){yield cpDirRecursive(i,o,r,n)}else{yield copyFile(i,o,n)}}yield l.chmod(a,(yield l.stat(e)).mode)}))}function copyFile(e,a,r){return i(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(a);yield l.unlink(a)}catch(e){if(e.code==="EPERM"){yield l.chmod(a,"0666");yield l.unlink(a)}}const r=yield l.readlink(e);yield l.symlink(r,a,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(a))||r){yield l.copyFile(e,a)}}))}},6412:(e,a,r)=>{"use strict"; /*! * Copyright 2015 Google Inc. All Rights Reserved. * diff --git a/src/main.ts b/src/main.ts index 193cdfe..5ddb65f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -97,9 +97,10 @@ async function main() { saveState({ bucket: inputs.bucket, path: inputs.path, + compressionMethod: inputs.compressionMethod, + keyFileName: inputs.keyFileName, cacheHitKind: 'none', targetFileName: exactFileName, - keyFileName: inputs.keyFileName, }); core.setOutput('cache-hit', 'false'); console.log('😢 No cache candidate found.'); @@ -127,6 +128,8 @@ async function main() { saveState({ bucket: inputs.bucket, path: inputs.path, + compressionMethod: inputs.compressionMethod, + keyFileName: inputs.keyFileName, cacheHitKind: 'none', targetFileName: exactFileName, }); @@ -164,6 +167,8 @@ async function main() { saveState({ path: inputs.path, bucket: inputs.bucket, + compressionMethod: inputs.compressionMethod, + keyFileName: inputs.keyFileName, cacheHitKind: bestMatchKind, targetFileName: exactFileName, }); diff --git a/src/tar-utils.ts b/src/tar-utils.ts index 3a8b41a..cf384e3 100644 --- a/src/tar-utils.ts +++ b/src/tar-utils.ts @@ -19,7 +19,7 @@ async function getTarCompressionMethod(): Promise { } const state = getState(); - if (state.compressionMethod) { + if (state.compressionMethod === CompressionMethod.GZIP) { return CompressionMethod.GZIP; }