diff --git a/dist/index.js b/dist/index.js index fd07010..4aa375a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,24 +1,24 @@ -require('./sourcemap-register.js');(()=>{var __webpack_modules__={7799:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,p)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.saveCache=i.restoreCache=i.isFeatureAvailable=i.ReserveCacheError=i.ValidationError=void 0;const d=l(a(2186));const u=l(a(1017));const m=l(a(1518));const h=l(a(8245));const g=a(3434);class ValidationError extends Error{constructor(r){super(r);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}i.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(r){super(r);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}i.ReserveCacheError=ReserveCacheError;function checkPaths(r){if(!r||r.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(r){if(r.length>512){throw new ValidationError(`Key Validation Error: ${r} cannot be larger than 512 characters.`)}const i=/^[^,]*$/;if(!i.test(r)){throw new ValidationError(`Key Validation Error: ${r} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}i.isFeatureAvailable=isFeatureAvailable;function restoreCache(r,i,a,s,p=false){return c(this,void 0,void 0,(function*(){checkPaths(r);a=a||[];const l=[i,...a];d.debug("Resolved Keys:");d.debug(JSON.stringify(l));if(l.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const r of l){checkKey(r)}const c=yield m.getCompressionMethod();let y="";try{const i=yield h.getCacheEntry(l,r,{compressionMethod:c,enableCrossOsArchive:p});if(!(i===null||i===void 0?void 0:i.archiveLocation)){return undefined}if(s===null||s===void 0?void 0:s.lookupOnly){d.info("Lookup only - skipping download");return i.cacheKey}y=u.join(yield m.createTempDirectory(),m.getCacheFileName(c));d.debug(`Archive Path: ${y}`);yield h.downloadCache(i.archiveLocation,y,s);if(d.isDebug()){yield(0,g.listTar)(y,c)}const a=m.getArchiveFileSizeInBytes(y);d.info(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);yield(0,g.extractTar)(y,c);d.info("Cache restored successfully");return i.cacheKey}catch(r){const i=r;if(i.name===ValidationError.name){throw r}else{d.warning(`Failed to restore: ${r.message}`)}}finally{try{yield m.unlinkFile(y)}catch(r){d.debug(`Failed to delete archive: ${r}`)}}return undefined}))}i.restoreCache=restoreCache;function saveCache(r,i,a,s=false){var p,l,y,v,b;return c(this,void 0,void 0,(function*(){checkPaths(r);checkKey(i);const c=yield m.getCompressionMethod();let x=-1;const w=yield m.resolvePaths(r);d.debug("Cache Paths:");d.debug(`${JSON.stringify(w)}`);if(w.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 S=yield m.createTempDirectory();const E=u.join(S,m.getCacheFileName(c));d.debug(`Archive Path: ${E}`);try{yield(0,g.createTar)(S,w,c);if(d.isDebug()){yield(0,g.listTar)(E,c)}const u=10*1024*1024*1024;const _=m.getArchiveFileSizeInBytes(E);d.debug(`File Size: ${_}`);if(_>u&&!m.isGhes()){throw new Error(`Cache size of ~${Math.round(_/(1024*1024))} MB (${_} B) is over the 10GB limit, not saving cache.`)}d.debug("Reserving Cache");const T=yield h.reserveCache(i,r,{compressionMethod:c,enableCrossOsArchive:s,cacheSize:_});if((p=T===null||T===void 0?void 0:T.result)===null||p===void 0?void 0:p.cacheId){x=(l=T===null||T===void 0?void 0:T.result)===null||l===void 0?void 0:l.cacheId}else if((T===null||T===void 0?void 0:T.statusCode)===400){throw new Error((v=(y=T===null||T===void 0?void 0:T.error)===null||y===void 0?void 0:y.message)!==null&&v!==void 0?v:`Cache size of ~${Math.round(_/(1024*1024))} MB (${_} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(b=T===null||T===void 0?void 0:T.error)===null||b===void 0?void 0:b.message}`)}d.debug(`Saving Cache (ID: ${x})`);yield h.saveCache(x,E,a)}catch(r){const i=r;if(i.name===ValidationError.name){throw r}else if(i.name===ReserveCacheError.name){d.info(`Failed to save: ${i.message}`)}else{d.warning(`Failed to save: ${i.message}`)}}finally{try{yield m.unlinkFile(E)}catch(r){d.debug(`Failed to delete archive: ${r}`)}}return x}))}i.saveCache=saveCache},8245:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,p)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.saveCache=i.reserveCache=i.downloadCache=i.getCacheEntry=i.getCacheVersion=void 0;const d=l(a(2186));const u=a(6255);const m=a(5526);const h=l(a(6113));const g=l(a(7147));const y=a(7310);const v=l(a(1518));const b=a(5500);const x=a(6215);const w=a(3981);const S="1.0";function getCacheApiUrl(r){const i=process.env["ACTIONS_CACHE_URL"]||"";if(!i){throw new Error("Cache Service Url not found, unable to restore cache.")}const a=`${i}_apis/artifactcache/${r}`;d.debug(`Resource Url: ${a}`);return a}function createAcceptHeader(r,i){return`${r};api-version=${i}`}function getRequestOptions(){const r={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return r}function createHttpClient(){const r=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const i=new m.BearerCredentialHandler(r);return new u.HttpClient("actions/cache",[i],getRequestOptions())}function getCacheVersion(r,i,a=false){const s=r;if(i){s.push(i)}if(process.platform==="win32"&&!a){s.push("windows-only")}s.push(S);return h.createHash("sha256").update(s.join("|")).digest("hex")}i.getCacheVersion=getCacheVersion;function getCacheEntry(r,i,a){return c(this,void 0,void 0,(function*(){const s=createHttpClient();const p=getCacheVersion(i,a===null||a===void 0?void 0:a.compressionMethod,a===null||a===void 0?void 0:a.enableCrossOsArchive);const l=`cache?keys=${encodeURIComponent(r.join(","))}&version=${p}`;const u=yield(0,w.retryTypedResponse)("getCacheEntry",(()=>c(this,void 0,void 0,(function*(){return s.getJson(getCacheApiUrl(l))}))));if(u.statusCode===204){if(d.isDebug()){yield printCachesListForDiagnostics(r[0],s,p)}return null}if(!(0,w.isSuccessStatusCode)(u.statusCode)){throw new Error(`Cache service responded with ${u.statusCode}`)}const m=u.result;const h=m===null||m===void 0?void 0:m.archiveLocation;if(!h){throw new Error("Cache not found.")}d.setSecret(h);d.debug(`Cache Result:`);d.debug(JSON.stringify(m));return m}))}i.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(r,i,a){return c(this,void 0,void 0,(function*(){const s=`caches?key=${encodeURIComponent(r)}`;const p=yield(0,w.retryTypedResponse)("listCache",(()=>c(this,void 0,void 0,(function*(){return i.getJson(getCacheApiUrl(s))}))));if(p.statusCode===200){const i=p.result;const s=i===null||i===void 0?void 0:i.totalCount;if(s&&s>0){d.debug(`No matching cache found for cache key '${r}', 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 r of(i===null||i===void 0?void 0:i.artifactCaches)||[]){d.debug(`Cache Key: ${r===null||r===void 0?void 0:r.cacheKey}, Cache Version: ${r===null||r===void 0?void 0:r.cacheVersion}, Cache Scope: ${r===null||r===void 0?void 0:r.scope}, Cache Created: ${r===null||r===void 0?void 0:r.creationTime}`)}}}}))}function downloadCache(r,i,a){return c(this,void 0,void 0,(function*(){const s=new y.URL(r);const p=(0,x.getDownloadOptions)(a);if(s.hostname.endsWith(".blob.core.windows.net")){if(p.useAzureSdk){yield(0,b.downloadCacheStorageSDK)(r,i,p)}else if(p.concurrentBlobDownloads){yield(0,b.downloadCacheHttpClientConcurrent)(r,i,p)}else{yield(0,b.downloadCacheHttpClient)(r,i)}}else{yield(0,b.downloadCacheHttpClient)(r,i)}}))}i.downloadCache=downloadCache;function reserveCache(r,i,a){return c(this,void 0,void 0,(function*(){const s=createHttpClient();const p=getCacheVersion(i,a===null||a===void 0?void 0:a.compressionMethod,a===null||a===void 0?void 0:a.enableCrossOsArchive);const l={key:r,version:p,cacheSize:a===null||a===void 0?void 0:a.cacheSize};const d=yield(0,w.retryTypedResponse)("reserveCache",(()=>c(this,void 0,void 0,(function*(){return s.postJson(getCacheApiUrl("caches"),l)}))));return d}))}i.reserveCache=reserveCache;function getContentRange(r,i){return`bytes ${r}-${i}/*`}function uploadChunk(r,i,a,s,p){return c(this,void 0,void 0,(function*(){d.debug(`Uploading chunk of size ${p-s+1} bytes at offset ${s} with content range: ${getContentRange(s,p)}`);const l={"Content-Type":"application/octet-stream","Content-Range":getContentRange(s,p)};const u=yield(0,w.retryHttpClientResponse)(`uploadChunk (start: ${s}, end: ${p})`,(()=>c(this,void 0,void 0,(function*(){return r.sendStream("PATCH",i,a(),l)}))));if(!(0,w.isSuccessStatusCode)(u.message.statusCode)){throw new Error(`Cache service responded with ${u.message.statusCode} during upload chunk.`)}}))}function uploadFile(r,i,a,s){return c(this,void 0,void 0,(function*(){const p=v.getArchiveFileSizeInBytes(a);const l=getCacheApiUrl(`caches/${i.toString()}`);const u=g.openSync(a,"r");const m=(0,x.getUploadOptions)(s);const h=v.assertDefined("uploadConcurrency",m.uploadConcurrency);const y=v.assertDefined("uploadChunkSize",m.uploadChunkSize);const b=[...new Array(h).keys()];d.debug("Awaiting all uploads");let w=0;try{yield Promise.all(b.map((()=>c(this,void 0,void 0,(function*(){while(w
g.createReadStream(a,{fd:u,start:s,end:c,autoClose:false}).on("error",(r=>{throw new Error(`Cache upload failed because file read failed with ${r.message}`)}))),s,c)}})))))}finally{g.closeSync(u)}return}))}function commitCache(r,i,a){return c(this,void 0,void 0,(function*(){const s={size:a};return yield(0,w.retryTypedResponse)("commitCache",(()=>c(this,void 0,void 0,(function*(){return r.postJson(getCacheApiUrl(`caches/${i.toString()}`),s)}))))}))}function saveCache(r,i,a){return c(this,void 0,void 0,(function*(){const s=createHttpClient();d.debug("Upload cache");yield uploadFile(s,r,i,a);d.debug("Commiting cache");const p=v.getArchiveFileSizeInBytes(i);d.info(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`);const l=yield commitCache(s,r,p);if(!(0,w.isSuccessStatusCode)(l.statusCode)){throw new Error(`Cache service responded with ${l.statusCode} during commit cache.`)}d.info("Cache saved successfully")}))}i.saveCache=saveCache},1518:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,p)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};var d=this&&this.__asyncValues||function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],a;return i?i.call(r):(r=typeof __values==="function"?__values(r):r[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(i){a[i]=r[i]&&function(a){return new Promise((function(s,p){a=r[i](a),settle(s,p,a.done,a.value)}))}}function settle(r,i,a,s){Promise.resolve(s).then((function(i){r({value:i,done:a})}),i)}};Object.defineProperty(i,"__esModule",{value:true});i.isGhes=i.assertDefined=i.getGnuTarPathOnWindows=i.getCacheFileName=i.getCompressionMethod=i.unlinkFile=i.resolvePaths=i.getArchiveFileSizeInBytes=i.createTempDirectory=void 0;const u=l(a(2186));const m=l(a(1514));const h=l(a(8090));const g=l(a(7436));const y=l(a(7147));const v=l(a(1017));const b=l(a(5911));const x=l(a(3837));const w=a(4138);const S=a(8840);function createTempDirectory(){return c(this,void 0,void 0,(function*(){const r=process.platform==="win32";let i=process.env["RUNNER_TEMP"]||"";if(!i){let a;if(r){a=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){a="/Users"}else{a="/home"}}i=v.join(a,"actions","temp")}const a=v.join(i,(0,w.v4)());yield g.mkdirP(a);return a}))}i.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(r){return y.statSync(r).size}i.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(r){var i,a,s,p;var l;return c(this,void 0,void 0,(function*(){const c=[];const m=(l=process.env["GITHUB_WORKSPACE"])!==null&&l!==void 0?l:process.cwd();const g=yield h.create(r.join("\n"),{implicitDescendants:false});try{for(var y=true,b=d(g.globGenerator()),x;x=yield b.next(),i=x.done,!i;){p=x.value;y=false;try{const r=p;const i=v.relative(m,r).replace(new RegExp(`\\${v.sep}`,"g"),"/");u.debug(`Matched: ${i}`);if(i===""){c.push(".")}else{c.push(`${i}`)}}finally{y=true}}}catch(r){a={error:r}}finally{try{if(!y&&!i&&(s=b.return))yield s.call(b)}finally{if(a)throw a.error}}return c}))}i.resolvePaths=resolvePaths;function unlinkFile(r){return c(this,void 0,void 0,(function*(){return x.promisify(y.unlink)(r)}))}i.unlinkFile=unlinkFile;function getVersion(r,i=[]){return c(this,void 0,void 0,(function*(){let a="";i.push("--version");u.debug(`Checking ${r} ${i.join(" ")}`);try{yield m.exec(`${r}`,i,{ignoreReturnCode:true,silent:true,listeners:{stdout:r=>a+=r.toString(),stderr:r=>a+=r.toString()}})}catch(r){u.debug(r.message)}a=a.trim();u.debug(a);return a}))}function getCompressionMethod(){return c(this,void 0,void 0,(function*(){const r=yield getVersion("zstd",["--quiet"]);const i=b.clean(r);u.debug(`zstd version: ${i}`);if(r===""){return S.CompressionMethod.Gzip}else{return S.CompressionMethod.ZstdWithoutLong}}))}i.getCompressionMethod=getCompressionMethod;function getCacheFileName(r){return r===S.CompressionMethod.Gzip?S.CacheFilename.Gzip:S.CacheFilename.Zstd}i.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return c(this,void 0,void 0,(function*(){if(y.existsSync(S.GnuTarPathOnWindows)){return S.GnuTarPathOnWindows}const r=yield getVersion("tar");return r.toLowerCase().includes("gnu tar")?g.which("tar"):""}))}i.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(r,i){if(i===undefined){throw Error(`Expected ${r} but value was undefiend`)}return i}i.assertDefined=assertDefined;function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");return r.hostname.toUpperCase()!=="GITHUB.COM"}i.isGhes=isGhes},8840:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ManifestFilename=i.TarFilename=i.SystemTarPathOnWindows=i.GnuTarPathOnWindows=i.SocketTimeout=i.DefaultRetryDelay=i.DefaultRetryAttempts=i.ArchiveToolType=i.CompressionMethod=i.CacheFilename=void 0;var a;(function(r){r["Gzip"]="cache.tgz";r["Zstd"]="cache.tzst"})(a=i.CacheFilename||(i.CacheFilename={}));var s;(function(r){r["Gzip"]="gzip";r["ZstdWithoutLong"]="zstd-without-long";r["Zstd"]="zstd"})(s=i.CompressionMethod||(i.CompressionMethod={}));var p;(function(r){r["GNU"]="gnu";r["BSD"]="bsd"})(p=i.ArchiveToolType||(i.ArchiveToolType={}));i.DefaultRetryAttempts=2;i.DefaultRetryDelay=5e3;i.SocketTimeout=5e3;i.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;i.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;i.TarFilename="cache.tar";i.ManifestFilename="manifest.txt"},5500:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,p)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.downloadCacheStorageSDK=i.downloadCacheHttpClientConcurrent=i.downloadCacheHttpClient=i.DownloadProgress=void 0;const d=l(a(2186));const u=a(6255);const m=a(4100);const h=l(a(4300));const g=l(a(7147));const y=l(a(2781));const v=l(a(3837));const b=l(a(1518));const x=a(8840);const w=a(3981);const S=a(2557);function pipeResponseToStream(r,i){return c(this,void 0,void 0,(function*(){const a=v.promisify(y.pipeline);yield a(r.message,i)}))}class DownloadProgress{constructor(r){this.contentLength=r;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(r){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=r;this.receivedBytes=0;d.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(r){this.receivedBytes=r}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const r=this.segmentOffset+this.receivedBytes;const i=(100*(r/this.contentLength)).toFixed(1);const a=Date.now()-this.startTime;const s=(r/(1024*1024)/(a/1e3)).toFixed(1);d.info(`Received ${r} of ${this.contentLength} (${i}%), ${s} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return r=>{this.setReceivedBytes(r.loadedBytes)}}startDisplayTimer(r=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,r)}};this.timeoutHandle=setTimeout(displayCallback,r)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}i.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(r,i){return c(this,void 0,void 0,(function*(){const a=g.createWriteStream(i);const s=new u.HttpClient("actions/cache");const p=yield(0,w.retryHttpClientResponse)("downloadCache",(()=>c(this,void 0,void 0,(function*(){return s.get(r)}))));p.message.socket.setTimeout(x.SocketTimeout,(()=>{p.message.destroy();d.debug(`Aborting download, socket timed out after ${x.SocketTimeout} ms`)}));yield pipeResponseToStream(p,a);const l=p.message.headers["content-length"];if(l){const r=parseInt(l);const a=b.getArchiveFileSizeInBytes(i);if(a!==r){throw new Error(`Incomplete download. Expected file size: ${r}, actual file size: ${a}`)}}else{d.debug("Unable to validate download, no Content-Length header")}}))}i.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheHttpClientConcurrent(r,i,a){var s;return c(this,void 0,void 0,(function*(){const p=yield g.promises.open(i,"w");const l=new u.HttpClient("actions/cache",undefined,{socketTimeout:a.timeoutInMs,keepAlive:true});try{const i=yield(0,w.retryHttpClientResponse)("downloadCacheMetadata",(()=>c(this,void 0,void 0,(function*(){return yield l.request("HEAD",r,null,{})}))));const d=i.message.headers["content-length"];if(d===undefined||d===null){throw new Error("Content-Length not found on blob response")}const u=parseInt(d);if(Number.isNaN(u)){throw new Error(`Could not interpret Content-Length: ${u}`)}const m=[];const h=4*1024*1024;for(let i=0;ic(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(l,r,i,a)}))})}m.reverse();let g=0;let y=0;const v=new DownloadProgress(u);v.startDisplayTimer();const b=v.onProgress();const x=[];let S;const waitAndWrite=()=>c(this,void 0,void 0,(function*(){const r=yield Promise.race(Object.values(x));yield p.write(r.buffer,0,r.count,r.offset);g--;delete x[r.offset];y+=r.count;b({loadedBytes:y})}));while(S=m.pop()){x[S.offset]=S.promiseGetter();g++;if(g>=((s=a.downloadConcurrency)!==null&&s!==void 0?s:10)){yield waitAndWrite()}}while(g>0){yield waitAndWrite()}}finally{l.dispose();yield p.close()}}))}i.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(r,i,a,s){return c(this,void 0,void 0,(function*(){const p=5;let l=0;while(true){try{const p=3e4;const l=yield promiseWithTimeout(p,downloadSegment(r,i,a,s));if(typeof l==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return l}catch(r){if(l>=p){throw r}l++}}}))}function downloadSegment(r,i,a,s){return c(this,void 0,void 0,(function*(){const p=yield(0,w.retryHttpClientResponse)("downloadCachePart",(()=>c(this,void 0,void 0,(function*(){return yield r.get(i,{Range:`bytes=${a}-${a+s-1}`})}))));if(!p.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:a,count:s,buffer:yield p.readBodyBuffer()}}))}function downloadCacheStorageSDK(r,i,a){var s;return c(this,void 0,void 0,(function*(){const p=new m.BlockBlobClient(r,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const l=yield p.getProperties();const c=(s=l.contentLength)!==null&&s!==void 0?s:-1;if(c<0){d.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(r,i)}else{const r=Math.min(134217728,h.constants.MAX_LENGTH);const s=new DownloadProgress(c);const l=g.openSync(i,"w");try{s.startDisplayTimer();const i=new S.AbortController;const d=i.signal;while(!s.isDone()){const u=s.segmentOffset+s.segmentSize;const m=Math.min(r,c-u);s.nextSegment(m);const h=yield promiseWithTimeout(a.segmentTimeoutInMs||36e5,p.downloadToBuffer(u,m,{abortSignal:d,concurrency:a.downloadConcurrency,onProgress:s.onProgress()}));if(h==="timeout"){i.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(h)){g.writeFileSync(l,h)}}}finally{s.stopDisplayTimer();g.closeSync(l)}}}))}i.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(r,i)=>c(void 0,void 0,void 0,(function*(){let a;const s=new Promise((i=>{a=setTimeout((()=>i("timeout")),r)}));return Promise.race([i,s]).then((r=>{clearTimeout(a);return r}))}))},3981:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,p)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.retryHttpClientResponse=i.retryTypedResponse=i.retry=i.isRetryableStatusCode=i.isServerErrorStatusCode=i.isSuccessStatusCode=void 0;const d=l(a(2186));const u=a(6255);const m=a(8840);function isSuccessStatusCode(r){if(!r){return false}return r>=200&&r<300}i.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(r){if(!r){return true}return r>=500}i.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(r){if(!r){return false}const i=[u.HttpCodes.BadGateway,u.HttpCodes.ServiceUnavailable,u.HttpCodes.GatewayTimeout];return i.includes(r)}i.isRetryableStatusCode=isRetryableStatusCode;function sleep(r){return c(this,void 0,void 0,(function*(){return new Promise((i=>setTimeout(i,r)))}))}function retry(r,i,a,s=m.DefaultRetryAttempts,p=m.DefaultRetryDelay,l=undefined){return c(this,void 0,void 0,(function*(){let c="";let u=1;while(u<=s){let m=undefined;let h=undefined;let g=false;try{m=yield i()}catch(r){if(l){m=l(r)}g=true;c=r.message}if(m){h=a(m);if(!isServerErrorStatusCode(h)){return m}}if(h){g=isRetryableStatusCode(h);c=`Cache service responded with ${h}`}d.debug(`${r} - Attempt ${u} of ${s} failed with error: ${c}`);if(!g){d.debug(`${r} - Error is not retryable`);break}yield sleep(p);u++}throw Error(`${r} failed: ${c}`)}))}i.retry=retry;function retryTypedResponse(r,i,a=m.DefaultRetryAttempts,s=m.DefaultRetryDelay){return c(this,void 0,void 0,(function*(){return yield retry(r,i,(r=>r.statusCode),a,s,(r=>{if(r instanceof u.HttpClientError){return{statusCode:r.statusCode,result:null,headers:{},error:r}}else{return undefined}}))}))}i.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(r,i,a=m.DefaultRetryAttempts,s=m.DefaultRetryDelay){return c(this,void 0,void 0,(function*(){return yield retry(r,i,(r=>r.message.statusCode),a,s)}))}i.retryHttpClientResponse=retryHttpClientResponse},3434:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,p)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.createTar=i.extractTar=i.listTar=void 0;const d=a(1514);const u=l(a(7436));const m=a(7147);const h=l(a(1017));const g=l(a(1518));const y=a(8840);const v=process.platform==="win32";function getTarPath(){return c(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const r=yield g.getGnuTarPathOnWindows();const i=y.SystemTarPathOnWindows;if(r){return{path:r,type:y.ArchiveToolType.GNU}}else if((0,m.existsSync)(i)){return{path:i,type:y.ArchiveToolType.BSD}}break}case"darwin":{const r=yield u.which("gtar",false);if(r){return{path:r,type:y.ArchiveToolType.GNU}}else{return{path:yield u.which("tar",true),type:y.ArchiveToolType.BSD}}}default:break}return{path:yield u.which("tar",true),type:y.ArchiveToolType.GNU}}))}function getTarArgs(r,i,a,s=""){return c(this,void 0,void 0,(function*(){const p=[`"${r.path}"`];const l=g.getCacheFileName(i);const c="cache.tar";const d=getWorkingDirectory();const u=r.type===y.ArchiveToolType.BSD&&i!==y.CompressionMethod.Gzip&&v;switch(a){case"create":p.push("--posix","-cf",u?c:l.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"--exclude",u?c:l.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"--files-from",y.ManifestFilename);break;case"extract":p.push("-xf",u?c:s.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${h.sep}`,"g"),"/"));break;case"list":p.push("-tf",u?c:s.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"-P");break}if(r.type===y.ArchiveToolType.GNU){switch(process.platform){case"win32":p.push("--force-local");break;case"darwin":p.push("--delay-directory-restore");break}}return p}))}function getCommands(r,i,a=""){return c(this,void 0,void 0,(function*(){let s;const p=yield getTarPath();const l=yield getTarArgs(p,r,i,a);const c=i!=="create"?yield getDecompressionProgram(p,r,a):yield getCompressionProgram(p,r);const d=p.type===y.ArchiveToolType.BSD&&r!==y.CompressionMethod.Gzip&&v;if(d&&i!=="create"){s=[[...c].join(" "),[...l].join(" ")]}else{s=[[...l].join(" "),[...c].join(" ")]}if(d){return s}return[s.join(" ")]}))}function getWorkingDirectory(){var r;return(r=process.env["GITHUB_WORKSPACE"])!==null&&r!==void 0?r:process.cwd()}function getDecompressionProgram(r,i,a){return c(this,void 0,void 0,(function*(){const s=r.type===y.ArchiveToolType.BSD&&i!==y.CompressionMethod.Gzip&&v;switch(i){case y.CompressionMethod.Zstd:return s?["zstd -d --long=30 --force -o",y.TarFilename,a.replace(new RegExp(`\\${h.sep}`,"g"),"/")]:["--use-compress-program",v?'"zstd -d --long=30"':"unzstd --long=30"];case y.CompressionMethod.ZstdWithoutLong:return s?["zstd -d --force -o",y.TarFilename,a.replace(new RegExp(`\\${h.sep}`,"g"),"/")]:["--use-compress-program",v?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(r,i){return c(this,void 0,void 0,(function*(){const a=g.getCacheFileName(i);const s=r.type===y.ArchiveToolType.BSD&&i!==y.CompressionMethod.Gzip&&v;switch(i){case y.CompressionMethod.Zstd:return s?["zstd -T0 --long=30 --force -o",a.replace(new RegExp(`\\${h.sep}`,"g"),"/"),y.TarFilename]:["--use-compress-program",v?'"zstd -T0 --long=30"':"zstdmt --long=30"];case y.CompressionMethod.ZstdWithoutLong:return s?["zstd -T0 --force -o",a.replace(new RegExp(`\\${h.sep}`,"g"),"/"),y.TarFilename]:["--use-compress-program",v?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(r,i){return c(this,void 0,void 0,(function*(){for(const a of r){try{yield(0,d.exec)(a,undefined,{cwd:i,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(r){throw new Error(`${a.split(" ")[0]} failed with error: ${r===null||r===void 0?void 0:r.message}`)}}}))}function listTar(r,i){return c(this,void 0,void 0,(function*(){const a=yield getCommands(i,"list",r);yield execCommands(a)}))}i.listTar=listTar;function extractTar(r,i){return c(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield u.mkdirP(a);const s=yield getCommands(i,"extract",r);yield execCommands(s)}))}i.extractTar=extractTar;function createTar(r,i,a){return c(this,void 0,void 0,(function*(){(0,m.writeFileSync)(h.join(r,y.ManifestFilename),i.join("\n"));const s=yield getCommands(a,"create");yield execCommands(s,r)}))}i.createTar=createTar},6215:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,s,p)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getDownloadOptions=i.getUploadOptions=void 0;const c=l(a(2186));function getUploadOptions(r){const i={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(r){if(typeof r.uploadConcurrency==="number"){i.uploadConcurrency=r.uploadConcurrency}if(typeof r.uploadChunkSize==="number"){i.uploadChunkSize=r.uploadChunkSize}}c.debug(`Upload concurrency: ${i.uploadConcurrency}`);c.debug(`Upload chunk size: ${i.uploadChunkSize}`);return i}i.getUploadOptions=getUploadOptions;function getDownloadOptions(r){const i={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(r){if(typeof r.useAzureSdk==="boolean"){i.useAzureSdk=r.useAzureSdk}if(typeof r.concurrentBlobDownloads==="boolean"){i.concurrentBlobDownloads=r.concurrentBlobDownloads}if(typeof r.downloadConcurrency==="number"){i.downloadConcurrency=r.downloadConcurrency}if(typeof r.timeoutInMs==="number"){i.timeoutInMs=r.timeoutInMs}if(typeof r.segmentTimeoutInMs==="number"){i.segmentTimeoutInMs=r.segmentTimeoutInMs}if(typeof r.lookupOnly==="boolean"){i.lookupOnly=r.lookupOnly}}const a=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(a&&!isNaN(Number(a))&&isFinite(Number(a))){i.segmentTimeoutInMs=Number(a)*60*1e3}c.debug(`Use Azure SDK: ${i.useAzureSdk}`);c.debug(`Download concurrency: ${i.downloadConcurrency}`);c.debug(`Request timeout (ms): ${i.timeoutInMs}`);c.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);c.debug(`Segment download timeout (ms): ${i.segmentTimeoutInMs}`);c.debug(`Lookup only: ${i.lookupOnly}`);return i}i.getDownloadOptions=getDownloadOptions},4138:(r,i,a)=>{var s=a(1610);var p=a(8373);var l=p;l.v1=s;l.v4=p;r.exports=l},5694:r=>{var i=[];for(var a=0;a<256;++a){i[a]=(a+256).toString(16).substr(1)}function bytesToUuid(r,a){var s=a||0;var p=i;return[p[r[s++]],p[r[s++]],p[r[s++]],p[r[s++]],"-",p[r[s++]],p[r[s++]],"-",p[r[s++]],p[r[s++]],"-",p[r[s++]],p[r[s++]],"-",p[r[s++]],p[r[s++]],p[r[s++]],p[r[s++]],p[r[s++]],p[r[s++]]].join("")}r.exports=bytesToUuid},4069:(r,i,a)=>{var s=a(6113);r.exports=function nodeRNG(){return s.randomBytes(16)}},1610:(r,i,a)=>{var s=a(4069);var p=a(5694);var l;var c;var d=0;var u=0;function v1(r,i,a){var m=i&&a||0;var h=i||[];r=r||{};var g=r.node||l;var y=r.clockseq!==undefined?r.clockseq:c;if(g==null||y==null){var v=s();if(g==null){g=l=[v[0]|1,v[1],v[2],v[3],v[4],v[5]]}if(y==null){y=c=(v[6]<<8|v[7])&16383}}var b=r.msecs!==undefined?r.msecs:(new Date).getTime();var x=r.nsecs!==undefined?r.nsecs:u+1;var w=b-d+(x-u)/1e4;if(w<0&&r.clockseq===undefined){y=y+1&16383}if((w<0||b>d)&&r.nsecs===undefined){x=0}if(x>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=b;u=x;c=y;b+=122192928e5;var S=((b&268435455)*1e4+x)%4294967296;h[m++]=S>>>24&255;h[m++]=S>>>16&255;h[m++]=S>>>8&255;h[m++]=S&255;var E=b/4294967296*1e4&268435455;h[m++]=E>>>8&255;h[m++]=E&255;h[m++]=E>>>24&15|16;h[m++]=E>>>16&255;h[m++]=y>>>8|128;h[m++]=y&255;for(var _=0;_<6;++_){h[m+_]=g[_]}return i?i:p(h)}r.exports=v1},8373:(r,i,a)=>{var s=a(4069);var p=a(5694);function v4(r,i,a){var l=i&&a||0;if(typeof r=="string"){i=r==="binary"?new Array(16):null;r=null}r=r||{};var c=r.random||(r.rng||s)();c[6]=c[6]&15|64;c[8]=c[8]&63|128;if(i){for(var d=0;d<16;++d){i[l+d]=c[d]}}return i||p(c)}r.exports=v4},7351:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.issue=i.issueCommand=void 0;const c=l(a(2037));const d=a(5278);function issueCommand(r,i,a){const s=new Command(r,i,a);process.stdout.write(s.toString()+c.EOL)}i.issueCommand=issueCommand;function issue(r,i=""){issueCommand(r,{},i)}i.issue=issue;const u="::";class Command{constructor(r,i,a){if(!r){r="missing.command"}this.command=r;this.properties=i;this.message=a}toString(){let r=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let i=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const s=this.properties[a];if(s){if(i){i=false}else{r+=","}r+=`${a}=${escapeProperty(s)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function escapeData(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};var c=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getIDToken=i.getState=i.saveState=i.group=i.endGroup=i.startGroup=i.info=i.notice=i.warning=i.error=i.debug=i.isDebug=i.setFailed=i.setCommandEcho=i.setOutput=i.getBooleanInput=i.getMultilineInput=i.getInput=i.addPath=i.setSecret=i.exportVariable=i.ExitCode=void 0;const d=a(7351);const u=a(717);const m=a(5278);const h=l(a(2037));const g=l(a(1017));const y=a(8041);var v;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(v=i.ExitCode||(i.ExitCode={}));function exportVariable(r,i){const a=m.toCommandValue(i);process.env[r]=a;const s=process.env["GITHUB_ENV"]||"";if(s){return u.issueFileCommand("ENV",u.prepareKeyValueMessage(r,i))}d.issueCommand("set-env",{name:r},a)}i.exportVariable=exportVariable;function setSecret(r){d.issueCommand("add-mask",{},r)}i.setSecret=setSecret;function addPath(r){const i=process.env["GITHUB_PATH"]||"";if(i){u.issueFileCommand("PATH",r)}else{d.issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${g.delimiter}${process.env["PATH"]}`}i.addPath=addPath;function getInput(r,i){const a=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(i&&i.required&&!a){throw new Error(`Input required and not supplied: ${r}`)}if(i&&i.trimWhitespace===false){return a}return a.trim()}i.getInput=getInput;function getMultilineInput(r,i){const a=getInput(r,i).split("\n").filter((r=>r!==""));if(i&&i.trimWhitespace===false){return a}return a.map((r=>r.trim()))}i.getMultilineInput=getMultilineInput;function getBooleanInput(r,i){const a=["true","True","TRUE"];const s=["false","False","FALSE"];const p=getInput(r,i);if(a.includes(p))return true;if(s.includes(p))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i.getBooleanInput=getBooleanInput;function setOutput(r,i){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return u.issueFileCommand("OUTPUT",u.prepareKeyValueMessage(r,i))}process.stdout.write(h.EOL);d.issueCommand("set-output",{name:r},m.toCommandValue(i))}i.setOutput=setOutput;function setCommandEcho(r){d.issue("echo",r?"on":"off")}i.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=v.Failure;error(r)}i.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}i.isDebug=isDebug;function debug(r){d.issueCommand("debug",{},r)}i.debug=debug;function error(r,i={}){d.issueCommand("error",m.toCommandProperties(i),r instanceof Error?r.toString():r)}i.error=error;function warning(r,i={}){d.issueCommand("warning",m.toCommandProperties(i),r instanceof Error?r.toString():r)}i.warning=warning;function notice(r,i={}){d.issueCommand("notice",m.toCommandProperties(i),r instanceof Error?r.toString():r)}i.notice=notice;function info(r){process.stdout.write(r+h.EOL)}i.info=info;function startGroup(r){d.issue("group",r)}i.startGroup=startGroup;function endGroup(){d.issue("endgroup")}i.endGroup=endGroup;function group(r,i){return c(this,void 0,void 0,(function*(){startGroup(r);let a;try{a=yield i()}finally{endGroup()}return a}))}i.group=group;function saveState(r,i){const a=process.env["GITHUB_STATE"]||"";if(a){return u.issueFileCommand("STATE",u.prepareKeyValueMessage(r,i))}d.issueCommand("save-state",{name:r},m.toCommandValue(i))}i.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}i.getState=getState;function getIDToken(r){return c(this,void 0,void 0,(function*(){return yield y.OidcClient.getIDToken(r)}))}i.getIDToken=getIDToken;var b=a(1327);Object.defineProperty(i,"summary",{enumerable:true,get:function(){return b.summary}});var x=a(1327);Object.defineProperty(i,"markdownSummary",{enumerable:true,get:function(){return x.markdownSummary}});var w=a(2981);Object.defineProperty(i,"toPosixPath",{enumerable:true,get:function(){return w.toPosixPath}});Object.defineProperty(i,"toWin32Path",{enumerable:true,get:function(){return w.toWin32Path}});Object.defineProperty(i,"toPlatformPath",{enumerable:true,get:function(){return w.toPlatformPath}})},717:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.prepareKeyValueMessage=i.issueFileCommand=void 0;const c=l(a(7147));const d=l(a(2037));const u=a(8974);const m=a(5278);function issueFileCommand(r,i){const a=process.env[`GITHUB_${r}`];if(!a){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!c.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}c.appendFileSync(a,`${m.toCommandValue(i)}${d.EOL}`,{encoding:"utf8"})}i.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(r,i){const a=`ghadelimiter_${u.v4()}`;const s=m.toCommandValue(i);if(r.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(s.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${r}<<${a}${d.EOL}${s}${d.EOL}${a}`}i.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.OidcClient=void 0;const p=a(6255);const l=a(5526);const c=a(2186);class OidcClient{static createHttpClient(r=true,i=10){const a={allowRetries:r,maxRetries:i};return new p.HttpClient("actions/oidc-client",[new l.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){var i;return s(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const s=yield a.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const p=(i=s.result)===null||i===void 0?void 0:i.value;if(!p){throw new Error("Response json body do not have ID Token field")}return p}))}static getIDToken(r){return s(this,void 0,void 0,(function*(){try{let i=OidcClient.getIDTokenUrl();if(r){const a=encodeURIComponent(r);i=`${i}&audience=${a}`}c.debug(`ID token url is ${i}`);const a=yield OidcClient.getCall(i);c.setSecret(a);return a}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}i.OidcClient=OidcClient},2981:function(r,i,a){"use strict";var s=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;Object.defineProperty(r,s,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.toPlatformPath=i.toWin32Path=i.toPosixPath=void 0;const c=l(a(1017));function toPosixPath(r){return r.replace(/[\\]/g,"/")}i.toPosixPath=toPosixPath;function toWin32Path(r){return r.replace(/[/]/g,"\\")}i.toWin32Path=toWin32Path;function toPlatformPath(r){return r.replace(/[/\\]/g,c.sep)}i.toPlatformPath=toPlatformPath},1327:function(r,i,a){"use strict";var s=this&&this.__awaiter||function(r,i,a,s){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(s.next(r))}catch(r){p(r)}}function rejected(r){try{step(s["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.summary=i.markdownSummary=i.SUMMARY_DOCS_URL=i.SUMMARY_ENV_VAR=void 0;const p=a(2037);const l=a(7147);const{access:c,appendFile:d,writeFile:u}=l.promises;i.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";i.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 s(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[i.SUMMARY_ENV_VAR];if(!r){throw new Error(`Unable to find environment variable for $${i.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield c(r,l.constants.R_OK|l.constants.W_OK)}catch(i){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,i,a={}){const s=Object.entries(a).map((([r,i])=>` ${r}="${i}"`)).join("");if(!i){return`<${r}${s}>`}return`<${r}${s}>${i}${r}>`}write(r){return s(this,void 0,void 0,(function*(){const i=!!(r===null||r===void 0?void 0:r.overwrite);const a=yield this.filePath();const s=i?u:d;yield s(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return s(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(r,i=false){this._buffer+=r;return i?this.addEOL():this}addEOL(){return this.addRaw(p.EOL)}addCodeBlock(r,i){const a=Object.assign({},i&&{lang:i});const s=this.wrap("pre",this.wrap("code",r),a);return this.addRaw(s).addEOL()}addList(r,i=false){const a=i?"ol":"ul";const s=r.map((r=>this.wrap("li",r))).join("");const p=this.wrap(a,s);return this.addRaw(p).addEOL()}addTable(r){const i=r.map((r=>{const i=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:i,data:a,colspan:s,rowspan:p}=r;const l=i?"th":"td";const c=Object.assign(Object.assign({},s&&{colspan:s}),p&&{rowspan:p});return this.wrap(l,a,c)})).join("");return this.wrap("tr",i)})).join("");const a=this.wrap("table",i);return this.addRaw(a).addEOL()}addDetails(r,i){const a=this.wrap("details",this.wrap("summary",r)+i);return this.addRaw(a).addEOL()}addImage(r,i,a){const{width:s,height:p}=a||{};const l=Object.assign(Object.assign({},s&&{width:s}),p&&{height:p});const c=this.wrap("img",null,Object.assign({src:r,alt:i},l));return this.addRaw(c).addEOL()}addHeading(r,i){const a=`h${i}`;const s=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const p=this.wrap(s,r);return this.addRaw(p).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,i){const a=Object.assign({},i&&{cite:i});const s=this.wrap("blockquote",r,a);return this.addRaw(s).addEOL()}addLink(r,i){const a=this.wrap("a",r,{href:i});return this.addRaw(a).addEOL()}}const m=new Summary;i.markdownSummary=m;i.summary=m},5278:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.toCommandProperties=i.toCommandValue=void 0;function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}i.toCommandValue=toCommandValue;function toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}i.toCommandProperties=toCommandProperties},8974:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});Object.defineProperty(i,"v1",{enumerable:true,get:function(){return s.default}});Object.defineProperty(i,"v3",{enumerable:true,get:function(){return p.default}});Object.defineProperty(i,"v4",{enumerable:true,get:function(){return l.default}});Object.defineProperty(i,"v5",{enumerable:true,get:function(){return c.default}});Object.defineProperty(i,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(i,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(i,"validate",{enumerable:true,get:function(){return m.default}});Object.defineProperty(i,"stringify",{enumerable:true,get:function(){return h.default}});Object.defineProperty(i,"parse",{enumerable:true,get:function(){return g.default}});var s=_interopRequireDefault(a(1595));var p=_interopRequireDefault(a(6993));var l=_interopRequireDefault(a(1472));var c=_interopRequireDefault(a(6217));var d=_interopRequireDefault(a(2381));var u=_interopRequireDefault(a(427));var m=_interopRequireDefault(a(2609));var h=_interopRequireDefault(a(1458));var g=_interopRequireDefault(a(6385));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},5842:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return s.default.createHash("md5").update(r).digest()}var p=md5;i["default"]=p},2381:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a="00000000-0000-0000-0000-000000000000";i["default"]=a},6385:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(2609));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,s.default)(r)){throw TypeError("Invalid UUID")}let i;const a=new Uint8Array(16);a[0]=(i=parseInt(r.slice(0,8),16))>>>24;a[1]=i>>>16&255;a[2]=i>>>8&255;a[3]=i&255;a[4]=(i=parseInt(r.slice(9,13),16))>>>8;a[5]=i&255;a[6]=(i=parseInt(r.slice(14,18),16))>>>8;a[7]=i&255;a[8]=(i=parseInt(r.slice(19,23),16))>>>8;a[9]=i&255;a[10]=(i=parseInt(r.slice(24,36),16))/1099511627776&255;a[11]=i/4294967296&255;a[12]=i>>>24&255;a[13]=i>>>16&255;a[14]=i>>>8&255;a[15]=i&255;return a}var p=parse;i["default"]=p},6230:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;i["default"]=a},9784:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=rng;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const p=new Uint8Array(256);let l=p.length;function rng(){if(l>p.length-16){s.default.randomFillSync(p);l=0}return p.slice(l,l+=16)}},8844:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return s.default.createHash("sha1").update(r).digest()}var p=sha1;i["default"]=p},1458:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(2609));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const p=[];for(let r=0;r<256;++r){p.push((r+256).toString(16).substr(1))}function stringify(r,i=0){const a=(p[r[i+0]]+p[r[i+1]]+p[r[i+2]]+p[r[i+3]]+"-"+p[r[i+4]]+p[r[i+5]]+"-"+p[r[i+6]]+p[r[i+7]]+"-"+p[r[i+8]]+p[r[i+9]]+"-"+p[r[i+10]]+p[r[i+11]]+p[r[i+12]]+p[r[i+13]]+p[r[i+14]]+p[r[i+15]]).toLowerCase();if(!(0,s.default)(a)){throw TypeError("Stringified UUID is invalid")}return a}var l=stringify;i["default"]=l},1595:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(9784));var p=_interopRequireDefault(a(1458));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let l;let c;let d=0;let u=0;function v1(r,i,a){let m=i&&a||0;const h=i||new Array(16);r=r||{};let g=r.node||l;let y=r.clockseq!==undefined?r.clockseq:c;if(g==null||y==null){const i=r.random||(r.rng||s.default)();if(g==null){g=l=[i[0]|1,i[1],i[2],i[3],i[4],i[5]]}if(y==null){y=c=(i[6]<<8|i[7])&16383}}let v=r.msecs!==undefined?r.msecs:Date.now();let b=r.nsecs!==undefined?r.nsecs:u+1;const x=v-d+(b-u)/1e4;if(x<0&&r.clockseq===undefined){y=y+1&16383}if((x<0||v>d)&&r.nsecs===undefined){b=0}if(b>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=v;u=b;c=y;v+=122192928e5;const w=((v&268435455)*1e4+b)%4294967296;h[m++]=w>>>24&255;h[m++]=w>>>16&255;h[m++]=w>>>8&255;h[m++]=w&255;const S=v/4294967296*1e4&268435455;h[m++]=S>>>8&255;h[m++]=S&255;h[m++]=S>>>24&15|16;h[m++]=S>>>16&255;h[m++]=y>>>8|128;h[m++]=y&255;for(let r=0;r<6;++r){h[m+r]=g[r]}return i||(0,p.default)(h)}var m=v1;i["default"]=m},6993:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(5920));var p=_interopRequireDefault(a(5842));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=(0,s.default)("v3",48,p.default);var c=l;i["default"]=c},5920:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=_default;i.URL=i.DNS=void 0;var s=_interopRequireDefault(a(1458));var p=_interopRequireDefault(a(6385));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const i=[];for(let a=0;a {const m=generateBlockID(d,s);const h=a.blockSize*s;const g=s===p-1?i:h+a.blockSize;const y=g-h;l.push(m);await this.stageBlock(m,r(h,y),y,{abortSignal:a.abortSignal,conditions:a.conditions,encryptionScope:a.encryptionScope,tracingOptions:c.tracingOptions});u+=y;if(a.onProgress){a.onProgress({loadedBytes:u})}}))}await m.do();return this.commitBlockList(l,c)}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async uploadFile(r,i={}){const{span:a,updatedOptions:s}=Lo("BlockBlobClient-uploadFile",i);try{const a=(await Wo(r)).size;return await this.uploadSeekableInternal(((i,a)=>()=>Ko(r,{autoClose:true,end:a?i+a-1:Infinity,start:i})),a,Object.assign(Object.assign({},i),{tracingOptions:Object.assign(Object.assign({},i.tracingOptions),convertTracingToRequestOptionsBase(s))}))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadStream(r,i=no,a=5,p={}){if(!p.blobHTTPHeaders){p.blobHTTPHeaders={}}if(!p.conditions){p.conditions={}}const{span:c,updatedOptions:d}=Lo("BlockBlobClient-uploadStream",p);try{let l=0;const c=s.generateUuid();let u=0;const m=[];const h=new BufferScheduler(r,i,a,(async(r,i)=>{const a=generateBlockID(c,l);m.push(a);l++;await this.stageBlock(a,r,i,{conditions:p.conditions,encryptionScope:p.encryptionScope,tracingOptions:d.tracingOptions});u+=i;if(p.onProgress){p.onProgress({loadedBytes:u})}}),Math.ceil(a/4*3));await h.do();return await this.commitBlockList(m,Object.assign(Object.assign({},p),{tracingOptions:Object.assign(Object.assign({},p.tracingOptions),convertTracingToRequestOptionsBase(d))}))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}}class PageBlobClient extends BlobClient{constructor(r,i,a,p){let l;let c;p=p||{};if(isPipelineLike(i)){c=r;l=i}else if(s.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||s.isTokenCredential(i)){c=r;p=a;l=newPipeline(i,p)}else if(!i&&typeof i!=="string"){c=r;l=newPipeline(new AnonymousCredential,p)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const d=i;const u=a;const m=extractConnectionStringParts(r);if(m.kind==="AccountConnString"){if(s.isNode){const r=new StorageSharedKeyCredential(m.accountName,m.accountKey);c=appendToURLPath(appendToURLPath(m.url,encodeURIComponent(d)),encodeURIComponent(u));if(!p.proxyOptions){p.proxyOptions=s.getDefaultProxySettings(m.proxyUri)}l=newPipeline(r,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(m.kind==="SASConnString"){c=appendToURLPath(appendToURLPath(m.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+m.accountSas;l=newPipeline(new AnonymousCredential,p)}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(c,l);this.pageBlobContext=new PageBlob(this.storageClientContext)}withSnapshot(r){return new PageBlobClient(setURLParameter(this.url,co.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r,i={}){var a,s,p;i.conditions=i.conditions||{};const{span:c,updatedOptions:d}=Lo("PageBlobClient-create",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,r,Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,blobSequenceNumber:i.blobSequenceNumber,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(s=i.immutabilityPolicy)===null||s===void 0?void 0:s.expiriesOn,immutabilityPolicyMode:(p=i.immutabilityPolicy)===null||p===void 0?void 0:p.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async createIfNotExists(r,i={}){var a,s;const{span:p,updatedOptions:c}=Lo("PageBlobClient-createIfNotExists",i);try{const a={ifNoneMatch:ho};const s=await this.create(r,Object.assign(Object.assign({},i),{conditions:a,tracingOptions:c.tracingOptions}));return Object.assign(Object.assign({succeeded:true},s),{_response:s._response})}catch(r){if(((a=r.details)===null||a===void 0?void 0:a.errorCode)==="BlobAlreadyExists"){p.setStatus({code:l.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async uploadPages(r,i,a,s={}){var p;s.conditions=s.conditions||{};const{span:c,updatedOptions:d}=Lo("PageBlobClient-uploadPages",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(a,r,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(p=s.conditions)===null||p===void 0?void 0:p.tagConditions}),requestOptions:{onUploadProgress:s.onProgress},range:rangeToString({offset:i,count:a}),sequenceNumberAccessConditions:s.conditions,transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async uploadPagesFromURL(r,i,a,s,p={}){var c;p.conditions=p.conditions||{};p.sourceConditions=p.sourceConditions||{};const{span:d,updatedOptions:u}=Lo("PageBlobClient-uploadPagesFromURL",p);try{ensureCpkIfSpecified(p.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:i,count:s}),0,rangeToString({offset:a,count:s}),Object.assign({abortSignal:p.abortSignal,sourceContentMD5:p.sourceContentMD5,sourceContentCrc64:p.sourceContentCrc64,leaseAccessConditions:p.conditions,sequenceNumberAccessConditions:p.conditions,modifiedAccessConditions:Object.assign(Object.assign({},p.conditions),{ifTags:(c=p.conditions)===null||c===void 0?void 0:c.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:p.sourceConditions.ifMatch,sourceIfModifiedSince:p.sourceConditions.ifModifiedSince,sourceIfNoneMatch:p.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:p.sourceConditions.ifUnmodifiedSince},cpkInfo:p.customerProvidedKey,encryptionScope:p.encryptionScope,copySourceAuthorization:httpAuthorizationToString(p.sourceAuthorization)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async clearPages(r=0,i,a={}){var s;a.conditions=a.conditions||{};const{span:p,updatedOptions:c}=Lo("PageBlobClient-clearPages",a);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),range:rangeToString({offset:r,count:i}),sequenceNumberAccessConditions:a.conditions,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(c)))}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async getPageRanges(r=0,i,a={}){var s;a.conditions=a.conditions||{};const{span:p,updatedOptions:c}=Lo("PageBlobClient-getPageRanges",a);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions}),range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(c))).then(rangeResponseFromModel)}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async listPageRangesSegment(r=0,i,a,s={}){var p;const{span:c,updatedOptions:d}=Lo("PageBlobClient-getPageRangesSegment",s);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(p=s.conditions)===null||p===void 0?void 0:p.tagConditions}),range:rangeToString({offset:r,count:i}),marker:a,maxPageSize:s.maxPageSize},convertTracingToRequestOptionsBase(d)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}listPageRangeItemSegments(r=0,i,a,s={}){return p.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let l;if(!!a||a===undefined){do{l=yield p.__await(this.listPageRangesSegment(r,i,a,s));a=l.continuationToken;yield yield p.__await(yield p.__await(l))}while(a)}}))}listPageRangeItems(r=0,i,a={}){return p.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var s,l;let c;try{for(var d=p.__asyncValues(this.listPageRangeItemSegments(r,i,c,a)),u;u=yield p.__await(d.next()),!u.done;){const r=u.value;yield p.__await(yield*p.__asyncDelegator(p.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){s={error:r}}finally{try{if(u&&!u.done&&(l=d.return))yield p.__await(l.call(d))}finally{if(s)throw s.error}}}))}listPageRanges(r=0,i,a={}){a.conditions=a.conditions||{};const s=this.listPageRangeItems(r,i,a);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listPageRangeItemSegments(r,i,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},a))}}async getPageRangesDiff(r,i,a,s={}){var p;s.conditions=s.conditions||{};const{span:c,updatedOptions:d}=Lo("PageBlobClient-getPageRangesDiff",s);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(p=s.conditions)===null||p===void 0?void 0:p.tagConditions}),prevsnapshot:a,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async listPageRangesDiffSegment(r,i,a,s,p){var c;const{span:d,updatedOptions:u}=Lo("PageBlobClient-getPageRangesDiffSegment",p);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:p===null||p===void 0?void 0:p.abortSignal,leaseAccessConditions:p===null||p===void 0?void 0:p.conditions,modifiedAccessConditions:Object.assign(Object.assign({},p===null||p===void 0?void 0:p.conditions),{ifTags:(c=p===null||p===void 0?void 0:p.conditions)===null||c===void 0?void 0:c.tagConditions}),prevsnapshot:a,range:rangeToString({offset:r,count:i}),marker:s,maxPageSize:p===null||p===void 0?void 0:p.maxPageSize},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}listPageRangeDiffItemSegments(r,i,a,s,l){return p.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let c;if(!!s||s===undefined){do{c=yield p.__await(this.listPageRangesDiffSegment(r,i,a,s,l));s=c.continuationToken;yield yield p.__await(yield p.__await(c))}while(s)}}))}listPageRangeDiffItems(r,i,a,s){return p.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var l,c;let d;try{for(var u=p.__asyncValues(this.listPageRangeDiffItemSegments(r,i,a,d,s)),m;m=yield p.__await(u.next()),!m.done;){const r=m.value;yield p.__await(yield*p.__asyncDelegator(p.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){l={error:r}}finally{try{if(m&&!m.done&&(c=u.return))yield p.__await(c.call(u))}finally{if(l)throw l.error}}}))}listPageRangesDiff(r,i,a,s={}){s.conditions=s.conditions||{};const p=this.listPageRangeDiffItems(r,i,a,Object.assign({},s));return{next(){return p.next()},[Symbol.asyncIterator](){return this},byPage:(p={})=>this.listPageRangeDiffItemSegments(r,i,a,p.continuationToken,Object.assign({maxPageSize:p.maxPageSize},s))}}async getPageRangesDiffForManagedDisks(r,i,a,s={}){var p;s.conditions=s.conditions||{};const{span:c,updatedOptions:d}=Lo("PageBlobClient-GetPageRangesDiffForManagedDisks",s);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(p=s.conditions)===null||p===void 0?void 0:p.tagConditions}),prevSnapshotUrl:a,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async resize(r,i={}){var a;i.conditions=i.conditions||{};const{span:s,updatedOptions:p}=Lo("PageBlobClient-resize",i);try{return await this.pageBlobContext.resize(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){s.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async updateSequenceNumber(r,i,a={}){var s;a.conditions=a.conditions||{};const{span:p,updatedOptions:c}=Lo("PageBlobClient-updateSequenceNumber",a);try{return await this.pageBlobContext.updateSequenceNumber(r,Object.assign({abortSignal:a.abortSignal,blobSequenceNumber:i,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(s=a.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(c)))}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async startCopyIncremental(r,i={}){var a;const{span:s,updatedOptions:p}=Lo("PageBlobClient-startCopyIncremental",i);try{return await this.pageBlobContext.copyIncremental(r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){s.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}}async function getBodyAsText(r){let i=Buffer.alloc(vo);const a=await streamToBuffer2(r.readableStreamBody,i);i=i.slice(0,a);return i.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const Qo=": ";const Yo=" ";const Jo=-1;class BatchResponseParser{constructor(r,i){if(!r||!r.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!i||i.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=r;this.subRequests=i;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${bo}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==uo.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const r=await getBodyAsText(this.batchResponse);const i=r.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const a=i.length;if(a!==this.subRequests.size&&a!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const p=new Array(a);let l=0;let c=0;for(let r=0;r=0&&y {r.exports=glob;var s=a(7147);var p=a(6863);var l=a(3973);var c=l.Minimatch;var d=a(4124);var u=a(2361).EventEmitter;var m=a(1017);var h=a(9491);var g=a(8714);var y=a(9010);var v=a(7625);var b=v.setopts;var x=v.ownProp;var w=a(2492);var S=a(3837);var E=v.childrenIgnored;var _=v.isIgnored;var T=a(1223);function glob(r,i,a){if(typeof i==="function")a=i,i={};if(!i)i={};if(i.sync){if(a)throw new TypeError("callback provided to sync glob");return y(r,i)}return new Glob(r,i,a)}glob.sync=y;var N=glob.GlobSync=y.GlobSync;glob.glob=glob;function extend(r,i){if(i===null||typeof i!=="object"){return r}var a=Object.keys(i);var s=a.length;while(s--){r[a[s]]=i[a[s]]}return r}glob.hasMagic=function(r,i){var a=extend({},i);a.noprocess=true;var s=new Glob(r,a);var p=s.minimatch.set;if(!r)return false;if(p.length>1)return true;for(var l=0;l this.maxLength)return i();if(!this.stat&&x(this.cache,a)){var l=this.cache[a];if(Array.isArray(l))l="DIR";if(!p||l==="DIR")return i(null,l);if(p&&l==="FILE")return i()}var c;var d=this.statCache[a];if(d!==undefined){if(d===false)return i(null,d);else{var u=d.isDirectory()?"DIR":"FILE";if(p&&u==="FILE")return i();else return i(null,u,d)}}var m=this;var h=w("stat\0"+a,lstatcb_);if(h)s.lstat(a,h);function lstatcb_(p,l){if(l&&l.isSymbolicLink()){return s.stat(a,(function(s,p){if(s)m._stat2(r,a,null,l,i);else m._stat2(r,a,s,p,i)}))}else{m._stat2(r,a,p,l,i)}}};Glob.prototype._stat2=function(r,i,a,s,p){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR")){this.statCache[i]=false;return p()}var l=r.slice(-1)==="/";this.statCache[i]=s;if(i.slice(-1)==="/"&&s&&!s.isDirectory())return p(null,false,s);var c=true;if(s)c=s.isDirectory()?"DIR":"FILE";this.cache[i]=this.cache[i]||c;if(l&&c==="FILE")return p();return p(null,c,s)}},9010:(r,i,a)=>{r.exports=globSync;globSync.GlobSync=GlobSync;var s=a(7147);var p=a(6863);var l=a(3973);var c=l.Minimatch;var d=a(1957).Glob;var u=a(3837);var m=a(1017);var h=a(9491);var g=a(8714);var y=a(7625);var v=y.setopts;var b=y.ownProp;var x=y.childrenIgnored;var w=y.isIgnored;function globSync(r,i){if(typeof i==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(r,i).found}function GlobSync(r,i){if(!r)throw new Error("must provide pattern");if(typeof i==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(r,i);v(this,r,i);if(this.noprocess)return this;var a=this.minimatch.set.length;this.matches=new Array(a);for(var s=0;sthis.maxLength)return false;if(!this.stat&&b(this.cache,i)){var p=this.cache[i];if(Array.isArray(p))p="DIR";if(!a||p==="DIR")return p;if(a&&p==="FILE")return false}var l;var c=this.statCache[i];if(!c){var d;try{d=s.lstatSync(i)}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[i]=false;return false}}if(d&&d.isSymbolicLink()){try{c=s.statSync(i)}catch(r){c=d}}else{c=d}}this.statCache[i]=c;var p=true;if(c)p=c.isDirectory()?"DIR":"FILE";this.cache[i]=this.cache[i]||p;if(a&&p==="FILE")return false;return p};GlobSync.prototype._mark=function(r){return y.mark(this,r)};GlobSync.prototype._makeAbs=function(r){return y.makeAbs(this,r)}},2492:(r,i,a)=>{var s=a(2940);var p=Object.create(null);var l=a(1223);r.exports=s(inflight);function inflight(r,i){if(p[r]){p[r].push(i);return null}else{p[r]=[i];return makeres(r)}}function makeres(r){return l((function RES(){var i=p[r];var a=i.length;var s=slice(arguments);try{for(var l=0;la){i.splice(0,a);process.nextTick((function(){RES.apply(null,s)}))}else{delete p[r]}}}))}function slice(r){var i=r.length;var a=[];for(var s=0;s{try{var s=a(3837);if(typeof s.inherits!=="function")throw"";r.exports=s.inherits}catch(i){r.exports=a(8544)}},8544:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,i){if(i){r.super_=i;r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,i){if(i){r.super_=i;var TempCtor=function(){};TempCtor.prototype=i.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},3287:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});
+require('./sourcemap-register.js');(()=>{var __webpack_modules__={7799:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.saveCache=i.restoreCache=i.isFeatureAvailable=i.ReserveCacheError=i.ValidationError=void 0;const d=c(s(2186));const A=c(s(1017));const u=c(s(1518));const m=c(s(8245));const h=s(3434);class ValidationError extends Error{constructor(r){super(r);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}i.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(r){super(r);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}i.ReserveCacheError=ReserveCacheError;function checkPaths(r){if(!r||r.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(r){if(r.length>512){throw new ValidationError(`Key Validation Error: ${r} cannot be larger than 512 characters.`)}const i=/^[^,]*$/;if(!i.test(r)){throw new ValidationError(`Key Validation Error: ${r} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}i.isFeatureAvailable=isFeatureAvailable;function restoreCache(r,i,s,a,l=false){return p(this,void 0,void 0,(function*(){checkPaths(r);s=s||[];const c=[i,...s];d.debug("Resolved Keys:");d.debug(JSON.stringify(c));if(c.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const r of c){checkKey(r)}const p=yield u.getCompressionMethod();let g="";try{const i=yield m.getCacheEntry(c,r,{compressionMethod:p,enableCrossOsArchive:l});if(!(i===null||i===void 0?void 0:i.archiveLocation)){return undefined}if(a===null||a===void 0?void 0:a.lookupOnly){d.info("Lookup only - skipping download");return i.cacheKey}g=A.join(yield u.createTempDirectory(),u.getCacheFileName(p));d.debug(`Archive Path: ${g}`);yield m.downloadCache(i.archiveLocation,g,a);if(d.isDebug()){yield(0,h.listTar)(g,p)}const s=u.getArchiveFileSizeInBytes(g);d.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);yield(0,h.extractTar)(g,p);d.info("Cache restored successfully");return i.cacheKey}catch(r){const i=r;if(i.name===ValidationError.name){throw r}else{d.warning(`Failed to restore: ${r.message}`)}}finally{try{yield u.unlinkFile(g)}catch(r){d.debug(`Failed to delete archive: ${r}`)}}return undefined}))}i.restoreCache=restoreCache;function saveCache(r,i,s,a=false){var l,c,g,E,y;return p(this,void 0,void 0,(function*(){checkPaths(r);checkKey(i);const p=yield u.getCompressionMethod();let C=-1;const b=yield u.resolvePaths(r);d.debug("Cache Paths:");d.debug(`${JSON.stringify(b)}`);if(b.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 I=yield u.createTempDirectory();const B=A.join(I,u.getCacheFileName(p));d.debug(`Archive Path: ${B}`);try{yield(0,h.createTar)(I,b,p);if(d.isDebug()){yield(0,h.listTar)(B,p)}const A=10*1024*1024*1024;const v=u.getArchiveFileSizeInBytes(B);d.debug(`File Size: ${v}`);if(v>A&&!u.isGhes()){throw new Error(`Cache size of ~${Math.round(v/(1024*1024))} MB (${v} B) is over the 10GB limit, not saving cache.`)}d.debug("Reserving Cache");const Q=yield m.reserveCache(i,r,{compressionMethod:p,enableCrossOsArchive:a,cacheSize:v});if((l=Q===null||Q===void 0?void 0:Q.result)===null||l===void 0?void 0:l.cacheId){C=(c=Q===null||Q===void 0?void 0:Q.result)===null||c===void 0?void 0:c.cacheId}else if((Q===null||Q===void 0?void 0:Q.statusCode)===400){throw new Error((E=(g=Q===null||Q===void 0?void 0:Q.error)===null||g===void 0?void 0:g.message)!==null&&E!==void 0?E:`Cache size of ~${Math.round(v/(1024*1024))} MB (${v} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(y=Q===null||Q===void 0?void 0:Q.error)===null||y===void 0?void 0:y.message}`)}d.debug(`Saving Cache (ID: ${C})`);yield m.saveCache(C,B,s)}catch(r){const i=r;if(i.name===ValidationError.name){throw r}else if(i.name===ReserveCacheError.name){d.info(`Failed to save: ${i.message}`)}else{d.warning(`Failed to save: ${i.message}`)}}finally{try{yield u.unlinkFile(B)}catch(r){d.debug(`Failed to delete archive: ${r}`)}}return C}))}i.saveCache=saveCache},8245:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(i,s);if(!l||("get"in l?!i.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return i[s]}}}Object.defineProperty(r,a,l)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.saveCache=i.reserveCache=i.downloadCache=i.getCacheEntry=i.getCacheVersion=void 0;const d=c(s(2186));const A=s(6255);const u=s(5526);const m=c(s(6113));const h=c(s(7147));const g=s(7310);const E=c(s(1518));const y=s(5500);const C=s(6215);const b=s(3981);const I="1.0";function getCacheApiUrl(r){const i=process.env["ACTIONS_CACHE_URL"]||"";if(!i){throw new Error("Cache Service Url not found, unable to restore cache.")}const s=`${i}_apis/artifactcache/${r}`;d.debug(`Resource Url: ${s}`);return s}function createAcceptHeader(r,i){return`${r};api-version=${i}`}function getRequestOptions(){const r={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return r}function createHttpClient(){const r=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const i=new u.BearerCredentialHandler(r);return new A.HttpClient("actions/cache",[i],getRequestOptions())}function getCacheVersion(r,i,s=false){const a=r;if(i){a.push(i)}if(process.platform==="win32"&&!s){a.push("windows-only")}a.push(I);return m.createHash("sha256").update(a.join("|")).digest("hex")}i.getCacheVersion=getCacheVersion;function getCacheEntry(r,i,s){return p(this,void 0,void 0,(function*(){const a=createHttpClient();const l=getCacheVersion(i,s===null||s===void 0?void 0:s.compressionMethod,s===null||s===void 0?void 0:s.enableCrossOsArchive);const c=`cache?keys=${encodeURIComponent(r.join(","))}&version=${l}`;const A=yield(0,b.retryTypedResponse)("getCacheEntry",(()=>p(this,void 0,void 0,(function*(){return a.getJson(getCacheApiUrl(c))}))));if(A.statusCode===204){if(d.isDebug()){yield printCachesListForDiagnostics(r[0],a,l)}return null}if(!(0,b.isSuccessStatusCode)(A.statusCode)){throw new Error(`Cache service responded with ${A.statusCode}`)}const u=A.result;const m=u===null||u===void 0?void 0:u.archiveLocation;if(!m){throw new Error("Cache not found.")}d.setSecret(m);d.debug(`Cache Result:`);d.debug(JSON.stringify(u));return u}))}i.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(r,i,s){return p(this,void 0,void 0,(function*(){const a=`caches?key=${encodeURIComponent(r)}`;const l=yield(0,b.retryTypedResponse)("listCache",(()=>p(this,void 0,void 0,(function*(){return i.getJson(getCacheApiUrl(a))}))));if(l.statusCode===200){const i=l.result;const a=i===null||i===void 0?void 0:i.totalCount;if(a&&a>0){d.debug(`No matching cache found for cache key '${r}', version '${s} 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 r of(i===null||i===void 0?void 0:i.artifactCaches)||[]){d.debug(`Cache Key: ${r===null||r===void 0?void 0:r.cacheKey}, Cache Version: ${r===null||r===void 0?void 0:r.cacheVersion}, Cache Scope: ${r===null||r===void 0?void 0:r.scope}, Cache Created: ${r===null||r===void 0?void 0:r.creationTime}`)}}}}))}function downloadCache(r,i,s){return p(this,void 0,void 0,(function*(){const a=new g.URL(r);const l=(0,C.getDownloadOptions)(s);if(a.hostname.endsWith(".blob.core.windows.net")){if(l.useAzureSdk){yield(0,y.downloadCacheStorageSDK)(r,i,l)}else if(l.concurrentBlobDownloads){yield(0,y.downloadCacheHttpClientConcurrent)(r,i,l)}else{yield(0,y.downloadCacheHttpClient)(r,i)}}else{yield(0,y.downloadCacheHttpClient)(r,i)}}))}i.downloadCache=downloadCache;function reserveCache(r,i,s){return p(this,void 0,void 0,(function*(){const a=createHttpClient();const l=getCacheVersion(i,s===null||s===void 0?void 0:s.compressionMethod,s===null||s===void 0?void 0:s.enableCrossOsArchive);const c={key:r,version:l,cacheSize:s===null||s===void 0?void 0:s.cacheSize};const d=yield(0,b.retryTypedResponse)("reserveCache",(()=>p(this,void 0,void 0,(function*(){return a.postJson(getCacheApiUrl("caches"),c)}))));return d}))}i.reserveCache=reserveCache;function getContentRange(r,i){return`bytes ${r}-${i}/*`}function uploadChunk(r,i,s,a,l){return p(this,void 0,void 0,(function*(){d.debug(`Uploading chunk of size ${l-a+1} bytes at offset ${a} with content range: ${getContentRange(a,l)}`);const c={"Content-Type":"application/octet-stream","Content-Range":getContentRange(a,l)};const A=yield(0,b.retryHttpClientResponse)(`uploadChunk (start: ${a}, end: ${l})`,(()=>p(this,void 0,void 0,(function*(){return r.sendStream("PATCH",i,s(),c)}))));if(!(0,b.isSuccessStatusCode)(A.message.statusCode)){throw new Error(`Cache service responded with ${A.message.statusCode} during upload chunk.`)}}))}function uploadFile(r,i,s,a){return p(this,void 0,void 0,(function*(){const l=E.getArchiveFileSizeInBytes(s);const c=getCacheApiUrl(`caches/${i.toString()}`);const A=h.openSync(s,"r");const u=(0,C.getUploadOptions)(a);const m=E.assertDefined("uploadConcurrency",u.uploadConcurrency);const g=E.assertDefined("uploadChunkSize",u.uploadChunkSize);const y=[...new Array(m).keys()];d.debug("Awaiting all uploads");let b=0;try{yield Promise.all(y.map((()=>p(this,void 0,void 0,(function*(){while(b {function callbackForResult(r,i){if(r){a(r)}else if(!i){a(new Error("Unknown error"))}else{s(i)}}this.requestRawWithCallback(r,i,callbackForResult)}))}))}requestRawWithCallback(r,i,s){if(typeof i==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(i,"utf8")}let a=false;function handleResult(r,i){if(!a){a=true;s(r,i)}}const l=r.httpModule.request(r.options,(r=>{const i=new HttpClientResponse(r);handleResult(undefined,i)}));let c;l.on("socket",(r=>{c=r}));l.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));l.on("error",(function(r){handleResult(r)}));if(i&&typeof i==="string"){l.write(i,"utf8")}if(i&&typeof i!=="string"){i.on("close",(function(){l.end()}));i.pipe(l)}else{l.end()}}getAgent(r){const i=new URL(r);return this._getAgent(i)}getAgentDispatcher(r){const i=new URL(r);const s=u.getProxyUrl(i);const a=s&&s.hostname;if(!a){return}return this._getProxyAgentDispatcher(i,s)}_prepareRequest(r,i,s){const a={};a.parsedUrl=i;const l=a.parsedUrl.protocol==="https:";a.httpModule=l?A:d;const c=l?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,i,s){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[i]}return r[i]||a||s}_getAgent(r){let i;const s=u.getProxyUrl(r);const a=s&&s.hostname;if(this._keepAlive&&a){i=this._proxyAgent}if(this._keepAlive&&!a){i=this._agent}if(i){return i}const l=r.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(s&&s.hostname){const r={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let a;const p=s.protocol==="https:";if(l){a=p?m.httpsOverHttps:m.httpsOverHttp}else{a=p?m.httpOverHttps:m.httpOverHttp}i=a(r);this._proxyAgent=i}if(this._keepAlive&&!i){const r={keepAlive:this._keepAlive,maxSockets:c};i=l?new A.Agent(r):new d.Agent(r);this._agent=i}if(!i){i=l?A.globalAgent:d.globalAgent}if(l&&this._ignoreSslError){i.options=Object.assign(i.options||{},{rejectUnauthorized:false})}return i}_getProxyAgentDispatcher(r,i){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const a=r.protocol==="https:";s=new h.ProxyAgent(Object.assign({uri:i.href,pipelining:!this._keepAlive?0:1},(i.username||i.password)&&{token:`${i.username}:${i.password}`}));this._proxyAgentDispatcher=s;if(a&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_performExponentialBackoff(r){return p(this,void 0,void 0,(function*(){r=Math.min(B,r);const i=v*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),i)))}))}_processResponse(r,i){return p(this,void 0,void 0,(function*(){return new Promise(((s,a)=>p(this,void 0,void 0,(function*(){const l=r.message.statusCode||0;const c={statusCode:l,result:null,headers:{}};if(l===g.NotFound){s(c)}function dateTimeDeserializer(r,i){if(typeof i==="string"){const r=new Date(i);if(!isNaN(r.valueOf())){return r}}return i}let p;let d;try{d=yield r.readBody();if(d&&d.length>0){if(i&&i.deserializeDates){p=JSON.parse(d,dateTimeDeserializer)}else{p=JSON.parse(d)}c.result=p}c.headers=r.message.headers}catch(r){}if(l>299){let r;if(p&&p.message){r=p.message}else if(d&&d.length>0){r=d}else{r=`Failed request: (${l})`}const i=new HttpClientError(r,l);i.result=c.result;a(i)}else{s(c)}}))))}))}}i.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((i,s)=>(i[s.toLowerCase()]=r[s],i)),{})},9835:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.checkBypass=i.getProxyUrl=void 0;function getProxyUrl(r){const i=r.protocol==="https:";if(checkBypass(r)){return undefined}const s=(()=>{if(i){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new URL(s)}catch(r){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new URL(`http://${s}`)}}else{return undefined}}i.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const i=r.hostname;if(isLoopbackAddress(i)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const l=[r.hostname.toUpperCase()];if(typeof a==="number"){l.push(`${l[0]}:${a}`)}for(const r of s.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||l.some((i=>i===r||i.endsWith(`.${r}`)||r.startsWith(".")&&i.endsWith(`${r}`)))){return true}}return false}i.checkBypass=checkBypass;function isLoopbackAddress(r){const i=r.toLowerCase();return i==="localhost"||i.startsWith("127.")||i.startsWith("[::1]")||i.startsWith("[0:0:0:0:0:0:0:1]")}},1962:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};var d;Object.defineProperty(i,"__esModule",{value:true});i.getCmdPath=i.tryGetExecutablePath=i.isRooted=i.isDirectory=i.exists=i.READONLY=i.UV_FS_O_EXLOCK=i.IS_WINDOWS=i.unlink=i.symlink=i.stat=i.rmdir=i.rm=i.rename=i.readlink=i.readdir=i.open=i.mkdir=i.lstat=i.copyFile=i.chmod=void 0;const A=c(s(7147));const u=c(s(1017));d=A.promises,i.chmod=d.chmod,i.copyFile=d.copyFile,i.lstat=d.lstat,i.mkdir=d.mkdir,i.open=d.open,i.readdir=d.readdir,i.readlink=d.readlink,i.rename=d.rename,i.rm=d.rm,i.rmdir=d.rmdir,i.stat=d.stat,i.symlink=d.symlink,i.unlink=d.unlink;i.IS_WINDOWS=process.platform==="win32";i.UV_FS_O_EXLOCK=268435456;i.READONLY=A.constants.O_RDONLY;function exists(r){return p(this,void 0,void 0,(function*(){try{yield i.stat(r)}catch(r){if(r.code==="ENOENT"){return false}throw r}return true}))}i.exists=exists;function isDirectory(r,s=false){return p(this,void 0,void 0,(function*(){const a=s?yield i.stat(r):yield i.lstat(r);return a.isDirectory()}))}i.isDirectory=isDirectory;function isRooted(r){r=normalizeSeparators(r);if(!r){throw new Error('isRooted() parameter "p" cannot be empty')}if(i.IS_WINDOWS){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}i.isRooted=isRooted;function tryGetExecutablePath(r,s){return p(this,void 0,void 0,(function*(){let a=undefined;try{a=yield i.stat(r)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${i}`)}}if(a&&a.isFile()){if(i.IS_WINDOWS){const i=u.extname(r).toUpperCase();if(s.some((r=>r.toUpperCase()===i))){return r}}else{if(isUnixExecutable(a)){return r}}}const l=r;for(const c of s){r=l+c;a=undefined;try{a=yield i.stat(r)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${i}`)}}if(a&&a.isFile()){if(i.IS_WINDOWS){try{const s=u.dirname(r);const a=u.basename(r).toUpperCase();for(const l of yield i.readdir(s)){if(a===l.toUpperCase()){r=u.join(s,l);break}}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${r}': ${i}`)}return r}else{if(isUnixExecutable(a)){return r}}}}return""}))}i.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(r){r=r||"";if(i.IS_WINDOWS){r=r.replace(/\//g,"\\");return r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}function isUnixExecutable(r){return(r.mode&1)>0||(r.mode&8)>0&&r.gid===process.getgid()||(r.mode&64)>0&&r.uid===process.getuid()}function getCmdPath(){var r;return(r=process.env["COMSPEC"])!==null&&r!==void 0?r:`cmd.exe`}i.getCmdPath=getCmdPath},7436:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.findInPath=i.which=i.mkdirP=i.rmRF=i.mv=i.cp=void 0;const d=s(9491);const A=c(s(1017));const u=c(s(1962));function cp(r,i,s={}){return p(this,void 0,void 0,(function*(){const{force:a,recursive:l,copySourceDirectory:c}=readCopyOptions(s);const p=(yield u.exists(i))?yield u.stat(i):null;if(p&&p.isFile()&&!a){return}const d=p&&p.isDirectory()&&c?A.join(i,A.basename(r)):i;if(!(yield u.exists(r))){throw new Error(`no such file or directory: ${r}`)}const m=yield u.stat(r);if(m.isDirectory()){if(!l){throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(r,d,0,a)}}else{if(A.relative(r,d)===""){throw new Error(`'${d}' and '${r}' are the same file`)}yield copyFile(r,d,a)}}))}i.cp=cp;function mv(r,i,s={}){return p(this,void 0,void 0,(function*(){if(yield u.exists(i)){let a=true;if(yield u.isDirectory(i)){i=A.join(i,A.basename(r));a=yield u.exists(i)}if(a){if(s.force==null||s.force){yield rmRF(i)}else{throw new Error("Destination already exists")}}}yield mkdirP(A.dirname(i));yield u.rename(r,i)}))}i.mv=mv;function rmRF(r){return p(this,void 0,void 0,(function*(){if(u.IS_WINDOWS){if(/[*"<>|]/.test(r)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield u.rm(r,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(r){throw new Error(`File was unable to be removed ${r}`)}}))}i.rmRF=rmRF;function mkdirP(r){return p(this,void 0,void 0,(function*(){d.ok(r,"a path argument must be provided");yield u.mkdir(r,{recursive:true})}))}i.mkdirP=mkdirP;function which(r,i){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}if(i){const i=yield which(r,false);if(!i){if(u.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${r}. 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: ${r}. 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 i}const s=yield findInPath(r);if(s&&s.length>0){return s[0]}return""}))}i.which=which;function findInPath(r){return p(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}const i=[];if(u.IS_WINDOWS&&process.env["PATHEXT"]){for(const r of process.env["PATHEXT"].split(A.delimiter)){if(r){i.push(r)}}}if(u.isRooted(r)){const s=yield u.tryGetExecutablePath(r,i);if(s){return[s]}return[]}if(r.includes(A.sep)){return[]}const s=[];if(process.env.PATH){for(const r of process.env.PATH.split(A.delimiter)){if(r){s.push(r)}}}const a=[];for(const l of s){const s=yield u.tryGetExecutablePath(A.join(l,r),i);if(s){a.push(s)}}return a}))}i.findInPath=findInPath;function readCopyOptions(r){const i=r.force==null?true:r.force;const s=Boolean(r.recursive);const a=r.copySourceDirectory==null?true:Boolean(r.copySourceDirectory);return{force:i,recursive:s,copySourceDirectory:a}}function cpDirRecursive(r,i,s,a){return p(this,void 0,void 0,(function*(){if(s>=255)return;s++;yield mkdirP(i);const l=yield u.readdir(r);for(const c of l){const l=`${r}/${c}`;const p=`${i}/${c}`;const d=yield u.lstat(l);if(d.isDirectory()){yield cpDirRecursive(l,p,s,a)}else{yield copyFile(l,p,a)}}yield u.chmod(i,(yield u.stat(r)).mode)}))}function copyFile(r,i,s){return p(this,void 0,void 0,(function*(){if((yield u.lstat(r)).isSymbolicLink()){try{yield u.lstat(i);yield u.unlink(i)}catch(r){if(r.code==="EPERM"){yield u.chmod(i,"0666");yield u.unlink(i)}}const s=yield u.readlink(r);yield u.symlink(s,i,u.IS_WINDOWS?"junction":null)}else if(!(yield u.exists(i))||s){yield u.copyFile(r,i)}}))}},2473:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i._readLinuxVersionFile=i._getOsVersion=i._findMatch=void 0;const d=c(s(5911));const A=s(2186);const u=s(2037);const m=s(2081);const h=s(7147);function _findMatch(i,s,a,l){return p(this,void 0,void 0,(function*(){const c=u.platform();let p;let m;let h;for(const p of a){const a=p.version;A.debug(`check ${a} satisfies ${i}`);if(d.satisfies(a,i)&&(!s||p.stable===s)){h=p.files.find((i=>{A.debug(`${i.arch}===${l} && ${i.platform}===${c}`);let s=i.arch===l&&i.platform===c;if(s&&i.platform_version){const a=r.exports._getOsVersion();if(a===i.platform_version){s=true}else{s=d.satisfies(a,i.platform_version)}}return s}));if(h){A.debug(`matched ${p.version}`);m=p;break}}}if(m&&h){p=Object.assign({},m);p.files=[h]}return p}))}i._findMatch=_findMatch;function _getOsVersion(){const i=u.platform();let s="";if(i==="darwin"){s=m.execSync("sw_vers -productVersion").toString()}else if(i==="linux"){const i=r.exports._readLinuxVersionFile();if(i){const r=i.split("\n");for(const i of r){const r=i.split("=");if(r.length===2&&(r[0].trim()==="VERSION_ID"||r[0].trim()==="DISTRIB_RELEASE")){s=r[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return s}i._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const r="/etc/lsb-release";const i="/etc/os-release";let s="";if(h.existsSync(r)){s=h.readFileSync(r).toString()}else if(h.existsSync(i)){s=h.readFileSync(i).toString()}return s}i._readLinuxVersionFile=_readLinuxVersionFile},8279:function(r,i,s){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;Object.defineProperty(r,a,{enumerable:true,get:function(){return i[s]}})}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)if(s!=="default"&&Object.hasOwnProperty.call(r,s))a(i,r,s);l(i,r);return i};var p=this&&this.__awaiter||function(r,i,s,a){function adopt(r){return r instanceof s?r:new s((function(i){i(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.RetryHelper=void 0;const d=c(s(2186));class RetryHelper{constructor(r,i,s){if(r<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=r;this.minSeconds=Math.floor(i);this.maxSeconds=Math.floor(s);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(r,i){return p(this,void 0,void 0,(function*(){let s=1;while(s d){failValidation("MaxItems",d)}if(A!=undefined&&y.length>A){failValidation("MaxLength",A)}if(u!=undefined&&y.lengths.indexOf(r)!==i))){failValidation("UniqueItems",E)}}}serialize(r,i,s,a={}){var l,c,p;const d={rootName:(l=a.rootName)!==null&&l!==void 0?l:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(p=a.xmlCharKey)!==null&&p!==void 0?p:_};let A={};const u=r.type.name;if(!s){s=r.serializedName}if(u.match(/^Sequence$/i)!==null){A=[]}if(r.isConstant){i=r.defaultValue}const{required:m,nullable:h}=r;if(m&&h&&i===undefined){throw new Error(`${s} cannot be undefined.`)}if(m&&!h&&i==undefined){throw new Error(`${s} cannot be null or undefined.`)}if(!m&&h===false&&i===null){throw new Error(`${s} cannot be null.`)}if(i==undefined){A=i}else{if(u.match(/^any$/i)!==null){A=i}else if(u.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){A=serializeBasicTypes(u,s,i)}else if(u.match(/^Enum$/i)!==null){const a=r;A=serializeEnumType(s,a.type.allowedValues,i)}else if(u.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){A=serializeDateTypes(u,i,s)}else if(u.match(/^ByteArray$/i)!==null){A=serializeByteArrayType(s,i)}else if(u.match(/^Base64Url$/i)!==null){A=serializeBase64UrlType(s,i)}else if(u.match(/^Sequence$/i)!==null){A=serializeSequenceType(this,r,i,s,Boolean(this.isXML),d)}else if(u.match(/^Dictionary$/i)!==null){A=serializeDictionaryType(this,r,i,s,Boolean(this.isXML),d)}else if(u.match(/^Composite$/i)!==null){A=serializeCompositeType(this,r,i,s,Boolean(this.isXML),d)}}return A}deserialize(r,i,s,a={}){var l,c,p;const d={rootName:(l=a.rootName)!==null&&l!==void 0?l:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(p=a.xmlCharKey)!==null&&p!==void 0?p:_};if(i==undefined){if(this.isXML&&r.type.name==="Sequence"&&!r.xmlIsWrapped){i=[]}if(r.defaultValue!==undefined){i=r.defaultValue}return i}let A;const u=r.type.name;if(!s){s=r.serializedName}if(u.match(/^Composite$/i)!==null){A=deserializeCompositeType(this,r,i,s,d)}else{if(this.isXML){const r=d.xmlCharKey;const s=i;if(s[T]!=undefined&&s[r]!=undefined){i=s[r]}}if(u.match(/^Number$/i)!==null){A=parseFloat(i);if(isNaN(A)){A=i}}else if(u.match(/^Boolean$/i)!==null){if(i==="true"){A=true}else if(i==="false"){A=false}else{A=i}}else if(u.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){A=i}else if(u.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){A=new Date(i)}else if(u.match(/^UnixTime$/i)!==null){A=unixTimeToDate(i)}else if(u.match(/^ByteArray$/i)!==null){A=decodeString(i)}else if(u.match(/^Base64Url$/i)!==null){A=base64UrlToByteArray(i)}else if(u.match(/^Sequence$/i)!==null){A=deserializeSequenceType(this,r,i,s,d)}else if(u.match(/^Dictionary$/i)!==null){A=deserializeDictionaryType(this,r,i,s,d)}}if(r.isConstant){A=r.defaultValue}return A}}function trimEnd(r,i){let s=r.length;while(s-1>=0&&r[s-1]===i){--s}return r.substr(0,s)}function bufferToBase64Url(r){if(!r){return undefined}if(!(r instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const i=encodeByteArray(r);return trimEnd(i,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(r){if(!r){return undefined}if(r&&typeof r.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}r=r.replace(/-/g,"+").replace(/_/g,"/");return decodeString(r)}function splitSerializeName(r){const i=[];let s="";if(r){const a=r.split(".");for(const r of a){if(r.charAt(r.length-1)==="\\"){s+=r.substr(0,r.length-1)+"."}else{s+=r;i.push(s);s=""}}}return i}function dateToUnixTime(r){if(!r){return undefined}if(typeof r.valueOf()==="string"){r=new Date(r)}return Math.floor(r.getTime()/1e3)}function unixTimeToDate(r){if(!r){return undefined}return new Date(r*1e3)}function serializeBasicTypes(r,i,s){if(s!==null&&s!==undefined){if(r.match(/^Number$/i)!==null){if(typeof s!=="number"){throw new Error(`${i} with value ${s} must be of type number.`)}}else if(r.match(/^String$/i)!==null){if(typeof s.valueOf()!=="string"){throw new Error(`${i} with value "${s}" must be of type string.`)}}else if(r.match(/^Uuid$/i)!==null){if(!(typeof s.valueOf()==="string"&&isValidUuid(s))){throw new Error(`${i} with value "${s}" must be of type string and a valid uuid.`)}}else if(r.match(/^Boolean$/i)!==null){if(typeof s!=="boolean"){throw new Error(`${i} with value ${s} must be of type boolean.`)}}else if(r.match(/^Stream$/i)!==null){const r=typeof s;if(r!=="string"&&r!=="function"&&!(s instanceof ArrayBuffer)&&!ArrayBuffer.isView(s)&&!((typeof Blob==="function"||typeof Blob==="object")&&s instanceof Blob)){throw new Error(`${i} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}}}return s}function serializeEnumType(r,i,s){if(!i){throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`)}const a=i.some((r=>{if(typeof r.valueOf()==="string"){return r.toLowerCase()===s.toLowerCase()}return r===s}));if(!a){throw new Error(`${s} is not a valid value for ${r}. The valid values are: ${JSON.stringify(i)}.`)}return s}function serializeByteArrayType(r,i){let s="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}s=encodeByteArray(i)}return s}function serializeBase64UrlType(r,i){let s="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}s=bufferToBase64Url(i)||""}return s}function serializeDateTypes(r,i,s){if(i!=undefined){if(r.match(/^Date$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}i=i instanceof Date?i.toISOString().substring(0,10):new Date(i).toISOString().substring(0,10)}else if(r.match(/^DateTime$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}i=i instanceof Date?i.toISOString():new Date(i).toISOString()}else if(r.match(/^DateTimeRfc1123$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123 format.`)}i=i instanceof Date?i.toUTCString():new Date(i).toUTCString()}else if(r.match(/^UnixTime$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}i=dateToUnixTime(i)}else if(r.match(/^TimeSpan$/i)!==null){if(!isDuration(i)){throw new Error(`${s} must be a string in ISO 8601 format. Instead was "${i}".`)}}}return i}function serializeSequenceType(r,i,s,a,l,c){if(!Array.isArray(s)){throw new Error(`${a} must be of type Array.`)}const p=i.type.element;if(!p||typeof p!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}.`)}const d=[];for(let i=0;i {clearTimeout(A);d(r)}))}))}async function streamToBuffer2(r,i,s){let a=0;const l=i.length;return new Promise(((c,p)=>{r.on("readable",(()=>{let c=r.read();if(!c){return}if(typeof c==="string"){c=Buffer.from(c,s)}if(a+c.length>l){p(new Error(`Stream exceeds buffer size. Buffer size: ${l}`));return}i.fill(c,a,a+c.length);a+=c.length}));r.on("end",(()=>{c(a)}));r.on("error",p)}))}async function readStreamToLocalFile(r,i){return new Promise(((s,a)=>{const l=I.createWriteStream(i);r.on("error",(r=>{a(r)}));l.on("error",(r=>{a(r)}));l.on("close",s);r.pipe(l)}))}const Jo=B.promisify(I.stat);const Wo=I.createReadStream;class BlobClient extends StorageClient{constructor(r,i,s,l){l=l||{};let c;let p;if(isPipelineLike(i)){p=r;c=i}else if(a.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||a.isTokenCredential(i)){p=r;l=s;c=newPipeline(i,l)}else if(!i&&typeof i!=="string"){p=r;if(s&&typeof s!=="string"){l=s}c=newPipeline(new AnonymousCredential,l)}else if(i&&typeof i==="string"&&s&&typeof s==="string"){const d=i;const A=s;const u=extractConnectionStringParts(r);if(u.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(u.accountName,u.accountKey);p=appendToURLPath(appendToURLPath(u.url,encodeURIComponent(d)),encodeURIComponent(A));if(!l.proxyOptions){l.proxyOptions=a.getDefaultProxySettings(u.proxyUri)}c=newPipeline(r,l)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(u.kind==="SASConnString"){p=appendToURLPath(appendToURLPath(u.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+u.accountSas;c=newPipeline(new AnonymousCredential,l)}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(p,c);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,po.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,po.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(r){return new BlobClient(setURLParameter(this.url,po.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(setURLParameter(this.url,po.Parameters.VERSIONID,r.length===0?undefined:r),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(r=0,i,s={}){var l;s.conditions=s.conditions||{};s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);const{span:p,updatedOptions:d}=Oo("BlobClient-download",s);try{const c=await this.blobContext.download(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(l=s.conditions)===null||l===void 0?void 0:l.tagConditions}),requestOptions:{onDownloadProgress:a.isNode?undefined:s.onProgress},range:r===0&&!i?undefined:rangeToString({offset:r,count:i}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey},convertTracingToRequestOptionsBase(d)));const p=Object.assign(Object.assign({},c),{_response:c._response,objectReplicationDestinationPolicyId:c.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(c.objectReplicationRules)});if(!a.isNode){return p}if(s.maxRetryRequests===undefined||s.maxRetryRequests<0){s.maxRetryRequests=oo}if(c.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!c.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(p,(async i=>{var a;const l={leaseAccessConditions:s.conditions,modifiedAccessConditions:{ifMatch:s.conditions.ifMatch||c.etag,ifModifiedSince:s.conditions.ifModifiedSince,ifNoneMatch:s.conditions.ifNoneMatch,ifUnmodifiedSince:s.conditions.ifUnmodifiedSince,ifTags:(a=s.conditions)===null||a===void 0?void 0:a.tagConditions},range:rangeToString({count:r+c.contentLength-i,offset:i}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:s.abortSignal},l))).readableStreamBody}),r,c.contentLength,{maxRetryRequests:s.maxRetryRequests,onProgress:s.onProgress})}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async exists(r={}){const{span:i,updatedOptions:s}=Oo("BlobClient-exists",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:s.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===Qo||r.details.errorCode===wo)){return true}i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getProperties(r={}){var i;const{span:s,updatedOptions:a}=Oo("BlobClient-getProperties",r);try{r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const s=await this.blobContext.getProperties(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey},convertTracingToRequestOptionsBase(a)));return Object.assign(Object.assign({},s),{_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)})}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async delete(r={}){var i;const{span:s,updatedOptions:a}=Oo("BlobClient-delete",r);r.conditions=r.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:r.abortSignal,deleteSnapshots:r.deleteSnapshots,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async deleteIfExists(r={}){var i,s;const{span:a,updatedOptions:l}=Oo("BlobClient-deleteIfExists",r);try{const r=await this.delete(l);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(s=r.response)===null||s===void 0?void 0:s.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async undelete(r={}){const{span:i,updatedOptions:s}=Oo("BlobClient-undelete",r);try{return await this.blobContext.undelete(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(s)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setHTTPHeaders(r,i={}){var s;const{span:a,updatedOptions:l}=Oo("BlobClient-setHTTPHeaders",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:r,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,i={}){var s;const{span:a,updatedOptions:l}=Oo("BlobClient-setMetadata",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,metadata:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setTags(r,i={}){var s;const{span:a,updatedOptions:l}=Oo("BlobClient-setTags",i);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(l)),{tags:toBlobTags(r)}))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getTags(r={}){var i;const{span:s,updatedOptions:a}=Oo("BlobClient-getTags",r);try{const s=await this.blobContext.getTags(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(a)));const l=Object.assign(Object.assign({},s),{_response:s._response,tags:toTags({blobTagSet:s.blobTagSet})||{}});return l}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){var i;const{span:s,updatedOptions:a}=Oo("BlobClient-createSnapshot",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async beginCopyFromURL(r,i={}){const s={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const a=new BlobBeginCopyFromUrlPoller({blobClient:s,copySource:r,intervalInMs:i.intervalInMs,onProgress:i.onProgress,resumeFrom:i.resumeFrom,startCopyFromURLOptions:i});await a.poll();return a}async abortCopyFromURL(r,i={}){const{span:s,updatedOptions:a}=Oo("BlobClient-abortCopyFromURL",i);try{return await this.blobContext.abortCopyFromURL(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async syncCopyFromURL(r,i={}){var s,a,l;const{span:p,updatedOptions:d}=Oo("BlobClient-syncCopyFromURL",i);i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};try{return await this.blobContext.copyFromURL(r,Object.assign({abortSignal:i.abortSignal,metadata:i.metadata,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},sourceContentMD5:i.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags),immutabilityPolicyExpiry:(a=i.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,encryptionScope:i.encryptionScope,copySourceTags:i.copySourceTags},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async setAccessTier(r,i={}){var s;const{span:a,updatedOptions:l}=Oo("BlobClient-setAccessTier",i);try{return await this.blobContext.setTier(toAccessTier(r),Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(s=i.conditions)===null||s===void 0?void 0:s.tagConditions}),rehydratePriority:i.rehydratePriority},convertTracingToRequestOptionsBase(l)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async downloadToBuffer(r,i,s,a={}){let l;let p=0;let d=0;let A=a;if(r instanceof Buffer){l=r;p=i||0;d=typeof s==="number"?s:0}else{p=typeof r==="number"?r:0;d=typeof i==="number"?i:0;A=s||{}}const{span:u,updatedOptions:m}=Oo("BlobClient-downloadToBuffer",A);try{if(!A.blockSize){A.blockSize=0}if(A.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(A.blockSize===0){A.blockSize=ao}if(p<0){throw new RangeError("offset option must be >= 0")}if(d&&d<=0){throw new RangeError("count option must be greater than 0")}if(!A.conditions){A.conditions={}}if(!d){const r=await this.getProperties(Object.assign(Object.assign({},A),{tracingOptions:Object.assign(Object.assign({},A.tracingOptions),convertTracingToRequestOptionsBase(m))}));d=r.contentLength-p;if(d<0){throw new RangeError(`offset ${p} shouldn't be larger than blob size ${r.contentLength}`)}}if(!l){try{l=Buffer.alloc(d)}catch(r){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${r.message}`)}}if(l.length c){a+=r.substring(c,l);c=l}this.buffer="";++c}}if(c {"use strict";r.exports=function basename(r){if(typeof r!=="string"){return""}for(var i=r.length-1;i>=0;--i){switch(r.charCodeAt(i)){case 47:case 92:r=r.slice(i+1);return r===".."||r==="."?"":r}}return r===".."||r==="."?"":r}},9136:r=>{"use strict";const i=new TextDecoder("utf-8");const s=new Map([["utf-8",i],["utf8",i]]);function decodeText(r,i,a){if(r){if(s.has(a)){try{return s.get(a).decode(Buffer.from(r,i))}catch(r){}}else{try{s.set(a,new TextDecoder(a));return s.get(a).decode(Buffer.from(r,i))}catch(r){}}}return r}r.exports=decodeText},9692:r=>{"use strict";r.exports=function getLimit(r,i,s){if(!r||r[i]===undefined||r[i]===null){return s}if(typeof r[i]!=="number"||isNaN(r[i])){throw new TypeError("Limit "+i+" is not a valid number")}return r[i]}},4426:(r,i,s)=>{"use strict";const a=s(9136);const l=/%([a-fA-F0-9]{2})/g;function encodedReplacer(r,i){return String.fromCharCode(parseInt(i,16))}function parseParams(r){const i=[];let s="key";let c="";let p=false;let d=false;let A=0;let u="";for(var m=0,h=r.length;m 1024)m+="? ";m+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" ");if(!writeNode(r,i,u,false,false)){continue}m+=r.dump;a+=m}r.tag=l;r.dump="{"+a+"}"}function writeBlockMapping(r,i,s,a){var c="",p=r.tag,d=Object.keys(s),A,u,h,g,E,y;if(r.sortKeys===true){d.sort()}else if(typeof r.sortKeys==="function"){d.sort(r.sortKeys)}else if(r.sortKeys){throw new l("sortKeys must be a boolean or a function")}for(A=0,u=d.length;A1024;if(E){if(r.dump&&m===r.dump.charCodeAt(0)){y+="?"}else{y+="? "}}y+=r.dump;if(E){y+=generateNextLine(r,i)}if(!writeNode(r,i+1,g,true,E)){continue}if(r.dump&&m===r.dump.charCodeAt(0)){y+=":"}else{y+=": "}y+=r.dump;c+=y}r.tag=p;r.dump=c||"{}"}function detectType(r,i,s){var a,c,A,u,m,h;c=s?r.explicitTypes:r.implicitTypes;for(A=0,u=c.length;A tag resolver accepts not "'+h+'" style')}r.dump=a}return true}}return false}function writeNode(r,i,s,a,c,d,A){r.tag=null;r.dump=s;if(!detectType(r,s,false)){detectType(r,s,true)}var u=p.call(r.dump);var m=a;var h;if(a){a=r.flowLevel<0||r.flowLevel>i}var g=u==="[object Object]"||u==="[object Array]",E,y;if(g){E=r.duplicates.indexOf(s);y=E!==-1}if(r.tag!==null&&r.tag!=="?"||y||r.indent!==2&&i>0){c=false}if(y&&r.usedDuplicates[E]){r.dump="*ref_"+E}else{if(g&&y&&!r.usedDuplicates[E]){r.usedDuplicates[E]=true}if(u==="[object Object]"){if(a&&Object.keys(r.dump).length!==0){writeBlockMapping(r,i,r.dump,c);if(y){r.dump="&ref_"+E+r.dump}}else{writeFlowMapping(r,i,r.dump);if(y){r.dump="&ref_"+E+" "+r.dump}}}else if(u==="[object Array]"){if(a&&r.dump.length!==0){if(r.noArrayIndent&&!A&&i>0){writeBlockSequence(r,i-1,r.dump,c)}else{writeBlockSequence(r,i,r.dump,c)}if(y){r.dump="&ref_"+E+r.dump}}else{writeFlowSequence(r,i,r.dump);if(y){r.dump="&ref_"+E+" "+r.dump}}}else if(u==="[object String]"){if(r.tag!=="?"){writeScalar(r,r.dump,i,d,m)}}else if(u==="[object Undefined]"){return false}else{if(r.skipInvalid)return false;throw new l("unacceptable kind of an object to dump "+u)}if(r.tag!==null&&r.tag!=="?"){h=encodeURI(r.tag[0]==="!"?r.tag.slice(1):r.tag).replace(/!/g,"%21");if(r.tag[0]==="!"){h="!"+h}else if(h.slice(0,18)==="tag:yaml.org,2002:"){h="!!"+h.slice(18)}else{h="!<"+h+">"}r.dump=h+" "+r.dump}}return true}function getDuplicateReferences(r,i){var s=[],a=[],l,c;inspectNode(r,s,a);for(l=0,c=a.length;l >18&63];i+=d[s>>12&63];i+=d[s>>6&63];i+=d[s&63]}s=(s<<8)+r[a]}c=p%3;if(c===0){i+=d[s>>18&63];i+=d[s>>12&63];i+=d[s>>6&63];i+=d[s&63]}else if(c===2){i+=d[s>>10&63];i+=d[s>>4&63];i+=d[s<<2&63];i+=d[64]}else if(c===1){i+=d[s>>2&63];i+=d[s<<4&63];i+=d[64];i+=d[64]}return i}function isBinary(r){return Object.prototype.toString.call(r)==="[object Uint8Array]"}r.exports=new a("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(r,i,s)=>{"use strict";var a=s(6073);function resolveYamlBoolean(r){if(r===null)return false;var i=r.length;return i===4&&(r==="true"||r==="True"||r==="TRUE")||i===5&&(r==="false"||r==="False"||r==="FALSE")}function constructYamlBoolean(r){return r==="true"||r==="True"||r==="TRUE"}function isBoolean(r){return Object.prototype.toString.call(r)==="[object Boolean]"}r.exports=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"})},2705:(r,i,s)=>{"use strict";var a=s(6829);var l=s(6073);var c=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(r){if(r===null)return false;if(!c.test(r)||r[r.length-1]==="_"){return false}return true}function constructYamlFloat(r){var i,s;i=r.replace(/_/g,"").toLowerCase();s=i[0]==="-"?-1:1;if("+-".indexOf(i[0])>=0){i=i.slice(1)}if(i===".inf"){return s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(i===".nan"){return NaN}return s*parseFloat(i,10)}var p=/^[-+]?[0-9]+e/;function representYamlFloat(r,i){var s;if(isNaN(r)){switch(i){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===r){switch(i){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===r){switch(i){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(a.isNegativeZero(r)){return"-0.0"}s=r.toString(10);return p.test(s)?s.replace("e",".e"):s}function isFloat(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||a.isNegativeZero(r))}r.exports=new l("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(r,i,s)=>{"use strict";var a=s(6829);var l=s(6073);function isHexCode(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function isOctCode(r){return 48<=r&&r<=55}function isDecCode(r){return 48<=r&&r<=57}function resolveYamlInteger(r){if(r===null)return false;var i=r.length,s=0,a=false,l;if(!i)return false;l=r[s];if(l==="-"||l==="+"){l=r[++s]}if(l==="0"){if(s+1===i)return true;l=r[++s];if(l==="b"){s++;for(;s=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0o"+r.toString(8):"-0o"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(r,i,s)=>{"use strict";var a=s(6073);r.exports=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})},6104:(r,i,s)=>{"use strict";var a=s(6073);function resolveYamlMerge(r){return r==="<<"||r===null}r.exports=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(r,i,s)=>{"use strict";var a=s(6073);function resolveYamlNull(r){if(r===null)return true;var i=r.length;return i===1&&r==="~"||i===4&&(r==="null"||r==="Null"||r==="NULL")}function constructYamlNull(){return null}function isNull(r){return r===null}r.exports=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(r,i,s)=>{"use strict";var a=s(6073);var l=Object.prototype.hasOwnProperty;var c=Object.prototype.toString;function resolveYamlOmap(r){if(r===null)return true;var i=[],s,a,p,d,A,u=r;for(s=0,a=u.length;s{"use strict";var a=s(6073);var l=Object.prototype.toString;function resolveYamlPairs(r){if(r===null)return true;var i,s,a,c,p,d=r;p=new Array(d.length);for(i=0,s=d.length;i 1&&arguments[1]!==undefined?arguments[1]:{},p=a.size;let l=p===undefined?0:p;var c=a.timeout;let d=c===undefined?0:c;if(r==null){r=null}else if(isURLSearchParams(r)){r=Buffer.from(r.toString())}else if(isBlob(r));else if(Buffer.isBuffer(r));else if(Object.prototype.toString.call(r)==="[object ArrayBuffer]"){r=Buffer.from(r)}else if(ArrayBuffer.isView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(r instanceof s);else{r=Buffer.from(String(r))}this[v]={body:r,disturbed:false,error:null};this.size=l;this.timeout=d;if(r instanceof s){r.on("error",(function(r){const a=r.name==="AbortError"?r:new FetchError(`Invalid response body while trying to fetch ${i.url}: ${r.message}`,"system",r);i[v].error=a}))}}Body.prototype={get body(){return this[v].body},get bodyUsed(){return this[v].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(r){return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}))},blob(){let r=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(i){return Object.assign(new Blob([],{type:r.toLowerCase()}),{[h]:i})}))},json(){var r=this;return consumeBody.call(this).then((function(i){try{return JSON.parse(i.toString())}catch(i){return Body.Promise.reject(new FetchError(`invalid json response body at ${r.url} reason: ${i.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(r){return r.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var r=this;return consumeBody.call(this).then((function(i){return convertBody(i,r.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(r){for(const i of Object.getOwnPropertyNames(Body.prototype)){if(!(i in r)){const a=Object.getOwnPropertyDescriptor(Body.prototype,i);Object.defineProperty(r,i,a)}}};function consumeBody(){var r=this;if(this[v].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[v].disturbed=true;if(this[v].error){return Body.Promise.reject(this[v].error)}let i=this.body;if(i===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(i)){i=i.stream()}if(Buffer.isBuffer(i)){return Body.Promise.resolve(i)}if(!(i instanceof s)){return Body.Promise.resolve(Buffer.alloc(0))}let a=[];let p=0;let l=false;return new Body.Promise((function(s,c){let d;if(r.timeout){d=setTimeout((function(){l=true;c(new FetchError(`Response timeout while trying to fetch ${r.url} (over ${r.timeout}ms)`,"body-timeout"))}),r.timeout)}i.on("error",(function(i){if(i.name==="AbortError"){l=true;c(i)}else{c(new FetchError(`Invalid response body while trying to fetch ${r.url}: ${i.message}`,"system",i))}}));i.on("data",(function(i){if(l||i===null){return}if(r.size&&p+i.length>r.size){l=true;c(new FetchError(`content size at ${r.url} over limit: ${r.size}`,"max-size"));return}p+=i.length;a.push(i)}));i.on("end",(function(){if(l){return}clearTimeout(d);try{s(Buffer.concat(a,p))}catch(i){c(new FetchError(`Could not create Buffer from response body for ${r.url}: ${i.message}`,"system",i))}}))}))}function convertBody(r,i){if(typeof y!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const a=i.get("content-type");let s="utf-8";let p,l;if(a){p=/charset=([^;]*)/i.exec(a)}l=r.slice(0,1024).toString();if(!p&&l){p=/ =0){if(typeof this.prerelease[a]==="number"){this.prerelease[a]++;a=-2}}if(a===-1){this.prerelease.push(0)}}if(i){if(this.prerelease[0]===i){if(isNaN(this.prerelease[1])){this.prerelease=[i,0]}}else{this.prerelease=[i,0]}}break;default:throw new Error("invalid increment argument: "+r)}this.format();this.raw=this.version;return this};i.inc=inc;function inc(r,i,a,s){if(typeof a==="string"){s=a;a=undefined}try{return new SemVer(r,a).inc(i,s).version}catch(r){return null}}i.diff=diff;function diff(r,i){if(eq(r,i)){return null}else{var a=parse(r);var s=parse(i);var p="";if(a.prerelease.length||s.prerelease.length){p="pre";var l="prerelease"}for(var c in a){if(c==="major"||c==="minor"||c==="patch"){if(a[c]!==s[c]){return p+c}}}return l}}i.compareIdentifiers=compareIdentifiers;var b=/^[0-9]+$/;function compareIdentifiers(r,i){var a=b.test(r);var s=b.test(i);if(a&&s){r=+r;i=+i}return r===i?0:a&&!s?-1:s&&!a?1:r0}i.lt=lt;function lt(r,i,a){return compare(r,i,a)<0}i.eq=eq;function eq(r,i,a){return compare(r,i,a)===0}i.neq=neq;function neq(r,i,a){return compare(r,i,a)!==0}i.gte=gte;function gte(r,i,a){return compare(r,i,a)>=0}i.lte=lte;function lte(r,i,a){return compare(r,i,a)<=0}i.cmp=cmp;function cmp(r,i,a,s){switch(i){case"===":if(typeof r==="object")r=r.version;if(typeof a==="object")a=a.version;return r===a;case"!==":if(typeof r==="object")r=r.version;if(typeof a==="object")a=a.version;return r!==a;case"":case"=":case"==":return eq(r,a,s);case"!=":return neq(r,a,s);case">":return gt(r,a,s);case">=":return gte(r,a,s);case"<":return lt(r,a,s);case"<=":return lte(r,a,s);default:throw new TypeError("Invalid operator: "+i)}}i.Comparator=Comparator;function Comparator(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}if(!(this instanceof Comparator)){return new Comparator(r,i)}a("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===x){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}var x={};Comparator.prototype.parse=function(r){var i=this.options.loose?c[u.COMPARATORLOOSE]:c[u.COMPARATOR];var a=r.match(i);if(!a){throw new TypeError("Invalid comparator: "+r)}this.operator=a[1]!==undefined?a[1]:"";if(this.operator==="="){this.operator=""}if(!a[2]){this.semver=x}else{this.semver=new SemVer(a[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(r){a("Comparator.test",r,this.options.loose);if(this.semver===x||r===x){return true}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}return cmp(r,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}var a;if(this.operator===""){if(this.value===""){return true}a=new Range(r.value,i);return satisfies(this.value,a,i)}else if(r.operator===""){if(r.value===""){return true}a=new Range(this.value,i);return satisfies(r.semver,a,i)}var s=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">");var p=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<");var l=this.semver.version===r.semver.version;var c=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<=");var d=cmp(this.semver,"<",r.semver,i)&&((this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"));var u=cmp(this.semver,">",r.semver,i)&&((this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">"));return s||p||l&&c||d||u};i.Range=Range;function Range(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof Comparator){return new Range(r.value,i)}if(!(this instanceof Range)){return new Range(r,i)}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r;this.set=r.split(/\s*\|\|\s*/).map((function(r){return this.parseRange(r.trim())}),this).filter((function(r){return r.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+r)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(r){return r.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(r){var i=this.options.loose;r=r.trim();var s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];r=r.replace(s,hyphenReplace);a("hyphen replace",r);r=r.replace(c[u.COMPARATORTRIM],y);a("comparator trim",r,c[u.COMPARATORTRIM]);r=r.replace(c[u.TILDETRIM],h);r=r.replace(c[u.CARETTRIM],g);r=r.split(/\s+/).join(" ");var p=i?c[u.COMPARATORLOOSE]:c[u.COMPARATOR];var l=r.split(" ").map((function(r){return parseComparator(r,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){l=l.filter((function(r){return!!r.match(p)}))}l=l.map((function(r){return new Comparator(r,this.options)}),this);return l};Range.prototype.intersects=function(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(a){return isSatisfiable(a,i)&&r.set.some((function(r){return isSatisfiable(r,i)&&a.every((function(a){return r.every((function(r){return a.intersects(r,i)}))}))}))}))};function isSatisfiable(r,i){var a=true;var s=r.slice();var p=s.pop();while(a&&s.length){a=s.every((function(r){return p.intersects(r,i)}));p=s.pop()}return a}i.toComparators=toComparators;function toComparators(r,i){return new Range(r,i).set.map((function(r){return r.map((function(r){return r.value})).join(" ").trim().split(" ")}))}function parseComparator(r,i){a("comp",r,i);r=replaceCarets(r,i);a("caret",r);r=replaceTildes(r,i);a("tildes",r);r=replaceXRanges(r,i);a("xrange",r);r=replaceStars(r,i);a("stars",r);return r}function isX(r){return!r||r.toLowerCase()==="x"||r==="*"}function replaceTildes(r,i){return r.trim().split(/\s+/).map((function(r){return replaceTilde(r,i)})).join(" ")}function replaceTilde(r,i){var s=i.loose?c[u.TILDELOOSE]:c[u.TILDE];return r.replace(s,(function(i,s,p,l,c){a("tilde",r,i,s,p,l,c);var d;if(isX(s)){d=""}else if(isX(p)){d=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(l)){d=">="+s+"."+p+".0 <"+s+"."+(+p+1)+".0"}else if(c){a("replaceTilde pr",c);d=">="+s+"."+p+"."+l+"-"+c+" <"+s+"."+(+p+1)+".0"}else{d=">="+s+"."+p+"."+l+" <"+s+"."+(+p+1)+".0"}a("tilde return",d);return d}))}function replaceCarets(r,i){return r.trim().split(/\s+/).map((function(r){return replaceCaret(r,i)})).join(" ")}function replaceCaret(r,i){a("caret",r,i);var s=i.loose?c[u.CARETLOOSE]:c[u.CARET];return r.replace(s,(function(i,s,p,l,c){a("caret",r,i,s,p,l,c);var d;if(isX(s)){d=""}else if(isX(p)){d=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(l)){if(s==="0"){d=">="+s+"."+p+".0 <"+s+"."+(+p+1)+".0"}else{d=">="+s+"."+p+".0 <"+(+s+1)+".0.0"}}else if(c){a("replaceCaret pr",c);if(s==="0"){if(p==="0"){d=">="+s+"."+p+"."+l+"-"+c+" <"+s+"."+p+"."+(+l+1)}else{d=">="+s+"."+p+"."+l+"-"+c+" <"+s+"."+(+p+1)+".0"}}else{d=">="+s+"."+p+"."+l+"-"+c+" <"+(+s+1)+".0.0"}}else{a("no pr");if(s==="0"){if(p==="0"){d=">="+s+"."+p+"."+l+" <"+s+"."+p+"."+(+l+1)}else{d=">="+s+"."+p+"."+l+" <"+s+"."+(+p+1)+".0"}}else{d=">="+s+"."+p+"."+l+" <"+(+s+1)+".0.0"}}a("caret return",d);return d}))}function replaceXRanges(r,i){a("replaceXRanges",r,i);return r.split(/\s+/).map((function(r){return replaceXRange(r,i)})).join(" ")}function replaceXRange(r,i){r=r.trim();var s=i.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return r.replace(s,(function(s,p,l,c,d,u){a("xRange",r,s,p,l,c,d,u);var m=isX(l);var h=m||isX(c);var g=h||isX(d);var y=g;if(p==="="&&y){p=""}u=i.includePrerelease?"-0":"";if(m){if(p===">"||p==="<"){s="<0.0.0-0"}else{s="*"}}else if(p&&y){if(h){c=0}d=0;if(p===">"){p=">=";if(h){l=+l+1;c=0;d=0}else{c=+c+1;d=0}}else if(p==="<="){p="<";if(h){l=+l+1}else{c=+c+1}}s=p+l+"."+c+"."+d+u}else if(h){s=">="+l+".0.0"+u+" <"+(+l+1)+".0.0"+u}else if(g){s=">="+l+"."+c+".0"+u+" <"+l+"."+(+c+1)+".0"+u}a("xRange return",s);return s}))}function replaceStars(r,i){a("replaceStars",r,i);return r.trim().replace(c[u.STAR],"")}function hyphenReplace(r,i,a,s,p,l,c,d,u,m,h,g,y){if(isX(a)){i=""}else if(isX(s)){i=">="+a+".0.0"}else if(isX(p)){i=">="+a+"."+s+".0"}else{i=">="+i}if(isX(u)){d=""}else if(isX(m)){d="<"+(+u+1)+".0.0"}else if(isX(h)){d="<"+u+"."+(+m+1)+".0"}else if(g){d="<="+u+"."+m+"."+h+"-"+g}else{d="<="+d}return(i+" "+d).trim()}Range.prototype.test=function(r){if(!r){return false}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}for(var i=0;i a){switch(i[c]){case"textNode":closeText(s);break;case"cdata":emitNode(s,"oncdata",s.cdata);s.cdata="";break;case"script":emitNode(s,"onscript",s.script);s.script="";break;default:error(s,"Max buffer length exceeded: "+i[c])}}l=Math.max(l,d)}var A=r.MAX_BUFFER_LENGTH-l;s.bufferCheckPosition=A+s.position}function clearBuffers(r){for(var s=0,a=i.length;s"||isWhitespace(r)}function isMatch(r,i){return r.test(i)}function notMatch(r,i){return!isMatch(r,i)}var y=0;r.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++};r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(r.ENTITIES).forEach((function(i){var s=r.ENTITIES[i];var a=typeof s==="number"?String.fromCharCode(s):s;r.ENTITIES[i]=a}));for(var C in r.STATE){r.STATE[r.STATE[C]]=C}y=r.STATE;function emit(r,i,s){r[i]&&r[i](s)}function emitNode(r,i,s){if(r.textNode)closeText(r);emit(r,i,s)}function closeText(r){r.textNode=textopts(r.opt,r.textNode);if(r.textNode)emit(r,"ontext",r.textNode);r.textNode=""}function textopts(r,i){if(r.trim)i=i.trim();if(r.normalize)i=i.replace(/\s+/g," ");return i}function error(r,i){closeText(r);if(r.trackPosition){i+="\nLine: "+r.line+"\nColumn: "+r.column+"\nChar: "+r.c}i=new Error(i);r.error=i;emit(r,"onerror",i);return r}function end(r){if(r.sawRoot&&!r.closedRoot)strictFail(r,"Unclosed root tag");if(r.state!==y.BEGIN&&r.state!==y.BEGIN_WHITESPACE&&r.state!==y.TEXT){error(r,"Unexpected end")}closeText(r);r.c="";r.closed=true;emit(r,"onend");SAXParser.call(r,r.strict,r.opt);return r}function strictFail(r,i){if(typeof r!=="object"||!(r instanceof SAXParser)){throw new Error("bad call to strictFail")}if(r.strict){error(r,i)}}function newTag(r){if(!r.strict)r.tagName=r.tagName[r.looseCase]();var i=r.tags[r.tags.length-1]||r;var s=r.tag={name:r.tagName,attributes:{}};if(r.opt.xmlns){s.ns=i.ns}r.attribList.length=0;emitNode(r,"onopentagstart",s)}function qname(r,i){var s=r.indexOf(":");var a=s<0?["",r]:r.split(":");var l=a[0];var c=a[1];if(i&&r==="xmlns"){l="xmlns";c=""}return{prefix:l,local:c}}function attrib(r){if(!r.strict){r.attribName=r.attribName[r.looseCase]()}if(r.attribList.indexOf(r.attribName)!==-1||r.tag.attributes.hasOwnProperty(r.attribName)){r.attribName=r.attribValue="";return}if(r.opt.xmlns){var i=qname(r.attribName,true);var s=i.prefix;var a=i.local;if(s==="xmlns"){if(a==="xml"&&r.attribValue!==d){strictFail(r,"xml: prefix must be bound to "+d+"\n"+"Actual: "+r.attribValue)}else if(a==="xmlns"&&r.attribValue!==A){strictFail(r,"xmlns: prefix must be bound to "+A+"\n"+"Actual: "+r.attribValue)}else{var l=r.tag;var c=r.tags[r.tags.length-1]||r;if(l.ns===c.ns){l.ns=Object.create(c.ns)}l.ns[a]=r.attribValue}}r.attribList.push([r.attribName,r.attribValue])}else{r.tag.attributes[r.attribName]=r.attribValue;emitNode(r,"onattribute",{name:r.attribName,value:r.attribValue})}r.attribName=r.attribValue=""}function openTag(r,i){if(r.opt.xmlns){var s=r.tag;var a=qname(r.tagName);s.prefix=a.prefix;s.local=a.local;s.uri=s.ns[a.prefix]||"";if(s.prefix&&!s.uri){strictFail(r,"Unbound namespace prefix: "+JSON.stringify(r.tagName));s.uri=a.prefix}var l=r.tags[r.tags.length-1]||r;if(s.ns&&l.ns!==s.ns){Object.keys(s.ns).forEach((function(i){emitNode(r,"onopennamespace",{prefix:i,uri:s.ns[i]})}))}for(var c=0,p=r.attribList.length;c";r.state=y.TEXT;return}if(r.script){if(r.tagName!=="script"){r.script+=""+r.tagName+">";r.tagName="";r.state=y.SCRIPT;return}emitNode(r,"onscript",r.script);r.script=""}var i=r.tags.length;var s=r.tagName;if(!r.strict){s=s[r.looseCase]()}var a=s;while(i--){var l=r.tags[i];if(l.name!==a){strictFail(r,"Unexpected close tag")}else{break}}if(i<0){strictFail(r,"Unmatched closing tag: "+r.tagName);r.textNode+=""+r.tagName+">";r.state=y.TEXT;return}r.tagName=s;var c=r.tags.length;while(c-- >i){var p=r.tag=r.tags.pop();r.tagName=r.tag.name;emitNode(r,"onclosetag",r.tagName);var d={};for(var A in p.ns){d[A]=p.ns[A]}var u=r.tags[r.tags.length-1]||r;if(r.opt.xmlns&&p.ns!==u.ns){Object.keys(p.ns).forEach((function(i){var s=p.ns[i];emitNode(r,"onclosenamespace",{prefix:i,uri:s})}))}}if(i===0)r.closedRoot=true;r.tagName=r.attribValue=r.attribName="";r.attribList.length=0;r.state=y.TEXT}function parseEntity(r){var i=r.entity;var s=i.toLowerCase();var a;var l="";if(r.ENTITIES[i]){return r.ENTITIES[i]}if(r.ENTITIES[s]){return r.ENTITIES[s]}i=s;if(i.charAt(0)==="#"){if(i.charAt(1)==="x"){i=i.slice(2);a=parseInt(i,16);l=a.toString(16)}else{i=i.slice(1);a=parseInt(i,10);l=a.toString(10)}}i=i.replace(/^0+/,"");if(isNaN(a)||l.toLowerCase()!==i){strictFail(r,"Invalid character entity");return"&"+r.entity+";"}return String.fromCodePoint(a)}function beginWhiteSpace(r,i){if(i==="<"){r.state=y.OPEN_WAKA;r.startTagPosition=r.position}else if(!isWhitespace(i)){strictFail(r,"Non-whitespace before first tag.");r.textNode=i;r.state=y.TEXT}}function charAt(r,i){var s="";if(i{r.exports=function(r,i){Object.keys(i).forEach((function(a){r[a]=r[a]||i[a]}));return r}},3415:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});Object.defineProperty(i,"v1",{enumerable:true,get:function(){return s.default}});Object.defineProperty(i,"v3",{enumerable:true,get:function(){return p.default}});Object.defineProperty(i,"v4",{enumerable:true,get:function(){return l.default}});Object.defineProperty(i,"v5",{enumerable:true,get:function(){return c.default}});Object.defineProperty(i,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(i,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(i,"validate",{enumerable:true,get:function(){return m.default}});Object.defineProperty(i,"stringify",{enumerable:true,get:function(){return h.default}});Object.defineProperty(i,"parse",{enumerable:true,get:function(){return g.default}});var s=_interopRequireDefault(a(4757));var p=_interopRequireDefault(a(9982));var l=_interopRequireDefault(a(5393));var c=_interopRequireDefault(a(8788));var d=_interopRequireDefault(a(657));var u=_interopRequireDefault(a(7909));var m=_interopRequireDefault(a(4418));var h=_interopRequireDefault(a(4794));var g=_interopRequireDefault(a(7079));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},4153:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return s.default.createHash("md5").update(r).digest()}var p=md5;i["default"]=p},657:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a="00000000-0000-0000-0000-000000000000";i["default"]=a},7079:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(4418));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,s.default)(r)){throw TypeError("Invalid UUID")}let i;const a=new Uint8Array(16);a[0]=(i=parseInt(r.slice(0,8),16))>>>24;a[1]=i>>>16&255;a[2]=i>>>8&255;a[3]=i&255;a[4]=(i=parseInt(r.slice(9,13),16))>>>8;a[5]=i&255;a[6]=(i=parseInt(r.slice(14,18),16))>>>8;a[7]=i&255;a[8]=(i=parseInt(r.slice(19,23),16))>>>8;a[9]=i&255;a[10]=(i=parseInt(r.slice(24,36),16))/1099511627776&255;a[11]=i/4294967296&255;a[12]=i>>>24&255;a[13]=i>>>16&255;a[14]=i>>>8&255;a[15]=i&255;return a}var p=parse;i["default"]=p},690:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;i["default"]=a},979:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=rng;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const p=new Uint8Array(256);let l=p.length;function rng(){if(l>p.length-16){s.default.randomFillSync(p);l=0}return p.slice(l,l+=16)}},6631:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return s.default.createHash("sha1").update(r).digest()}var p=sha1;i["default"]=p},4794:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(4418));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const p=[];for(let r=0;r<256;++r){p.push((r+256).toString(16).substr(1))}function stringify(r,i=0){const a=(p[r[i+0]]+p[r[i+1]]+p[r[i+2]]+p[r[i+3]]+"-"+p[r[i+4]]+p[r[i+5]]+"-"+p[r[i+6]]+p[r[i+7]]+"-"+p[r[i+8]]+p[r[i+9]]+"-"+p[r[i+10]]+p[r[i+11]]+p[r[i+12]]+p[r[i+13]]+p[r[i+14]]+p[r[i+15]]).toLowerCase();if(!(0,s.default)(a)){throw TypeError("Stringified UUID is invalid")}return a}var l=stringify;i["default"]=l},4757:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(979));var p=_interopRequireDefault(a(4794));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let l;let c;let d=0;let u=0;function v1(r,i,a){let m=i&&a||0;const h=i||new Array(16);r=r||{};let g=r.node||l;let y=r.clockseq!==undefined?r.clockseq:c;if(g==null||y==null){const i=r.random||(r.rng||s.default)();if(g==null){g=l=[i[0]|1,i[1],i[2],i[3],i[4],i[5]]}if(y==null){y=c=(i[6]<<8|i[7])&16383}}let v=r.msecs!==undefined?r.msecs:Date.now();let b=r.nsecs!==undefined?r.nsecs:u+1;const x=v-d+(b-u)/1e4;if(x<0&&r.clockseq===undefined){y=y+1&16383}if((x<0||v>d)&&r.nsecs===undefined){b=0}if(b>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=v;u=b;c=y;v+=122192928e5;const w=((v&268435455)*1e4+b)%4294967296;h[m++]=w>>>24&255;h[m++]=w>>>16&255;h[m++]=w>>>8&255;h[m++]=w&255;const S=v/4294967296*1e4&268435455;h[m++]=S>>>8&255;h[m++]=S&255;h[m++]=S>>>24&15|16;h[m++]=S>>>16&255;h[m++]=y>>>8|128;h[m++]=y&255;for(let r=0;r<6;++r){h[m+r]=g[r]}return i||(0,p.default)(h)}var m=v1;i["default"]=m},9982:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=void 0;var s=_interopRequireDefault(a(4085));var p=_interopRequireDefault(a(4153));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const l=(0,s.default)("v3",48,p.default);var c=l;i["default"]=c},4085:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i["default"]=_default;i.URL=i.DNS=void 0;var s=_interopRequireDefault(a(4794));var p=_interopRequireDefault(a(7079));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const i=[];for(let a=0;aNumber.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return s}return a>>1^-(a&1)}static async readLong(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readInt(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readNull(){return null}static async readBoolean(r,i={}){const a=await AvroParser.readByte(r,i);if(a===1){return true}else if(a===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,i={}){const a=await AvroParser.readFixedBytes(r,4,i);const s=new DataView(a.buffer,a.byteOffset,a.byteLength);return s.getFloat32(0,true)}static async readDouble(r,i={}){const a=await AvroParser.readFixedBytes(r,8,i);const s=new DataView(a.buffer,a.byteOffset,a.byteLength);return s.getFloat64(0,true)}static async readBytes(r,i={}){const a=await AvroParser.readLong(r,i);if(a<0){throw new Error("Bytes size was negative.")}return r.read(a,{abortSignal:i.abortSignal})}static async readString(r,i={}){const a=await AvroParser.readBytes(r,i);const s=new TextDecoder;return s.decode(a)}static async readMapPair(r,i,a={}){const s=await AvroParser.readString(r,a);const p=await i(r,a);return{key:s,value:p}}static async readMap(r,i,a={}){const readPairMethod=(r,a={})=>AvroParser.readMapPair(r,i,a);const s=await AvroParser.readArray(r,readPairMethod,a);const p={};for(const r of s){p[r.key]=r.value}return p}static async readArray(r,i,a={}){const s=[];for(let p=await AvroParser.readLong(r,a);p!==0;p=await AvroParser.readLong(r,a)){if(p<0){await AvroParser.readLong(r,a);p=-p}while(p--){const p=await i(r,a);s.push(p)}}return s}}var qo;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(qo||(qo={}));var Fo;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(Fo||(Fo={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case Fo.NULL:case Fo.BOOLEAN:case Fo.INT:case Fo.LONG:case Fo.FLOAT:case Fo.DOUBLE:case Fo.BYTES:case Fo.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const i=r.type;try{return AvroType.fromStringSchema(i)}catch(r){}switch(i){case qo.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const a={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const i of r.fields){a[i.name]=AvroType.fromSchema(i.type)}return new AvroRecordType(a,r.name);case qo.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case qo.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case qo.ARRAY:case qo.FIXED:default:throw new Error(`Unexpected Avro type ${i} in ${r}`)}}}class AvroPrimitiveType extends AvroType{constructor(r){super();this._primitive=r}read(r,i={}){switch(this._primitive){case Fo.NULL:return AvroParser.readNull();case Fo.BOOLEAN:return AvroParser.readBoolean(r,i);case Fo.INT:return AvroParser.readInt(r,i);case Fo.LONG:return AvroParser.readLong(r,i);case Fo.FLOAT:return AvroParser.readFloat(r,i);case Fo.DOUBLE:return AvroParser.readDouble(r,i);case Fo.BYTES:return AvroParser.readBytes(r,i);case Fo.STRING:return AvroParser.readString(r,i);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(r){super();this._symbols=r}async read(r,i={}){const a=await AvroParser.readInt(r,i);return this._symbols[a]}}class AvroUnionType extends AvroType{constructor(r){super();this._types=r}async read(r,i={}){const a=await AvroParser.readInt(r,i);return this._types[a].read(r,i)}}class AvroMapType extends AvroType{constructor(r){super();this._itemType=r}read(r,i={}){const readItemMethod=(r,i)=>this._itemType.read(r,i);return AvroParser.readMap(r,readItemMethod,i)}}class AvroRecordType extends AvroType{constructor(r,i){super();this._fields=r;this._name=i}async read(r,i={}){const a={};a["$schema"]=this._name;for(const s in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,s)){a[s]=await this._fields[s].read(r,i)}}return a}}function arraysEqual(r,i){if(r===i)return true;if(r==null||i==null)return false;if(r.length!==i.length)return false;for(let a=0;a0){r[0]=r[0].slice(l)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(r,i,a,s,p,l){this.emitter=new y.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(i<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${i}`)}if(a<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${a}`)}if(p<=0){throw new RangeError(`concurrency must be larger than 0, current is ${p}`)}this.bufferSize=i;this.maxBuffers=a;this.readable=r;this.outgoingHandler=s;this.concurrency=p;this.encoding=l}async do(){return new Promise(((r,i)=>{this.readable.on("data",(r=>{r=typeof r==="string"?Buffer.from(r,this.encoding):r;this.appendUnresolvedData(r);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(r=>{this.emitter.emit("error",r)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(r=>{this.isError=true;this.readable.pause();i(r)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLength1){a=i}else if(this.head){s=this.head.next;a=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var p=0;s!==null;p++){a=r(a,s.value,p);s=s.next}return a};Yallist.prototype.reduceReverse=function(r,i){var a;var s=this.tail;if(arguments.length>1){a=i}else if(this.tail){s=this.tail.prev;a=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var p=this.length-1;s!==null;p--){a=r(a,s.value,p);s=s.prev}return a};Yallist.prototype.toArray=function(){var r=new Array(this.length);for(var i=0,a=this.head;a!==null;i++){r[i]=a.value;a=a.next}return r};Yallist.prototype.toArrayReverse=function(){var r=new Array(this.length);for(var i=0,a=this.tail;a!==null;i++){r[i]=a.value;a=a.prev}return r};Yallist.prototype.slice=function(r,i){i=i||this.length;if(i<0){i+=this.length}r=r||0;if(r<0){r+=this.length}var a=new Yallist;if(ir.getToken(i,s);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=l===null||l===void 0?void 0:l.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;l=r;return l})).catch((r=>{a=null;l=null;throw r}))}return a}return async r=>{if(p.mustRefresh)return refresh(r);if(p.shouldRefresh){refresh(r)}return l}}function bearerTokenAuthenticationPolicy(r,i){const s=createTokenCycler(r,i);class BearerTokenAuthenticationPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const{token:i}=await s({abortSignal:r.abortSignal,tracingOptions:{tracingContext:r.tracingContext}});r.headers.set(D.HeaderConstants.AUTHORIZATION,`Bearer ${i}`);return this._nextPolicy.sendRequest(r)}}return{create:(r,i)=>new BearerTokenAuthenticationPolicy(r,i)}}function disableResponseDecompressionPolicy(){return{create:(r,i)=>new DisableResponseDecompressionPolicy(r,i)}}class DisableResponseDecompressionPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){r.decompressResponse=false;return this._nextPolicy.sendRequest(r)}}function generateClientRequestIdPolicy(r="x-ms-client-request-id"){return{create:(i,s)=>new GenerateClientRequestIdPolicy(i,s,r)}}class GenerateClientRequestIdPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this._requestIdHeaderName=s}sendRequest(r){if(!r.headers.contains(this._requestIdHeaderName)){r.headers.set(this._requestIdHeaderName,r.requestId)}return this._nextPolicy.sendRequest(r)}}let ae;function getCachedDefaultHttpClient(){if(!ae){ae=new NodeFetchHttpClient}return ae}function ndJsonPolicy(){return{create:(r,i)=>new NdJsonPolicy(r,i)}}class NdJsonPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){if(typeof r.body==="string"&&r.body.startsWith("[")){const i=JSON.parse(r.body);if(Array.isArray(i)){r.body=i.map((r=>JSON.stringify(r)+"\n")).join("")}}return this._nextPolicy.sendRequest(r)}}const oe=[];let le=false;const ce=new Map;function loadEnvironmentProxyValue(){if(!process){return undefined}const r=getEnvironmentValue(D.HTTPS_PROXY);const i=getEnvironmentValue(D.ALL_PROXY);const s=getEnvironmentValue(D.HTTP_PROXY);return r||i||s}function isBypassed(r,i,s){if(i.length===0){return false}const a=URLBuilder.parse(r).getHost();if(s===null||s===void 0?void 0:s.has(a)){return s.get(a)}let l=false;for(const r of i){if(r[0]==="."){if(a.endsWith(r)){l=true}else{if(a.length===r.length-1&&a===r.slice(1)){l=true}}}else{if(a===r){l=true}}}s===null||s===void 0?void 0:s.set(a,l);return l}function loadNoProxy(){const r=getEnvironmentValue(D.NO_PROXY);le=true;if(r){return r.split(",").map((r=>r.trim())).filter((r=>r.length))}return[]}function getDefaultProxySettings(r){if(!r){r=loadEnvironmentProxyValue();if(!r){return undefined}}const{username:i,password:s,urlWithoutAuth:a}=extractAuthFromUrl(r);const l=URLBuilder.parse(a);const c=l.getScheme()?l.getScheme()+"://":"";return{host:c+l.getHost(),port:Number.parseInt(l.getPort()||"80"),username:i,password:s}}function proxyPolicy(r,i){if(!r){r=getDefaultProxySettings()}if(!le){oe.push(...loadNoProxy())}return{create:(s,a)=>new ProxyPolicy(s,a,r,i===null||i===void 0?void 0:i.customNoProxyList)}}function extractAuthFromUrl(r){const i=r.indexOf("@");if(i===-1){return{urlWithoutAuth:r}}const s=r.indexOf("://");const a=s!==-1?s+3:0;const l=r.substring(a,i);const c=l.indexOf(":");const p=c!==-1;const d=p?l.substring(0,c):l;const A=p?l.substring(c+1):undefined;const u=r.substring(0,a)+r.substring(i+1);return{username:d,password:A,urlWithoutAuth:u}}class ProxyPolicy extends BaseRequestPolicy{constructor(r,i,s,a){super(r,i);this.proxySettings=s;this.customNoProxyList=a}sendRequest(r){var i;if(!r.proxySettings&&!isBypassed(r.url,(i=this.customNoProxyList)!==null&&i!==void 0?i:oe,this.customNoProxyList?undefined:ce)){r.proxySettings=this.proxySettings}return this._nextPolicy.sendRequest(r)}}function rpRegistrationPolicy(r=30){return{create:(i,s)=>new RPRegistrationPolicy(i,s,r)}}class RPRegistrationPolicy extends BaseRequestPolicy{constructor(r,i,s=30){super(r,i);this._retryTimeout=s}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((i=>registerIfNeeded(this,r,i)))}}function registerIfNeeded(r,i,s){if(s.status===409){const a=checkRPNotRegisteredError(s.bodyAsText);if(a){const l=extractSubscriptionUrl(i.url);return registerRP(r,l,a,i).catch((()=>false)).then((a=>{if(a){i.headers.set("x-ms-client-request-id",generateUuid());return r._nextPolicy.sendRequest(i.clone())}return s}))}}return Promise.resolve(s)}function getRequestEssentials(r,i=false){const s=r.clone();if(i){s.url=r.url}s.headers.set("x-ms-client-request-id",generateUuid());s.headers.set("Content-Type","application/json; charset=utf-8");return s}function checkRPNotRegisteredError(r){let i,s;if(r){try{s=JSON.parse(r)}catch(r){}if(s&&s.error&&s.error.message&&s.error.code&&s.error.code==="MissingSubscriptionRegistration"){const r=s.error.message.match(/.*'(.*)'/i);if(r){i=r.pop()}}}return i}function extractSubscriptionUrl(r){let i;const s=r.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(s&&s[0]){i=s[0]}else{throw new Error(`Unable to extract subscriptionId from the given url - ${r}.`)}return i}async function registerRP(r,i,s,a){const l=`${i}providers/${s}/register?api-version=2016-02-01`;const c=`${i}providers/${s}?api-version=2016-02-01`;const p=getRequestEssentials(a);p.method="POST";p.url=l;const d=await r._nextPolicy.sendRequest(p);if(d.status!==200){throw new Error(`Autoregistration of ${s} failed. Please try registering manually.`)}return getRegistrationStatus(r,c,a)}async function getRegistrationStatus(r,i,s){const a=getRequestEssentials(s);a.url=i;a.method="GET";const l=await r._nextPolicy.sendRequest(a);const c=l.parsedBody;if(l.parsedBody&&c.registrationState&&c.registrationState==="Registered"){return true}else{await d.delay(r._retryTimeout*1e3);return getRegistrationStatus(r,i,s)}}function signingPolicy(r){return{create:(i,s)=>new SigningPolicy(i,s,r)}}class SigningPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this.authenticationProvider=s}signRequest(r){return this.authenticationProvider.signRequest(r)}sendRequest(r){return this.signRequest(r).then((r=>this._nextPolicy.sendRequest(r)))}}function systemErrorRetryPolicy(r,i,s,a){return{create:(l,c)=>new SystemErrorRetryPolicy(l,c,r,i,s,a)}}class SystemErrorRetryPolicy extends BaseRequestPolicy{constructor(r,i,s,a,l,c){super(r,i);this.retryCount=isNumber(s)?s:Z;this.retryInterval=isNumber(a)?a:ee;this.minRetryInterval=isNumber(l)?l:re;this.maxRetryInterval=isNumber(c)?c:te}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).catch((i=>retry(this,r,i.response,i)))}}async function retry(r,i,s,a,l){l=updateRetryData(r,l,a);function shouldPolicyRetry(r,i){if(i&&i.code&&(i.code==="ETIMEDOUT"||i.code==="ESOCKETTIMEDOUT"||i.code==="ECONNREFUSED"||i.code==="ECONNRESET"||i.code==="ENOENT")){return true}return false}if(shouldRetry(r.retryCount,shouldPolicyRetry,l,s,a)){try{await d.delay(l.retryInterval);return r._nextPolicy.sendRequest(i.clone())}catch(a){return retry(r,i,s,a,l)}}else{if(a){return Promise.reject(l.error)}return s}}const pe=3;const de=D.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(r,i)=>new ThrottlingRetryPolicy(r,i)}}const Ae="The operation was aborted.";class ThrottlingRetryPolicy extends BaseRequestPolicy{constructor(r,i,s){super(r,i);this.numberOfRetries=0;this._handleResponse=s||this._defaultResponseHandler}async sendRequest(r){const i=await this._nextPolicy.sendRequest(r.clone());if(i.status!==de.TooManyRequests&&i.status!==de.ServiceUnavailable){return i}else{return this._handleResponse(r,i)}}async _defaultResponseHandler(r,i){var s;const a=i.headers.get(D.HeaderConstants.RETRY_AFTER);if(a){const i=ThrottlingRetryPolicy.parseRetryAfterHeader(a);if(i){this.numberOfRetries+=1;await d.delay(i,{abortSignal:r.abortSignal,abortErrorMsg:Ae});if((s=r.abortSignal)===null||s===void 0?void 0:s.aborted){throw new E.AbortError(Ae)}if(this.numberOfRetries{const r=await l.sendInitialRequest();const i=inferLroMode({rawResponse:r.rawResponse,requestPath:l.requestPath,requestMethod:l.requestMethod,resourceLocationConfig:s});return Object.assign({response:r,operationLocation:i===null||i===void 0?void 0:i.operationLocation,resourceLocation:i===null||i===void 0?void 0:i.resourceLocation},(i===null||i===void 0?void 0:i.mode)?{metadata:{mode:i.mode}}:{})},stateProxy:i,processResult:a?({flatResponse:r},i)=>a(r,i):({flatResponse:r})=>r,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:c})}function getOperationLocation({rawResponse:r},i){var s;const a=(s=i.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(r),azureAsyncOperation:getAzureAsyncOperationHeader(r)})}case"ResourceLocation":{return getLocationHeader(r)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:r},i){var s;const a=(s=i.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getStatus(r)}case"ResourceLocation":{return toOperationStatus(r.statusCode)}case"Body":{return getProvisioningState(r)}default:throw new Error(`Internal error: Unexpected operation mode: ${a}`)}}function getResourceLocation({flatResponse:r},i){if(typeof r==="object"){const s=r.resourceLocation;if(s!==undefined){i.config.resourceLocation=s}}return i.config.resourceLocation}function isOperationError(r){return r.name==="RestError"}async function pollHttpOperation(r){const{lro:i,stateProxy:s,options:a,processResult:l,updateState:c,setDelay:p,state:d,setErrorAsResult:A}=r;return pollOperation({state:d,stateProxy:s,setDelay:p,processResult:l?({flatResponse:r},i)=>l(r,i):({flatResponse:r})=>r,getError:getErrorFromResponse,updateState:c,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:a,poll:async(r,s)=>i.sendPollRequest(r,s),setErrorAsResult:A})}const createStateProxy$1=()=>({initState:r=>({status:"running",config:r}),setCanceled:r=>r.status="canceled",setError:(r,i)=>r.error=i,setResult:(r,i)=>r.result=i,setRunning:r=>r.status="running",setSucceeded:r=>r.status="succeeded",setFailed:r=>r.status="failed",getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>r.status==="canceled",isFailed:r=>r.status==="failed",isRunning:r=>r.status==="running",isSucceeded:r=>r.status==="succeeded"});function buildCreatePoller(r){const{getOperationLocation:i,getStatusFromInitialResponse:s,getStatusFromPollResponse:a,isOperationError:p,getResourceLocation:A,getPollingInterval:u,getError:m,resolveOnUnsuccessful:h}=r;return async({init:r,poll:g},E)=>{const{processResult:y,updateState:C,withOperationLocation:b,intervalInMs:I=d,restoreFrom:B}=E||{};const v=createStateProxy$1();const Q=b?(()=>{let r=false;return(i,s)=>{if(s)b(i);else if(!r)b(i);r=true}})():undefined;const w=B?deserializeState(B):await initOperation({init:r,stateProxy:v,processResult:y,getOperationStatus:s,withOperationLocation:Q,setErrorAsResult:!h});let x;const S=new l.AbortController;const N=new Map;const handleProgressEvents=async()=>N.forEach((r=>r(w)));const R="Operation was canceled";let D=I;const T={getOperationState:()=>w,getResult:()=>w.result,isDone:()=>["succeeded","failed","canceled"].includes(w.status),isStopped:()=>x===undefined,stopPolling:()=>{S.abort()},toString:()=>JSON.stringify({state:w}),onProgress:r=>{const i=Symbol();N.set(i,r);return()=>N.delete(i)},pollUntilDone:r=>x!==null&&x!==void 0?x:x=(async()=>{const{abortSignal:i}=r||{};const{signal:s}=i?new l.AbortController([i,S.signal]):S;if(!T.isDone()){await T.poll({abortSignal:s});while(!T.isDone()){await c.delay(D,{abortSignal:s});await T.poll({abortSignal:s})}}if(h){return T.getResult()}else{switch(w.status){case"succeeded":return T.getResult();case"canceled":throw new Error(R);case"failed":throw w.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{x=undefined})),async poll(r){if(h){if(T.isDone())return}else{switch(w.status){case"succeeded":return;case"canceled":throw new Error(R);case"failed":throw w.error}}await pollOperation({poll:g,state:w,stateProxy:v,getOperationLocation:i,isOperationError:p,withOperationLocation:Q,getPollingInterval:u,getOperationStatus:a,getResourceLocation:A,processResult:y,getError:m,updateState:C,options:r,setDelay:r=>{D=r},setErrorAsResult:!h});await handleProgressEvents();if(!h){switch(w.status){case"canceled":throw new Error(R);case"failed":throw w.error}}}};return T}}async function createHttpPoller(r,i){const{resourceLocationConfig:s,intervalInMs:a,processResult:l,restoreFrom:c,updateState:p,withOperationLocation:d,resolveOnUnsuccessful:A=false}=i||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:A})({init:async()=>{const i=await r.sendInitialRequest();const a=inferLroMode({rawResponse:i.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:s});return Object.assign({response:i,operationLocation:a===null||a===void 0?void 0:a.operationLocation,resourceLocation:a===null||a===void 0?void 0:a.resourceLocation},(a===null||a===void 0?void 0:a.mode)?{metadata:{mode:a.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:a,withOperationLocation:d,restoreFrom:c,updateState:p,processResult:l?({flatResponse:r},i)=>l(r,i):({flatResponse:r})=>r})}const createStateProxy=()=>({initState:r=>({config:r,isStarted:true}),setCanceled:r=>r.isCancelled=true,setError:(r,i)=>r.error=i,setResult:(r,i)=>r.result=i,setRunning:r=>r.isStarted=true,setSucceeded:r=>r.isCompleted=true,setFailed:()=>{},getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>!!r.isCancelled,isFailed:r=>!!r.error,isRunning:r=>!!r.isStarted,isSucceeded:r=>Boolean(r.isCompleted&&!r.isCancelled&&!r.error)});class GenericPollOperation{constructor(r,i,s,a,l,c,p){this.state=r;this.lro=i;this.setErrorAsResult=s;this.lroResourceLocationConfig=a;this.processResult=l;this.updateState=c;this.isDone=p}setPollerConfig(r){this.pollerConfig=r}async update(r){var i;const s=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:s,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const a=this.updateState;const l=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:s,processResult:this.processResult,updateState:a?(r,{rawResponse:i})=>a(r,i):undefined,isDone:l?({flatResponse:r},i)=>l(r,i):undefined,options:r,setDelay:r=>{this.pollerConfig.intervalInMs=r},setErrorAsResult:this.setErrorAsResult})}(i=r===null||r===void 0?void 0:r.fireProgress)===null||i===void 0?void 0:i.call(r,this.state);return this}async cancel(){p.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(r){super(r);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(r){super(r);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(r){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=r;this.promise=new Promise(((r,i)=>{this.resolve=r;this.reject=i}));this.promise.catch((()=>{}))}async startPolling(r={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(r);await this.delay()}}async pollOnce(r={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:r.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(r){for(const i of this.pollProgressCallbacks){i(r)}}async cancelOnce(r={}){this.operation=await this.operation.cancel(r)}poll(r={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(r);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const r=new PollerCancelledError("Operation was canceled");this.reject(r);throw r}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(r={}){if(this.stopped){this.startPolling(r).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(r){this.pollProgressCallbacks.push(r);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((i=>i!==r))}}isDone(){const r=this.operation.state;return Boolean(r.isCompleted||r.isCancelled||r.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(r={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(r)}else if(r.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const r=this.operation.state;return r.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(r,i){const{intervalInMs:s=d,resumeFrom:a,resolveOnUnsuccessful:l=false,isDone:c,lroResourceLocationConfig:p,processResult:A,updateState:u}=i||{};const m=a?deserializeState(a):{};const h=new GenericPollOperation(m,r,!l,p,A,u,c);super(h);this.resolveOnUnsuccessful=l;this.config={intervalInMs:s};h.setPollerConfig(this.config)}delay(){return new Promise((r=>setTimeout((()=>r()),this.config.intervalInMs)))}}i.LroEngine=LroEngine;i.Poller=Poller;i.PollerCancelledError=PollerCancelledError;i.PollerStoppedError=PollerStoppedError;i.createHttpPoller=createHttpPoller},4559:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(4351);function getPagedAsyncIterator(r){var i;const s=getItemAsyncIterator(r);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i=r===null||r===void 0?void 0:r.byPage)!==null&&i!==void 0?i:i=>{const{continuationToken:s,maxPageSize:a}=i!==null&&i!==void 0?i:{};return getPageAsyncIterator(r,{pageLink:s,maxPageSize:a})}}}function getItemAsyncIterator(r){return a.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var i,s,l,c;const p=getPageAsyncIterator(r);const d=yield a.__await(p.next());if(!Array.isArray(d.value)){const{toElements:l}=r;if(l){yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(l(d.value))));try{for(var A=a.__asyncValues(p),u;u=yield a.__await(A.next()),!u.done;){const r=u.value;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(l(r))))}}catch(r){i={error:r}}finally{try{if(u&&!u.done&&(s=A.return))yield a.__await(s.call(A))}finally{if(i)throw i.error}}}else{yield yield a.__await(d.value);yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(p)))}}else{yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(d.value)));try{for(var m=a.__asyncValues(p),h;h=yield a.__await(m.next()),!h.done;){const r=h.value;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(r)))}}catch(r){l={error:r}}finally{try{if(h&&!h.done&&(c=m.return))yield a.__await(c.call(m))}finally{if(l)throw l.error}}}}))}function getPageAsyncIterator(r,i={}){return a.__asyncGenerator(this,arguments,(function*getPageAsyncIterator_1(){const{pageLink:s,maxPageSize:l}=i;let c=yield a.__await(r.getPage(s!==null&&s!==void 0?s:r.firstPageLink,l));if(!c){return yield a.__await(void 0)}yield yield a.__await(c.page);while(c.nextPageLink){c=yield a.__await(r.getPage(c.nextPageLink,l));if(!c){return yield a.__await(void 0)}yield yield a.__await(c.page)}}))}i.getPagedAsyncIterator=getPagedAsyncIterator},4175:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(5163);(function(r){r[r["INTERNAL"]=0]="INTERNAL";r[r["SERVER"]=1]="SERVER";r[r["CLIENT"]=2]="CLIENT";r[r["PRODUCER"]=3]="PRODUCER";r[r["CONSUMER"]=4]="CONSUMER"})(i.SpanKind||(i.SpanKind={}));function getSpan(r){return a.trace.getSpan(r)}function setSpan(r,i){return a.trace.setSpan(r,i)}function setSpanContext(r,i){return a.trace.setSpanContext(r,i)}function getSpanContext(r){return a.trace.getSpanContext(r)}function isSpanContextValid(r){return a.trace.isSpanContextValid(r)}function getTracer(r,i){return a.trace.getTracer(r||"azure/core-tracing",i)}const l=a.context;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(i.SpanStatusCode||(i.SpanStatusCode={}));function isTracingDisabled(){var r;if(typeof process==="undefined"){return false}const i=(r=process.env.AZURE_TRACING_DISABLED)===null||r===void 0?void 0:r.toLowerCase();if(i==="false"||i==="0"){return false}return Boolean(i)}function createSpanFunction(r){return function(s,c){const p=getTracer();const d=(c===null||c===void 0?void 0:c.tracingOptions)||{};const A=Object.assign({kind:i.SpanKind.INTERNAL},d.spanOptions);const u=r.packagePrefix?`${r.packagePrefix}.${s}`:s;let m;if(isTracingDisabled()){m=a.trace.wrapSpanContext(a.INVALID_SPAN_CONTEXT)}else{m=p.startSpan(u,A,d.tracingContext)}if(r.namespace){m.setAttribute("az.namespace",r.namespace)}let h=d.spanOptions||{};if(m.isRecording()&&r.namespace){h=Object.assign(Object.assign({},d.spanOptions),{attributes:Object.assign(Object.assign({},A.attributes),{"az.namespace":r.namespace})})}const g=Object.assign(Object.assign({},d),{spanOptions:h,tracingContext:setSpan(d.tracingContext||l.active(),m)});const E=Object.assign(Object.assign({},c),{tracingOptions:g});return{span:m,updatedOptions:E}}}const c="00";function extractSpanContextFromTraceParentHeader(r){const i=r.split("-");if(i.length!==4){return}const[s,a,l,p]=i;if(s!==c){return}const d=parseInt(p,16);const A={spanId:l,traceId:a,traceFlags:d};return A}function getTraceParentHeader(r){const i=[];if(!r.traceId){i.push("traceId")}if(!r.spanId){i.push("spanId")}if(i.length){return}const s=r.traceFlags||0;const a=s.toString(16);const l=a.length===1?`0${a}`:a;return`${c}-${r.traceId}-${r.spanId}-${l}`}i.context=l;i.createSpanFunction=createSpanFunction;i.extractSpanContextFromTraceParentHeader=extractSpanContextFromTraceParentHeader;i.getSpan=getSpan;i.getSpanContext=getSpanContext;i.getTraceParentHeader=getTraceParentHeader;i.getTracer=getTracer;i.isSpanContextValid=isSpanContextValid;i.setSpan=setSpan;i.setSpanContext=setSpanContext},1333:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(2557);var l=s(6113);var c;const p=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((c=process.versions)===null||c===void 0?void 0:c.node);function createAbortablePromise(r,i){const{cleanupBeforeAbort:s,abortSignal:l,abortErrorMsg:c}=i!==null&&i!==void 0?i:{};return new Promise(((i,p)=>{function rejectOnAbort(){p(new a.AbortError(c!==null&&c!==void 0?c:"The operation was aborted."))}function removeListeners(){l===null||l===void 0?void 0:l.removeEventListener("abort",onAbort)}function onAbort(){s===null||s===void 0?void 0:s();removeListeners();rejectOnAbort()}if(l===null||l===void 0?void 0:l.aborted){return rejectOnAbort()}try{r((r=>{removeListeners();i(r)}),(r=>{removeListeners();p(r)}))}catch(r){p(r)}l===null||l===void 0?void 0:l.addEventListener("abort",onAbort)}))}const d="The delay was aborted.";function delay(r,i){let s;const{abortSignal:a,abortErrorMsg:l}=i!==null&&i!==void 0?i:{};return createAbortablePromise((i=>{s=setTimeout(i,r)}),{cleanupBeforeAbort:()=>clearTimeout(s),abortSignal:a,abortErrorMsg:l!==null&&l!==void 0?l:d})}function getRandomIntegerInclusive(r,i){r=Math.ceil(r);i=Math.floor(i);const s=Math.floor(Math.random()*(i-r+1));return s+r}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function isError(r){if(isObject(r)){const i=typeof r.name==="string";const s=typeof r.message==="string";return i&&s}return false}function getErrorMessage(r){if(isError(r)){return r.message}else{let i;try{if(typeof r==="object"&&r){i=JSON.stringify(r)}else{i=String(r)}}catch(r){i="[unable to stringify input]"}return`Unknown error ${i}`}}async function computeSha256Hmac(r,i,s){const a=Buffer.from(r,"base64");return l.createHmac("sha256",a).update(i).digest(s)}async function computeSha256Hash(r,i){return l.createHash("sha256").update(r).digest(i)}function isDefined(r){return typeof r!=="undefined"&&r!==null}function isObjectWithProperties(r,i){if(!isDefined(r)||typeof r!=="object"){return false}for(const s of i){if(!objectHasProperty(r,s)){return false}}return true}function objectHasProperty(r,i){return isDefined(r)&&typeof r==="object"&&i in r}function generateUUID(){let r="";for(let i=0;i<32;i++){const s=Math.floor(Math.random()*16);if(i===12){r+="4"}else if(i===16){r+=s&3|8}else{r+=s.toString(16)}if(i===7||i===11||i===15||i===19){r+="-"}}return r}var A;let u=typeof((A=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||A===void 0?void 0:A.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):l.randomUUID;if(!u){u=generateUUID}function randomUUID(){return u()}i.computeSha256Hash=computeSha256Hash;i.computeSha256Hmac=computeSha256Hmac;i.createAbortablePromise=createAbortablePromise;i.delay=delay;i.getErrorMessage=getErrorMessage;i.getRandomIntegerInclusive=getRandomIntegerInclusive;i.isDefined=isDefined;i.isError=isError;i.isNode=p;i.isObject=isObject;i.isObjectWithProperties=isObjectWithProperties;i.objectHasProperty=objectHasProperty;i.randomUUID=randomUUID},3233:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(2037);var l=s(3837);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}var c=_interopDefaultLegacy(l);function log(r,...i){process.stderr.write(`${c["default"].format(r,...i)}${a.EOL}`)}const p=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let A=[];let u=[];const m=[];if(p){enable(p)}const h=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(r){d=r;A=[];u=[];const i=/\*/g;const s=r.split(",").map((r=>r.trim().replace(i,".*?")));for(const r of s){if(r.startsWith("-")){u.push(new RegExp(`^${r.substr(1)}$`))}else{A.push(new RegExp(`^${r}$`))}}for(const r of m){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const i of u){if(i.test(r)){return false}}for(const i of A){if(i.test(r)){return true}}return false}function disable(){const r=d||"";enable("");return r}function createDebugger(r){const i=Object.assign(debug,{enabled:enabled(r),destroy:destroy,log:h.log,namespace:r,extend:extend});function debug(...s){if(!i.enabled){return}if(s.length>0){s[0]=`${r} ${s[0]}`}i.log(...s)}m.push(i);return i}function destroy(){const r=m.indexOf(this);if(r>=0){m.splice(r,1);return true}return false}function extend(r){const i=createDebugger(`${this.namespace}:${r}`);i.log=this.log;return i}var g=h;const E=new Set;const y=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let C;const b=g("azure");b.log=(...r)=>{g.log(...r)};const I=["verbose","info","warning","error"];if(y){if(isAzureLogLevel(y)){setLogLevel(y)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${y}'; logging is not enabled. Acceptable values: ${I.join(", ")}.`)}}function setLogLevel(r){if(r&&!isAzureLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${I.join(",")}`)}C=r;const i=[];for(const r of E){if(shouldEnable(r)){i.push(r.namespace)}}g.enable(i.join(","))}function getLogLevel(){return C}const B={verbose:400,info:300,warning:200,error:100};function createClientLogger(r){const i=b.extend(r);patchLogMethod(b,i);return{error:createLogger(i,"error"),warning:createLogger(i,"warning"),info:createLogger(i,"info"),verbose:createLogger(i,"verbose")}}function patchLogMethod(r,i){i.log=(...i)=>{r.log(...i)}}function createLogger(r,i){const s=Object.assign(r.extend(i),{level:i});patchLogMethod(r,s);if(shouldEnable(s)){const r=g.disable();g.enable(r+","+s.namespace)}E.add(s);return s}function shouldEnable(r){return Boolean(C&&B[r.level]<=B[C])}function isAzureLogLevel(r){return I.includes(r)}i.AzureLogger=b;i.createClientLogger=createClientLogger;i.getLogLevel=getLogLevel;i.setLogLevel=setLogLevel},4100:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var a=s(4607);var l=s(4351);var c=s(4175);var p=s(3233);var d=s(2557);var A=s(2037);var u=s(6113);var m=s(2781);s(4559);var h=s(7094);var g=s(2361);var E=s(7147);var y=s(3837);function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(s){if(s!=="default"){var a=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(i,s,a.get?a:{enumerable:true,get:function(){return r[s]}})}}))}i["default"]=r;return Object.freeze(i)}var C=_interopNamespace(a);var b=_interopNamespace(A);var I=_interopNamespace(E);var B=_interopNamespace(y);const v={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const Q={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const w={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const x={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const S={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const N={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const R={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const D={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const T={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const _={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const k={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const O={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const P={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const L={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const M={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const U={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const q={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const H={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const G={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const V={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const j={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const z={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Y={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const J={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const W={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const X={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const $={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const K={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Z={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const ee={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const te={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const re={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ie={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const ne={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const se={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const ae={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const oe={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"any"}}}}};const le={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const ce={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const pe={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const de={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const Ae={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ue={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const me={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const he={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fe={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ge={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ee={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ce={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const be={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ve={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qe={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const we={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xe={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Se={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ne={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Re={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const De={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Te={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _e={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ke={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oe={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pe={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Le={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Me={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fe={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ue={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const He={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const je={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ze={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ye={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Je={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const We={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xe={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const $e={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ke={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ze={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const et={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const tt={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rt={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const it={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nt={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const st={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ct={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pt={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const dt={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const At={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const ut={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mt={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ht={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Et={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yt={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bt={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const It={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bt={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vt={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qt={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const wt={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xt={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const St={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nt={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const Rt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dt={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const kt={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ot={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Pt={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lt={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Mt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ft={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ut={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qt={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ht={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gt={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vt={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yt={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wt={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xt={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $t={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Kt={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const er={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tr={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const rr={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ir={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sr={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ar={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const or={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cr={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ar={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fr={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gr={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Er={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yr={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const br={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ir={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Br={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vr={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qr={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wr={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nr={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dr={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const Tr={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kr={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Or={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pr={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fr={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qr={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gr={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vr={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var jr=Object.freeze({__proto__:null,BlobServiceProperties:v,Logging:Q,RetentionPolicy:w,Metrics:x,CorsRule:S,StaticWebsite:N,StorageError:R,BlobServiceStatistics:D,GeoReplication:T,ListContainersSegmentResponse:_,ContainerItem:k,ContainerProperties:O,KeyInfo:P,UserDelegationKey:L,FilterBlobSegment:M,FilterBlobItem:U,BlobTags:q,BlobTag:H,SignedIdentifier:G,AccessPolicy:V,ListBlobsFlatSegmentResponse:j,BlobFlatListSegment:z,BlobItemInternal:Y,BlobName:J,BlobPropertiesInternal:W,ListBlobsHierarchySegmentResponse:X,BlobHierarchyListSegment:$,BlobPrefix:K,BlockLookupList:Z,BlockList:ee,Block:te,PageList:re,PageRange:ie,ClearRange:ne,QueryRequest:se,QuerySerialization:ae,QueryFormat:oe,DelimitedTextConfiguration:le,JsonTextConfiguration:ce,ArrowConfiguration:pe,ArrowField:de,ServiceSetPropertiesHeaders:Ae,ServiceSetPropertiesExceptionHeaders:ue,ServiceGetPropertiesHeaders:me,ServiceGetPropertiesExceptionHeaders:he,ServiceGetStatisticsHeaders:fe,ServiceGetStatisticsExceptionHeaders:ge,ServiceListContainersSegmentHeaders:Ee,ServiceListContainersSegmentExceptionHeaders:ye,ServiceGetUserDelegationKeyHeaders:Ce,ServiceGetUserDelegationKeyExceptionHeaders:be,ServiceGetAccountInfoHeaders:Ie,ServiceGetAccountInfoExceptionHeaders:Be,ServiceSubmitBatchHeaders:ve,ServiceSubmitBatchExceptionHeaders:Qe,ServiceFilterBlobsHeaders:we,ServiceFilterBlobsExceptionHeaders:xe,ContainerCreateHeaders:Se,ContainerCreateExceptionHeaders:Ne,ContainerGetPropertiesHeaders:Re,ContainerGetPropertiesExceptionHeaders:De,ContainerDeleteHeaders:Te,ContainerDeleteExceptionHeaders:_e,ContainerSetMetadataHeaders:ke,ContainerSetMetadataExceptionHeaders:Oe,ContainerGetAccessPolicyHeaders:Pe,ContainerGetAccessPolicyExceptionHeaders:Le,ContainerSetAccessPolicyHeaders:Me,ContainerSetAccessPolicyExceptionHeaders:Fe,ContainerRestoreHeaders:Ue,ContainerRestoreExceptionHeaders:qe,ContainerRenameHeaders:He,ContainerRenameExceptionHeaders:Ge,ContainerSubmitBatchHeaders:Ve,ContainerSubmitBatchExceptionHeaders:je,ContainerFilterBlobsHeaders:ze,ContainerFilterBlobsExceptionHeaders:Ye,ContainerAcquireLeaseHeaders:Je,ContainerAcquireLeaseExceptionHeaders:We,ContainerReleaseLeaseHeaders:Xe,ContainerReleaseLeaseExceptionHeaders:$e,ContainerRenewLeaseHeaders:Ke,ContainerRenewLeaseExceptionHeaders:Ze,ContainerBreakLeaseHeaders:et,ContainerBreakLeaseExceptionHeaders:tt,ContainerChangeLeaseHeaders:rt,ContainerChangeLeaseExceptionHeaders:it,ContainerListBlobFlatSegmentHeaders:nt,ContainerListBlobFlatSegmentExceptionHeaders:st,ContainerListBlobHierarchySegmentHeaders:ot,ContainerListBlobHierarchySegmentExceptionHeaders:ct,ContainerGetAccountInfoHeaders:pt,ContainerGetAccountInfoExceptionHeaders:dt,BlobDownloadHeaders:At,BlobDownloadExceptionHeaders:ut,BlobGetPropertiesHeaders:mt,BlobGetPropertiesExceptionHeaders:ht,BlobDeleteHeaders:ft,BlobDeleteExceptionHeaders:Et,BlobUndeleteHeaders:yt,BlobUndeleteExceptionHeaders:Ct,BlobSetExpiryHeaders:bt,BlobSetExpiryExceptionHeaders:It,BlobSetHttpHeadersHeaders:Bt,BlobSetHttpHeadersExceptionHeaders:vt,BlobSetImmutabilityPolicyHeaders:Qt,BlobSetImmutabilityPolicyExceptionHeaders:wt,BlobDeleteImmutabilityPolicyHeaders:xt,BlobDeleteImmutabilityPolicyExceptionHeaders:St,BlobSetLegalHoldHeaders:Nt,BlobSetLegalHoldExceptionHeaders:Rt,BlobSetMetadataHeaders:Dt,BlobSetMetadataExceptionHeaders:Tt,BlobAcquireLeaseHeaders:_t,BlobAcquireLeaseExceptionHeaders:kt,BlobReleaseLeaseHeaders:Ot,BlobReleaseLeaseExceptionHeaders:Pt,BlobRenewLeaseHeaders:Lt,BlobRenewLeaseExceptionHeaders:Mt,BlobChangeLeaseHeaders:Ft,BlobChangeLeaseExceptionHeaders:Ut,BlobBreakLeaseHeaders:qt,BlobBreakLeaseExceptionHeaders:Ht,BlobCreateSnapshotHeaders:Gt,BlobCreateSnapshotExceptionHeaders:Vt,BlobStartCopyFromURLHeaders:jt,BlobStartCopyFromURLExceptionHeaders:zt,BlobCopyFromURLHeaders:Yt,BlobCopyFromURLExceptionHeaders:Jt,BlobAbortCopyFromURLHeaders:Wt,BlobAbortCopyFromURLExceptionHeaders:Xt,BlobSetTierHeaders:$t,BlobSetTierExceptionHeaders:Kt,BlobGetAccountInfoHeaders:Zt,BlobGetAccountInfoExceptionHeaders:er,BlobQueryHeaders:tr,BlobQueryExceptionHeaders:rr,BlobGetTagsHeaders:ir,BlobGetTagsExceptionHeaders:nr,BlobSetTagsHeaders:sr,BlobSetTagsExceptionHeaders:ar,PageBlobCreateHeaders:or,PageBlobCreateExceptionHeaders:lr,PageBlobUploadPagesHeaders:cr,PageBlobUploadPagesExceptionHeaders:pr,PageBlobClearPagesHeaders:dr,PageBlobClearPagesExceptionHeaders:Ar,PageBlobUploadPagesFromURLHeaders:ur,PageBlobUploadPagesFromURLExceptionHeaders:mr,PageBlobGetPageRangesHeaders:hr,PageBlobGetPageRangesExceptionHeaders:fr,PageBlobGetPageRangesDiffHeaders:gr,PageBlobGetPageRangesDiffExceptionHeaders:Er,PageBlobResizeHeaders:yr,PageBlobResizeExceptionHeaders:Cr,PageBlobUpdateSequenceNumberHeaders:br,PageBlobUpdateSequenceNumberExceptionHeaders:Ir,PageBlobCopyIncrementalHeaders:Br,PageBlobCopyIncrementalExceptionHeaders:vr,AppendBlobCreateHeaders:Qr,AppendBlobCreateExceptionHeaders:wr,AppendBlobAppendBlockHeaders:xr,AppendBlobAppendBlockExceptionHeaders:Sr,AppendBlobAppendBlockFromUrlHeaders:Nr,AppendBlobAppendBlockFromUrlExceptionHeaders:Rr,AppendBlobSealHeaders:Dr,AppendBlobSealExceptionHeaders:Tr,BlockBlobUploadHeaders:_r,BlockBlobUploadExceptionHeaders:kr,BlockBlobPutBlobFromUrlHeaders:Or,BlockBlobPutBlobFromUrlExceptionHeaders:Pr,BlockBlobStageBlockHeaders:Lr,BlockBlobStageBlockExceptionHeaders:Mr,BlockBlobStageBlockFromURLHeaders:Fr,BlockBlobStageBlockFromURLExceptionHeaders:Ur,BlockBlobCommitBlockListHeaders:qr,BlockBlobCommitBlockListExceptionHeaders:Hr,BlockBlobGetBlockListHeaders:Gr,BlockBlobGetBlockListExceptionHeaders:Vr});const zr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Yr={parameterPath:"blobServiceProperties",mapper:v};const Jr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Wr={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Xr={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const $r={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kr={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const Zr={parameterPath:"version",mapper:{defaultValue:"2022-11-02",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const ei={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const ti={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ri={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ii={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ni={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const si={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const ai={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const oi={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const li={parameterPath:"keyInfo",mapper:P};const ci={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const pi={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const di={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ai={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ui={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const mi={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const hi={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fi={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const gi={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Ei={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const yi={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Ci={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const bi={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Ii={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Bi={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const vi={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Qi={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wi={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xi={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Si={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ni={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Ri={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const Di={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ti={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const _i={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const ki={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Oi={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Pi={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Li={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Mi={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Fi={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Ui={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const qi={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Hi={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Gi={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Vi={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const ji={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const zi={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Yi={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Ji={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Wi={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Xi={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const $i={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Ki={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Zi={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const en={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const tn={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const rn={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const nn={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const sn={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const an={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const on={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ln={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const cn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const pn={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const dn={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const An={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const un={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const mn={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const hn={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const fn={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gn={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const En={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const yn={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Cn={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const bn={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const In={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Bn={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const vn={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const Qn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const wn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const xn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Sn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const Nn={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Rn={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Dn={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const Tn={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const _n={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const kn={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const On={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Pn={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Ln={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const Mn={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Fn={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const Un={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const qn={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Hn={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Gn={parameterPath:["options","queryRequest"],mapper:se};const Vn={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const jn={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const zn={parameterPath:["options","tags"],mapper:q};const Yn={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Jn={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Wn={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Xn={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const $n={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Kn={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Zn={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const es={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ts={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const rs={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const is={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const ns={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const ss={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const as={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const os={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const ls={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const cs={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const ps={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const ds={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const As={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const us={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const ms={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const hs={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fs={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const gs={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Es={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const ys={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const Cs={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const bs={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Is={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Bs={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const vs={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Qs={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const ws={parameterPath:"blocks",mapper:Z};const xs={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ss={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(r){this.client=r}setProperties(r,i){const s={blobServiceProperties:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Rs)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ds)}getStatistics(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ts)}listContainersSegment(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,_s)}getUserDelegationKey(r,i){const s={keyInfo:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ks)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Os)}submitBatch(r,i,s,a){const l={contentLength:r,multipartContentType:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Ps)}filterBlobs(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ls)}}const Ns=new C.Serializer(jr,true);const Rs={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Ae},default:{bodyMapper:R,headersMapper:ue}},requestBody:Yr,queryParameters:[Xr,$r,Kr],urlParameters:[Wr],headerParameters:[zr,Jr,Zr,ei],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ns};const Ds={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:v,headersMapper:me},default:{bodyMapper:R,headersMapper:he}},queryParameters:[Xr,$r,Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ns};const Ts={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:D,headersMapper:fe},default:{bodyMapper:R,headersMapper:ge}},queryParameters:[Xr,Kr,ri],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ns};const _s={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:_,headersMapper:Ee},default:{bodyMapper:R,headersMapper:ye}},queryParameters:[Kr,ii,ni,si,ai,oi],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ns};const ks={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:L,headersMapper:Ce},default:{bodyMapper:R,headersMapper:be}},requestBody:li,queryParameters:[Xr,Kr,ci],urlParameters:[Wr],headerParameters:[zr,Jr,Zr,ei],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ns};const Os={path:"/",httpMethod:"GET",responses:{200:{headersMapper:Ie},default:{bodyMapper:R,headersMapper:Be}},queryParameters:[$r,pi],urlParameters:[Wr],headerParameters:[Zr,ti],isXML:true,serializer:Ns};const Ps={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ve},default:{bodyMapper:R,headersMapper:Qe}},requestBody:di,queryParameters:[Kr,Ai],urlParameters:[Wr],headerParameters:[zr,Jr,Zr,ei,ui,mi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ns};const Ls={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:M,headersMapper:we},default:{bodyMapper:R,headersMapper:xe}},queryParameters:[Kr,si,ai,hi,fi],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ns};class Container{constructor(r){this.client=r}create(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Fs)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Us)}delete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,qs)}setMetadata(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Hs)}getAccessPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Gs)}setAccessPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Vs)}restore(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,js)}rename(r,i){const s={sourceContainerName:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,zs)}submitBatch(r,i,s,a){const l={contentLength:r,multipartContentType:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Ys)}filterBlobs(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Js)}acquireLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ws)}releaseLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Xs)}renewLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,$s)}breakLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ks)}changeLease(r,i,s){const a={leaseId:r,proposedLeaseId:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Zs)}listBlobFlatSegment(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ea)}listBlobHierarchySegment(r,i){const s={delimiter:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ta)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ra)}}const Ms=new C.Serializer(jr,true);const Fs={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Se},default:{bodyMapper:R,headersMapper:Ne}},queryParameters:[Kr,gi],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ei,yi,Ci,bi],isXML:true,serializer:Ms};const Us={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Re},default:{bodyMapper:R,headersMapper:De}},queryParameters:[Kr,gi],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii],isXML:true,serializer:Ms};const qs={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:Te},default:{bodyMapper:R,headersMapper:_e}},queryParameters:[Kr,gi],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi],isXML:true,serializer:Ms};const Hs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ke},default:{bodyMapper:R,headersMapper:Oe}},queryParameters:[Kr,gi,Qi],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ei,Ii,Bi],isXML:true,serializer:Ms};const Gs={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:Pe},default:{bodyMapper:R,headersMapper:Le}},queryParameters:[Kr,gi,wi],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii],isXML:true,serializer:Ms};const Vs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Me},default:{bodyMapper:R,headersMapper:Fe}},requestBody:xi,queryParameters:[Kr,gi,wi],urlParameters:[Wr],headerParameters:[zr,Jr,Zr,ei,yi,Ii,Bi,vi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ms};const js={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ue},default:{bodyMapper:R,headersMapper:qe}},queryParameters:[Kr,gi,Si],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ni,Ri],isXML:true,serializer:Ms};const zs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:He},default:{bodyMapper:R,headersMapper:Ge}},queryParameters:[Kr,gi,Di],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ti,_i],isXML:true,serializer:Ms};const Ys={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Ve},default:{bodyMapper:R,headersMapper:je}},requestBody:di,queryParameters:[Kr,Ai,gi],urlParameters:[Wr],headerParameters:[zr,Jr,Zr,ei,ui,mi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ms};const Js={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:M,headersMapper:ze},default:{bodyMapper:R,headersMapper:Ye}},queryParameters:[Kr,si,ai,hi,fi,gi],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ms};const Ws={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Je},default:{bodyMapper:R,headersMapper:We}},queryParameters:[Kr,gi,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,Oi,Pi,Li],isXML:true,serializer:Ms};const Xs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Xe},default:{bodyMapper:R,headersMapper:$e}},queryParameters:[Kr,gi,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,Mi,Fi],isXML:true,serializer:Ms};const $s={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ke},default:{bodyMapper:R,headersMapper:Ze}},queryParameters:[Kr,gi,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,Fi,Ui],isXML:true,serializer:Ms};const Ks={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:et},default:{bodyMapper:R,headersMapper:tt}},queryParameters:[Kr,gi,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,qi,Hi],isXML:true,serializer:Ms};const Zs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:rt},default:{bodyMapper:R,headersMapper:it}},queryParameters:[Kr,gi,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,Fi,Gi,Vi],isXML:true,serializer:Ms};const ea={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:j,headersMapper:nt},default:{bodyMapper:R,headersMapper:st}},queryParameters:[Kr,ii,ni,si,ai,gi,ji],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ms};const ta={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:X,headersMapper:ot},default:{bodyMapper:R,headersMapper:ct}},queryParameters:[Kr,ii,ni,si,ai,gi,ji,zi],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:Ms};const ra={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:pt},default:{bodyMapper:R,headersMapper:dt}},queryParameters:[$r,pi],urlParameters:[Wr],headerParameters:[Zr,ti],isXML:true,serializer:Ms};class Blob$1{constructor(r){this.client=r}download(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,na)}getProperties(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,sa)}delete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,aa)}undelete(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,oa)}setExpiry(r,i){const s={expiryOptions:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,la)}setHttpHeaders(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ca)}setImmutabilityPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,pa)}deleteImmutabilityPolicy(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,da)}setLegalHold(r,i){const s={legalHold:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Aa)}setMetadata(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ua)}acquireLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ma)}releaseLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ha)}renewLease(r,i){const s={leaseId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,fa)}changeLease(r,i,s){const a={leaseId:r,proposedLeaseId:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,ga)}breakLease(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ea)}createSnapshot(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ya)}startCopyFromURL(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ca)}copyFromURL(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,ba)}abortCopyFromURL(r,i){const s={copyId:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ia)}setTier(r,i){const s={tier:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ba)}getAccountInfo(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,va)}query(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Qa)}getTags(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,wa)}setTags(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,xa)}}const ia=new C.Serializer(jr,true);const na={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:At},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:At},default:{bodyMapper:R,headersMapper:ut}},queryParameters:[Kr,Yi,Ji],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,Wi,Xi,$i,Ki,Zi,en,tn,rn,nn],isXML:true,serializer:ia};const sa={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:mt},default:{bodyMapper:R,headersMapper:ht}},queryParameters:[Kr,Yi,Ji],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn],isXML:true,serializer:ia};const aa={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:ft},default:{bodyMapper:R,headersMapper:Et}},queryParameters:[Kr,Yi,Ji,an],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,tn,rn,nn,sn],isXML:true,serializer:ia};const oa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:yt},default:{bodyMapper:R,headersMapper:Ct}},queryParameters:[Kr,Si],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:ia};const la={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bt},default:{bodyMapper:R,headersMapper:It}},queryParameters:[Kr,on],urlParameters:[Wr],headerParameters:[Zr,ei,ti,ln,cn],isXML:true,serializer:ia};const ca={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Bt},default:{bodyMapper:R,headersMapper:vt}},queryParameters:[$r,Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,tn,rn,nn,pn,dn,An,un,mn,hn],isXML:true,serializer:ia};const pa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Qt},default:{bodyMapper:R,headersMapper:wt}},queryParameters:[Kr,fn],urlParameters:[Wr],headerParameters:[Zr,ei,ti,vi,gn,En],isXML:true,serializer:ia};const da={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:xt},default:{bodyMapper:R,headersMapper:St}},queryParameters:[Kr,fn],urlParameters:[Wr],headerParameters:[Zr,ei,ti],isXML:true,serializer:ia};const Aa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Nt},default:{bodyMapper:R,headersMapper:Rt}},queryParameters:[Kr,yn],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Cn],isXML:true,serializer:ia};const ua={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Dt},default:{bodyMapper:R,headersMapper:Tt}},queryParameters:[Kr,Qi],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ei,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,bn],isXML:true,serializer:ia};const ma={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_t},default:{bodyMapper:R,headersMapper:kt}},queryParameters:[Kr,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,Oi,Pi,Li,tn,rn,nn],isXML:true,serializer:ia};const ha={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ot},default:{bodyMapper:R,headersMapper:Pt}},queryParameters:[Kr,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,Mi,Fi,tn,rn,nn],isXML:true,serializer:ia};const fa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Lt},default:{bodyMapper:R,headersMapper:Mt}},queryParameters:[Kr,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,Fi,Ui,tn,rn,nn],isXML:true,serializer:ia};const ga={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ft},default:{bodyMapper:R,headersMapper:Ut}},queryParameters:[Kr,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,Fi,Gi,Vi,tn,rn,nn],isXML:true,serializer:ia};const Ea={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:qt},default:{bodyMapper:R,headersMapper:Ht}},queryParameters:[Kr,ki],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,qi,Hi,tn,rn,nn],isXML:true,serializer:ia};const ya={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Gt},default:{bodyMapper:R,headersMapper:Vt}},queryParameters:[Kr,In],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ei,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,bn],isXML:true,serializer:ia};const Ca={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jt},default:{bodyMapper:R,headersMapper:zt}},queryParameters:[Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ei,Ii,Bi,vi,tn,rn,nn,gn,En,Bn,vn,Qn,wn,xn,Sn,Nn,Rn,Dn,Tn,_n],isXML:true,serializer:ia};const ba={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Yt},default:{bodyMapper:R,headersMapper:Jt}},queryParameters:[Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ei,Ii,Bi,vi,tn,rn,nn,gn,En,bn,Bn,Qn,wn,xn,Sn,Rn,Dn,_n,kn,On,Pn,Ln],isXML:true,serializer:ia};const Ia={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Wt},default:{bodyMapper:R,headersMapper:Xt}},queryParameters:[Kr,Mn,Un],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Fn],isXML:true,serializer:ia};const Ba={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:$t},202:{headersMapper:$t},default:{bodyMapper:R,headersMapper:Kt}},queryParameters:[Kr,Yi,Ji,qn],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,nn,vn,Hn],isXML:true,serializer:ia};const va={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Zt},default:{bodyMapper:R,headersMapper:er}},queryParameters:[$r,pi],urlParameters:[Wr],headerParameters:[Zr,ti],isXML:true,serializer:ia};const Qa={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:tr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:tr},default:{bodyMapper:R,headersMapper:rr}},requestBody:Gn,queryParameters:[Kr,Yi,Vn],urlParameters:[Wr],headerParameters:[zr,Jr,Zr,ei,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ia};const wa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:q,headersMapper:ir},default:{bodyMapper:R,headersMapper:nr}},queryParameters:[Kr,Yi,Ji,jn],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,nn],isXML:true,serializer:ia};const xa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:sr},default:{bodyMapper:R,headersMapper:ar}},requestBody:zn,queryParameters:[Kr,Ji,jn],urlParameters:[Wr],headerParameters:[zr,Jr,Zr,ei,Ii,nn,Yn,Jn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ia};class PageBlob{constructor(r){this.client=r}create(r,i,s){const a={contentLength:r,blobContentLength:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ra)}uploadPages(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Da)}clearPages(r,i){const s={contentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ta)}uploadPagesFromURL(r,i,s,a,l){const c={sourceUrl:r,sourceRange:i,contentLength:s,range:a,options:C.operationOptionsToRequestOptionsBase(l||{})};return this.client.sendOperationRequest(c,_a)}getPageRanges(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ka)}getPageRangesDiff(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Oa)}resize(r,i){const s={blobContentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Pa)}updateSequenceNumber(r,i){const s={sequenceNumberAction:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,La)}copyIncremental(r,i){const s={copySource:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ma)}}const Sa=new C.Serializer(jr,true);const Na=new C.Serializer(jr,false);const Ra={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:or},default:{bodyMapper:R,headersMapper:lr}},queryParameters:[Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti,ui,Ei,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,pn,dn,An,un,mn,hn,gn,En,bn,Bn,Dn,_n,Wn,Xn,$n],isXML:true,serializer:Sa};const Da={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cr},default:{bodyMapper:R,headersMapper:pr}},requestBody:Zn,queryParameters:[Kr,ts],urlParameters:[Wr],headerParameters:[Zr,ei,ui,Ii,Bi,vi,Wi,Ki,Zi,en,tn,rn,nn,bn,Yn,Jn,Kn,es,rs,is,ns,ss],mediaType:"binary",serializer:Na};const Ta={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:dr},default:{bodyMapper:R,headersMapper:Ar}},queryParameters:[Kr,ts],urlParameters:[Wr],headerParameters:[Zr,ei,ti,ui,Ii,Bi,vi,Wi,Ki,Zi,en,tn,rn,nn,bn,is,ns,ss,as],isXML:true,serializer:Sa};const _a={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ur},default:{bodyMapper:R,headersMapper:mr}},queryParameters:[Kr,ts],urlParameters:[Wr],headerParameters:[Zr,ei,ti,ui,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,bn,Qn,wn,xn,Sn,On,Pn,rs,is,ns,ss,os,ls,cs,ps],isXML:true,serializer:Sa};const ka={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:re,headersMapper:hr},default:{bodyMapper:R,headersMapper:fr}},queryParameters:[Kr,si,ai,Yi,ds],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,Wi,tn,rn,nn],isXML:true,serializer:Sa};const Oa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:re,headersMapper:gr},default:{bodyMapper:R,headersMapper:Er}},queryParameters:[Kr,si,ai,Yi,ds,As],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,Wi,tn,rn,nn,us],isXML:true,serializer:Sa};const Pa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:yr},default:{bodyMapper:R,headersMapper:Cr}},queryParameters:[$r,Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,bn,Xn],isXML:true,serializer:Sa};const La={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:br},default:{bodyMapper:R,headersMapper:Ir}},queryParameters:[$r,Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,tn,rn,nn,$n,ms],isXML:true,serializer:Sa};const Ma={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Br},default:{bodyMapper:R,headersMapper:vr}},queryParameters:[Kr,hs],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Bi,vi,tn,rn,nn,Rn],isXML:true,serializer:Sa};class AppendBlob{constructor(r){this.client=r}create(r,i){const s={contentLength:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,qa)}appendBlock(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ha)}appendBlockFromUrl(r,i,s){const a={sourceUrl:r,contentLength:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ga)}seal(r){const i={options:C.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Va)}}const Fa=new C.Serializer(jr,true);const Ua=new C.Serializer(jr,false);const qa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Qr},default:{bodyMapper:R,headersMapper:wr}},queryParameters:[Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti,ui,Ei,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,pn,dn,An,un,mn,hn,gn,En,bn,Dn,_n,fs],isXML:true,serializer:Fa};const Ha={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:xr},default:{bodyMapper:R,headersMapper:Sr}},requestBody:Zn,queryParameters:[Kr,gs],urlParameters:[Wr],headerParameters:[Zr,ei,ui,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,bn,Yn,Jn,Kn,es,Es,ys],mediaType:"binary",serializer:Ua};const Ga={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Nr},default:{bodyMapper:R,headersMapper:Rr}},queryParameters:[Kr,gs],urlParameters:[Wr],headerParameters:[Zr,ei,ti,ui,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,bn,Qn,wn,xn,Sn,On,Pn,Yn,os,cs,Es,ys,Cs],isXML:true,serializer:Fa};const Va={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Dr},default:{bodyMapper:R,headersMapper:Tr}},queryParameters:[Kr,bs],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,Bi,vi,tn,rn,ys],isXML:true,serializer:Fa};class BlockBlob{constructor(r){this.client=r}upload(r,i,s){const a={contentLength:r,body:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ya)}putBlobFromUrl(r,i,s){const a={contentLength:r,copySource:i,options:C.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(a,Ja)}stageBlock(r,i,s,a){const l={blockId:r,contentLength:i,body:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Wa)}stageBlockFromURL(r,i,s,a){const l={blockId:r,contentLength:i,sourceUrl:s,options:C.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(l,Xa)}commitBlockList(r,i){const s={blocks:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,$a)}getBlockList(r,i){const s={listType:r,options:C.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(s,Ka)}}const ja=new C.Serializer(jr,true);const za=new C.Serializer(jr,false);const Ya={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_r},default:{bodyMapper:R,headersMapper:kr}},requestBody:Zn,queryParameters:[Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ui,Ei,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,pn,dn,An,un,mn,hn,gn,En,bn,Bn,Dn,_n,Yn,Jn,Kn,es,Is],mediaType:"binary",serializer:za};const Ja={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Or},default:{bodyMapper:R,headersMapper:Pr}},queryParameters:[Kr],urlParameters:[Wr],headerParameters:[Zr,ei,ti,ui,Ei,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,pn,dn,An,un,mn,hn,bn,Bn,Qn,wn,xn,Sn,Nn,Rn,Dn,On,Pn,Ln,Yn,Is,Bs],isXML:true,serializer:ja};const Wa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Lr},default:{bodyMapper:R,headersMapper:Mr}},requestBody:Zn,queryParameters:[Kr,vs,Qs],urlParameters:[Wr],headerParameters:[Zr,ei,ui,Ii,Ki,Zi,en,bn,Yn,Jn,Kn,es],mediaType:"binary",serializer:za};const Xa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Fr},default:{bodyMapper:R,headersMapper:Ur}},queryParameters:[Kr,vs,Qs],urlParameters:[Wr],headerParameters:[Zr,ei,ti,ui,Ii,Ki,Zi,en,bn,Qn,wn,xn,Sn,On,Pn,os,cs,Cs],isXML:true,serializer:ja};const $a={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qr},default:{bodyMapper:R,headersMapper:Hr}},requestBody:ws,queryParameters:[Kr,xs],urlParameters:[Wr],headerParameters:[zr,Jr,Zr,ei,Ei,Ii,Bi,vi,Ki,Zi,en,tn,rn,nn,pn,dn,An,un,mn,hn,gn,En,bn,Bn,Dn,_n,Yn,Jn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ja};const Ka={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ee,headersMapper:Gr},default:{bodyMapper:R,headersMapper:Vr}},queryParameters:[Kr,Yi,xs,Ss],urlParameters:[Wr],headerParameters:[Zr,ei,ti,Ii,nn],isXML:true,serializer:ja};const Za=p.createClientLogger("storage-blob");const eo="12.14.0";const to="2022-11-02";const ro=256*1024*1024;const io=4e3*1024*1024;const no=5e4;const so=8*1024*1024;const ao=4*1024*1024;const oo=5;const lo=100*1e3;const co="https://storage.azure.com/.default";const po={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Ao={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const uo={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"};const mo="";const ho="*";const fo=1*1024*1024;const go=256;const Eo=4*fo;const yo="\r\n";const Co="HTTP/1.1";const bo="AES256";const Io=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Bo=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"];const vo=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];const Qo="BlobUsesCustomerSpecifiedEncryption";const wo="BlobDoesNotUseCustomerSpecifiedEncryption";const xo=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const i=a.URLBuilder.parse(r);let s=i.getPath();s=s||"/";s=escape(s);i.setPath(s);return i.toString()}function getProxyUriFromDevConnString(r){let i="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const s=r.split(";");for(const r of s){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){i=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return i}function getValueInConnString(r,i){const s=r.split(";");for(const r of s){if(r.trim().startsWith(i)){return r.trim().match(i+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let i="";if(r.startsWith("UseDevelopmentStorage=true")){i=getProxyUriFromDevConnString(r);r=Io}let s=getValueInConnString(r,"BlobEndpoint");s=s.endsWith("/")?s.slice(0,-1):s;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let l="";let c=Buffer.from("accountKey","base64");let p="";l=getValueInConnString(r,"AccountName");c=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!s){a=getValueInConnString(r,"DefaultEndpointsProtocol");const i=a.toLowerCase();if(i!=="https"&&i!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(r,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}s=`${a}://${l}.blob.${p}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(c.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:s,accountName:l,accountKey:c,proxyUri:i}}else{const i=getValueInConnString(r,"SharedAccessSignature");const a=getAccountNameFromUrl(s);if(!s){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!i){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:s,accountName:a,accountSas:i}}}function escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,i){const s=a.URLBuilder.parse(r);let l=s.getPath();l=l?l.endsWith("/")?`${l}${i}`:`${l}/${i}`:i;s.setPath(l);const c=new URL(s.toString());return c.toString()}function setURLParameter(r,i,s){const l=a.URLBuilder.parse(r);l.setQueryParameter(i,s);return l.toString()}function getURLParameter(r,i){const s=a.URLBuilder.parse(r);return s.getQueryParameterValue(i)}function setURLHost(r,i){const s=a.URLBuilder.parse(r);s.setHost(i);return s.toString()}function getURLPath(r){const i=a.URLBuilder.parse(r);return i.getPath()}function getURLScheme(r){const i=a.URLBuilder.parse(r);return i.getScheme()}function getURLPathAndQuery(r){const i=a.URLBuilder.parse(r);const s=i.getPath();if(!s){throw new RangeError("Invalid url without valid path.")}let l=i.getQuery()||"";l=l.trim();if(l!==""){l=l.startsWith("?")?l:`?${l}`}return`${s}${l}`}function getURLQueries(r){let i=a.URLBuilder.parse(r).getQuery();if(!i){return{}}i=i.trim();i=i.startsWith("?")?i.substr(1):i;let s=i.split("&");s=s.filter((r=>{const i=r.indexOf("=");const s=r.lastIndexOf("=");return i>0&&i===s&&sr.getToken(i,s);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=l===null||l===void 0?void 0:l.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;l=r;return l})).catch((r=>{a=null;l=null;throw r}))}return a}return async r=>{if(p.mustRefresh)return refresh(r);if(p.shouldRefresh){refresh(r)}return l}}function getChallenge(r){const i=r.headers.get("WWW-Authenticate");if(r.status===401&&i){return i}return}function parseChallenge(r){const i=r.slice("Bearer ".length);const s=`${i.trim()} `.split(" ").filter((r=>r));const a=s.map((r=>(([r,i])=>({[r]:i}))(r.trim().split("="))));return a.reduce(((r,i)=>Object.assign(Object.assign({},r),i)),{})}function storageBearerTokenChallengeAuthenticationPolicy(r,i){let s=createTokenCycler(r,i);class StorageBearerTokenChallengeAuthenticationPolicy extends a.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(i){if(!i.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const l=s;const c=(await l({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext}})).token;i.headers.set(Do.HeaderConstants.AUTHORIZATION,`Bearer ${c}`);const p=await this._nextPolicy.sendRequest(i);if((p===null||p===void 0?void 0:p.status)===401){const l=getChallenge(p);if(l){const c=parseChallenge(l);const p=c.resource_id+Do.DefaultScope;const d=a.URLBuilder.parse(c.authorization_uri);const A=d.getPath().split("/");const u=A[1];const m=createTokenCycler(r,p);const h=(await m({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext},tenantId:u})).token;s=m;i.headers.set(Do.HeaderConstants.AUTHORIZATION,`Bearer ${h}`);return this._nextPolicy.sendRequest(i)}}return p}}return{create:(r,i)=>new StorageBearerTokenChallengeAuthenticationPolicy(r,i)}}function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const i=r;return Array.isArray(i.factories)&&typeof i.options==="object"&&typeof i.toServiceClientOptions==="function"}class Pipeline{constructor(r,i={}){this.factories=r;this.options=Object.assign(Object.assign({},i),{httpClient:i.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,i={}){var s;if(r===undefined){r=new AnonymousCredential}const l=new TelemetryPolicyFactory(i.userAgentOptions);const c=[a.tracingPolicy({userAgent:l.telemetryString}),a.keepAlivePolicy(i.keepAliveOptions),l,a.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(i.retryOptions),a.deserializationPolicy(undefined,{xmlCharKey:"#"}),a.logPolicy({logger:Za.info,allowedHeaderNames:Bo,allowedQueryParameters:vo})];if(a.isNode){c.push(a.proxyPolicy(i.proxyOptions));c.push(a.disableResponseDecompressionPolicy())}c.push(a.isTokenCredential(r)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(r,(s=i.audience)!==null&&s!==void 0?s:co),r):r);return new Pipeline(c,i)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(r,i,s){super(r,i);this.factory=s}signRequest(r){r.headers.set(uo.X_MS_DATE,(new Date).toUTCString());if(r.body&&(typeof r.body==="string"||r.body!==undefined)&&r.body.length>0){r.headers.set(uo.CONTENT_LENGTH,Buffer.byteLength(r.body))}const i=[r.method.toUpperCase(),this.getHeaderValueToSign(r,uo.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,uo.CONTENT_ENCODING),this.getHeaderValueToSign(r,uo.CONTENT_LENGTH),this.getHeaderValueToSign(r,uo.CONTENT_MD5),this.getHeaderValueToSign(r,uo.CONTENT_TYPE),this.getHeaderValueToSign(r,uo.DATE),this.getHeaderValueToSign(r,uo.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,uo.IF_MATCH),this.getHeaderValueToSign(r,uo.IF_NONE_MATCH),this.getHeaderValueToSign(r,uo.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,uo.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const s=this.factory.computeHMACSHA256(i);r.headers.set(uo.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`);return r}getHeaderValueToSign(r,i){const s=r.headers.get(i);if(!s){return""}if(i===uo.CONTENT_LENGTH&&s==="0"){return""}return s}getCanonicalizedHeadersString(r){let i=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(uo.PREFIX_FOR_STORAGE)));i.sort(((r,i)=>r.name.toLowerCase().localeCompare(i.name.toLowerCase())));i=i.filter(((r,i,s)=>{if(i>0&&r.name.toLowerCase()===s[i-1].name.toLowerCase()){return false}return true}));let s="";i.forEach((r=>{s+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return s}getCanonicalizedResourceString(r){const i=getURLPath(r.url)||"/";let s="";s+=`/${this.factory.accountName}${i}`;const a=getURLQueries(r.url);const l={};if(a){const r=[];for(const i in a){if(Object.prototype.hasOwnProperty.call(a,i)){const s=i.toLowerCase();l[s]=a[i];r.push(s)}}r.sort();for(const i of r){s+=`\n${i}:${decodeURIComponent(l[i])}`}}return s}}class StorageSharedKeyCredential extends Credential{constructor(r,i){super();this.accountName=r;this.accountKey=Buffer.from(i,"base64")}create(r,i){return new StorageSharedKeyCredentialPolicy(r,i,this)}computeHMACSHA256(r){return u.createHmac("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const _o="azure-storage-blob";const ko="12.14.0";class StorageClientContext extends C.ServiceClient{constructor(r,i){if(r===undefined){throw new Error("'url' cannot be null")}if(!i){i={}}if(!i.userAgent){const r=C.getDefaultUserAgentValue();i.userAgent=`${_o}/${ko} ${r}`}super(undefined,i);this.requestContentType="application/json; charset=utf-8";this.baseUri=i.endpoint||"{url}";this.url=r;this.version=i.version||"2022-11-02"}}class StorageClient{constructor(r,i){this.url=escapeURLPath(r);this.accountName=getAccountNameFromUrl(r);this.pipeline=i;this.storageClientContext=new StorageClientContext(this.url,i.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const r of this.pipeline.factories){if(a.isNode&&r instanceof StorageSharedKeyCredential||r instanceof AnonymousCredential){this.credential=r}else if(a.isTokenCredential(r.credential)){this.credential=r.credential}}const s=this.storageClientContext;s.requestContentType=undefined}}const Oo=c.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(r){var i,s;return{spanOptions:(i=r===null||r===void 0?void 0:r.tracingOptions)===null||i===void 0?void 0:i.spanOptions,tracingContext:(s=r===null||r===void 0?void 0:r.tracingOptions)===null||s===void 0?void 0:s.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const i=new BlobSASPermissions;for(const s of r){switch(s){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"x":i.deleteVersion=true;break;case"t":i.tag=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${s}`)}}return i}static from(r){const i=new BlobSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(r){const i=new ContainerSASPermissions;for(const s of r){switch(s){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"l":i.list=true;break;case"t":i.tag=true;break;case"x":i.deleteVersion=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;case"f":i.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${s}`)}}return i}static from(r){const i=new ContainerSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.list){i.list=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}if(r.filterByTags){i.filterByTags=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.list){r.push("l")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}if(this.filterByTags){r.push("f")}return r.join("")}}class UserDelegationKeyCredential{constructor(r,i){this.accountName=r;this.userDelegationKey=i;this.key=Buffer.from(i.value,"base64")}computeHMACSHA256(r){return u.createHmac("sha256",this.key).update(r,"utf8").digest("base64")}}function ipRangeToString(r){return r.end?`${r.start}-${r.end}`:r.start}i.SASProtocol=void 0;(function(r){r["Https"]="https";r["HttpsAndHttp"]="https,http"})(i.SASProtocol||(i.SASProtocol={}));class SASQueryParameters{constructor(r,i,s,a,l,c,p,d,A,u,m,h,g,E,y,C,b,I,B,v){this.version=r;this.signature=i;if(s!==undefined&&typeof s!=="string"){this.permissions=s.permissions;this.services=s.services;this.resourceTypes=s.resourceTypes;this.protocol=s.protocol;this.startsOn=s.startsOn;this.expiresOn=s.expiresOn;this.ipRangeInner=s.ipRange;this.identifier=s.identifier;this.encryptionScope=s.encryptionScope;this.resource=s.resource;this.cacheControl=s.cacheControl;this.contentDisposition=s.contentDisposition;this.contentEncoding=s.contentEncoding;this.contentLanguage=s.contentLanguage;this.contentType=s.contentType;if(s.userDelegationKey){this.signedOid=s.userDelegationKey.signedObjectId;this.signedTenantId=s.userDelegationKey.signedTenantId;this.signedStartsOn=s.userDelegationKey.signedStartsOn;this.signedExpiresOn=s.userDelegationKey.signedExpiresOn;this.signedService=s.userDelegationKey.signedService;this.signedVersion=s.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=s.preauthorizedAgentObjectId;this.correlationId=s.correlationId}}else{this.services=a;this.resourceTypes=l;this.expiresOn=d;this.permissions=s;this.protocol=c;this.startsOn=p;this.ipRangeInner=A;this.encryptionScope=v;this.identifier=u;this.resource=m;this.cacheControl=h;this.contentDisposition=g;this.contentEncoding=E;this.contentLanguage=y;this.contentType=C;if(b){this.signedOid=b.signedObjectId;this.signedTenantId=b.signedTenantId;this.signedStartsOn=b.signedStartsOn;this.signedExpiresOn=b.signedExpiresOn;this.signedService=b.signedService;this.signedVersion=b.signedVersion;this.preauthorizedAgentObjectId=I;this.correlationId=B}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const r=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const i=[];for(const s of r){switch(s){case"sv":this.tryAppendQueryParameter(i,s,this.version);break;case"ss":this.tryAppendQueryParameter(i,s,this.services);break;case"srt":this.tryAppendQueryParameter(i,s,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(i,s,this.protocol);break;case"st":this.tryAppendQueryParameter(i,s,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(i,s,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(i,s,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(i,s,this.identifier);break;case"ses":this.tryAppendQueryParameter(i,s,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(i,s,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(i,s,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(i,s,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(i,s,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(i,s,this.signedService);break;case"skv":this.tryAppendQueryParameter(i,s,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(i,s,this.resource);break;case"sp":this.tryAppendQueryParameter(i,s,this.permissions);break;case"sig":this.tryAppendQueryParameter(i,s,this.signature);break;case"rscc":this.tryAppendQueryParameter(i,s,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(i,s,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(i,s,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(i,s,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(i,s,this.contentType);break;case"saoid":this.tryAppendQueryParameter(i,s,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(i,s,this.correlationId);break}}return i.join("&")}tryAppendQueryParameter(r,i,s){if(!s){return}i=encodeURIComponent(i);s=encodeURIComponent(s);if(i.length>0&&s.length>0){r.push(`${i}=${s}`)}}}function generateBlobSASQueryParameters(r,i,s){const a=r.version?r.version:to;const l=i instanceof StorageSharedKeyCredential?i:undefined;let c;if(l===undefined&&s!==undefined){c=new UserDelegationKeyCredential(s,i)}if(l===undefined&&c===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(l!==undefined){return generateBlobSASQueryParameters20201206(r,l)}else{return generateBlobSASQueryParametersUDK20201206(r,c)}}if(a>="2018-11-09"){if(l!==undefined){return generateBlobSASQueryParameters20181109(r,l)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,c)}else{return generateBlobSASQueryParametersUDK20181109(r,c)}}}if(a>="2015-04-05"){if(l!==undefined){return generateBlobSASQueryParameters20150405(r,l)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";if(r.blobName){s="b"}let a;if(r.permissions){if(r.blobName){a=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{a=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[a?a:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const c=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,c,a,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId)}function generateBlobSASQueryParametersUDK20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[l?l:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const p=i.computeHMACSHA256(c);return new SASQueryParameters(r.version,p,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope)}function getCanonicalName(r,i,s){const a=[`/blob/${r}/${i}`];if(s){a.push(`/${s}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const i=r.version?r.version:to;if(r.snapshotTime&&i<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(i<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(i<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(i<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=i;return r}class BlobLeaseClient{constructor(r,i){const s=new StorageClientContext(r.url,r.pipeline.toServiceClientOptions());this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(s)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(s)}if(!i){i=a.generateUuid()}this._leaseId=i}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(r,i={}){var s,a,l,p,d,A;const{span:u,updatedOptions:m}=Oo("BlobLeaseClient-acquireLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==mo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==mo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:i.abortSignal,duration:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(m)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async changeLease(r,i={}){var s,a,l,p,d,A;const{span:u,updatedOptions:m}=Oo("BlobLeaseClient-changeLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==mo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==mo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const s=await this._containerOrBlobOperation.changeLease(this._leaseId,r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions})},convertTracingToRequestOptionsBase(m)));this._leaseId=r;return s}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async releaseLease(r={}){var i,s,a,l,p,d;const{span:A,updatedOptions:u}=Oo("BlobLeaseClient-releaseLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)!==mo||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==mo||((p=r.conditions)===null||p===void 0?void 0:p.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(u)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async renewLease(r={}){var i,s,a,l,p,d;const{span:A,updatedOptions:u}=Oo("BlobLeaseClient-renewLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)!==mo||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((l=r.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==mo||((p=r.conditions)===null||p===void 0?void 0:p.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(u)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async breakLease(r,i={}){var s,a,l,p,d,A;const{span:u,updatedOptions:m}=Oo("BlobLeaseClient-breakLease",i);if(this._isContainer&&(((s=i.conditions)===null||s===void 0?void 0:s.ifMatch)&&((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)!==mo||((l=i.conditions)===null||l===void 0?void 0:l.ifNoneMatch)&&((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==mo||((d=i.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const s=Object.assign({abortSignal:i.abortSignal,breakPeriod:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions})},convertTracingToRequestOptionsBase(m));return await this._containerOrBlobOperation.breakLease(s)}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}}class RetriableReadableStream extends m.Readable{constructor(r,i,s,a,l={}){super({highWaterMark:l.highWaterMark});this.retries=0;this.sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};this.sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries=0&&gcompareIdentifiers(i,r);r.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},5326:r=>{const i=Object.freeze({loose:true});const s=Object.freeze({});const parseOptions=r=>{if(!r){return s}if(typeof r!=="object"){return i}return r};r.exports=parseOptions},7693:(r,i,s)=>{const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:l,MAX_LENGTH:c}=s(1728);const p=s(3528);i=r.exports={};const d=i.re=[];const A=i.safeRe=[];const u=i.src=[];const m=i.t={};let h=0;const g="[a-zA-Z0-9-]";const E=[["\\s",1],["\\d",c],[g,l]];const makeSafeRegex=r=>{for(const[i,s]of E){r=r.split(`${i}*`).join(`${i}{0,${s}}`).split(`${i}+`).join(`${i}{1,${s}}`)}return r};const createToken=(r,i,s)=>{const a=makeSafeRegex(i);const l=h++;p(r,l,i);m[r]=l;u[l]=i;d[l]=new RegExp(i,s?"g":undefined);A[l]=new RegExp(a,s?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`);createToken("MAINVERSION",`(${u[m.NUMERICIDENTIFIER]})\\.`+`(${u[m.NUMERICIDENTIFIER]})\\.`+`(${u[m.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${u[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[m.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${u[m.NUMERICIDENTIFIER]}|${u[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${u[m.NUMERICIDENTIFIERLOOSE]}|${u[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${u[m.PRERELEASEIDENTIFIER]}(?:\\.${u[m.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${u[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[m.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${g}+`);createToken("BUILD",`(?:\\+(${u[m.BUILDIDENTIFIER]}(?:\\.${u[m.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${u[m.MAINVERSION]}${u[m.PRERELEASE]}?${u[m.BUILD]}?`);createToken("FULL",`^${u[m.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${u[m.MAINVERSIONLOOSE]}${u[m.PRERELEASELOOSE]}?${u[m.BUILD]}?`);createToken("LOOSE",`^${u[m.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${u[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${u[m.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${u[m.XRANGEIDENTIFIER]})`+`(?:\\.(${u[m.XRANGEIDENTIFIER]})`+`(?:\\.(${u[m.XRANGEIDENTIFIER]})`+`(?:${u[m.PRERELEASE]})?${u[m.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${u[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[m.XRANGEIDENTIFIERLOOSE]})`+`(?:${u[m.PRERELEASELOOSE]})?${u[m.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${u[m.GTLT]}\\s*${u[m.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${u[m.GTLT]}\\s*${u[m.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${a}})`+`(?:\\.(\\d{1,${a}}))?`+`(?:\\.(\\d{1,${a}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",u[m.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${u[m.LONETILDE]}\\s+`,true);i.tildeTrimReplace="$1~";createToken("TILDE",`^${u[m.LONETILDE]}${u[m.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${u[m.LONETILDE]}${u[m.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${u[m.LONECARET]}\\s+`,true);i.caretTrimReplace="$1^";createToken("CARET",`^${u[m.LONECARET]}${u[m.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${u[m.LONECARET]}${u[m.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${u[m.GTLT]}\\s*(${u[m.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${u[m.GTLT]}\\s*(${u[m.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${u[m.GTLT]}\\s*(${u[m.LOOSEPLAIN]}|${u[m.XRANGEPLAIN]})`,true);i.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${u[m.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${u[m.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${u[m.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${u[m.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9556:(r,i,s)=>{const a=s(5966);const gtr=(r,i,s)=>a(r,i,">",s);r.exports=gtr},5447:(r,i,s)=>{const a=s(8330);const intersects=(r,i,s)=>{r=new a(r,s);i=new a(i,s);return r.intersects(i,s)};r.exports=intersects},6632:(r,i,s)=>{const a=s(5966);const ltr=(r,i,s)=>a(r,i,"<",s);r.exports=ltr},473:(r,i,s)=>{const a=s(3863);const l=s(8330);const maxSatisfying=(r,i,s)=>{let c=null;let p=null;let d=null;try{d=new l(i,s)}catch(r){return null}r.forEach((r=>{if(d.test(r)){if(!c||p.compare(r)===-1){c=r;p=new a(c,s)}}}));return c};r.exports=maxSatisfying},2180:(r,i,s)=>{const a=s(3863);const l=s(8330);const minSatisfying=(r,i,s)=>{let c=null;let p=null;let d=null;try{d=new l(i,s)}catch(r){return null}r.forEach((r=>{if(d.test(r)){if(!c||p.compare(r)===1){c=r;p=new a(c,s)}}}));return c};r.exports=minSatisfying},3870:(r,i,s)=>{const a=s(3863);const l=s(8330);const c=s(8489);const minVersion=(r,i)=>{r=new l(r,i);let s=new a("0.0.0");if(r.test(s)){return s}s=new a("0.0.0-0");if(r.test(s)){return s}s=null;for(let i=0;ithis.maxLength)return false;if(!this.stat&&y(this.cache,i)){var l=this.cache[i];if(Array.isArray(l))l="DIR";if(!s||l==="DIR")return l;if(s&&l==="FILE")return false}var c;var p=this.statCache[i];if(!p){var d;try{d=a.lstatSync(i)}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[i]=false;return false}}if(d&&d.isSymbolicLink()){try{p=a.statSync(i)}catch(r){p=d}}else{p=d}}this.statCache[i]=p;var l=true;if(p)l=p.isDirectory()?"DIR":"FILE";this.cache[i]=this.cache[i]||l;if(s&&l==="FILE")return false;return l};GlobSync.prototype._mark=function(r){return g.mark(this,r)};GlobSync.prototype._makeAbs=function(r){return g.makeAbs(this,r)}},2492:(r,i,s)=>{var a=s(2940);var l=Object.create(null);var c=s(1223);r.exports=a(inflight);function inflight(r,i){if(l[r]){l[r].push(i);return null}else{l[r]=[i];return makeres(r)}}function makeres(r){return c((function RES(){var i=l[r];var s=i.length;var a=slice(arguments);try{for(var c=0;cs){i.splice(0,s);process.nextTick((function(){RES.apply(null,a)}))}else{delete l[r]}}}))}function slice(r){var i=r.length;var s=[];for(var a=0;a{try{var a=s(3837);if(typeof a.inherits!=="function")throw"";r.exports=a.inherits}catch(i){r.exports=s(8544)}},8544:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,i){if(i){r.super_=i;r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,i){if(i){r.super_=i;var TempCtor=function(){};TempCtor.prototype=i.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},3287:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});
/*!
* is-plain-object {"use strict";var s=a(6829);var p=a(8179);var l=a(8759);var c=Object.prototype.toString;var d=Object.prototype.hasOwnProperty;var u=65279;var m=9;var h=10;var g=13;var y=32;var v=33;var b=34;var x=35;var w=37;var S=38;var E=39;var _=42;var T=44;var N=45;var P=58;var O=61;var C=62;var R=63;var A=64;var D=91;var k=93;var I=96;var L=123;var M=124;var B=125;var j={};j[0]="\\0";j[7]="\\a";j[8]="\\b";j[9]="\\t";j[10]="\\n";j[11]="\\v";j[12]="\\f";j[13]="\\r";j[27]="\\e";j[34]='\\"';j[92]="\\\\";j[133]="\\N";j[160]="\\_";j[8232]="\\L";j[8233]="\\P";var z=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var q=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(r,i){var a,s,p,l,c,u,m;if(i===null)return{};a={};s=Object.keys(i);for(p=0,l=s.length;p")}if(r.result!==null&&_.kind!==r.kind){throwError(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+_.kind+'", not "'+r.kind+'"')}if(!_.resolve(r.result,r.tag)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=_.construct(r.result,r.tag);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||x}function readDocument(r){var i=r.position,a,s,p,l=false,c;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap=Object.create(null);r.anchorMap=Object.create(null);while((c=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);c=r.input.charCodeAt(r.position);if(r.lineIndent>0||c!==37){break}l=true;c=r.input.charCodeAt(++r.position);a=r.position;while(c!==0&&!is_WS_OR_EOL(c)){c=r.input.charCodeAt(++r.position)}s=r.input.slice(a,r.position);p=[];if(s.length<1){throwError(r,"directive name must not be less than one character in length")}while(c!==0){while(is_WHITE_SPACE(c)){c=r.input.charCodeAt(++r.position)}if(c===35){do{c=r.input.charCodeAt(++r.position)}while(c!==0&&!is_EOL(c));break}if(is_EOL(c))break;a=r.position;while(c!==0&&!is_WS_OR_EOL(c)){c=r.input.charCodeAt(++r.position)}p.push(r.input.slice(a,r.position))}if(c!==0)readLineBreak(r);if(d.call(O,s)){O[s](r,s,p)}else{throwWarning(r,'unknown document directive "'+s+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(l){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,g,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&w.test(r.input.slice(i,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.position{"use strict";var s=a(6073);var p=Object.prototype.toString;function resolveYamlPairs(r){if(r===null)return true;var i,a,s,l,c,d=r;c=new Array(d.length);for(i=0,a=d.length;i{"use strict";var s=a(6073);r.exports=new s("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})},9548:(r,i,a)=>{"use strict";var s=a(6073);var p=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var i,a=r;for(i in a){if(p.call(a,i)){if(a[i]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}r.exports=new s("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(r,i,a)=>{"use strict";var s=a(6073);r.exports=new s("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})},9212:(r,i,a)=>{"use strict";var s=a(6073);var p=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var l=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(r){if(r===null)return false;if(p.exec(r)!==null)return true;if(l.exec(r)!==null)return true;return false}function constructYamlTimestamp(r){var i,a,s,c,d,u,m,h=0,g=null,y,v,b;i=p.exec(r);if(i===null)i=l.exec(r);if(i===null)throw new Error("Date resolve error");a=+i[1];s=+i[2]-1;c=+i[3];if(!i[4]){return new Date(Date.UTC(a,s,c))}d=+i[4];u=+i[5];m=+i[6];if(i[7]){h=i[7].slice(0,3);while(h.length<3){h+="0"}h=+h}if(i[9]){y=+i[10];v=+(i[11]||0);g=(y*60+v)*6e4;if(i[9]==="-")g=-g}b=new Date(Date.UTC(a,s,c,d,u,m,h));if(g)b.setTime(b.getTime()-g);return b}function representYamlTimestamp(r){return r.toISOString()}r.exports=new s("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},4329:r=>{"use strict";function e(r){this.message=r}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var i=String(r).replace(/=+$/,"");if(i.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var a,s,p=0,l=0,c="";s=i.charAt(l++);~s&&(a=p%4?64*a+s:s,p++%4)?c+=String.fromCharCode(255&a>>(-2*p&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return c};function t(r){var a=r.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(i(r).replace(/(.)/g,(function(r,i){var a=i.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a})))}(a)}catch(r){return i(a)}}function n(r){this.message=r}function o(r,i){if("string"!=typeof r)throw new n("Invalid token specified");var a=!0===(i=i||{}).header?0:1;try{return JSON.parse(t(r.split(".")[a]))}catch(r){throw new n("Invalid token specified: "+r.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const a=o;a.default=o,a.InvalidTokenError=n,r.exports=a},7426:(r,i,a)=>{
+ */function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var i,s;if(isObject(r)===false)return false;i=r.constructor;if(i===undefined)return true;s=i.prototype;if(isObject(s)===false)return false;if(s.hasOwnProperty("isPrototypeOf")===false){return false}return true}i.isPlainObject=isPlainObject},1917:(r,i,s)=>{"use strict";var a=s(1161);var l=s(8866);function renamed(r,i){return function(){throw new Error("Function yaml."+r+" is removed in js-yaml 4. "+"Use yaml."+i+" instead, which is now safe by default.")}}r.exports.Type=s(6073);r.exports.Schema=s(1082);r.exports.FAILSAFE_SCHEMA=s(8562);r.exports.JSON_SCHEMA=s(1035);r.exports.CORE_SCHEMA=s(2011);r.exports.DEFAULT_SCHEMA=s(8759);r.exports.load=a.load;r.exports.loadAll=a.loadAll;r.exports.dump=l.dump;r.exports.YAMLException=s(8179);r.exports.types={binary:s(7900),float:s(2705),map:s(6150),null:s(721),pairs:s(6860),set:s(9548),timestamp:s(9212),bool:s(4993),int:s(1615),merge:s(6104),omap:s(9046),seq:s(7283),str:s(3619)};r.exports.safeLoad=renamed("safeLoad","load");r.exports.safeLoadAll=renamed("safeLoadAll","loadAll");r.exports.safeDump=renamed("safeDump","dump")},6829:r=>{"use strict";function isNothing(r){return typeof r==="undefined"||r===null}function isObject(r){return typeof r==="object"&&r!==null}function toArray(r){if(Array.isArray(r))return r;else if(isNothing(r))return[];return[r]}function extend(r,i){var s,a,l,c;if(i){c=Object.keys(i);for(s=0,a=c.length;s{"use strict";var a=s(6829);var l=s(8179);var c=s(8759);var p=Object.prototype.toString;var d=Object.prototype.hasOwnProperty;var A=65279;var u=9;var m=10;var h=13;var g=32;var E=33;var y=34;var C=35;var b=37;var I=38;var B=39;var v=42;var Q=44;var w=45;var x=58;var S=61;var N=62;var R=63;var D=64;var T=91;var _=93;var k=96;var O=123;var P=124;var L=125;var M={};M[0]="\\0";M[7]="\\a";M[8]="\\b";M[9]="\\t";M[10]="\\n";M[11]="\\v";M[12]="\\f";M[13]="\\r";M[27]="\\e";M[34]='\\"';M[92]="\\\\";M[133]="\\N";M[160]="\\_";M[8232]="\\L";M[8233]="\\P";var U=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var q=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(r,i){var s,a,l,c,p,A,u;if(i===null)return{};s={};a=Object.keys(i);for(l=0,c=a.length;l1){r.result+=a.repeat("\n",i-1)}}function readPlainScalar(r,i,s){var a,l,c,p,d,A,u,m,h=r.kind,g=r.result,E;E=r.input.charCodeAt(r.position);if(is_WS_OR_EOL(E)||is_FLOW_INDICATOR(E)||E===35||E===38||E===42||E===33||E===124||E===62||E===39||E===34||E===37||E===64||E===96){return false}if(E===63||E===45){l=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(l)||s&&is_FLOW_INDICATOR(l)){return false}}r.kind="scalar";r.result="";c=p=r.position;d=false;while(E!==0){if(E===58){l=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(l)||s&&is_FLOW_INDICATOR(l)){break}}else if(E===35){a=r.input.charCodeAt(r.position-1);if(is_WS_OR_EOL(a)){break}}else if(r.position===r.lineStart&&testDocumentSeparator(r)||s&&is_FLOW_INDICATOR(E)){break}else if(is_EOL(E)){A=r.line;u=r.lineStart;m=r.lineIndent;skipSeparationSpace(r,false,-1);if(r.lineIndent>=i){d=true;E=r.input.charCodeAt(r.position);continue}else{r.position=p;r.line=A;r.lineStart=u;r.lineIndent=m;break}}if(d){captureSegment(r,c,p,false);writeFoldedLines(r,r.line-A);c=p=r.position;d=false}if(!is_WHITE_SPACE(E)){p=r.position+1}E=r.input.charCodeAt(++r.position)}captureSegment(r,c,p,false);if(r.result){return true}r.kind=h;r.result=g;return false}function readSingleQuotedScalar(r,i){var s,a,l;s=r.input.charCodeAt(r.position);if(s!==39){return false}r.kind="scalar";r.result="";r.position++;a=l=r.position;while((s=r.input.charCodeAt(r.position))!==0){if(s===39){captureSegment(r,a,r.position,true);s=r.input.charCodeAt(++r.position);if(s===39){a=r.position;r.position++;l=r.position}else{return true}}else if(is_EOL(s)){captureSegment(r,a,l,true);writeFoldedLines(r,skipSeparationSpace(r,false,i));a=l=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a single quoted scalar")}else{r.position++;l=r.position}}throwError(r,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(r,i){var s,a,l,c,p,d;d=r.input.charCodeAt(r.position);if(d!==34){return false}r.kind="scalar";r.result="";r.position++;s=a=r.position;while((d=r.input.charCodeAt(r.position))!==0){if(d===34){captureSegment(r,s,r.position,true);r.position++;return true}else if(d===92){captureSegment(r,s,r.position,true);d=r.input.charCodeAt(++r.position);if(is_EOL(d)){skipSeparationSpace(r,false,i)}else if(d<256&&Q[d]){r.result+=w[d];r.position++}else if((p=escapedHexLen(d))>0){l=p;c=0;for(;l>0;l--){d=r.input.charCodeAt(++r.position);if((p=fromHexCode(d))>=0){c=(c<<4)+p}else{throwError(r,"expected hexadecimal character")}}r.result+=charFromCodepoint(c);r.position++}else{throwError(r,"unknown escape sequence")}s=a=r.position}else if(is_EOL(d)){captureSegment(r,s,a,true);writeFoldedLines(r,skipSeparationSpace(r,false,i));s=a=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a double quoted scalar")}else{r.position++;a=r.position}}throwError(r,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(r,i){var s=true,a,l,c,p=r.tag,d,u=r.anchor,m,h,g,E,y,C=Object.create(null),b,I,B,v;v=r.input.charCodeAt(r.position);if(v===91){h=93;y=false;d=[]}else if(v===123){h=125;y=true;d={}}else{return false}if(r.anchor!==null){r.anchorMap[r.anchor]=d}v=r.input.charCodeAt(++r.position);while(v!==0){skipSeparationSpace(r,true,i);v=r.input.charCodeAt(r.position);if(v===h){r.position++;r.tag=p;r.anchor=u;r.kind=y?"mapping":"sequence";r.result=d;return true}else if(!s){throwError(r,"missed comma between flow collection entries")}else if(v===44){throwError(r,"expected the node content, but found ','")}I=b=B=null;g=E=false;if(v===63){m=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(m)){g=E=true;r.position++;skipSeparationSpace(r,true,i)}}a=r.line;l=r.lineStart;c=r.position;composeNode(r,i,A,false,true);I=r.tag;b=r.result;skipSeparationSpace(r,true,i);v=r.input.charCodeAt(r.position);if((E||r.line===a)&&v===58){g=true;v=r.input.charCodeAt(++r.position);skipSeparationSpace(r,true,i);composeNode(r,i,A,false,true);B=r.result}if(y){storeMappingPair(r,d,C,I,b,B,a,l,c)}else if(g){d.push(storeMappingPair(r,null,C,I,b,B,a,l,c))}else{d.push(b)}skipSeparationSpace(r,true,i);v=r.input.charCodeAt(r.position);if(v===44){s=true;v=r.input.charCodeAt(++r.position)}else{s=false}}throwError(r,"unexpected end of the stream within a flow collection")}function readBlockScalar(r,i){var s,l,c=g,p=false,d=false,A=i,u=0,m=false,h,C;C=r.input.charCodeAt(r.position);if(C===124){l=false}else if(C===62){l=true}else{return false}r.kind="scalar";r.result="";while(C!==0){C=r.input.charCodeAt(++r.position);if(C===43||C===45){if(g===c){c=C===43?y:E}else{throwError(r,"repeat of a chomping mode identifier")}}else if((h=fromDecimalCode(C))>=0){if(h===0){throwError(r,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!d){A=i+h-1;d=true}else{throwError(r,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(C)){do{C=r.input.charCodeAt(++r.position)}while(is_WHITE_SPACE(C));if(C===35){do{C=r.input.charCodeAt(++r.position)}while(!is_EOL(C)&&C!==0)}}while(C!==0){readLineBreak(r);r.lineIndent=0;C=r.input.charCodeAt(r.position);while((!d||r.lineIndentA){A=r.lineIndent}if(is_EOL(C)){u++;continue}if(r.lineIndenti)&&A!==0){throwError(r,"bad indentation of a sequence entry")}else if(r.lineIndenti){if(B){p=r.line;d=r.lineStart;A=r.position}if(composeNode(r,i,h,true,l)){if(B){b=r.result}else{I=r.result}}if(!B){storeMappingPair(r,E,y,C,b,I,p,d,A);C=b=I=null}skipSeparationSpace(r,true,-1);Q=r.input.charCodeAt(r.position)}if((r.line===c||r.lineIndent>i)&&Q!==0){throwError(r,"bad indentation of a mapping entry")}else if(r.lineIndenti){E=1}else if(r.lineIndent===i){E=0}else if(r.lineIndenti){E=1}else if(r.lineIndent===i){E=0}else if(r.lineIndent tag; it should be "scalar", not "'+r.kind+'"')}for(b=0,I=r.implicitTypes.length;b")}if(r.result!==null&&v.kind!==r.kind){throwError(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+v.kind+'", not "'+r.kind+'"')}if(!v.resolve(r.result,r.tag)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=v.construct(r.result,r.tag);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||C}function readDocument(r){var i=r.position,s,a,l,c=false,p;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap=Object.create(null);r.anchorMap=Object.create(null);while((p=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);p=r.input.charCodeAt(r.position);if(r.lineIndent>0||p!==37){break}c=true;p=r.input.charCodeAt(++r.position);s=r.position;while(p!==0&&!is_WS_OR_EOL(p)){p=r.input.charCodeAt(++r.position)}a=r.input.slice(s,r.position);l=[];if(a.length<1){throwError(r,"directive name must not be less than one character in length")}while(p!==0){while(is_WHITE_SPACE(p)){p=r.input.charCodeAt(++r.position)}if(p===35){do{p=r.input.charCodeAt(++r.position)}while(p!==0&&!is_EOL(p));break}if(is_EOL(p))break;s=r.position;while(p!==0&&!is_WS_OR_EOL(p)){p=r.input.charCodeAt(++r.position)}l.push(r.input.slice(s,r.position))}if(p!==0)readLineBreak(r);if(d.call(S,a)){S[a](r,a,l)}else{throwWarning(r,'unknown document directive "'+a+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(c){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,h,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&b.test(r.input.slice(i,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.position{"use strict";r.exports=s(1035)},8759:(r,i,s)=>{"use strict";r.exports=s(2011).extend({implicit:[s(9212),s(6104)],explicit:[s(7900),s(9046),s(6860),s(9548)]})},8562:(r,i,s)=>{"use strict";var a=s(1082);r.exports=new a({explicit:[s(3619),s(7283),s(6150)]})},1035:(r,i,s)=>{"use strict";r.exports=s(8562).extend({implicit:[s(721),s(4993),s(1615),s(2705)]})},6975:(r,i,s)=>{"use strict";var a=s(6829);function getLine(r,i,s,a,l){var c="";var p="";var d=Math.floor(l/2)-1;if(a-i>d){c=" ... ";i=a-d+c.length}if(s-a>d){p=" ...";s=a+d-p.length}return{str:c+r.slice(i,s).replace(/\t/g,"→")+p,pos:a-i+c.length}}function padStart(r,i){return a.repeat(" ",i-r.length)+r}function makeSnippet(r,i){i=Object.create(i||null);if(!r.buffer)return null;if(!i.maxLength)i.maxLength=79;if(typeof i.indent!=="number")i.indent=1;if(typeof i.linesBefore!=="number")i.linesBefore=3;if(typeof i.linesAfter!=="number")i.linesAfter=2;var s=/\r?\n|\r|\0/g;var l=[0];var c=[];var p;var d=-1;while(p=s.exec(r.buffer)){c.push(p.index);l.push(p.index+p[0].length);if(r.position<=p.index&&d<0){d=l.length-2}}if(d<0)d=l.length-1;var A="",u,m;var h=Math.min(r.line+i.linesAfter,c.length).toString().length;var g=i.maxLength-(i.indent+h+3);for(u=1;u<=i.linesBefore;u++){if(d-u<0)break;m=getLine(r.buffer,l[d-u],c[d-u],r.position-(l[d]-l[d-u]),g);A=a.repeat(" ",i.indent)+padStart((r.line-u+1).toString(),h)+" | "+m.str+"\n"+A}m=getLine(r.buffer,l[d],c[d],r.position,g);A+=a.repeat(" ",i.indent)+padStart((r.line+1).toString(),h)+" | "+m.str+"\n";A+=a.repeat("-",i.indent+h+3+m.pos)+"^"+"\n";for(u=1;u<=i.linesAfter;u++){if(d+u>=c.length)break;m=getLine(r.buffer,l[d+u],c[d+u],r.position-(l[d]-l[d+u]),g);A+=a.repeat(" ",i.indent)+padStart((r.line+u+1).toString(),h)+" | "+m.str+"\n"}return A.replace(/\n$/,"")}r.exports=makeSnippet},6073:(r,i,s)=>{"use strict";var a=s(8179);var l=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var c=["scalar","sequence","mapping"];function compileStyleAliases(r){var i={};if(r!==null){Object.keys(r).forEach((function(s){r[s].forEach((function(r){i[String(r)]=s}))}))}return i}function Type(r,i){i=i||{};Object.keys(i).forEach((function(i){if(l.indexOf(i)===-1){throw new a('Unknown option "'+i+'" is met in definition of "'+r+'" YAML type.')}}));this.options=i;this.tag=r;this.kind=i["kind"]||null;this.resolve=i["resolve"]||function(){return true};this.construct=i["construct"]||function(r){return r};this.instanceOf=i["instanceOf"]||null;this.predicate=i["predicate"]||null;this.represent=i["represent"]||null;this.representName=i["representName"]||null;this.defaultStyle=i["defaultStyle"]||null;this.multi=i["multi"]||false;this.styleAliases=compileStyleAliases(i["styleAliases"]||null);if(c.indexOf(this.kind)===-1){throw new a('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}r.exports=Type},7900:(r,i,s)=>{"use strict";var a=s(6073);var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(r){if(r===null)return false;var i,s,a=0,c=r.length,p=l;for(s=0;s{"use strict";var a=s(6073);r.exports=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})},9548:(r,i,s)=>{"use strict";var a=s(6073);var l=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var i,s=r;for(i in s){if(l.call(s,i)){if(s[i]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}r.exports=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(r,i,s)=>{"use strict";var a=s(6073);r.exports=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})},9212:(r,i,s)=>{"use strict";var a=s(6073);var l=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var c=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(r){if(r===null)return false;if(l.exec(r)!==null)return true;if(c.exec(r)!==null)return true;return false}function constructYamlTimestamp(r){var i,s,a,p,d,A,u,m=0,h=null,g,E,y;i=l.exec(r);if(i===null)i=c.exec(r);if(i===null)throw new Error("Date resolve error");s=+i[1];a=+i[2]-1;p=+i[3];if(!i[4]){return new Date(Date.UTC(s,a,p))}d=+i[4];A=+i[5];u=+i[6];if(i[7]){m=i[7].slice(0,3);while(m.length<3){m+="0"}m=+m}if(i[9]){g=+i[10];E=+(i[11]||0);h=(g*60+E)*6e4;if(i[9]==="-")h=-h}y=new Date(Date.UTC(s,a,p,d,A,u,m));if(h)y.setTime(y.getTime()-h);return y}function representYamlTimestamp(r){return r.toISOString()}r.exports=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},4329:r=>{"use strict";function e(r){this.message=r}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var i=String(r).replace(/=+$/,"");if(i.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var s,a,l=0,c=0,p="";a=i.charAt(c++);~a&&(s=l%4?64*s+a:a,l++%4)?p+=String.fromCharCode(255&s>>(-2*l&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return p};function t(r){var s=r.replace(/-/g,"+").replace(/_/g,"/");switch(s.length%4){case 0:break;case 2:s+="==";break;case 3:s+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(i(r).replace(/(.)/g,(function(r,i){var s=i.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s})))}(s)}catch(r){return i(s)}}function n(r){this.message=r}function o(r,i){if("string"!=typeof r)throw new n("Invalid token specified");var s=!0===(i=i||{}).header?0:1;try{return JSON.parse(t(r.split(".")[s]))}catch(r){throw new n("Invalid token specified: "+r.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const s=o;s.default=o,s.InvalidTokenError=n,r.exports=s},7426:(r,i,s)=>{
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
-r.exports=a(3765)},3583:(r,i,a)=>{"use strict";
+r.exports=s(3765)},3583:(r,i,s)=>{"use strict";
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
- */var s=a(7426);var p=a(1017).extname;var l=/^\s*([^;\s]*)(?:;|\s|$)/;var c=/^text\//i;i.charset=charset;i.charsets={lookup:charset};i.contentType=contentType;i.extension=extension;i.extensions=Object.create(null);i.lookup=lookup;i.types=Object.create(null);populateMaps(i.extensions,i.types);function charset(r){if(!r||typeof r!=="string"){return false}var i=l.exec(r);var a=i&&s[i[1].toLowerCase()];if(a&&a.charset){return a.charset}if(i&&c.test(i[1])){return"UTF-8"}return false}function contentType(r){if(!r||typeof r!=="string"){return false}var a=r.indexOf("/")===-1?i.lookup(r):r;if(!a){return false}if(a.indexOf("charset")===-1){var s=i.charset(a);if(s)a+="; charset="+s.toLowerCase()}return a}function extension(r){if(!r||typeof r!=="string"){return false}var a=l.exec(r);var s=a&&i.extensions[a[1].toLowerCase()];if(!s||!s.length){return false}return s[0]}function lookup(r){if(!r||typeof r!=="string"){return false}var a=p("x."+r).toLowerCase().substr(1);if(!a){return false}return i.types[a]||false}function populateMaps(r,i){var a=["nginx","apache",undefined,"iana"];Object.keys(s).forEach((function forEachMimeType(p){var l=s[p];var c=l.extensions;if(!c||!c.length){return}r[p]=c;for(var d=0;d=0;c--){l=r[c];if(l)break}for(c=0;c
"||isWhitespace(r)}function isMatch(r,i){return r.test(i)}function notMatch(r,i){return!isMatch(r,i)}var b=0;r.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++};r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(r.ENTITIES).forEach((function(i){var a=r.ENTITIES[i];var s=typeof a==="number"?String.fromCharCode(a):a;r.ENTITIES[i]=s}));for(var x in r.STATE){r.STATE[r.STATE[x]]=x}b=r.STATE;function emit(r,i,a){r[i]&&r[i](a)}function emitNode(r,i,a){if(r.textNode)closeText(r);emit(r,i,a)}function closeText(r){r.textNode=textopts(r.opt,r.textNode);if(r.textNode)emit(r,"ontext",r.textNode);r.textNode=""}function textopts(r,i){if(r.trim)i=i.trim();if(r.normalize)i=i.replace(/\s+/g," ");return i}function error(r,i){closeText(r);if(r.trackPosition){i+="\nLine: "+r.line+"\nColumn: "+r.column+"\nChar: "+r.c}i=new Error(i);r.error=i;emit(r,"onerror",i);return r}function end(r){if(r.sawRoot&&!r.closedRoot)strictFail(r,"Unclosed root tag");if(r.state!==b.BEGIN&&r.state!==b.BEGIN_WHITESPACE&&r.state!==b.TEXT){error(r,"Unexpected end")}closeText(r);r.c="";r.closed=true;emit(r,"onend");SAXParser.call(r,r.strict,r.opt);return r}function strictFail(r,i){if(typeof r!=="object"||!(r instanceof SAXParser)){throw new Error("bad call to strictFail")}if(r.strict){error(r,i)}}function newTag(r){if(!r.strict)r.tagName=r.tagName[r.looseCase]();var i=r.tags[r.tags.length-1]||r;var a=r.tag={name:r.tagName,attributes:{}};if(r.opt.xmlns){a.ns=i.ns}r.attribList.length=0;emitNode(r,"onopentagstart",a)}function qname(r,i){var a=r.indexOf(":");var s=a<0?["",r]:r.split(":");var p=s[0];var l=s[1];if(i&&r==="xmlns"){p="xmlns";l=""}return{prefix:p,local:l}}function attrib(r){if(!r.strict){r.attribName=r.attribName[r.looseCase]()}if(r.attribList.indexOf(r.attribName)!==-1||r.tag.attributes.hasOwnProperty(r.attribName)){r.attribName=r.attribValue="";return}if(r.opt.xmlns){var i=qname(r.attribName,true);var a=i.prefix;var s=i.local;if(a==="xmlns"){if(s==="xml"&&r.attribValue!==d){strictFail(r,"xml: prefix must be bound to "+d+"\n"+"Actual: "+r.attribValue)}else if(s==="xmlns"&&r.attribValue!==u){strictFail(r,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+r.attribValue)}else{var p=r.tag;var l=r.tags[r.tags.length-1]||r;if(p.ns===l.ns){p.ns=Object.create(l.ns)}p.ns[s]=r.attribValue}}r.attribList.push([r.attribName,r.attribValue])}else{r.tag.attributes[r.attribName]=r.attribValue;emitNode(r,"onattribute",{name:r.attribName,value:r.attribValue})}r.attribName=r.attribValue=""}function openTag(r,i){if(r.opt.xmlns){var a=r.tag;var s=qname(r.tagName);a.prefix=s.prefix;a.local=s.local;a.uri=a.ns[s.prefix]||"";if(a.prefix&&!a.uri){strictFail(r,"Unbound namespace prefix: "+JSON.stringify(r.tagName));a.uri=s.prefix}var p=r.tags[r.tags.length-1]||r;if(a.ns&&p.ns!==a.ns){Object.keys(a.ns).forEach((function(i){emitNode(r,"onopennamespace",{prefix:i,uri:a.ns[i]})}))}for(var l=0,c=r.attribList.length;l=0;p--){c=r[p];if(c)break}for(p=0;p
{(function(r){r.parser=function(r,i){return new SAXParser(r,i)};r.SAXParser=SAXParser;r.SAXStream=SAXStream;r.createStream=createStream;r.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(i,s){if(!(this instanceof SAXParser)){return new SAXParser(i,s)}var a=this;clearBuffers(a);a.q=a.c="";a.bufferCheckPosition=r.MAX_BUFFER_LENGTH;a.opt=s||{};a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags;a.looseCase=a.opt.lowercase?"toLowerCase":"toUpperCase";a.tags=[];a.closed=a.closedRoot=a.sawRoot=false;a.tag=a.error=null;a.strict=!!i;a.noscript=!!(i||a.opt.noscript);a.state=y.BEGIN;a.strictEntities=a.opt.strictEntities;a.ENTITIES=a.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES);a.attribList=[];if(a.opt.xmlns){a.ns=Object.create(u)}a.trackPosition=a.opt.position!==false;if(a.trackPosition){a.position=a.line=a.column=0}emit(a,"onready")}if(!Object.create){Object.create=function(r){function F(){}F.prototype=r;var i=new F;return i}}if(!Object.keys){Object.keys=function(r){var i=[];for(var s in r)if(r.hasOwnProperty(s))i.push(s);return i}}function checkBufferLength(s){var a=Math.max(r.MAX_BUFFER_LENGTH,10);var l=0;for(var c=0,p=i.length;c=0;d--)if(c=r[d])l=(p<3?c(l):p>3?c(i,a,l):c(i,a))||l;return p>3&&l&&Object.defineProperty(i,a,l),l};l=function(r,i){return function(a,s){i(a,s,r)}};c=function(r,i,a,s,p,l){function accept(r){if(r!==void 0&&typeof r!=="function")throw new TypeError("Function expected");return r}var c=s.kind,d=c==="getter"?"get":c==="setter"?"set":"value";var u=!i&&r?s["static"]?r:r.prototype:null;var m=i||(u?Object.getOwnPropertyDescriptor(u,s.name):{});var h,g=false;for(var y=a.length-1;y>=0;y--){var v={};for(var b in s)v[b]=b==="access"?{}:s[b];for(var b in s.access)v.access[b]=s.access[b];v.addInitializer=function(r){if(g)throw new TypeError("Cannot add initializers after decoration has completed");l.push(accept(r||null))};var x=(0,a[y])(c==="accessor"?{get:m.get,set:m.set}:m[d],v);if(c==="accessor"){if(x===void 0)continue;if(x===null||typeof x!=="object")throw new TypeError("Object expected");if(h=accept(x.get))m.get=h;if(h=accept(x.set))m.set=h;if(h=accept(x.init))p.unshift(h)}else if(h=accept(x)){if(c==="field")p.unshift(h);else m[d]=h}}if(u)Object.defineProperty(u,s.name,m);g=true};d=function(r,i,a){var s=arguments.length>2;for(var p=0;p