From a8bbcb1aabe1f0af1ed893671d67039d134a3ad8 Mon Sep 17 00:00:00 2001 From: 0o-de-lally <1364012+0o-de-lally@users.noreply.github.com> Date: Tue, 12 Sep 2023 13:41:00 -0400 Subject: [PATCH] try with input "local" --- action.yml | 3 ++ dist/post_run/index.js | 2 +- dist/setup/index.js | 2 +- src/cache.ts | 4 ++- src/post_run.ts | 8 ++++-- src/setup.ts | 64 ++++++++++++++++++++++-------------------- 6 files changed, 47 insertions(+), 36 deletions(-) diff --git a/action.yml b/action.yml index ea88609..654937c 100644 --- a/action.yml +++ b/action.yml @@ -8,6 +8,9 @@ inputs: token: description: "Used to pull the latest release from sccache. When running this action outside of github.com, you have to pass a personal access token for github.com." default: ${{ github.server_url == 'https://github.com' && github.token || '' }} + local: + description: "Creates a single cache artifact. Uses the local cache of the runner, saving and restoring. Will not create duplicate caches, only a single `sccache` bundle" + default: "true" runs: using: "node16" main: "dist/setup/index.js" diff --git a/dist/post_run/index.js b/dist/post_run/index.js index ac21167..c224902 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={3782:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.deduplicate=t.pleaseRestore=t.pleaseSave=void 0;const o=a(7799);const p=n(a(2186));const l=n(a(5438));const d="sccache";const pleaseSave=()=>s(void 0,void 0,void 0,(function*(){const e=process.env.SCCACHE_CACHE_DIR;console.log(e);if(!e){console.log(`no sccache dir found in SCCACHE_CACHE_DIR ${e}`);return}yield(0,o.saveCache)([e],d)}));t.pleaseSave=pleaseSave;const pleaseRestore=()=>s(void 0,void 0,void 0,(function*(){console.log("restore sccache files");const e=process.env.SCCACHE_CACHE_DIR;console.log(e);if(!e){console.log(`no sccache dir found in SCCACHE_CACHE_DIR ${e}`);return}yield(0,o.restoreCache)([e],d).then((e=>{console.log(`successfully restored cache: ${JSON.stringify(e)}`)}))}));t.pleaseRestore=pleaseRestore;const deduplicate=()=>s(void 0,void 0,void 0,(function*(){console.log("trying to deduplicate cache");const e=p.getInput("token",{required:true});const t=l.getOctokit(e);const a=yield t.rest.actions.deleteActionsCacheByKey({owner:l.context.repo.owner,repo:l.context.repo.repo,key:d}).then((()=>"successfully deleted cache")).catch((e=>{console.log(`catch: ${e}`);return"nothing to delete"}));console.log(`delete cache api response: ${a}`)}));t.deduplicate=deduplicate},6735:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});const o=n(a(2186));const p=a(3782);const l=a(2802);const postRun=()=>s(void 0,void 0,void 0,(function*(){yield(0,l.show_stats)();yield(0,p.deduplicate)();yield(0,p.pleaseSave)()}));postRun().catch((e=>{o.error(e);o.setFailed(e.message)}))},2802:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.show_stats=void 0;const o=n(a(2186));const p=n(a(1514));function show_stats(){return s(this,void 0,void 0,(function*(){o.debug("show stats");const e={stdout:e=>{t.push(e.toString())}};const t=[];yield p.getExecOutput(`${process.env.SCCACHE_PATH}`,["--show-stats"],{listeners:e})}))}t.show_stats=show_stats},7799:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void 0;const o=n(a(2186));const p=n(a(1017));const l=n(a(1518));const d=n(a(8245));const c=a(6490);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}t.isFeatureAvailable=isFeatureAvailable;function restoreCache(e,t,a,r,i=false){return s(this,void 0,void 0,(function*(){checkPaths(e);a=a||[];const n=[t,...a];o.debug("Resolved Keys:");o.debug(JSON.stringify(n));if(n.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of n){checkKey(e)}const s=yield l.getCompressionMethod();let m="";try{const t=yield d.getCacheEntry(n,e,{compressionMethod:s,enableCrossOsArchive:i});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(r===null||r===void 0?void 0:r.lookupOnly){o.info("Lookup only - skipping download");return t.cacheKey}m=p.join(yield l.createTempDirectory(),l.getCacheFileName(s));o.debug(`Archive Path: ${m}`);yield d.downloadCache(t.archiveLocation,m,r);if(o.isDebug()){yield(0,c.listTar)(m,s)}const a=l.getArchiveFileSizeInBytes(m);o.info(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);yield(0,c.extractTar)(m,s);o.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{o.warning(`Failed to restore: ${e.message}`)}}finally{try{yield l.unlinkFile(m)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return undefined}))}t.restoreCache=restoreCache;function saveCache(e,t,a,r=false){var i,n,m,u,h;return s(this,void 0,void 0,(function*(){checkPaths(e);checkKey(t);const s=yield l.getCompressionMethod();let g=-1;const y=yield l.resolvePaths(e);o.debug("Cache Paths:");o.debug(`${JSON.stringify(y)}`);if(y.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const v=yield l.createTempDirectory();const b=p.join(v,l.getCacheFileName(s));o.debug(`Archive Path: ${b}`);try{yield(0,c.createTar)(v,y,s);if(o.isDebug()){yield(0,c.listTar)(b,s)}const p=10*1024*1024*1024;const x=l.getArchiveFileSizeInBytes(b);o.debug(`File Size: ${x}`);if(x>p&&!l.isGhes()){throw new Error(`Cache size of ~${Math.round(x/(1024*1024))} MB (${x} B) is over the 10GB limit, not saving cache.`)}o.debug("Reserving Cache");const w=yield d.reserveCache(t,e,{compressionMethod:s,enableCrossOsArchive:r,cacheSize:x});if((i=w===null||w===void 0?void 0:w.result)===null||i===void 0?void 0:i.cacheId){g=(n=w===null||w===void 0?void 0:w.result)===null||n===void 0?void 0:n.cacheId}else if((w===null||w===void 0?void 0:w.statusCode)===400){throw new Error((u=(m=w===null||w===void 0?void 0:w.error)===null||m===void 0?void 0:m.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(x/(1024*1024))} MB (${x} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(h=w===null||w===void 0?void 0:w.error)===null||h===void 0?void 0:h.message}`)}o.debug(`Saving Cache (ID: ${g})`);yield d.saveCache(g,b,a)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){o.info(`Failed to save: ${t.message}`)}else{o.warning(`Failed to save: ${t.message}`)}}finally{try{yield l.unlinkFile(b)}catch(e){o.debug(`Failed to delete archive: ${e}`)}}return g}))}t.saveCache=saveCache},8245:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.reserveCache=t.downloadCache=t.getCacheEntry=t.getCacheVersion=void 0;const o=n(a(2186));const p=a(6255);const l=a(5526);const d=n(a(6113));const c=n(a(7147));const m=a(7310);const u=n(a(1518));const h=a(5500);const g=a(6215);const y=a(3981);const v="1.0";function getCacheApiUrl(e){const t=process.env["ACTIONS_CACHE_URL"]||"";if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const a=`${t}_apis/artifactcache/${e}`;o.debug(`Resource Url: ${a}`);return a}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new l.BearerCredentialHandler(e);return new p.HttpClient("actions/cache",[t],getRequestOptions())}function getCacheVersion(e,t,a=false){const r=e;if(t){r.push(t)}if(process.platform==="win32"&&!a){r.push("windows-only")}r.push(v);return d.createHash("sha256").update(r.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getCacheEntry(e,t,a){return s(this,void 0,void 0,(function*(){const r=createHttpClient();const i=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod,a===null||a===void 0?void 0:a.enableCrossOsArchive);const n=`cache?keys=${encodeURIComponent(e.join(","))}&version=${i}`;const p=yield(0,y.retryTypedResponse)("getCacheEntry",(()=>s(this,void 0,void 0,(function*(){return r.getJson(getCacheApiUrl(n))}))));if(p.statusCode===204){if(o.isDebug()){yield printCachesListForDiagnostics(e[0],r,i)}return null}if(!(0,y.isSuccessStatusCode)(p.statusCode)){throw new Error(`Cache service responded with ${p.statusCode}`)}const l=p.result;const d=l===null||l===void 0?void 0:l.archiveLocation;if(!d){throw new Error("Cache not found.")}o.setSecret(d);o.debug(`Cache Result:`);o.debug(JSON.stringify(l));return l}))}t.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(e,t,a){return s(this,void 0,void 0,(function*(){const r=`caches?key=${encodeURIComponent(e)}`;const i=yield(0,y.retryTypedResponse)("listCache",(()=>s(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(r))}))));if(i.statusCode===200){const t=i.result;const r=t===null||t===void 0?void 0:t.totalCount;if(r&&r>0){o.debug(`No matching cache found for cache key '${e}', version '${a} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){o.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,a){return s(this,void 0,void 0,(function*(){const r=new m.URL(e);const i=(0,g.getDownloadOptions)(a);if(r.hostname.endsWith(".blob.core.windows.net")){if(i.useAzureSdk){yield(0,h.downloadCacheStorageSDK)(e,t,i)}else if(i.concurrentBlobDownloads){yield(0,h.downloadCacheHttpClientConcurrent)(e,t,i)}else{yield(0,h.downloadCacheHttpClient)(e,t)}}else{yield(0,h.downloadCacheHttpClient)(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,a){return s(this,void 0,void 0,(function*(){const r=createHttpClient();const i=getCacheVersion(t,a===null||a===void 0?void 0:a.compressionMethod,a===null||a===void 0?void 0:a.enableCrossOsArchive);const n={key:e,version:i,cacheSize:a===null||a===void 0?void 0:a.cacheSize};const o=yield(0,y.retryTypedResponse)("reserveCache",(()=>s(this,void 0,void 0,(function*(){return r.postJson(getCacheApiUrl("caches"),n)}))));return o}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,a,r,i){return s(this,void 0,void 0,(function*(){o.debug(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${getContentRange(r,i)}`);const n={"Content-Type":"application/octet-stream","Content-Range":getContentRange(r,i)};const p=yield(0,y.retryHttpClientResponse)(`uploadChunk (start: ${r}, end: ${i})`,(()=>s(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,a(),n)}))));if(!(0,y.isSuccessStatusCode)(p.message.statusCode)){throw new Error(`Cache service responded with ${p.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=u.getArchiveFileSizeInBytes(a);const n=getCacheApiUrl(`caches/${t.toString()}`);const p=c.openSync(a,"r");const l=(0,g.getUploadOptions)(r);const d=u.assertDefined("uploadConcurrency",l.uploadConcurrency);const m=u.assertDefined("uploadChunkSize",l.uploadChunkSize);const h=[...new Array(d).keys()];o.debug("Awaiting all uploads");let y=0;try{yield Promise.all(h.map((()=>s(this,void 0,void 0,(function*(){while(yc.createReadStream(a,{fd:p,start:r,end:s,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),r,s)}})))))}finally{c.closeSync(p)}return}))}function commitCache(e,t,a){return s(this,void 0,void 0,(function*(){const r={size:a};return yield(0,y.retryTypedResponse)("commitCache",(()=>s(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),r)}))))}))}function saveCache(e,t,a){return s(this,void 0,void 0,(function*(){const r=createHttpClient();o.debug("Upload cache");yield uploadFile(r,e,t,a);o.debug("Commiting cache");const i=u.getArchiveFileSizeInBytes(t);o.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);const n=yield commitCache(r,e,i);if(!(0,y.isSuccessStatusCode)(n.statusCode)){throw new Error(`Cache service responded with ${n.statusCode} during commit cache.`)}o.info("Cache saved successfully")}))}t.saveCache=saveCache},1518:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(t){a[t]=e[t]&&function(a){return new Promise((function(r,i){a=e[t](a),settle(r,i,a.done,a.value)}))}}function settle(e,t,a,r){Promise.resolve(r).then((function(t){e({value:t,done:a})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.isGhes=t.assertDefined=t.getGnuTarPathOnWindows=t.getCacheFileName=t.getCompressionMethod=t.unlinkFile=t.resolvePaths=t.getArchiveFileSizeInBytes=t.createTempDirectory=void 0;const p=n(a(2186));const l=n(a(1514));const d=n(a(8090));const c=n(a(7436));const m=n(a(7147));const u=n(a(1017));const h=n(a(5911));const g=n(a(3837));const y=a(4138);const v=a(8840);function createTempDirectory(){return s(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let a;if(e){a=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){a="/Users"}else{a="/home"}}t=u.join(a,"actions","temp")}const a=u.join(t,(0,y.v4)());yield c.mkdirP(a);return a}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return m.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,a,r,i;var n;return s(this,void 0,void 0,(function*(){const s=[];const l=(n=process.env["GITHUB_WORKSPACE"])!==null&&n!==void 0?n:process.cwd();const c=yield d.create(e.join("\n"),{implicitDescendants:false});try{for(var m=true,h=o(c.globGenerator()),g;g=yield h.next(),t=g.done,!t;){i=g.value;m=false;try{const e=i;const t=u.relative(l,e).replace(new RegExp(`\\${u.sep}`,"g"),"/");p.debug(`Matched: ${t}`);if(t===""){s.push(".")}else{s.push(`${t}`)}}finally{m=true}}}catch(e){a={error:e}}finally{try{if(!m&&!t&&(r=h.return))yield r.call(h)}finally{if(a)throw a.error}}return s}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return s(this,void 0,void 0,(function*(){return g.promisify(m.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e,t=[]){return s(this,void 0,void 0,(function*(){let a="";t.push("--version");p.debug(`Checking ${e} ${t.join(" ")}`);try{yield l.exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>a+=e.toString(),stderr:e=>a+=e.toString()}})}catch(e){p.debug(e.message)}a=a.trim();p.debug(a);return a}))}function getCompressionMethod(){return s(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=h.clean(e);p.debug(`zstd version: ${t}`);if(e===""){return v.CompressionMethod.Gzip}else{return v.CompressionMethod.ZstdWithoutLong}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===v.CompressionMethod.Gzip?v.CacheFilename.Gzip:v.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return s(this,void 0,void 0,(function*(){if(m.existsSync(v.GnuTarPathOnWindows)){return v.GnuTarPathOnWindows}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?c.which("tar"):""}))}t.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined;function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");return e.hostname.toUpperCase()!=="GITHUB.COM"}t.isGhes=isGhes},8840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ManifestFilename=t.TarFilename=t.SystemTarPathOnWindows=t.GnuTarPathOnWindows=t.SocketTimeout=t.DefaultRetryDelay=t.DefaultRetryAttempts=t.ArchiveToolType=t.CompressionMethod=t.CacheFilename=void 0;var a;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(a=t.CacheFilename||(t.CacheFilename={}));var r;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(r=t.CompressionMethod||(t.CompressionMethod={}));var i;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(i=t.ArchiveToolType||(t.ArchiveToolType={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3;t.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;t.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;t.TarFilename="cache.tar";t.ManifestFilename="manifest.txt"},5500:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.downloadCacheStorageSDK=t.downloadCacheHttpClientConcurrent=t.downloadCacheHttpClient=t.DownloadProgress=void 0;const o=n(a(2186));const p=a(6255);const l=a(4100);const d=n(a(4300));const c=n(a(7147));const m=n(a(2781));const u=n(a(3837));const h=n(a(1518));const g=a(8840);const y=a(3981);const v=a(2557);function pipeResponseToStream(e,t){return s(this,void 0,void 0,(function*(){const a=u.promisify(m.pipeline);yield a(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;o.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const a=Date.now()-this.startTime;const r=(e/(1024*1024)/(a/1e3)).toFixed(1);o.info(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return s(this,void 0,void 0,(function*(){const a=c.createWriteStream(t);const r=new p.HttpClient("actions/cache");const i=yield(0,y.retryHttpClientResponse)("downloadCache",(()=>s(this,void 0,void 0,(function*(){return r.get(e)}))));i.message.socket.setTimeout(g.SocketTimeout,(()=>{i.message.destroy();o.debug(`Aborting download, socket timed out after ${g.SocketTimeout} ms`)}));yield pipeResponseToStream(i,a);const n=i.message.headers["content-length"];if(n){const e=parseInt(n);const a=h.getArchiveFileSizeInBytes(t);if(a!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${a}`)}}else{o.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheHttpClientConcurrent(e,t,a){var r;return s(this,void 0,void 0,(function*(){const i=yield c.promises.open(t,"w");const n=new p.HttpClient("actions/cache",undefined,{socketTimeout:a.timeoutInMs,keepAlive:true});try{const t=yield(0,y.retryHttpClientResponse)("downloadCacheMetadata",(()=>s(this,void 0,void 0,(function*(){return yield n.request("HEAD",e,null,{})}))));const o=t.message.headers["content-length"];if(o===undefined||o===null){throw new Error("Content-Length not found on blob response")}const p=parseInt(o);if(Number.isNaN(p)){throw new Error(`Could not interpret Content-Length: ${p}`)}const l=[];const d=4*1024*1024;for(let t=0;t
s(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(n,e,t,a)}))})}l.reverse();let c=0;let m=0;const u=new DownloadProgress(p);u.startDisplayTimer();const h=u.onProgress();const g=[];let v;const waitAndWrite=()=>s(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(g));yield i.write(e.buffer,0,e.count,e.offset);c--;delete g[e.offset];m+=e.count;h({loadedBytes:m})}));while(v=l.pop()){g[v.offset]=v.promiseGetter();c++;if(c>=((r=a.downloadConcurrency)!==null&&r!==void 0?r:10)){yield waitAndWrite()}}while(c>0){yield waitAndWrite()}}finally{n.dispose();yield i.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=5;let n=0;while(true){try{const i=3e4;const n=yield promiseWithTimeout(i,downloadSegment(e,t,a,r));if(typeof n==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return n}catch(e){if(n>=i){throw e}n++}}}))}function downloadSegment(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=yield(0,y.retryHttpClientResponse)("downloadCachePart",(()=>s(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${a}-${a+r-1}`})}))));if(!i.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:a,count:r,buffer:yield i.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,a){var r;return s(this,void 0,void 0,(function*(){const i=new l.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const n=yield i.getProperties();const s=(r=n.contentLength)!==null&&r!==void 0?r:-1;if(s<0){o.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,d.constants.MAX_LENGTH);const r=new DownloadProgress(s);const n=c.openSync(t,"w");try{r.startDisplayTimer();const t=new v.AbortController;const o=t.signal;while(!r.isDone()){const p=r.segmentOffset+r.segmentSize;const l=Math.min(e,s-p);r.nextSegment(l);const d=yield promiseWithTimeout(a.segmentTimeoutInMs||36e5,i.downloadToBuffer(p,l,{abortSignal:o,concurrency:a.downloadConcurrency,onProgress:r.onProgress()}));if(d==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(d)){c.writeFileSync(n,d)}}}finally{r.stopDisplayTimer();c.closeSync(n)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>s(void 0,void 0,void 0,(function*(){let a;const r=new Promise((t=>{a=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,r]).then((e=>{clearTimeout(a);return e}))}))},3981:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const o=n(a(2186));const p=a(6255);const l=a(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[p.HttpCodes.BadGateway,p.HttpCodes.ServiceUnavailable,p.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return s(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,a,r=l.DefaultRetryAttempts,i=l.DefaultRetryDelay,n=undefined){return s(this,void 0,void 0,(function*(){let s="";let p=1;while(p<=r){let l=undefined;let d=undefined;let c=false;try{l=yield t()}catch(e){if(n){l=n(e)}c=true;s=e.message}if(l){d=a(l);if(!isServerErrorStatusCode(d)){return l}}if(d){c=isRetryableStatusCode(d);s=`Cache service responded with ${d}`}o.debug(`${e} - Attempt ${p} of ${r} failed with error: ${s}`);if(!c){o.debug(`${e} - Error is not retryable`);break}yield sleep(i);p++}throw Error(`${e} failed: ${s}`)}))}t.retry=retry;function retryTypedResponse(e,t,a=l.DefaultRetryAttempts,r=l.DefaultRetryDelay){return s(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),a,r,(e=>{if(e instanceof p.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,a=l.DefaultRetryAttempts,r=l.DefaultRetryDelay){return s(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),a,r)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const o=a(1514);const p=n(a(7436));const l=a(7147);const d=n(a(1017));const c=n(a(1518));const m=a(8840);const u=process.platform==="win32";function getTarPath(){return s(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield c.getGnuTarPathOnWindows();const t=m.SystemTarPathOnWindows;if(e){return{path:e,type:m.ArchiveToolType.GNU}}else if((0,l.existsSync)(t)){return{path:t,type:m.ArchiveToolType.BSD}}break}case"darwin":{const e=yield p.which("gtar",false);if(e){return{path:e,type:m.ArchiveToolType.GNU}}else{return{path:yield p.which("tar",true),type:m.ArchiveToolType.BSD}}}default:break}return{path:yield p.which("tar",true),type:m.ArchiveToolType.GNU}}))}function getTarArgs(e,t,a,r=""){return s(this,void 0,void 0,(function*(){const i=[`"${e.path}"`];const n=c.getCacheFileName(t);const s="cache.tar";const o=getWorkingDirectory();const p=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(a){case"create":i.push("--posix","-cf",p?s:n.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"--exclude",p?s:n.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"--files-from",m.ManifestFilename);break;case"extract":i.push("-xf",p?s:r.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${d.sep}`,"g"),"/"));break;case"list":i.push("-tf",p?s:r.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P");break}if(e.type===m.ArchiveToolType.GNU){switch(process.platform){case"win32":i.push("--force-local");break;case"darwin":i.push("--delay-directory-restore");break}}return i}))}function getCommands(e,t,a=""){return s(this,void 0,void 0,(function*(){let r;const i=yield getTarPath();const n=yield getTarArgs(i,e,t,a);const s=t!=="create"?yield getDecompressionProgram(i,e,a):yield getCompressionProgram(i,e);const o=i.type===m.ArchiveToolType.BSD&&e!==m.CompressionMethod.Gzip&&u;if(o&&t!=="create"){r=[[...s].join(" "),[...n].join(" ")]}else{r=[[...n].join(" "),[...s].join(" ")]}if(o){return r}return[r.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,a){return s(this,void 0,void 0,(function*(){const r=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(t){case m.CompressionMethod.Zstd:return r?["zstd -d --long=30 --force -o",m.TarFilename,a.replace(new RegExp(`\\${d.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d --long=30"':"unzstd --long=30"];case m.CompressionMethod.ZstdWithoutLong:return r?["zstd -d --force -o",m.TarFilename,a.replace(new RegExp(`\\${d.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return s(this,void 0,void 0,(function*(){const a=c.getCacheFileName(t);const r=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(t){case m.CompressionMethod.Zstd:return r?["zstd -T0 --long=30 --force -o",a.replace(new RegExp(`\\${d.sep}`,"g"),"/"),m.TarFilename]:["--use-compress-program",u?'"zstd -T0 --long=30"':"zstdmt --long=30"];case m.CompressionMethod.ZstdWithoutLong:return r?["zstd -T0 --force -o",a.replace(new RegExp(`\\${d.sep}`,"g"),"/"),m.TarFilename]:["--use-compress-program",u?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return s(this,void 0,void 0,(function*(){for(const a of e){try{yield(0,o.exec)(a,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${a.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return s(this,void 0,void 0,(function*(){const a=yield getCommands(t,"list",e);yield execCommands(a)}))}t.listTar=listTar;function extractTar(e,t){return s(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield p.mkdirP(a);const r=yield getCommands(t,"extract",e);yield execCommands(r)}))}t.extractTar=extractTar;function createTar(e,t,a){return s(this,void 0,void 0,(function*(){(0,l.writeFileSync)(d.join(e,m.ManifestFilename),t.join("\n"));const r=yield getCommands(a,"create");yield execCommands(r,e)}))}t.createTar=createTar},6215:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const s=n(a(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}s.debug(`Upload concurrency: ${t.uploadConcurrency}`);s.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const a=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(a&&!isNaN(Number(a))&&isFinite(Number(a))){t.segmentTimeoutInMs=Number(a)*60*1e3}s.debug(`Use Azure SDK: ${t.useAzureSdk}`);s.debug(`Download concurrency: ${t.downloadConcurrency}`);s.debug(`Request timeout (ms): ${t.timeoutInMs}`);s.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);s.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);s.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},4138:(e,t,a)=>{var r=a(1610);var i=a(8373);var n=i;n.v1=r;n.v4=i;e.exports=n},5694:e=>{var t=[];for(var a=0;a<256;++a){t[a]=(a+256).toString(16).substr(1)}function bytesToUuid(e,a){var r=a||0;var i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}e.exports=bytesToUuid},4069:(e,t,a)=>{var r=a(6113);e.exports=function nodeRNG(){return r.randomBytes(16)}},1610:(e,t,a)=>{var r=a(4069);var i=a(5694);var n;var s;var o=0;var p=0;function v1(e,t,a){var l=t&&a||0;var d=t||[];e=e||{};var c=e.node||n;var m=e.clockseq!==undefined?e.clockseq:s;if(c==null||m==null){var u=r();if(c==null){c=n=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]}if(m==null){m=s=(u[6]<<8|u[7])&16383}}var h=e.msecs!==undefined?e.msecs:(new Date).getTime();var g=e.nsecs!==undefined?e.nsecs:p+1;var y=h-o+(g-p)/1e4;if(y<0&&e.clockseq===undefined){m=m+1&16383}if((y<0||h>o)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=h;p=g;s=m;h+=122192928e5;var v=((h&268435455)*1e4+g)%4294967296;d[l++]=v>>>24&255;d[l++]=v>>>16&255;d[l++]=v>>>8&255;d[l++]=v&255;var b=h/4294967296*1e4&268435455;d[l++]=b>>>8&255;d[l++]=b&255;d[l++]=b>>>24&15|16;d[l++]=b>>>16&255;d[l++]=m>>>8|128;d[l++]=m&255;for(var x=0;x<6;++x){d[l+x]=c[x]}return t?t:i(d)}e.exports=v1},8373:(e,t,a)=>{var r=a(4069);var i=a(5694);function v4(e,t,a){var n=t&&a||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||r)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var o=0;o<16;++o){t[n+o]=s[o]}}return t||i(s)}e.exports=v4},7351:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=n(a(2037));const o=a(5278);function issueCommand(e,t,a){const r=new Command(e,t,a);process.stdout.write(r.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const r=this.properties[a];if(r){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(r)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=a(7351);const p=a(717);const l=a(5278);const d=n(a(2037));const c=n(a(1017));const m=a(8041);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=l.toCommandValue(t);process.env[e]=a;const r=process.env["GITHUB_ENV"]||"";if(r){return p.issueFileCommand("ENV",p.prepareKeyValueMessage(e,t))}o.issueCommand("set-env",{name:e},a)}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return a}return a.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const r=["false","False","FALSE"];const i=getInput(e,t);if(a.includes(i))return true;if(r.includes(i))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\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return p.issueFileCommand("OUTPUT",p.prepareKeyValueMessage(e,t))}process.stdout.write(d.EOL);o.issueCommand("set-output",{name:e},l.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){o.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){o.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){o.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+d.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){const a=process.env["GITHUB_STATE"]||"";if(a){return p.issueFileCommand("STATE",p.prepareKeyValueMessage(e,t))}o.issueCommand("save-state",{name:e},l.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var h=a(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return h.summary}});var g=a(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return g.markdownSummary}});var y=a(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return y.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return y.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return y.toPlatformPath}})},717:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const s=n(a(7147));const o=n(a(2037));const p=a(5840);const l=a(5278);function issueFileCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}s.appendFileSync(a,`${l.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const a=`ghadelimiter_${p.v4()}`;const r=l.toCommandValue(t);if(e.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(r.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${e}<<${a}${o.EOL}${r}${o.EOL}${a}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=a(6255);const n=a(5526);const s=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new n.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 t;return r(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const r=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 i=(t=r.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}s.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);s.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const s=n(a(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const i=a(2037);const n=a(7147);const{access:s,appendFile:o,writeFile:p}=n.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.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 r(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,n.constants.R_OK|n.constants.W_OK)}catch(t){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,t,a={}){const r=Object.entries(a).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${r}>`}return`<${e}${r}>${t}${e}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const a=yield this.filePath();const r=t?p:o;yield r(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return r(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,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,t){const a=Object.assign({},t&&{lang:t});const r=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(r).addEOL()}addList(e,t=false){const a=t?"ol":"ul";const r=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(a,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:a,colspan:r,rowspan:i}=e;const n=t?"th":"td";const s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(n,a,s)})).join("");return this.wrap("tr",t)})).join("");const a=this.wrap("table",t);return this.addRaw(a).addEOL()}addDetails(e,t){const a=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(a).addEOL()}addImage(e,t,a){const{width:r,height:i}=a||{};const n=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i});const s=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(s).addEOL()}addHeading(e,t){const a=`h${t}`;const r=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const a=Object.assign({},t&&{cite:t});const r=this.wrap("blockquote",e,a);return this.addRaw(r).addEOL()}addLink(e,t){const a=this.wrap("a",e,{href:t});return this.addRaw(a).addEOL()}}const l=new Summary;t.markdownSummary=l;t.summary=l},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.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)}t.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}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=a(1576);const p=n(a(8159));function exec(e,t,a){return s(this,void 0,void 0,(function*(){const r=p.argStringToArray(e);if(r.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=r[0];t=r.slice(1).concat(t||[]);const n=new p.ToolRunner(i,t,a);return n.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var r,i;return s(this,void 0,void 0,(function*(){let n="";let s="";const p=new o.StringDecoder("utf8");const l=new o.StringDecoder("utf8");const d=(r=a===null||a===void 0?void 0:a.listeners)===null||r===void 0?void 0:r.stdout;const c=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=l.write(e);if(c){c(e)}};const stdOutListener=e=>{n+=p.write(e);if(d){d(e)}};const m=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const u=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:m}));n+=p.end();s+=l.end();return{exitCode:u,stdout:n,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=n(a(2037));const p=n(a(2361));const l=n(a(2081));const d=n(a(1017));const c=n(a(7436));const m=n(a(1962));const u=a(9512);const h=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const r=this._getSpawnArgs(e);let i=t?"":"[command]";if(h){if(this._isCmdFile()){i+=a;for(const e of r){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${a}"`;for(const e of r){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(a);for(const e of r){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=a;for(const e of r){i+=` ${e}`}}return i}_processLineBuffer(e,t,a){try{let r=t+e.toString();let i=r.indexOf(o.EOL);while(i>-1){const e=r.substring(0,i);a(e);r=r.substring(i+o.EOL.length);i=r.indexOf(o.EOL)}return r}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const r of e){if(t.some((e=>e===r))){a=true;break}}if(!a){return e}let r='"';let i=true;for(let t=e.length;t>0;t--){r+=e[t-1];if(i&&e[t-1]==="\\"){r+="\\"}else if(e[t-1]==='"'){i=true;r+='"'}else{i=false}}r+='"';return r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let r=e.length;r>0;r--){t+=e[r-1];if(a&&e[r-1]==="\\"){t+="\\"}else if(e[r-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={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};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return s(this,void 0,void 0,(function*(){if(!m.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise(((e,t)=>s(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)+o.EOL)}const r=new ExecState(a,this.toolPath);r.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield m.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const n=l.spawn(i,this._getSpawnArgs(a),this._getSpawnOptions(this.options,i));let s="";if(n.stdout){n.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)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(n.stderr){n.stderr.on("data",(e=>{r.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}n.on("error",(e=>{r.processError=e.message;r.processExited=true;r.processClosed=true;r.CheckComplete()}));n.on("exit",(e=>{r.processExitCode=e;r.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);r.CheckComplete()}));n.on("close",(e=>{r.processExitCode=e;r.processExited=true;r.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);r.CheckComplete()}));r.on("done",((a,r)=>{if(s.length>0){this.emit("stdline",s)}if(p.length>0){this.emit("errline",p)}n.removeAllListeners();if(a){t(a)}else{e(r)}}));if(this.options.input){if(!n.stdin){throw new Error("child process missing stdin")}n.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let r=false;let i="";function append(e){if(r&&e!=='"'){i+="\\"}i+=e;r=false}for(let n=0;n s(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(n,e,t,a)}))})}l.reverse();let c=0;let m=0;const u=new DownloadProgress(p);u.startDisplayTimer();const h=u.onProgress();const g=[];let v;const waitAndWrite=()=>s(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(g));yield i.write(e.buffer,0,e.count,e.offset);c--;delete g[e.offset];m+=e.count;h({loadedBytes:m})}));while(v=l.pop()){g[v.offset]=v.promiseGetter();c++;if(c>=((r=a.downloadConcurrency)!==null&&r!==void 0?r:10)){yield waitAndWrite()}}while(c>0){yield waitAndWrite()}}finally{n.dispose();yield i.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=5;let n=0;while(true){try{const i=3e4;const n=yield promiseWithTimeout(i,downloadSegment(e,t,a,r));if(typeof n==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return n}catch(e){if(n>=i){throw e}n++}}}))}function downloadSegment(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=yield(0,y.retryHttpClientResponse)("downloadCachePart",(()=>s(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${a}-${a+r-1}`})}))));if(!i.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:a,count:r,buffer:yield i.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,a){var r;return s(this,void 0,void 0,(function*(){const i=new l.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const n=yield i.getProperties();const s=(r=n.contentLength)!==null&&r!==void 0?r:-1;if(s<0){o.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,d.constants.MAX_LENGTH);const r=new DownloadProgress(s);const n=c.openSync(t,"w");try{r.startDisplayTimer();const t=new v.AbortController;const o=t.signal;while(!r.isDone()){const p=r.segmentOffset+r.segmentSize;const l=Math.min(e,s-p);r.nextSegment(l);const d=yield promiseWithTimeout(a.segmentTimeoutInMs||36e5,i.downloadToBuffer(p,l,{abortSignal:o,concurrency:a.downloadConcurrency,onProgress:r.onProgress()}));if(d==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(d)){c.writeFileSync(n,d)}}}finally{r.stopDisplayTimer();c.closeSync(n)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>s(void 0,void 0,void 0,(function*(){let a;const r=new Promise((t=>{a=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,r]).then((e=>{clearTimeout(a);return e}))}))},3981:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const o=n(a(2186));const p=a(6255);const l=a(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[p.HttpCodes.BadGateway,p.HttpCodes.ServiceUnavailable,p.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return s(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,a,r=l.DefaultRetryAttempts,i=l.DefaultRetryDelay,n=undefined){return s(this,void 0,void 0,(function*(){let s="";let p=1;while(p<=r){let l=undefined;let d=undefined;let c=false;try{l=yield t()}catch(e){if(n){l=n(e)}c=true;s=e.message}if(l){d=a(l);if(!isServerErrorStatusCode(d)){return l}}if(d){c=isRetryableStatusCode(d);s=`Cache service responded with ${d}`}o.debug(`${e} - Attempt ${p} of ${r} failed with error: ${s}`);if(!c){o.debug(`${e} - Error is not retryable`);break}yield sleep(i);p++}throw Error(`${e} failed: ${s}`)}))}t.retry=retry;function retryTypedResponse(e,t,a=l.DefaultRetryAttempts,r=l.DefaultRetryDelay){return s(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),a,r,(e=>{if(e instanceof p.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,a=l.DefaultRetryAttempts,r=l.DefaultRetryDelay){return s(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),a,r)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const o=a(1514);const p=n(a(7436));const l=a(7147);const d=n(a(1017));const c=n(a(1518));const m=a(8840);const u=process.platform==="win32";function getTarPath(){return s(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield c.getGnuTarPathOnWindows();const t=m.SystemTarPathOnWindows;if(e){return{path:e,type:m.ArchiveToolType.GNU}}else if((0,l.existsSync)(t)){return{path:t,type:m.ArchiveToolType.BSD}}break}case"darwin":{const e=yield p.which("gtar",false);if(e){return{path:e,type:m.ArchiveToolType.GNU}}else{return{path:yield p.which("tar",true),type:m.ArchiveToolType.BSD}}}default:break}return{path:yield p.which("tar",true),type:m.ArchiveToolType.GNU}}))}function getTarArgs(e,t,a,r=""){return s(this,void 0,void 0,(function*(){const i=[`"${e.path}"`];const n=c.getCacheFileName(t);const s="cache.tar";const o=getWorkingDirectory();const p=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(a){case"create":i.push("--posix","-cf",p?s:n.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"--exclude",p?s:n.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"--files-from",m.ManifestFilename);break;case"extract":i.push("-xf",p?s:r.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${d.sep}`,"g"),"/"));break;case"list":i.push("-tf",p?s:r.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P");break}if(e.type===m.ArchiveToolType.GNU){switch(process.platform){case"win32":i.push("--force-local");break;case"darwin":i.push("--delay-directory-restore");break}}return i}))}function getCommands(e,t,a=""){return s(this,void 0,void 0,(function*(){let r;const i=yield getTarPath();const n=yield getTarArgs(i,e,t,a);const s=t!=="create"?yield getDecompressionProgram(i,e,a):yield getCompressionProgram(i,e);const o=i.type===m.ArchiveToolType.BSD&&e!==m.CompressionMethod.Gzip&&u;if(o&&t!=="create"){r=[[...s].join(" "),[...n].join(" ")]}else{r=[[...n].join(" "),[...s].join(" ")]}if(o){return r}return[r.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,a){return s(this,void 0,void 0,(function*(){const r=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(t){case m.CompressionMethod.Zstd:return r?["zstd -d --long=30 --force -o",m.TarFilename,a.replace(new RegExp(`\\${d.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d --long=30"':"unzstd --long=30"];case m.CompressionMethod.ZstdWithoutLong:return r?["zstd -d --force -o",m.TarFilename,a.replace(new RegExp(`\\${d.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return s(this,void 0,void 0,(function*(){const a=c.getCacheFileName(t);const r=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(t){case m.CompressionMethod.Zstd:return r?["zstd -T0 --long=30 --force -o",a.replace(new RegExp(`\\${d.sep}`,"g"),"/"),m.TarFilename]:["--use-compress-program",u?'"zstd -T0 --long=30"':"zstdmt --long=30"];case m.CompressionMethod.ZstdWithoutLong:return r?["zstd -T0 --force -o",a.replace(new RegExp(`\\${d.sep}`,"g"),"/"),m.TarFilename]:["--use-compress-program",u?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return s(this,void 0,void 0,(function*(){for(const a of e){try{yield(0,o.exec)(a,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${a.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return s(this,void 0,void 0,(function*(){const a=yield getCommands(t,"list",e);yield execCommands(a)}))}t.listTar=listTar;function extractTar(e,t){return s(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield p.mkdirP(a);const r=yield getCommands(t,"extract",e);yield execCommands(r)}))}t.extractTar=extractTar;function createTar(e,t,a){return s(this,void 0,void 0,(function*(){(0,l.writeFileSync)(d.join(e,m.ManifestFilename),t.join("\n"));const r=yield getCommands(a,"create");yield execCommands(r,e)}))}t.createTar=createTar},6215:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const s=n(a(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}s.debug(`Upload concurrency: ${t.uploadConcurrency}`);s.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const a=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(a&&!isNaN(Number(a))&&isFinite(Number(a))){t.segmentTimeoutInMs=Number(a)*60*1e3}s.debug(`Use Azure SDK: ${t.useAzureSdk}`);s.debug(`Download concurrency: ${t.downloadConcurrency}`);s.debug(`Request timeout (ms): ${t.timeoutInMs}`);s.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);s.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);s.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},4138:(e,t,a)=>{var r=a(1610);var i=a(8373);var n=i;n.v1=r;n.v4=i;e.exports=n},5694:e=>{var t=[];for(var a=0;a<256;++a){t[a]=(a+256).toString(16).substr(1)}function bytesToUuid(e,a){var r=a||0;var i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}e.exports=bytesToUuid},4069:(e,t,a)=>{var r=a(6113);e.exports=function nodeRNG(){return r.randomBytes(16)}},1610:(e,t,a)=>{var r=a(4069);var i=a(5694);var n;var s;var o=0;var p=0;function v1(e,t,a){var l=t&&a||0;var d=t||[];e=e||{};var c=e.node||n;var m=e.clockseq!==undefined?e.clockseq:s;if(c==null||m==null){var u=r();if(c==null){c=n=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]}if(m==null){m=s=(u[6]<<8|u[7])&16383}}var h=e.msecs!==undefined?e.msecs:(new Date).getTime();var g=e.nsecs!==undefined?e.nsecs:p+1;var y=h-o+(g-p)/1e4;if(y<0&&e.clockseq===undefined){m=m+1&16383}if((y<0||h>o)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=h;p=g;s=m;h+=122192928e5;var v=((h&268435455)*1e4+g)%4294967296;d[l++]=v>>>24&255;d[l++]=v>>>16&255;d[l++]=v>>>8&255;d[l++]=v&255;var b=h/4294967296*1e4&268435455;d[l++]=b>>>8&255;d[l++]=b&255;d[l++]=b>>>24&15|16;d[l++]=b>>>16&255;d[l++]=m>>>8|128;d[l++]=m&255;for(var x=0;x<6;++x){d[l+x]=c[x]}return t?t:i(d)}e.exports=v1},8373:(e,t,a)=>{var r=a(4069);var i=a(5694);function v4(e,t,a){var n=t&&a||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||r)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var o=0;o<16;++o){t[n+o]=s[o]}}return t||i(s)}e.exports=v4},7351:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=n(a(2037));const o=a(5278);function issueCommand(e,t,a){const r=new Command(e,t,a);process.stdout.write(r.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const r=this.properties[a];if(r){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(r)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=a(7351);const p=a(717);const l=a(5278);const d=n(a(2037));const c=n(a(1017));const m=a(8041);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=l.toCommandValue(t);process.env[e]=a;const r=process.env["GITHUB_ENV"]||"";if(r){return p.issueFileCommand("ENV",p.prepareKeyValueMessage(e,t))}o.issueCommand("set-env",{name:e},a)}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return a}return a.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const r=["false","False","FALSE"];const i=getInput(e,t);if(a.includes(i))return true;if(r.includes(i))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\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return p.issueFileCommand("OUTPUT",p.prepareKeyValueMessage(e,t))}process.stdout.write(d.EOL);o.issueCommand("set-output",{name:e},l.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){o.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){o.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){o.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+d.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){const a=process.env["GITHUB_STATE"]||"";if(a){return p.issueFileCommand("STATE",p.prepareKeyValueMessage(e,t))}o.issueCommand("save-state",{name:e},l.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var h=a(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return h.summary}});var g=a(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return g.markdownSummary}});var y=a(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return y.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return y.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return y.toPlatformPath}})},717:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const s=n(a(7147));const o=n(a(2037));const p=a(5840);const l=a(5278);function issueFileCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}s.appendFileSync(a,`${l.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const a=`ghadelimiter_${p.v4()}`;const r=l.toCommandValue(t);if(e.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(r.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${e}<<${a}${o.EOL}${r}${o.EOL}${a}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=a(6255);const n=a(5526);const s=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new n.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 t;return r(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const r=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 i=(t=r.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}s.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);s.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const s=n(a(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const i=a(2037);const n=a(7147);const{access:s,appendFile:o,writeFile:p}=n.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.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 r(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,n.constants.R_OK|n.constants.W_OK)}catch(t){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,t,a={}){const r=Object.entries(a).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${r}>`}return`<${e}${r}>${t}${e}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const a=yield this.filePath();const r=t?p:o;yield r(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return r(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,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,t){const a=Object.assign({},t&&{lang:t});const r=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(r).addEOL()}addList(e,t=false){const a=t?"ol":"ul";const r=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(a,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:a,colspan:r,rowspan:i}=e;const n=t?"th":"td";const s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(n,a,s)})).join("");return this.wrap("tr",t)})).join("");const a=this.wrap("table",t);return this.addRaw(a).addEOL()}addDetails(e,t){const a=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(a).addEOL()}addImage(e,t,a){const{width:r,height:i}=a||{};const n=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i});const s=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(s).addEOL()}addHeading(e,t){const a=`h${t}`;const r=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const a=Object.assign({},t&&{cite:t});const r=this.wrap("blockquote",e,a);return this.addRaw(r).addEOL()}addLink(e,t){const a=this.wrap("a",e,{href:t});return this.addRaw(a).addEOL()}}const l=new Summary;t.markdownSummary=l;t.summary=l},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.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)}t.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}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=a(1576);const p=n(a(8159));function exec(e,t,a){return s(this,void 0,void 0,(function*(){const r=p.argStringToArray(e);if(r.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=r[0];t=r.slice(1).concat(t||[]);const n=new p.ToolRunner(i,t,a);return n.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var r,i;return s(this,void 0,void 0,(function*(){let n="";let s="";const p=new o.StringDecoder("utf8");const l=new o.StringDecoder("utf8");const d=(r=a===null||a===void 0?void 0:a.listeners)===null||r===void 0?void 0:r.stdout;const c=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=l.write(e);if(c){c(e)}};const stdOutListener=e=>{n+=p.write(e);if(d){d(e)}};const m=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const u=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:m}));n+=p.end();s+=l.end();return{exitCode:u,stdout:n,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=n(a(2037));const p=n(a(2361));const l=n(a(2081));const d=n(a(1017));const c=n(a(7436));const m=n(a(1962));const u=a(9512);const h=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const r=this._getSpawnArgs(e);let i=t?"":"[command]";if(h){if(this._isCmdFile()){i+=a;for(const e of r){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${a}"`;for(const e of r){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(a);for(const e of r){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=a;for(const e of r){i+=` ${e}`}}return i}_processLineBuffer(e,t,a){try{let r=t+e.toString();let i=r.indexOf(o.EOL);while(i>-1){const e=r.substring(0,i);a(e);r=r.substring(i+o.EOL.length);i=r.indexOf(o.EOL)}return r}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const r of e){if(t.some((e=>e===r))){a=true;break}}if(!a){return e}let r='"';let i=true;for(let t=e.length;t>0;t--){r+=e[t-1];if(i&&e[t-1]==="\\"){r+="\\"}else if(e[t-1]==='"'){i=true;r+='"'}else{i=false}}r+='"';return r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let r=e.length;r>0;r--){t+=e[r-1];if(a&&e[r-1]==="\\"){t+="\\"}else if(e[r-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={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};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return s(this,void 0,void 0,(function*(){if(!m.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise(((e,t)=>s(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)+o.EOL)}const r=new ExecState(a,this.toolPath);r.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield m.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const n=l.spawn(i,this._getSpawnArgs(a),this._getSpawnOptions(this.options,i));let s="";if(n.stdout){n.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)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(n.stderr){n.stderr.on("data",(e=>{r.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}n.on("error",(e=>{r.processError=e.message;r.processExited=true;r.processClosed=true;r.CheckComplete()}));n.on("exit",(e=>{r.processExitCode=e;r.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);r.CheckComplete()}));n.on("close",(e=>{r.processExitCode=e;r.processExited=true;r.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);r.CheckComplete()}));r.on("done",((a,r)=>{if(s.length>0){this.emit("stdline",s)}if(p.length>0){this.emit("errline",p)}n.removeAllListeners();if(a){t(a)}else{e(r)}}));if(this.options.input){if(!n.stdin){throw new Error("child process missing stdin")}n.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let r=false;let i="";function append(e){if(r&&e!=='"'){i+="\\"}i+=e;r=false}for(let n=0;n s(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(n,e,t,a)}))})}l.reverse();let c=0;let m=0;const u=new DownloadProgress(p);u.startDisplayTimer();const h=u.onProgress();const g=[];let v;const waitAndWrite=()=>s(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(g));yield i.write(e.buffer,0,e.count,e.offset);c--;delete g[e.offset];m+=e.count;h({loadedBytes:m})}));while(v=l.pop()){g[v.offset]=v.promiseGetter();c++;if(c>=((r=a.downloadConcurrency)!==null&&r!==void 0?r:10)){yield waitAndWrite()}}while(c>0){yield waitAndWrite()}}finally{n.dispose();yield i.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=5;let n=0;while(true){try{const i=3e4;const n=yield promiseWithTimeout(i,downloadSegment(e,t,a,r));if(typeof n==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return n}catch(e){if(n>=i){throw e}n++}}}))}function downloadSegment(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=yield(0,y.retryHttpClientResponse)("downloadCachePart",(()=>s(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${a}-${a+r-1}`})}))));if(!i.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:a,count:r,buffer:yield i.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,a){var r;return s(this,void 0,void 0,(function*(){const i=new l.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const n=yield i.getProperties();const s=(r=n.contentLength)!==null&&r!==void 0?r:-1;if(s<0){o.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,d.constants.MAX_LENGTH);const r=new DownloadProgress(s);const n=c.openSync(t,"w");try{r.startDisplayTimer();const t=new v.AbortController;const o=t.signal;while(!r.isDone()){const p=r.segmentOffset+r.segmentSize;const l=Math.min(e,s-p);r.nextSegment(l);const d=yield promiseWithTimeout(a.segmentTimeoutInMs||36e5,i.downloadToBuffer(p,l,{abortSignal:o,concurrency:a.downloadConcurrency,onProgress:r.onProgress()}));if(d==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(d)){c.writeFileSync(n,d)}}}finally{r.stopDisplayTimer();c.closeSync(n)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>s(void 0,void 0,void 0,(function*(){let a;const r=new Promise((t=>{a=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,r]).then((e=>{clearTimeout(a);return e}))}))},3981:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const o=n(a(2186));const p=a(6255);const l=a(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[p.HttpCodes.BadGateway,p.HttpCodes.ServiceUnavailable,p.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return s(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,a,r=l.DefaultRetryAttempts,i=l.DefaultRetryDelay,n=undefined){return s(this,void 0,void 0,(function*(){let s="";let p=1;while(p<=r){let l=undefined;let d=undefined;let c=false;try{l=yield t()}catch(e){if(n){l=n(e)}c=true;s=e.message}if(l){d=a(l);if(!isServerErrorStatusCode(d)){return l}}if(d){c=isRetryableStatusCode(d);s=`Cache service responded with ${d}`}o.debug(`${e} - Attempt ${p} of ${r} failed with error: ${s}`);if(!c){o.debug(`${e} - Error is not retryable`);break}yield sleep(i);p++}throw Error(`${e} failed: ${s}`)}))}t.retry=retry;function retryTypedResponse(e,t,a=l.DefaultRetryAttempts,r=l.DefaultRetryDelay){return s(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),a,r,(e=>{if(e instanceof p.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,a=l.DefaultRetryAttempts,r=l.DefaultRetryDelay){return s(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),a,r)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const o=a(1514);const p=n(a(7436));const l=a(7147);const d=n(a(1017));const c=n(a(1518));const m=a(8840);const u=process.platform==="win32";function getTarPath(){return s(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield c.getGnuTarPathOnWindows();const t=m.SystemTarPathOnWindows;if(e){return{path:e,type:m.ArchiveToolType.GNU}}else if((0,l.existsSync)(t)){return{path:t,type:m.ArchiveToolType.BSD}}break}case"darwin":{const e=yield p.which("gtar",false);if(e){return{path:e,type:m.ArchiveToolType.GNU}}else{return{path:yield p.which("tar",true),type:m.ArchiveToolType.BSD}}}default:break}return{path:yield p.which("tar",true),type:m.ArchiveToolType.GNU}}))}function getTarArgs(e,t,a,r=""){return s(this,void 0,void 0,(function*(){const i=[`"${e.path}"`];const n=c.getCacheFileName(t);const s="cache.tar";const o=getWorkingDirectory();const p=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(a){case"create":i.push("--posix","-cf",p?s:n.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"--exclude",p?s:n.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"--files-from",m.ManifestFilename);break;case"extract":i.push("-xf",p?s:r.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${d.sep}`,"g"),"/"));break;case"list":i.push("-tf",p?s:r.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P");break}if(e.type===m.ArchiveToolType.GNU){switch(process.platform){case"win32":i.push("--force-local");break;case"darwin":i.push("--delay-directory-restore");break}}return i}))}function getCommands(e,t,a=""){return s(this,void 0,void 0,(function*(){let r;const i=yield getTarPath();const n=yield getTarArgs(i,e,t,a);const s=t!=="create"?yield getDecompressionProgram(i,e,a):yield getCompressionProgram(i,e);const o=i.type===m.ArchiveToolType.BSD&&e!==m.CompressionMethod.Gzip&&u;if(o&&t!=="create"){r=[[...s].join(" "),[...n].join(" ")]}else{r=[[...n].join(" "),[...s].join(" ")]}if(o){return r}return[r.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,a){return s(this,void 0,void 0,(function*(){const r=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(t){case m.CompressionMethod.Zstd:return r?["zstd -d --long=30 --force -o",m.TarFilename,a.replace(new RegExp(`\\${d.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d --long=30"':"unzstd --long=30"];case m.CompressionMethod.ZstdWithoutLong:return r?["zstd -d --force -o",m.TarFilename,a.replace(new RegExp(`\\${d.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return s(this,void 0,void 0,(function*(){const a=c.getCacheFileName(t);const r=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(t){case m.CompressionMethod.Zstd:return r?["zstd -T0 --long=30 --force -o",a.replace(new RegExp(`\\${d.sep}`,"g"),"/"),m.TarFilename]:["--use-compress-program",u?'"zstd -T0 --long=30"':"zstdmt --long=30"];case m.CompressionMethod.ZstdWithoutLong:return r?["zstd -T0 --force -o",a.replace(new RegExp(`\\${d.sep}`,"g"),"/"),m.TarFilename]:["--use-compress-program",u?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return s(this,void 0,void 0,(function*(){for(const a of e){try{yield(0,o.exec)(a,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${a.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return s(this,void 0,void 0,(function*(){const a=yield getCommands(t,"list",e);yield execCommands(a)}))}t.listTar=listTar;function extractTar(e,t){return s(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield p.mkdirP(a);const r=yield getCommands(t,"extract",e);yield execCommands(r)}))}t.extractTar=extractTar;function createTar(e,t,a){return s(this,void 0,void 0,(function*(){(0,l.writeFileSync)(d.join(e,m.ManifestFilename),t.join("\n"));const r=yield getCommands(a,"create");yield execCommands(r,e)}))}t.createTar=createTar},6215:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const s=n(a(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}s.debug(`Upload concurrency: ${t.uploadConcurrency}`);s.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const a=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(a&&!isNaN(Number(a))&&isFinite(Number(a))){t.segmentTimeoutInMs=Number(a)*60*1e3}s.debug(`Use Azure SDK: ${t.useAzureSdk}`);s.debug(`Download concurrency: ${t.downloadConcurrency}`);s.debug(`Request timeout (ms): ${t.timeoutInMs}`);s.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);s.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);s.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},4138:(e,t,a)=>{var r=a(1610);var i=a(8373);var n=i;n.v1=r;n.v4=i;e.exports=n},5694:e=>{var t=[];for(var a=0;a<256;++a){t[a]=(a+256).toString(16).substr(1)}function bytesToUuid(e,a){var r=a||0;var i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}e.exports=bytesToUuid},4069:(e,t,a)=>{var r=a(6113);e.exports=function nodeRNG(){return r.randomBytes(16)}},1610:(e,t,a)=>{var r=a(4069);var i=a(5694);var n;var s;var o=0;var p=0;function v1(e,t,a){var l=t&&a||0;var d=t||[];e=e||{};var c=e.node||n;var m=e.clockseq!==undefined?e.clockseq:s;if(c==null||m==null){var u=r();if(c==null){c=n=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]}if(m==null){m=s=(u[6]<<8|u[7])&16383}}var h=e.msecs!==undefined?e.msecs:(new Date).getTime();var g=e.nsecs!==undefined?e.nsecs:p+1;var y=h-o+(g-p)/1e4;if(y<0&&e.clockseq===undefined){m=m+1&16383}if((y<0||h>o)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=h;p=g;s=m;h+=122192928e5;var v=((h&268435455)*1e4+g)%4294967296;d[l++]=v>>>24&255;d[l++]=v>>>16&255;d[l++]=v>>>8&255;d[l++]=v&255;var b=h/4294967296*1e4&268435455;d[l++]=b>>>8&255;d[l++]=b&255;d[l++]=b>>>24&15|16;d[l++]=b>>>16&255;d[l++]=m>>>8|128;d[l++]=m&255;for(var x=0;x<6;++x){d[l+x]=c[x]}return t?t:i(d)}e.exports=v1},8373:(e,t,a)=>{var r=a(4069);var i=a(5694);function v4(e,t,a){var n=t&&a||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||r)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var o=0;o<16;++o){t[n+o]=s[o]}}return t||i(s)}e.exports=v4},7351:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=n(a(2037));const o=a(5278);function issueCommand(e,t,a){const r=new Command(e,t,a);process.stdout.write(r.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const r=this.properties[a];if(r){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(r)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=a(7351);const p=a(717);const l=a(5278);const d=n(a(2037));const c=n(a(1017));const m=a(8041);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=l.toCommandValue(t);process.env[e]=a;const r=process.env["GITHUB_ENV"]||"";if(r){return p.issueFileCommand("ENV",p.prepareKeyValueMessage(e,t))}o.issueCommand("set-env",{name:e},a)}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return a}return a.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const r=["false","False","FALSE"];const i=getInput(e,t);if(a.includes(i))return true;if(r.includes(i))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\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return p.issueFileCommand("OUTPUT",p.prepareKeyValueMessage(e,t))}process.stdout.write(d.EOL);o.issueCommand("set-output",{name:e},l.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){o.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){o.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){o.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+d.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){const a=process.env["GITHUB_STATE"]||"";if(a){return p.issueFileCommand("STATE",p.prepareKeyValueMessage(e,t))}o.issueCommand("save-state",{name:e},l.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var h=a(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return h.summary}});var g=a(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return g.markdownSummary}});var y=a(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return y.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return y.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return y.toPlatformPath}})},717:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const s=n(a(7147));const o=n(a(2037));const p=a(5840);const l=a(5278);function issueFileCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}s.appendFileSync(a,`${l.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const a=`ghadelimiter_${p.v4()}`;const r=l.toCommandValue(t);if(e.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(r.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${e}<<${a}${o.EOL}${r}${o.EOL}${a}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=a(6255);const n=a(5526);const s=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new n.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 t;return r(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const r=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 i=(t=r.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}s.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);s.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const s=n(a(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const i=a(2037);const n=a(7147);const{access:s,appendFile:o,writeFile:p}=n.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.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 r(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,n.constants.R_OK|n.constants.W_OK)}catch(t){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,t,a={}){const r=Object.entries(a).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${r}>`}return`<${e}${r}>${t}${e}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const a=yield this.filePath();const r=t?p:o;yield r(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return r(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,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,t){const a=Object.assign({},t&&{lang:t});const r=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(r).addEOL()}addList(e,t=false){const a=t?"ol":"ul";const r=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(a,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:a,colspan:r,rowspan:i}=e;const n=t?"th":"td";const s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(n,a,s)})).join("");return this.wrap("tr",t)})).join("");const a=this.wrap("table",t);return this.addRaw(a).addEOL()}addDetails(e,t){const a=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(a).addEOL()}addImage(e,t,a){const{width:r,height:i}=a||{};const n=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i});const s=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(s).addEOL()}addHeading(e,t){const a=`h${t}`;const r=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const a=Object.assign({},t&&{cite:t});const r=this.wrap("blockquote",e,a);return this.addRaw(r).addEOL()}addLink(e,t){const a=this.wrap("a",e,{href:t});return this.addRaw(a).addEOL()}}const l=new Summary;t.markdownSummary=l;t.summary=l},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.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)}t.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}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=a(1576);const p=n(a(8159));function exec(e,t,a){return s(this,void 0,void 0,(function*(){const r=p.argStringToArray(e);if(r.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=r[0];t=r.slice(1).concat(t||[]);const n=new p.ToolRunner(i,t,a);return n.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var r,i;return s(this,void 0,void 0,(function*(){let n="";let s="";const p=new o.StringDecoder("utf8");const l=new o.StringDecoder("utf8");const d=(r=a===null||a===void 0?void 0:a.listeners)===null||r===void 0?void 0:r.stdout;const c=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=l.write(e);if(c){c(e)}};const stdOutListener=e=>{n+=p.write(e);if(d){d(e)}};const m=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const u=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:m}));n+=p.end();s+=l.end();return{exitCode:u,stdout:n,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=n(a(2037));const p=n(a(2361));const l=n(a(2081));const d=n(a(1017));const c=n(a(7436));const m=n(a(1962));const u=a(9512);const h=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const r=this._getSpawnArgs(e);let i=t?"":"[command]";if(h){if(this._isCmdFile()){i+=a;for(const e of r){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${a}"`;for(const e of r){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(a);for(const e of r){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=a;for(const e of r){i+=` ${e}`}}return i}_processLineBuffer(e,t,a){try{let r=t+e.toString();let i=r.indexOf(o.EOL);while(i>-1){const e=r.substring(0,i);a(e);r=r.substring(i+o.EOL.length);i=r.indexOf(o.EOL)}return r}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const r of e){if(t.some((e=>e===r))){a=true;break}}if(!a){return e}let r='"';let i=true;for(let t=e.length;t>0;t--){r+=e[t-1];if(i&&e[t-1]==="\\"){r+="\\"}else if(e[t-1]==='"'){i=true;r+='"'}else{i=false}}r+='"';return r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let r=e.length;r>0;r--){t+=e[r-1];if(a&&e[r-1]==="\\"){t+="\\"}else if(e[r-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={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};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return s(this,void 0,void 0,(function*(){if(!m.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise(((e,t)=>s(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)+o.EOL)}const r=new ExecState(a,this.toolPath);r.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield m.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const n=l.spawn(i,this._getSpawnArgs(a),this._getSpawnOptions(this.options,i));let s="";if(n.stdout){n.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)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(n.stderr){n.stderr.on("data",(e=>{r.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}n.on("error",(e=>{r.processError=e.message;r.processExited=true;r.processClosed=true;r.CheckComplete()}));n.on("exit",(e=>{r.processExitCode=e;r.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);r.CheckComplete()}));n.on("close",(e=>{r.processExitCode=e;r.processExited=true;r.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);r.CheckComplete()}));r.on("done",((a,r)=>{if(s.length>0){this.emit("stdline",s)}if(p.length>0){this.emit("errline",p)}n.removeAllListeners();if(a){t(a)}else{e(r)}}));if(this.options.input){if(!n.stdin){throw new Error("child process missing stdin")}n.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let r=false;let i="";function append(e){if(r&&e!=='"'){i+="\\"}i+=e;r=false}for(let n=0;n s(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(n,e,t,a)}))})}l.reverse();let c=0;let m=0;const u=new DownloadProgress(p);u.startDisplayTimer();const h=u.onProgress();const g=[];let v;const waitAndWrite=()=>s(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(g));yield i.write(e.buffer,0,e.count,e.offset);c--;delete g[e.offset];m+=e.count;h({loadedBytes:m})}));while(v=l.pop()){g[v.offset]=v.promiseGetter();c++;if(c>=((r=a.downloadConcurrency)!==null&&r!==void 0?r:10)){yield waitAndWrite()}}while(c>0){yield waitAndWrite()}}finally{n.dispose();yield i.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=5;let n=0;while(true){try{const i=3e4;const n=yield promiseWithTimeout(i,downloadSegment(e,t,a,r));if(typeof n==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return n}catch(e){if(n>=i){throw e}n++}}}))}function downloadSegment(e,t,a,r){return s(this,void 0,void 0,(function*(){const i=yield(0,y.retryHttpClientResponse)("downloadCachePart",(()=>s(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${a}-${a+r-1}`})}))));if(!i.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:a,count:r,buffer:yield i.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,a){var r;return s(this,void 0,void 0,(function*(){const i=new l.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const n=yield i.getProperties();const s=(r=n.contentLength)!==null&&r!==void 0?r:-1;if(s<0){o.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,d.constants.MAX_LENGTH);const r=new DownloadProgress(s);const n=c.openSync(t,"w");try{r.startDisplayTimer();const t=new v.AbortController;const o=t.signal;while(!r.isDone()){const p=r.segmentOffset+r.segmentSize;const l=Math.min(e,s-p);r.nextSegment(l);const d=yield promiseWithTimeout(a.segmentTimeoutInMs||36e5,i.downloadToBuffer(p,l,{abortSignal:o,concurrency:a.downloadConcurrency,onProgress:r.onProgress()}));if(d==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(d)){c.writeFileSync(n,d)}}}finally{r.stopDisplayTimer();c.closeSync(n)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>s(void 0,void 0,void 0,(function*(){let a;const r=new Promise((t=>{a=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,r]).then((e=>{clearTimeout(a);return e}))}))},3981:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const o=n(a(2186));const p=a(6255);const l=a(8840);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[p.HttpCodes.BadGateway,p.HttpCodes.ServiceUnavailable,p.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return s(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,a,r=l.DefaultRetryAttempts,i=l.DefaultRetryDelay,n=undefined){return s(this,void 0,void 0,(function*(){let s="";let p=1;while(p<=r){let l=undefined;let d=undefined;let c=false;try{l=yield t()}catch(e){if(n){l=n(e)}c=true;s=e.message}if(l){d=a(l);if(!isServerErrorStatusCode(d)){return l}}if(d){c=isRetryableStatusCode(d);s=`Cache service responded with ${d}`}o.debug(`${e} - Attempt ${p} of ${r} failed with error: ${s}`);if(!c){o.debug(`${e} - Error is not retryable`);break}yield sleep(i);p++}throw Error(`${e} failed: ${s}`)}))}t.retry=retry;function retryTypedResponse(e,t,a=l.DefaultRetryAttempts,r=l.DefaultRetryDelay){return s(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),a,r,(e=>{if(e instanceof p.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,a=l.DefaultRetryAttempts,r=l.DefaultRetryDelay){return s(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),a,r)}))}t.retryHttpClientResponse=retryHttpClientResponse},6490:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const o=a(1514);const p=n(a(7436));const l=a(7147);const d=n(a(1017));const c=n(a(1518));const m=a(8840);const u=process.platform==="win32";function getTarPath(){return s(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield c.getGnuTarPathOnWindows();const t=m.SystemTarPathOnWindows;if(e){return{path:e,type:m.ArchiveToolType.GNU}}else if((0,l.existsSync)(t)){return{path:t,type:m.ArchiveToolType.BSD}}break}case"darwin":{const e=yield p.which("gtar",false);if(e){return{path:e,type:m.ArchiveToolType.GNU}}else{return{path:yield p.which("tar",true),type:m.ArchiveToolType.BSD}}}default:break}return{path:yield p.which("tar",true),type:m.ArchiveToolType.GNU}}))}function getTarArgs(e,t,a,r=""){return s(this,void 0,void 0,(function*(){const i=[`"${e.path}"`];const n=c.getCacheFileName(t);const s="cache.tar";const o=getWorkingDirectory();const p=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(a){case"create":i.push("--posix","-cf",p?s:n.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"--exclude",p?s:n.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"--files-from",m.ManifestFilename);break;case"extract":i.push("-xf",p?s:r.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P","-C",o.replace(new RegExp(`\\${d.sep}`,"g"),"/"));break;case"list":i.push("-tf",p?s:r.replace(new RegExp(`\\${d.sep}`,"g"),"/"),"-P");break}if(e.type===m.ArchiveToolType.GNU){switch(process.platform){case"win32":i.push("--force-local");break;case"darwin":i.push("--delay-directory-restore");break}}return i}))}function getCommands(e,t,a=""){return s(this,void 0,void 0,(function*(){let r;const i=yield getTarPath();const n=yield getTarArgs(i,e,t,a);const s=t!=="create"?yield getDecompressionProgram(i,e,a):yield getCompressionProgram(i,e);const o=i.type===m.ArchiveToolType.BSD&&e!==m.CompressionMethod.Gzip&&u;if(o&&t!=="create"){r=[[...s].join(" "),[...n].join(" ")]}else{r=[[...n].join(" "),[...s].join(" ")]}if(o){return r}return[r.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,a){return s(this,void 0,void 0,(function*(){const r=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(t){case m.CompressionMethod.Zstd:return r?["zstd -d --long=30 --force -o",m.TarFilename,a.replace(new RegExp(`\\${d.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d --long=30"':"unzstd --long=30"];case m.CompressionMethod.ZstdWithoutLong:return r?["zstd -d --force -o",m.TarFilename,a.replace(new RegExp(`\\${d.sep}`,"g"),"/")]:["--use-compress-program",u?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return s(this,void 0,void 0,(function*(){const a=c.getCacheFileName(t);const r=e.type===m.ArchiveToolType.BSD&&t!==m.CompressionMethod.Gzip&&u;switch(t){case m.CompressionMethod.Zstd:return r?["zstd -T0 --long=30 --force -o",a.replace(new RegExp(`\\${d.sep}`,"g"),"/"),m.TarFilename]:["--use-compress-program",u?'"zstd -T0 --long=30"':"zstdmt --long=30"];case m.CompressionMethod.ZstdWithoutLong:return r?["zstd -T0 --force -o",a.replace(new RegExp(`\\${d.sep}`,"g"),"/"),m.TarFilename]:["--use-compress-program",u?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return s(this,void 0,void 0,(function*(){for(const a of e){try{yield(0,o.exec)(a,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${a.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return s(this,void 0,void 0,(function*(){const a=yield getCommands(t,"list",e);yield execCommands(a)}))}t.listTar=listTar;function extractTar(e,t){return s(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield p.mkdirP(a);const r=yield getCommands(t,"extract",e);yield execCommands(r)}))}t.extractTar=extractTar;function createTar(e,t,a){return s(this,void 0,void 0,(function*(){(0,l.writeFileSync)(d.join(e,m.ManifestFilename),t.join("\n"));const r=yield getCommands(a,"create");yield execCommands(r,e)}))}t.createTar=createTar},6215:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;var i=Object.getOwnPropertyDescriptor(t,a);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,r,i)}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const s=n(a(2186));function getUploadOptions(e){const t={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}s.debug(`Upload concurrency: ${t.uploadConcurrency}`);s.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const a=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(a&&!isNaN(Number(a))&&isFinite(Number(a))){t.segmentTimeoutInMs=Number(a)*60*1e3}s.debug(`Use Azure SDK: ${t.useAzureSdk}`);s.debug(`Download concurrency: ${t.downloadConcurrency}`);s.debug(`Request timeout (ms): ${t.timeoutInMs}`);s.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);s.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);s.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},4138:(e,t,a)=>{var r=a(1610);var i=a(8373);var n=i;n.v1=r;n.v4=i;e.exports=n},5694:e=>{var t=[];for(var a=0;a<256;++a){t[a]=(a+256).toString(16).substr(1)}function bytesToUuid(e,a){var r=a||0;var i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}e.exports=bytesToUuid},4069:(e,t,a)=>{var r=a(6113);e.exports=function nodeRNG(){return r.randomBytes(16)}},1610:(e,t,a)=>{var r=a(4069);var i=a(5694);var n;var s;var o=0;var p=0;function v1(e,t,a){var l=t&&a||0;var d=t||[];e=e||{};var c=e.node||n;var m=e.clockseq!==undefined?e.clockseq:s;if(c==null||m==null){var u=r();if(c==null){c=n=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]}if(m==null){m=s=(u[6]<<8|u[7])&16383}}var h=e.msecs!==undefined?e.msecs:(new Date).getTime();var g=e.nsecs!==undefined?e.nsecs:p+1;var y=h-o+(g-p)/1e4;if(y<0&&e.clockseq===undefined){m=m+1&16383}if((y<0||h>o)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=h;p=g;s=m;h+=122192928e5;var v=((h&268435455)*1e4+g)%4294967296;d[l++]=v>>>24&255;d[l++]=v>>>16&255;d[l++]=v>>>8&255;d[l++]=v&255;var b=h/4294967296*1e4&268435455;d[l++]=b>>>8&255;d[l++]=b&255;d[l++]=b>>>24&15|16;d[l++]=b>>>16&255;d[l++]=m>>>8|128;d[l++]=m&255;for(var x=0;x<6;++x){d[l+x]=c[x]}return t?t:i(d)}e.exports=v1},8373:(e,t,a)=>{var r=a(4069);var i=a(5694);function v4(e,t,a){var n=t&&a||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||r)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var o=0;o<16;++o){t[n+o]=s[o]}}return t||i(s)}e.exports=v4},7351:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=n(a(2037));const o=a(5278);function issueCommand(e,t,a){const r=new Command(e,t,a);process.stdout.write(r.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const p="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=p+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const r=this.properties[a];if(r){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(r)}`}}}}e+=`${p}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=a(7351);const p=a(717);const l=a(5278);const d=n(a(2037));const c=n(a(1017));const m=a(8041);var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=l.toCommandValue(t);process.env[e]=a;const r=process.env["GITHUB_ENV"]||"";if(r){return p.issueFileCommand("ENV",p.prepareKeyValueMessage(e,t))}o.issueCommand("set-env",{name:e},a)}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){p.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return a}return a.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const r=["false","False","FALSE"];const i=getInput(e,t);if(a.includes(i))return true;if(r.includes(i))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\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return p.issueFileCommand("OUTPUT",p.prepareKeyValueMessage(e,t))}process.stdout.write(d.EOL);o.issueCommand("set-output",{name:e},l.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){o.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){o.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){o.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+d.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){const a=process.env["GITHUB_STATE"]||"";if(a){return p.issueFileCommand("STATE",p.prepareKeyValueMessage(e,t))}o.issueCommand("save-state",{name:e},l.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield m.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var h=a(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return h.summary}});var g=a(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return g.markdownSummary}});var y=a(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return y.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return y.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return y.toPlatformPath}})},717:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const s=n(a(7147));const o=n(a(2037));const p=a(5840);const l=a(5278);function issueFileCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}s.appendFileSync(a,`${l.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const a=`ghadelimiter_${p.v4()}`;const r=l.toCommandValue(t);if(e.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(r.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${e}<<${a}${o.EOL}${r}${o.EOL}${a}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=a(6255);const n=a(5526);const s=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new n.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 t;return r(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const r=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 i=(t=r.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}s.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);s.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const s=n(a(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,a){"use strict";var r=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const i=a(2037);const n=a(7147);const{access:s,appendFile:o,writeFile:p}=n.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.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 r(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,n.constants.R_OK|n.constants.W_OK)}catch(t){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,t,a={}){const r=Object.entries(a).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${r}>`}return`<${e}${r}>${t}${e}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const a=yield this.filePath();const r=t?p:o;yield r(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return r(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,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,t){const a=Object.assign({},t&&{lang:t});const r=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(r).addEOL()}addList(e,t=false){const a=t?"ol":"ul";const r=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(a,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:a,colspan:r,rowspan:i}=e;const n=t?"th":"td";const s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(n,a,s)})).join("");return this.wrap("tr",t)})).join("");const a=this.wrap("table",t);return this.addRaw(a).addEOL()}addDetails(e,t){const a=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(a).addEOL()}addImage(e,t,a){const{width:r,height:i}=a||{};const n=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i});const s=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(s).addEOL()}addHeading(e,t){const a=`h${t}`;const r=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const a=Object.assign({},t&&{cite:t});const r=this.wrap("blockquote",e,a);return this.addRaw(r).addEOL()}addLink(e,t){const a=this.wrap("a",e,{href:t});return this.addRaw(a).addEOL()}}const l=new Summary;t.markdownSummary=l;t.summary=l},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.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)}t.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}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=a(1576);const p=n(a(8159));function exec(e,t,a){return s(this,void 0,void 0,(function*(){const r=p.argStringToArray(e);if(r.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=r[0];t=r.slice(1).concat(t||[]);const n=new p.ToolRunner(i,t,a);return n.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var r,i;return s(this,void 0,void 0,(function*(){let n="";let s="";const p=new o.StringDecoder("utf8");const l=new o.StringDecoder("utf8");const d=(r=a===null||a===void 0?void 0:a.listeners)===null||r===void 0?void 0:r.stdout;const c=(i=a===null||a===void 0?void 0:a.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{s+=l.write(e);if(c){c(e)}};const stdOutListener=e=>{n+=p.write(e);if(d){d(e)}};const m=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const u=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:m}));n+=p.end();s+=l.end();return{exitCode:u,stdout:n,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=n(a(2037));const p=n(a(2361));const l=n(a(2081));const d=n(a(1017));const c=n(a(7436));const m=n(a(1962));const u=a(9512);const h=process.platform==="win32";class ToolRunner extends p.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const r=this._getSpawnArgs(e);let i=t?"":"[command]";if(h){if(this._isCmdFile()){i+=a;for(const e of r){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${a}"`;for(const e of r){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(a);for(const e of r){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=a;for(const e of r){i+=` ${e}`}}return i}_processLineBuffer(e,t,a){try{let r=t+e.toString();let i=r.indexOf(o.EOL);while(i>-1){const e=r.substring(0,i);a(e);r=r.substring(i+o.EOL.length);i=r.indexOf(o.EOL)}return r}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const r of e){if(t.some((e=>e===r))){a=true;break}}if(!a){return e}let r='"';let i=true;for(let t=e.length;t>0;t--){r+=e[t-1];if(i&&e[t-1]==="\\"){r+="\\"}else if(e[t-1]==='"'){i=true;r+='"'}else{i=false}}r+='"';return r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let r=e.length;r>0;r--){t+=e[r-1];if(a&&e[r-1]==="\\"){t+="\\"}else if(e[r-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={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};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return s(this,void 0,void 0,(function*(){if(!m.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield c.which(this.toolPath,true);return new Promise(((e,t)=>s(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)+o.EOL)}const r=new ExecState(a,this.toolPath);r.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield m.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const n=l.spawn(i,this._getSpawnArgs(a),this._getSpawnOptions(this.options,i));let s="";if(n.stdout){n.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)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let p="";if(n.stderr){n.stderr.on("data",(e=>{r.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}n.on("error",(e=>{r.processError=e.message;r.processExited=true;r.processClosed=true;r.CheckComplete()}));n.on("exit",(e=>{r.processExitCode=e;r.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);r.CheckComplete()}));n.on("close",(e=>{r.processExitCode=e;r.processExited=true;r.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);r.CheckComplete()}));r.on("done",((a,r)=>{if(s.length>0){this.emit("stdline",s)}if(p.length>0){this.emit("errline",p)}n.removeAllListeners();if(a){t(a)}else{e(r)}}));if(this.options.input){if(!n.stdin){throw new Error("child process missing stdin")}n.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let r=false;let i="";function append(e){if(r&&e!=='"'){i+="\\"}i+=e;r=false}for(let n=0;n{function callbackForResult(e,t){if(e){r(e)}else if(!t){r(new Error("Unknown error"))}else{a(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,a){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let r=false;function handleResult(e,t){if(!r){r=true;a(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let n;i.on("socket",(e=>{n=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const r={};r.parsedUrl=t;const i=r.parsedUrl.protocol==="https:";r.httpModule=i?p:o;const n=i?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):n;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(r.options)}}return r}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){let r;if(this.requestOptions&&this.requestOptions.headers){r=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||r||a}_getAgent(e){let t;const a=l.getProxyUrl(e);const r=a&&a.hostname;if(this._keepAlive&&r){t=this._proxyAgent}if(this._keepAlive&&!r){t=this._agent}if(t){return t}const i=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(a&&a.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let r;const s=a.protocol==="https:";if(i){r=s?d.httpsOverHttps:d.httpsOverHttp}else{r=s?d.httpOverHttps:d.httpOverHttp}t=r(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=i?new p.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=i?p.globalAgent:o.globalAgent}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(v,e);const t=b*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((a,r)=>s(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const n={statusCode:i,result:null,headers:{}};if(i===c.NotFound){a(n)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let s;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){s=JSON.parse(o,dateTimeDeserializer)}else{s=JSON.parse(o)}n.result=s}n.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=n.result;r(t)}else{a(n)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const a=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){try{return new URL(a)}catch(e){if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}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(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}},1962:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=n(a(7147));const l=n(a(1017));o=p.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.open=o.open,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rm=o.rm,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=p.constants.O_RDONLY;function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return s(this,void 0,void 0,(function*(){const r=a?yield t.stat(e):yield t.lstat(e);return r.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return s(this,void 0,void 0,(function*(){let r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(r)){return e}}}const i=e;for(const n of a){e=i+n;r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e);const r=l.basename(e).toUpperCase();for(const i of yield t.readdir(a)){if(r===i.toUpperCase()){e=l.join(a,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.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()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=a(9491);const p=n(a(1017));const l=n(a(1962));function cp(e,t,a={}){return s(this,void 0,void 0,(function*(){const{force:r,recursive:i,copySourceDirectory:n}=readCopyOptions(a);const s=(yield l.exists(t))?yield l.stat(t):null;if(s&&s.isFile()&&!r){return}const o=s&&s.isDirectory()&&n?p.join(t,p.basename(e)):t;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const d=yield l.stat(e);if(d.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,r)}}else{if(p.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,r)}}))}t.cp=cp;function mv(e,t,a={}){return s(this,void 0,void 0,(function*(){if(yield l.exists(t)){let r=true;if(yield l.isDirectory(t)){t=p.join(t,p.basename(e));r=yield l.exists(t)}if(r){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(p.dirname(t));yield l.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield l.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield l.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){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 t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(p.delimiter)){if(e){t.push(e)}}}if(l.isRooted(e)){const a=yield l.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(p.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(p.delimiter)){if(e){a.push(e)}}}const r=[];for(const i of a){const a=yield l.tryGetExecutablePath(p.join(i,e),t);if(a){r.push(a)}}return r}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const r=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:r}}function cpDirRecursive(e,t,a,r){return s(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const i=yield l.readdir(e);for(const n of i){const i=`${e}/${n}`;const s=`${t}/${n}`;const o=yield l.lstat(i);if(o.isDirectory()){yield cpDirRecursive(i,s,a,r)}else{yield copyFile(i,s,r)}}yield l.chmod(t,(yield l.stat(e)).mode)}))}function copyFile(e,t,a){return s(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(t);yield l.unlink(t)}catch(e){if(e.code==="EPERM"){yield l.chmod(t,"0666");yield l.unlink(t)}}const a=yield l.readlink(e);yield l.symlink(a,t,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(t))||a){yield l.copyFile(e,t)}}))}},2557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=new WeakMap;const r=new WeakMap;class AbortSignal{constructor(){this.onabort=null;a.set(this,[]);r.set(this,false)}get aborted(){if(!r.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return r.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const r=a.get(this);r.push(t)}removeEventListener(e,t){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const r=a.get(this);const i=r.indexOf(t);if(i>-1){r.splice(i,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=a.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}r.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const a=setTimeout(abortSignal,e,t);if(typeof a.unref==="function"){a.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},9645:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=a(1333);class AzureKeyCredential{get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return r.isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return r.isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}t.AzureKeyCredential=AzureKeyCredential;t.AzureNamedKeyCredential=AzureNamedKeyCredential;t.AzureSASCredential=AzureSASCredential;t.isNamedKeyCredential=isNamedKeyCredential;t.isSASCredential=isSASCredential;t.isTokenCredential=isTokenCredential},4607:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=a(5840);var i=a(3837);var n=a(2107);var s=a(6189);var o=a(1333);var p=a(3233);var l=a(9645);var d=a(2037);var c=a(3685);var m=a(5687);var u=a(2557);var h=a(4294);var g=a(2781);var y=a(6279);var v=a(467);var b=a(4175);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:true,get:function(){return e[a]}})}}))}t["default"]=e;return Object.freeze(t)}var x=_interopNamespace(s);var w=_interopNamespace(d);var S=_interopNamespace(c);var N=_interopNamespace(m);var T=_interopNamespace(h);var E=_interopDefaultLegacy(y);var _=_interopDefaultLegacy(v);function getHeaderKey(e){return e.toLowerCase()}function isHttpHeadersLike(e){if(e&&typeof e==="object"){const t=e;if(typeof t.rawHeaders==="function"&&typeof t.clone==="function"&&typeof t.get==="function"&&typeof t.set==="function"&&typeof t.contains==="function"&&typeof t.remove==="function"&&typeof t.headersArray==="function"&&typeof t.headerValues==="function"&&typeof t.headerNames==="function"&&typeof t.toJson==="function"){return true}}return false}class HttpHeaders{constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let a=0;ao){failValidation("MaxItems",o)}if(p!=undefined&&h.length>p){failValidation("MaxLength",p)}if(l!=undefined&&h.length{clearTimeout(p);o(e)}))}))}async function streamToBuffer2(e,t,a){let r=0;const i=t.length;return new Promise(((n,s)=>{e.on("readable",(()=>{let n=e.read();if(!n){return}if(typeof n==="string"){n=Buffer.from(n,a)}if(r+n.length>i){s(new Error(`Stream exceeds buffer size. Buffer size: ${i}`));return}t.fill(n,r,r+n.length);r+=n.length}));e.on("end",(()=>{n(r)}));e.on("error",s)}))}async function readStreamToLocalFile(e,t){return new Promise(((a,r)=>{const i=v.createWriteStream(t);e.on("error",(e=>{r(e)}));i.on("error",(e=>{r(e)}));i.on("close",a);e.pipe(i)}))}const Vo=b.promisify(v.stat);const Go=v.createReadStream;class BlobClient extends StorageClient{constructor(e,t,a,i){i=i||{};let n;let s;if(isPipelineLike(t)){s=e;n=t}else if(r.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||r.isTokenCredential(t)){s=e;i=a;n=newPipeline(t,i)}else if(!t&&typeof t!=="string"){s=e;if(a&&typeof a!=="string"){i=a}n=newPipeline(new AnonymousCredential,i)}else if(t&&typeof t==="string"&&a&&typeof a==="string"){const o=t;const p=a;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(r.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);s=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!i.proxyOptions){i.proxyOptions=r.getDefaultProxySettings(l.proxyUri)}n=newPipeline(e,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){s=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;n=newPipeline(new AnonymousCredential,i)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(s,n);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,so.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,so.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(e){return new BlobClient(setURLParameter(this.url,so.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(setURLParameter(this.url,so.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,a={}){var i;a.conditions=a.conditions||{};a.conditions=a.conditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);const{span:s,updatedOptions:o}=Do("BlobClient-download",a);try{const n=await this.blobContext.download(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(i=a.conditions)===null||i===void 0?void 0:i.tagConditions}),requestOptions:{onDownloadProgress:r.isNode?undefined:a.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey},convertTracingToRequestOptionsBase(o)));const p=Object.assign(Object.assign({},n),{_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(n.objectReplicationRules)});if(!r.isNode){return p}if(a.maxRetryRequests===undefined||a.maxRetryRequests<0){a.maxRetryRequests=ro}if(n.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!n.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(p,(async t=>{var r;const i={leaseAccessConditions:a.conditions,modifiedAccessConditions:{ifMatch:a.conditions.ifMatch||n.etag,ifModifiedSince:a.conditions.ifModifiedSince,ifNoneMatch:a.conditions.ifNoneMatch,ifUnmodifiedSince:a.conditions.ifUnmodifiedSince,ifTags:(r=a.conditions)===null||r===void 0?void 0:r.tagConditions},range:rangeToString({count:e+n.contentLength-t,offset:t}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:a.abortSignal},i))).readableStreamBody}),e,n.contentLength,{maxRetryRequests:a.maxRetryRequests,onProgress:a.onProgress})}catch(e){s.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async exists(e={}){const{span:t,updatedOptions:a}=Do("BlobClient-exists",e);try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:a.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===wo||e.details.errorCode===So)){return true}t.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async getProperties(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-getProperties",e);try{e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);const i=await this.blobContext.getProperties(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey},convertTracingToRequestOptionsBase(r)));return Object.assign(Object.assign({},i),{_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(i.objectReplicationRules)})}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async delete(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-delete",e);e.conditions=e.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async deleteIfExists(e={}){var t,a;const{span:r,updatedOptions:i}=Do("BlobClient-deleteIfExists",e);try{const e=await this.delete(i);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="BlobNotFound"){r.setStatus({code:n.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(a=e.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:e.response})}r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async undelete(e={}){const{span:t,updatedOptions:a}=Do("BlobClient-undelete",e);try{return await this.blobContext.undelete(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(e){t.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setHTTPHeaders(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setHTTPHeaders",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setMetadata(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setMetadata",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setTags(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setTags",t);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(i)),{tags:toBlobTags(e)}))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async getTags(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-getTags",e);try{const i=await this.blobContext.getTags(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(r)));const n=Object.assign(Object.assign({},i),{_response:i._response,tags:toTags({blobTagSet:i.blobTagSet})||{}});return n}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-createSnapshot",e);e.conditions=e.conditions||{};try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async beginCopyFromURL(e,t={}){const a={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const r=new BlobBeginCopyFromUrlPoller({blobClient:a,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await r.poll();return r}async abortCopyFromURL(e,t={}){const{span:a,updatedOptions:r}=Do("BlobClient-abortCopyFromURL",t);try{return await this.blobContext.abortCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async syncCopyFromURL(e,t={}){var a,r,i;const{span:s,updatedOptions:o}=Do("BlobClient-syncCopyFromURL",t);t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.copyFromURL(e,Object.assign({abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:(r=t.immutabilityPolicy)===null||r===void 0?void 0:r.expiriesOn,immutabilityPolicyMode:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags},convertTracingToRequestOptionsBase(o)))}catch(e){s.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async setAccessTier(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setAccessTier",t);try{return await this.blobContext.setTier(toAccessTier(e),Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),rehydratePriority:t.rehydratePriority},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async downloadToBuffer(e,t,a,r={}){let i;let s=0;let o=0;let p=r;if(e instanceof Buffer){i=e;s=t||0;o=typeof a==="number"?a:0}else{s=typeof e==="number"?e:0;o=typeof t==="number"?t:0;p=a||{}}const{span:l,updatedOptions:d}=Do("BlobClient-downloadToBuffer",p);try{if(!p.blockSize){p.blockSize=0}if(p.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(p.blockSize===0){p.blockSize=ao}if(s<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!p.conditions){p.conditions={}}if(!o){const e=await this.getProperties(Object.assign(Object.assign({},p),{tracingOptions:Object.assign(Object.assign({},p.tracingOptions),convertTracingToRequestOptionsBase(d))}));o=e.contentLength-s;if(o<0){throw new RangeError(`offset ${s} shouldn't be larger than blob size ${e.contentLength}`)}}if(!i){try{i=Buffer.alloc(o)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(i.length{function callbackForResult(e,t){if(e){r(e)}else if(!t){r(new Error("Unknown error"))}else{a(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,a){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let r=false;function handleResult(e,t){if(!r){r=true;a(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let n;i.on("socket",(e=>{n=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const r={};r.parsedUrl=t;const i=r.parsedUrl.protocol==="https:";r.httpModule=i?p:o;const n=i?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):n;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(r.options)}}return r}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){let r;if(this.requestOptions&&this.requestOptions.headers){r=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||r||a}_getAgent(e){let t;const a=l.getProxyUrl(e);const r=a&&a.hostname;if(this._keepAlive&&r){t=this._proxyAgent}if(this._keepAlive&&!r){t=this._agent}if(t){return t}const i=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(a&&a.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let r;const s=a.protocol==="https:";if(i){r=s?d.httpsOverHttps:d.httpsOverHttp}else{r=s?d.httpOverHttps:d.httpOverHttp}t=r(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=i?new p.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=i?p.globalAgent:o.globalAgent}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(v,e);const t=b*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((a,r)=>s(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const n={statusCode:i,result:null,headers:{}};if(i===c.NotFound){a(n)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let s;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){s=JSON.parse(o,dateTimeDeserializer)}else{s=JSON.parse(o)}n.result=s}n.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=n.result;r(t)}else{a(n)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const a=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){try{return new URL(a)}catch(e){if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}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(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}},1962:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=n(a(7147));const l=n(a(1017));o=p.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.open=o.open,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rm=o.rm,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=p.constants.O_RDONLY;function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return s(this,void 0,void 0,(function*(){const r=a?yield t.stat(e):yield t.lstat(e);return r.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return s(this,void 0,void 0,(function*(){let r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(r)){return e}}}const i=e;for(const n of a){e=i+n;r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e);const r=l.basename(e).toUpperCase();for(const i of yield t.readdir(a)){if(r===i.toUpperCase()){e=l.join(a,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.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()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=a(9491);const p=n(a(1017));const l=n(a(1962));function cp(e,t,a={}){return s(this,void 0,void 0,(function*(){const{force:r,recursive:i,copySourceDirectory:n}=readCopyOptions(a);const s=(yield l.exists(t))?yield l.stat(t):null;if(s&&s.isFile()&&!r){return}const o=s&&s.isDirectory()&&n?p.join(t,p.basename(e)):t;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const d=yield l.stat(e);if(d.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,r)}}else{if(p.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,r)}}))}t.cp=cp;function mv(e,t,a={}){return s(this,void 0,void 0,(function*(){if(yield l.exists(t)){let r=true;if(yield l.isDirectory(t)){t=p.join(t,p.basename(e));r=yield l.exists(t)}if(r){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(p.dirname(t));yield l.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield l.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield l.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){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 t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(p.delimiter)){if(e){t.push(e)}}}if(l.isRooted(e)){const a=yield l.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(p.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(p.delimiter)){if(e){a.push(e)}}}const r=[];for(const i of a){const a=yield l.tryGetExecutablePath(p.join(i,e),t);if(a){r.push(a)}}return r}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const r=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:r}}function cpDirRecursive(e,t,a,r){return s(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const i=yield l.readdir(e);for(const n of i){const i=`${e}/${n}`;const s=`${t}/${n}`;const o=yield l.lstat(i);if(o.isDirectory()){yield cpDirRecursive(i,s,a,r)}else{yield copyFile(i,s,r)}}yield l.chmod(t,(yield l.stat(e)).mode)}))}function copyFile(e,t,a){return s(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(t);yield l.unlink(t)}catch(e){if(e.code==="EPERM"){yield l.chmod(t,"0666");yield l.unlink(t)}}const a=yield l.readlink(e);yield l.symlink(a,t,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(t))||a){yield l.copyFile(e,t)}}))}},2557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=new WeakMap;const r=new WeakMap;class AbortSignal{constructor(){this.onabort=null;a.set(this,[]);r.set(this,false)}get aborted(){if(!r.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return r.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const r=a.get(this);r.push(t)}removeEventListener(e,t){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const r=a.get(this);const i=r.indexOf(t);if(i>-1){r.splice(i,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=a.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}r.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const a=setTimeout(abortSignal,e,t);if(typeof a.unref==="function"){a.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},9645:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=a(1333);class AzureKeyCredential{get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return r.isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return r.isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}t.AzureKeyCredential=AzureKeyCredential;t.AzureNamedKeyCredential=AzureNamedKeyCredential;t.AzureSASCredential=AzureSASCredential;t.isNamedKeyCredential=isNamedKeyCredential;t.isSASCredential=isSASCredential;t.isTokenCredential=isTokenCredential},4607:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=a(5840);var i=a(3837);var n=a(2107);var s=a(6189);var o=a(1333);var p=a(3233);var l=a(9645);var d=a(2037);var c=a(3685);var m=a(5687);var u=a(2557);var h=a(4294);var g=a(2781);var y=a(6279);var v=a(467);var b=a(4175);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:true,get:function(){return e[a]}})}}))}t["default"]=e;return Object.freeze(t)}var x=_interopNamespace(s);var w=_interopNamespace(d);var S=_interopNamespace(c);var N=_interopNamespace(m);var T=_interopNamespace(h);var E=_interopDefaultLegacy(y);var _=_interopDefaultLegacy(v);function getHeaderKey(e){return e.toLowerCase()}function isHttpHeadersLike(e){if(e&&typeof e==="object"){const t=e;if(typeof t.rawHeaders==="function"&&typeof t.clone==="function"&&typeof t.get==="function"&&typeof t.set==="function"&&typeof t.contains==="function"&&typeof t.remove==="function"&&typeof t.headersArray==="function"&&typeof t.headerValues==="function"&&typeof t.headerNames==="function"&&typeof t.toJson==="function"){return true}}return false}class HttpHeaders{constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let a=0;ao){failValidation("MaxItems",o)}if(p!=undefined&&h.length>p){failValidation("MaxLength",p)}if(l!=undefined&&h.length{clearTimeout(p);o(e)}))}))}async function streamToBuffer2(e,t,a){let r=0;const i=t.length;return new Promise(((n,s)=>{e.on("readable",(()=>{let n=e.read();if(!n){return}if(typeof n==="string"){n=Buffer.from(n,a)}if(r+n.length>i){s(new Error(`Stream exceeds buffer size. Buffer size: ${i}`));return}t.fill(n,r,r+n.length);r+=n.length}));e.on("end",(()=>{n(r)}));e.on("error",s)}))}async function readStreamToLocalFile(e,t){return new Promise(((a,r)=>{const i=v.createWriteStream(t);e.on("error",(e=>{r(e)}));i.on("error",(e=>{r(e)}));i.on("close",a);e.pipe(i)}))}const Vo=b.promisify(v.stat);const Go=v.createReadStream;class BlobClient extends StorageClient{constructor(e,t,a,i){i=i||{};let n;let s;if(isPipelineLike(t)){s=e;n=t}else if(r.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||r.isTokenCredential(t)){s=e;i=a;n=newPipeline(t,i)}else if(!t&&typeof t!=="string"){s=e;if(a&&typeof a!=="string"){i=a}n=newPipeline(new AnonymousCredential,i)}else if(t&&typeof t==="string"&&a&&typeof a==="string"){const o=t;const p=a;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(r.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);s=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!i.proxyOptions){i.proxyOptions=r.getDefaultProxySettings(l.proxyUri)}n=newPipeline(e,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){s=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;n=newPipeline(new AnonymousCredential,i)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(s,n);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,so.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,so.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(e){return new BlobClient(setURLParameter(this.url,so.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(setURLParameter(this.url,so.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,a={}){var i;a.conditions=a.conditions||{};a.conditions=a.conditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);const{span:s,updatedOptions:o}=Do("BlobClient-download",a);try{const n=await this.blobContext.download(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(i=a.conditions)===null||i===void 0?void 0:i.tagConditions}),requestOptions:{onDownloadProgress:r.isNode?undefined:a.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey},convertTracingToRequestOptionsBase(o)));const p=Object.assign(Object.assign({},n),{_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(n.objectReplicationRules)});if(!r.isNode){return p}if(a.maxRetryRequests===undefined||a.maxRetryRequests<0){a.maxRetryRequests=ro}if(n.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!n.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(p,(async t=>{var r;const i={leaseAccessConditions:a.conditions,modifiedAccessConditions:{ifMatch:a.conditions.ifMatch||n.etag,ifModifiedSince:a.conditions.ifModifiedSince,ifNoneMatch:a.conditions.ifNoneMatch,ifUnmodifiedSince:a.conditions.ifUnmodifiedSince,ifTags:(r=a.conditions)===null||r===void 0?void 0:r.tagConditions},range:rangeToString({count:e+n.contentLength-t,offset:t}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:a.abortSignal},i))).readableStreamBody}),e,n.contentLength,{maxRetryRequests:a.maxRetryRequests,onProgress:a.onProgress})}catch(e){s.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async exists(e={}){const{span:t,updatedOptions:a}=Do("BlobClient-exists",e);try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:a.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===wo||e.details.errorCode===So)){return true}t.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async getProperties(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-getProperties",e);try{e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);const i=await this.blobContext.getProperties(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey},convertTracingToRequestOptionsBase(r)));return Object.assign(Object.assign({},i),{_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(i.objectReplicationRules)})}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async delete(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-delete",e);e.conditions=e.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async deleteIfExists(e={}){var t,a;const{span:r,updatedOptions:i}=Do("BlobClient-deleteIfExists",e);try{const e=await this.delete(i);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="BlobNotFound"){r.setStatus({code:n.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(a=e.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:e.response})}r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async undelete(e={}){const{span:t,updatedOptions:a}=Do("BlobClient-undelete",e);try{return await this.blobContext.undelete(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(e){t.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setHTTPHeaders(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setHTTPHeaders",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setMetadata(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setMetadata",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setTags(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setTags",t);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(i)),{tags:toBlobTags(e)}))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async getTags(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-getTags",e);try{const i=await this.blobContext.getTags(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(r)));const n=Object.assign(Object.assign({},i),{_response:i._response,tags:toTags({blobTagSet:i.blobTagSet})||{}});return n}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-createSnapshot",e);e.conditions=e.conditions||{};try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async beginCopyFromURL(e,t={}){const a={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const r=new BlobBeginCopyFromUrlPoller({blobClient:a,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await r.poll();return r}async abortCopyFromURL(e,t={}){const{span:a,updatedOptions:r}=Do("BlobClient-abortCopyFromURL",t);try{return await this.blobContext.abortCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async syncCopyFromURL(e,t={}){var a,r,i;const{span:s,updatedOptions:o}=Do("BlobClient-syncCopyFromURL",t);t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.copyFromURL(e,Object.assign({abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:(r=t.immutabilityPolicy)===null||r===void 0?void 0:r.expiriesOn,immutabilityPolicyMode:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags},convertTracingToRequestOptionsBase(o)))}catch(e){s.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async setAccessTier(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setAccessTier",t);try{return await this.blobContext.setTier(toAccessTier(e),Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),rehydratePriority:t.rehydratePriority},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async downloadToBuffer(e,t,a,r={}){let i;let s=0;let o=0;let p=r;if(e instanceof Buffer){i=e;s=t||0;o=typeof a==="number"?a:0}else{s=typeof e==="number"?e:0;o=typeof t==="number"?t:0;p=a||{}}const{span:l,updatedOptions:d}=Do("BlobClient-downloadToBuffer",p);try{if(!p.blockSize){p.blockSize=0}if(p.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(p.blockSize===0){p.blockSize=ao}if(s<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!p.conditions){p.conditions={}}if(!o){const e=await this.getProperties(Object.assign(Object.assign({},p),{tracingOptions:Object.assign(Object.assign({},p.tracingOptions),convertTracingToRequestOptionsBase(d))}));o=e.contentLength-s;if(o<0){throw new RangeError(`offset ${s} shouldn't be larger than blob size ${e.contentLength}`)}}if(!i){try{i=Buffer.alloc(o)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(i.length{function callbackForResult(e,t){if(e){r(e)}else if(!t){r(new Error("Unknown error"))}else{a(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,a){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let r=false;function handleResult(e,t){if(!r){r=true;a(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let n;i.on("socket",(e=>{n=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const r={};r.parsedUrl=t;const i=r.parsedUrl.protocol==="https:";r.httpModule=i?p:o;const n=i?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):n;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(r.options)}}return r}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){let r;if(this.requestOptions&&this.requestOptions.headers){r=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||r||a}_getAgent(e){let t;const a=l.getProxyUrl(e);const r=a&&a.hostname;if(this._keepAlive&&r){t=this._proxyAgent}if(this._keepAlive&&!r){t=this._agent}if(t){return t}const i=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(a&&a.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let r;const s=a.protocol==="https:";if(i){r=s?d.httpsOverHttps:d.httpsOverHttp}else{r=s?d.httpOverHttps:d.httpOverHttp}t=r(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=i?new p.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=i?p.globalAgent:o.globalAgent}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(v,e);const t=b*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((a,r)=>s(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const n={statusCode:i,result:null,headers:{}};if(i===c.NotFound){a(n)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let s;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){s=JSON.parse(o,dateTimeDeserializer)}else{s=JSON.parse(o)}n.result=s}n.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=n.result;r(t)}else{a(n)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const a=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){try{return new URL(a)}catch(e){if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}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(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}},1962:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=n(a(7147));const l=n(a(1017));o=p.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.open=o.open,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rm=o.rm,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=p.constants.O_RDONLY;function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return s(this,void 0,void 0,(function*(){const r=a?yield t.stat(e):yield t.lstat(e);return r.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return s(this,void 0,void 0,(function*(){let r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(r)){return e}}}const i=e;for(const n of a){e=i+n;r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e);const r=l.basename(e).toUpperCase();for(const i of yield t.readdir(a)){if(r===i.toUpperCase()){e=l.join(a,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.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()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=a(9491);const p=n(a(1017));const l=n(a(1962));function cp(e,t,a={}){return s(this,void 0,void 0,(function*(){const{force:r,recursive:i,copySourceDirectory:n}=readCopyOptions(a);const s=(yield l.exists(t))?yield l.stat(t):null;if(s&&s.isFile()&&!r){return}const o=s&&s.isDirectory()&&n?p.join(t,p.basename(e)):t;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const d=yield l.stat(e);if(d.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,r)}}else{if(p.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,r)}}))}t.cp=cp;function mv(e,t,a={}){return s(this,void 0,void 0,(function*(){if(yield l.exists(t)){let r=true;if(yield l.isDirectory(t)){t=p.join(t,p.basename(e));r=yield l.exists(t)}if(r){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(p.dirname(t));yield l.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield l.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield l.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){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 t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(p.delimiter)){if(e){t.push(e)}}}if(l.isRooted(e)){const a=yield l.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(p.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(p.delimiter)){if(e){a.push(e)}}}const r=[];for(const i of a){const a=yield l.tryGetExecutablePath(p.join(i,e),t);if(a){r.push(a)}}return r}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const r=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:r}}function cpDirRecursive(e,t,a,r){return s(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const i=yield l.readdir(e);for(const n of i){const i=`${e}/${n}`;const s=`${t}/${n}`;const o=yield l.lstat(i);if(o.isDirectory()){yield cpDirRecursive(i,s,a,r)}else{yield copyFile(i,s,r)}}yield l.chmod(t,(yield l.stat(e)).mode)}))}function copyFile(e,t,a){return s(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(t);yield l.unlink(t)}catch(e){if(e.code==="EPERM"){yield l.chmod(t,"0666");yield l.unlink(t)}}const a=yield l.readlink(e);yield l.symlink(a,t,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(t))||a){yield l.copyFile(e,t)}}))}},2473:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=n(a(5911));const p=a(2186);const l=a(2037);const d=a(2081);const c=a(7147);function _findMatch(t,a,r,i){return s(this,void 0,void 0,(function*(){const n=l.platform();let s;let d;let c;for(const s of r){const r=s.version;p.debug(`check ${r} satisfies ${t}`);if(o.satisfies(r,t)&&(!a||s.stable===a)){c=s.files.find((t=>{p.debug(`${t.arch}===${i} && ${t.platform}===${n}`);let a=t.arch===i&&t.platform===n;if(a&&t.platform_version){const r=e.exports._getOsVersion();if(r===t.platform_version){a=true}else{a=o.satisfies(r,t.platform_version)}}return a}));if(c){p.debug(`matched ${s.version}`);d=s;break}}}if(d&&c){s=Object.assign({},d);s.files=[c]}return s}))}t._findMatch=_findMatch;function _getOsVersion(){const t=l.platform();let a="";if(t==="darwin"){a=d.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){a=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let a="";if(c.existsSync(e)){a=c.readFileSync(e).toString()}else if(c.existsSync(t)){a=c.readFileSync(t).toString()}return a}t._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=n(a(2186));class RetryHelper{constructor(e,t,a){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(a);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return s(this,void 0,void 0,(function*(){let a=1;while(ao){failValidation("MaxItems",o)}if(p!=undefined&&h.length>p){failValidation("MaxLength",p)}if(l!=undefined&&h.length{clearTimeout(p);o(e)}))}))}async function streamToBuffer2(e,t,a){let r=0;const i=t.length;return new Promise(((n,s)=>{e.on("readable",(()=>{let n=e.read();if(!n){return}if(typeof n==="string"){n=Buffer.from(n,a)}if(r+n.length>i){s(new Error(`Stream exceeds buffer size. Buffer size: ${i}`));return}t.fill(n,r,r+n.length);r+=n.length}));e.on("end",(()=>{n(r)}));e.on("error",s)}))}async function readStreamToLocalFile(e,t){return new Promise(((a,r)=>{const i=v.createWriteStream(t);e.on("error",(e=>{r(e)}));i.on("error",(e=>{r(e)}));i.on("close",a);e.pipe(i)}))}const Vo=b.promisify(v.stat);const Go=v.createReadStream;class BlobClient extends StorageClient{constructor(e,t,a,i){i=i||{};let n;let s;if(isPipelineLike(t)){s=e;n=t}else if(r.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||r.isTokenCredential(t)){s=e;i=a;n=newPipeline(t,i)}else if(!t&&typeof t!=="string"){s=e;if(a&&typeof a!=="string"){i=a}n=newPipeline(new AnonymousCredential,i)}else if(t&&typeof t==="string"&&a&&typeof a==="string"){const o=t;const p=a;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(r.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);s=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!i.proxyOptions){i.proxyOptions=r.getDefaultProxySettings(l.proxyUri)}n=newPipeline(e,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){s=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;n=newPipeline(new AnonymousCredential,i)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(s,n);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,so.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,so.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(e){return new BlobClient(setURLParameter(this.url,so.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(setURLParameter(this.url,so.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,a={}){var i;a.conditions=a.conditions||{};a.conditions=a.conditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);const{span:s,updatedOptions:o}=Do("BlobClient-download",a);try{const n=await this.blobContext.download(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(i=a.conditions)===null||i===void 0?void 0:i.tagConditions}),requestOptions:{onDownloadProgress:r.isNode?undefined:a.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey},convertTracingToRequestOptionsBase(o)));const p=Object.assign(Object.assign({},n),{_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(n.objectReplicationRules)});if(!r.isNode){return p}if(a.maxRetryRequests===undefined||a.maxRetryRequests<0){a.maxRetryRequests=ro}if(n.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!n.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(p,(async t=>{var r;const i={leaseAccessConditions:a.conditions,modifiedAccessConditions:{ifMatch:a.conditions.ifMatch||n.etag,ifModifiedSince:a.conditions.ifModifiedSince,ifNoneMatch:a.conditions.ifNoneMatch,ifUnmodifiedSince:a.conditions.ifUnmodifiedSince,ifTags:(r=a.conditions)===null||r===void 0?void 0:r.tagConditions},range:rangeToString({count:e+n.contentLength-t,offset:t}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:a.abortSignal},i))).readableStreamBody}),e,n.contentLength,{maxRetryRequests:a.maxRetryRequests,onProgress:a.onProgress})}catch(e){s.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async exists(e={}){const{span:t,updatedOptions:a}=Do("BlobClient-exists",e);try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:a.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===wo||e.details.errorCode===So)){return true}t.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async getProperties(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-getProperties",e);try{e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);const i=await this.blobContext.getProperties(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey},convertTracingToRequestOptionsBase(r)));return Object.assign(Object.assign({},i),{_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(i.objectReplicationRules)})}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async delete(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-delete",e);e.conditions=e.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async deleteIfExists(e={}){var t,a;const{span:r,updatedOptions:i}=Do("BlobClient-deleteIfExists",e);try{const e=await this.delete(i);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="BlobNotFound"){r.setStatus({code:n.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(a=e.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:e.response})}r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async undelete(e={}){const{span:t,updatedOptions:a}=Do("BlobClient-undelete",e);try{return await this.blobContext.undelete(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(e){t.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setHTTPHeaders(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setHTTPHeaders",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setMetadata(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setMetadata",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setTags(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setTags",t);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(i)),{tags:toBlobTags(e)}))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async getTags(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-getTags",e);try{const i=await this.blobContext.getTags(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(r)));const n=Object.assign(Object.assign({},i),{_response:i._response,tags:toTags({blobTagSet:i.blobTagSet})||{}});return n}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-createSnapshot",e);e.conditions=e.conditions||{};try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async beginCopyFromURL(e,t={}){const a={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const r=new BlobBeginCopyFromUrlPoller({blobClient:a,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await r.poll();return r}async abortCopyFromURL(e,t={}){const{span:a,updatedOptions:r}=Do("BlobClient-abortCopyFromURL",t);try{return await this.blobContext.abortCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async syncCopyFromURL(e,t={}){var a,r,i;const{span:s,updatedOptions:o}=Do("BlobClient-syncCopyFromURL",t);t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.copyFromURL(e,Object.assign({abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:(r=t.immutabilityPolicy)===null||r===void 0?void 0:r.expiriesOn,immutabilityPolicyMode:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags},convertTracingToRequestOptionsBase(o)))}catch(e){s.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async setAccessTier(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setAccessTier",t);try{return await this.blobContext.setTier(toAccessTier(e),Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),rehydratePriority:t.rehydratePriority},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async downloadToBuffer(e,t,a,r={}){let i;let s=0;let o=0;let p=r;if(e instanceof Buffer){i=e;s=t||0;o=typeof a==="number"?a:0}else{s=typeof e==="number"?e:0;o=typeof t==="number"?t:0;p=a||{}}const{span:l,updatedOptions:d}=Do("BlobClient-downloadToBuffer",p);try{if(!p.blockSize){p.blockSize=0}if(p.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(p.blockSize===0){p.blockSize=ao}if(s<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!p.conditions){p.conditions={}}if(!o){const e=await this.getProperties(Object.assign(Object.assign({},p),{tracingOptions:Object.assign(Object.assign({},p.tracingOptions),convertTracingToRequestOptionsBase(d))}));o=e.contentLength-s;if(o<0){throw new RangeError(`offset ${s} shouldn't be larger than blob size ${e.contentLength}`)}}if(!i){try{i=Buffer.alloc(o)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(i.length{function callbackForResult(e,t){if(e){r(e)}else if(!t){r(new Error("Unknown error"))}else{a(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,a){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let r=false;function handleResult(e,t){if(!r){r=true;a(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let n;i.on("socket",(e=>{n=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const r={};r.parsedUrl=t;const i=r.parsedUrl.protocol==="https:";r.httpModule=i?p:o;const n=i?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):n;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(r.options)}}return r}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){let r;if(this.requestOptions&&this.requestOptions.headers){r=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||r||a}_getAgent(e){let t;const a=l.getProxyUrl(e);const r=a&&a.hostname;if(this._keepAlive&&r){t=this._proxyAgent}if(this._keepAlive&&!r){t=this._agent}if(t){return t}const i=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(a&&a.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let r;const s=a.protocol==="https:";if(i){r=s?d.httpsOverHttps:d.httpsOverHttp}else{r=s?d.httpOverHttps:d.httpOverHttp}t=r(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=i?new p.Agent(e):new o.Agent(e);this._agent=t}if(!t){t=i?p.globalAgent:o.globalAgent}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(v,e);const t=b*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((a,r)=>s(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const n={statusCode:i,result:null,headers:{}};if(i===c.NotFound){a(n)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let s;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){s=JSON.parse(o,dateTimeDeserializer)}else{s=JSON.parse(o)}n.result=s}n.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=n.result;r(t)}else{a(n)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const a=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){try{return new URL(a)}catch(e){if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}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(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}},1962:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const p=n(a(7147));const l=n(a(1017));o=p.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.open=o.open,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rm=o.rm,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=p.constants.O_RDONLY;function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return s(this,void 0,void 0,(function*(){const r=a?yield t.stat(e):yield t.lstat(e);return r.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return s(this,void 0,void 0,(function*(){let r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(r)){return e}}}const i=e;for(const n of a){e=i+n;r=undefined;try{r=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(r&&r.isFile()){if(t.IS_WINDOWS){try{const a=l.dirname(e);const r=l.basename(e).toUpperCase();for(const i of yield t.readdir(a)){if(r===i.toUpperCase()){e=l.join(a,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.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()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=a(9491);const p=n(a(1017));const l=n(a(1962));function cp(e,t,a={}){return s(this,void 0,void 0,(function*(){const{force:r,recursive:i,copySourceDirectory:n}=readCopyOptions(a);const s=(yield l.exists(t))?yield l.stat(t):null;if(s&&s.isFile()&&!r){return}const o=s&&s.isDirectory()&&n?p.join(t,p.basename(e)):t;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const d=yield l.stat(e);if(d.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,r)}}else{if(p.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,r)}}))}t.cp=cp;function mv(e,t,a={}){return s(this,void 0,void 0,(function*(){if(yield l.exists(t)){let r=true;if(yield l.isDirectory(t)){t=p.join(t,p.basename(e));r=yield l.exists(t)}if(r){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(p.dirname(t));yield l.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield l.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield l.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){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 t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(p.delimiter)){if(e){t.push(e)}}}if(l.isRooted(e)){const a=yield l.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(p.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(p.delimiter)){if(e){a.push(e)}}}const r=[];for(const i of a){const a=yield l.tryGetExecutablePath(p.join(i,e),t);if(a){r.push(a)}}return r}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const r=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:r}}function cpDirRecursive(e,t,a,r){return s(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const i=yield l.readdir(e);for(const n of i){const i=`${e}/${n}`;const s=`${t}/${n}`;const o=yield l.lstat(i);if(o.isDirectory()){yield cpDirRecursive(i,s,a,r)}else{yield copyFile(i,s,r)}}yield l.chmod(t,(yield l.stat(e)).mode)}))}function copyFile(e,t,a){return s(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(t);yield l.unlink(t)}catch(e){if(e.code==="EPERM"){yield l.chmod(t,"0666");yield l.unlink(t)}}const a=yield l.readlink(e);yield l.symlink(a,t,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(t))||a){yield l.copyFile(e,t)}}))}},2473:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=n(a(5911));const p=a(2186);const l=a(2037);const d=a(2081);const c=a(7147);function _findMatch(t,a,r,i){return s(this,void 0,void 0,(function*(){const n=l.platform();let s;let d;let c;for(const s of r){const r=s.version;p.debug(`check ${r} satisfies ${t}`);if(o.satisfies(r,t)&&(!a||s.stable===a)){c=s.files.find((t=>{p.debug(`${t.arch}===${i} && ${t.platform}===${n}`);let a=t.arch===i&&t.platform===n;if(a&&t.platform_version){const r=e.exports._getOsVersion();if(r===t.platform_version){a=true}else{a=o.satisfies(r,t.platform_version)}}return a}));if(c){p.debug(`matched ${s.version}`);d=s;break}}}if(d&&c){s=Object.assign({},d);s.files=[c]}return s}))}t._findMatch=_findMatch;function _getOsVersion(){const t=l.platform();let a="";if(t==="darwin"){a=d.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){a=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let a="";if(c.existsSync(e)){a=c.readFileSync(e).toString()}else if(c.existsSync(t)){a=c.readFileSync(t).toString()}return a}t._readLinuxVersionFile=_readLinuxVersionFile},8279:function(e,t,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,a,r){if(r===undefined)r=a;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,r){if(r===undefined)r=a;e[r]=t[a]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))r(t,e,a);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,r){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=n(a(2186));class RetryHelper{constructor(e,t,a){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(a);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return s(this,void 0,void 0,(function*(){let a=1;while(ao){failValidation("MaxItems",o)}if(p!=undefined&&h.length>p){failValidation("MaxLength",p)}if(l!=undefined&&h.length{clearTimeout(p);o(e)}))}))}async function streamToBuffer2(e,t,a){let r=0;const i=t.length;return new Promise(((n,s)=>{e.on("readable",(()=>{let n=e.read();if(!n){return}if(typeof n==="string"){n=Buffer.from(n,a)}if(r+n.length>i){s(new Error(`Stream exceeds buffer size. Buffer size: ${i}`));return}t.fill(n,r,r+n.length);r+=n.length}));e.on("end",(()=>{n(r)}));e.on("error",s)}))}async function readStreamToLocalFile(e,t){return new Promise(((a,r)=>{const i=v.createWriteStream(t);e.on("error",(e=>{r(e)}));i.on("error",(e=>{r(e)}));i.on("close",a);e.pipe(i)}))}const Vo=b.promisify(v.stat);const Go=v.createReadStream;class BlobClient extends StorageClient{constructor(e,t,a,i){i=i||{};let n;let s;if(isPipelineLike(t)){s=e;n=t}else if(r.isNode&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||r.isTokenCredential(t)){s=e;i=a;n=newPipeline(t,i)}else if(!t&&typeof t!=="string"){s=e;if(a&&typeof a!=="string"){i=a}n=newPipeline(new AnonymousCredential,i)}else if(t&&typeof t==="string"&&a&&typeof a==="string"){const o=t;const p=a;const l=extractConnectionStringParts(e);if(l.kind==="AccountConnString"){if(r.isNode){const e=new StorageSharedKeyCredential(l.accountName,l.accountKey);s=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p));if(!i.proxyOptions){i.proxyOptions=r.getDefaultProxySettings(l.proxyUri)}n=newPipeline(e,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(l.kind==="SASConnString"){s=appendToURLPath(appendToURLPath(l.url,encodeURIComponent(o)),encodeURIComponent(p))+"?"+l.accountSas;n=newPipeline(new AnonymousCredential,i)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(s,n);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,so.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,so.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(e){return new BlobClient(setURLParameter(this.url,so.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(setURLParameter(this.url,so.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,a={}){var i;a.conditions=a.conditions||{};a.conditions=a.conditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);const{span:s,updatedOptions:o}=Do("BlobClient-download",a);try{const n=await this.blobContext.download(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(i=a.conditions)===null||i===void 0?void 0:i.tagConditions}),requestOptions:{onDownloadProgress:r.isNode?undefined:a.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey},convertTracingToRequestOptionsBase(o)));const p=Object.assign(Object.assign({},n),{_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(n.objectReplicationRules)});if(!r.isNode){return p}if(a.maxRetryRequests===undefined||a.maxRetryRequests<0){a.maxRetryRequests=ro}if(n.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!n.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(p,(async t=>{var r;const i={leaseAccessConditions:a.conditions,modifiedAccessConditions:{ifMatch:a.conditions.ifMatch||n.etag,ifModifiedSince:a.conditions.ifModifiedSince,ifNoneMatch:a.conditions.ifNoneMatch,ifUnmodifiedSince:a.conditions.ifUnmodifiedSince,ifTags:(r=a.conditions)===null||r===void 0?void 0:r.tagConditions},range:rangeToString({count:e+n.contentLength-t,offset:t}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:a.abortSignal},i))).readableStreamBody}),e,n.contentLength,{maxRetryRequests:a.maxRetryRequests,onProgress:a.onProgress})}catch(e){s.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async exists(e={}){const{span:t,updatedOptions:a}=Do("BlobClient-exists",e);try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:a.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===wo||e.details.errorCode===So)){return true}t.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async getProperties(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-getProperties",e);try{e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);const i=await this.blobContext.getProperties(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey},convertTracingToRequestOptionsBase(r)));return Object.assign(Object.assign({},i),{_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(i.objectReplicationRules)})}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async delete(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-delete",e);e.conditions=e.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async deleteIfExists(e={}){var t,a;const{span:r,updatedOptions:i}=Do("BlobClient-deleteIfExists",e);try{const e=await this.delete(i);return Object.assign(Object.assign({succeeded:true},e),{_response:e._response})}catch(e){if(((t=e.details)===null||t===void 0?void 0:t.errorCode)==="BlobNotFound"){r.setStatus({code:n.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(a=e.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:e.response})}r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async undelete(e={}){const{span:t,updatedOptions:a}=Do("BlobClient-undelete",e);try{return await this.blobContext.undelete(Object.assign({abortSignal:e.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(e){t.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{t.end()}}async setHTTPHeaders(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setHTTPHeaders",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setMetadata(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setMetadata",t);t.conditions=t.conditions||{};try{ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async setTags(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setTags",t);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(i)),{tags:toBlobTags(e)}))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async getTags(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-getTags",e);try{const i=await this.blobContext.getTags(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions})},convertTracingToRequestOptionsBase(r)));const n=Object.assign(Object.assign({},i),{_response:i._response,tags:toTags({blobTagSet:i.blobTagSet})||{}});return n}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){var t;const{span:a,updatedOptions:r}=Do("BlobClient-createSnapshot",e);e.conditions=e.conditions||{};try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:(t=e.conditions)===null||t===void 0?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async beginCopyFromURL(e,t={}){const a={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const r=new BlobBeginCopyFromUrlPoller({blobClient:a,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await r.poll();return r}async abortCopyFromURL(e,t={}){const{span:a,updatedOptions:r}=Do("BlobClient-abortCopyFromURL",t);try{return await this.blobContext.abortCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions},convertTracingToRequestOptionsBase(r)))}catch(e){a.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{a.end()}}async syncCopyFromURL(e,t={}){var a,r,i;const{span:s,updatedOptions:o}=Do("BlobClient-syncCopyFromURL",t);t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.copyFromURL(e,Object.assign({abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:(r=t.immutabilityPolicy)===null||r===void 0?void 0:r.expiriesOn,immutabilityPolicyMode:(i=t.immutabilityPolicy)===null||i===void 0?void 0:i.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags},convertTracingToRequestOptionsBase(o)))}catch(e){s.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{s.end()}}async setAccessTier(e,t={}){var a;const{span:r,updatedOptions:i}=Do("BlobClient-setAccessTier",t);try{return await this.blobContext.setTier(toAccessTier(e),Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:(a=t.conditions)===null||a===void 0?void 0:a.tagConditions}),rehydratePriority:t.rehydratePriority},convertTracingToRequestOptionsBase(i)))}catch(e){r.setStatus({code:n.SpanStatusCode.ERROR,message:e.message});throw e}finally{r.end()}}async downloadToBuffer(e,t,a,r={}){let i;let s=0;let o=0;let p=r;if(e instanceof Buffer){i=e;s=t||0;o=typeof a==="number"?a:0}else{s=typeof e==="number"?e:0;o=typeof t==="number"?t:0;p=a||{}}const{span:l,updatedOptions:d}=Do("BlobClient-downloadToBuffer",p);try{if(!p.blockSize){p.blockSize=0}if(p.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(p.blockSize===0){p.blockSize=ao}if(s<0){throw new RangeError("offset option must be >= 0")}if(o&&o<=0){throw new RangeError("count option must be greater than 0")}if(!p.conditions){p.conditions={}}if(!o){const e=await this.getProperties(Object.assign(Object.assign({},p),{tracingOptions:Object.assign(Object.assign({},p.tracingOptions),convertTracingToRequestOptionsBase(d))}));o=e.contentLength-s;if(o<0){throw new RangeError(`offset ${s} shouldn't be larger than blob size ${e.contentLength}`)}}if(!i){try{i=Buffer.alloc(o)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(i.length